Zeile 118 | Zeile 118 |
---|
$group = $db->fetch_array($query);
// Does the setting not exist?
|
$group = $db->fetch_array($query);
// Does the setting not exist?
|
if(!$group['gid'])
| if(!$group)
|
{ flash_message($lang->error_invalid_gid2, 'error'); admin_redirect("index.php?module=config-settings&action=manage");
| { flash_message($lang->error_invalid_gid2, 'error'); admin_redirect("index.php?module=config-settings&action=manage");
|
Zeile 220 | Zeile 220 |
---|
$group = $db->fetch_array($query);
// Does the setting group not exist?
|
$group = $db->fetch_array($query);
// Does the setting group not exist?
|
if(!$group['gid'])
| if(!$group)
|
{ flash_message($lang->error_invalid_gid2, 'error'); admin_redirect("index.php?module=config-settings&action=manage");
| { flash_message($lang->error_invalid_gid2, 'error'); admin_redirect("index.php?module=config-settings&action=manage");
|
Zeile 454 | Zeile 454 |
---|
$setting = $db->fetch_array($query);
// Does the setting not exist?
|
$setting = $db->fetch_array($query);
// Does the setting not exist?
|
if(!$setting['sid'])
| if(!$setting)
|
{ flash_message($lang->error_invalid_sid, 'error'); admin_redirect("index.php?module=config-settings");
| { flash_message($lang->error_invalid_sid, 'error'); admin_redirect("index.php?module=config-settings");
|
Zeile 673 | Zeile 673 |
---|
$setting = $db->fetch_array($query);
// Does the setting not exist?
|
$setting = $db->fetch_array($query);
// Does the setting not exist?
|
if(empty($setting['sid']))
| if(!$setting)
|
{ flash_message($lang->error_invalid_sid, 'error'); admin_redirect("index.php?module=config-settings&action=manage");
| { flash_message($lang->error_invalid_sid, 'error'); admin_redirect("index.php?module=config-settings&action=manage");
|
Zeile 1704 | Zeile 1704 |
---|
$multivalue = explode(',', $setting['value']); }
|
$multivalue = explode(',', $setting['value']); }
|
| $option_list = array();
|
for($i = 0; $i < $typecount; $i++) { $optionsexp = explode("=", $type[$i]); if(!isset($optionsexp[1])) { continue;
|
for($i = 0; $i < $typecount; $i++) { $optionsexp = explode("=", $type[$i]); if(!isset($optionsexp[1])) { continue;
|
}
| }
|
$title_lang = "setting_{$setting['name']}_{$optionsexp[0]}"; if(isset($lang->$title_lang)) {
| $title_lang = "setting_{$setting['name']}_{$optionsexp[0]}"; if(isset($lang->$title_lang)) {
|
Zeile 1724 | Zeile 1725 |
---|
else if($type[0] == "radio") { if($setting['value'] == $optionsexp[0])
|
else if($type[0] == "radio") { if($setting['value'] == $optionsexp[0])
|
{
| {
|
$option_list[$i] = $form->generate_radio_button($element_name, $optionsexp[0], htmlspecialchars_uni($optionsexp[1]), array('id' => $element_id.'_'.$i, "checked" => 1, 'class' => $element_id));
|
$option_list[$i] = $form->generate_radio_button($element_name, $optionsexp[0], htmlspecialchars_uni($optionsexp[1]), array('id' => $element_id.'_'.$i, "checked" => 1, 'class' => $element_id));
|
}
| }
|
else { $option_list[$i] = $form->generate_radio_button($element_name, $optionsexp[0], htmlspecialchars_uni($optionsexp[1]), array('id' => $element_id.'_'.$i, 'class' => $element_id));
|
else { $option_list[$i] = $form->generate_radio_button($element_name, $optionsexp[0], htmlspecialchars_uni($optionsexp[1]), array('id' => $element_id.'_'.$i, 'class' => $element_id));
|
} }
| } }
|
else if($type[0] == "checkbox") { if(in_array($optionsexp[0], $multivalue))
| else if($type[0] == "checkbox") { if(in_array($optionsexp[0], $multivalue))
|
Zeile 1758 | Zeile 1759 |
---|
$setting_code .= $form->generate_hidden_field("isvisible_{$setting['name']}", 1); } }
|
$setting_code .= $form->generate_hidden_field("isvisible_{$setting['name']}", 1); } }
|
$option_list = array();
| |
}
// Do we have a custom language variable for this title or description?
| }
// Do we have a custom language variable for this title or description?
|