Zeile 100 | Zeile 100 |
---|
$form_container = new FormContainer($lang->add_new_setting_group); $form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title'); $form_container->output_row($lang->description, "", $form->generate_text_area('description', $mybb->input['description'], array('id' => 'description')), 'description');
|
$form_container = new FormContainer($lang->add_new_setting_group); $form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title'); $form_container->output_row($lang->description, "", $form->generate_text_area('description', $mybb->input['description'], array('id' => 'description')), 'description');
|
$form_container->output_row($lang->display_order, "", $form->generate_text_box('disporder', $mybb->input['disporder'], array('id' => 'disporder')), 'disporder');
| $form_container->output_row($lang->display_order, "", $form->generate_numeric_field('disporder', $mybb->input['disporder'], array('id' => 'disporder')), 'disporder');
|
$form_container->output_row($lang->name." <em>*</em>", $lang->group_name_desc, $form->generate_text_box('name', $mybb->input['name'], array('id' => 'name')), 'name'); $form_container->end();
| $form_container->output_row($lang->name." <em>*</em>", $lang->group_name_desc, $form->generate_text_box('name', $mybb->input['name'], array('id' => 'name')), 'name'); $form_container->end();
|
Zeile 162 | Zeile 162 |
---|
"disporder" => (int)$mybb->input['disporder'], );
|
"disporder" => (int)$mybb->input['disporder'], );
|
$db->update_query("settinggroups", $update_setting_group, "gid='{$group['gid']}'");
$plugins->run_hooks("admin_config_settings_editgroup_commit");
| $plugins->run_hooks("admin_config_settings_editgroup_commit");
$db->update_query("settinggroups", $update_setting_group, "gid='{$group['gid']}'");
|
// Log admin action log_admin_action($group['gid'], $mybb->input['name']);
|
// Log admin action log_admin_action($group['gid'], $mybb->input['name']);
|
|
|
flash_message($lang->success_setting_group_updated, 'success'); admin_redirect("index.php?module=config-settings&action=manage"); }
| flash_message($lang->success_setting_group_updated, 'success'); admin_redirect("index.php?module=config-settings&action=manage"); }
|
Zeile 176 | Zeile 176 |
---|
$page->add_breadcrumb_item($lang->edit_setting_group); $page->output_header($lang->board_settings." - ".$lang->edit_setting_group);
|
$page->add_breadcrumb_item($lang->edit_setting_group); $page->output_header($lang->board_settings." - ".$lang->edit_setting_group);
|
|
|
$sub_tabs['edit_setting_group'] = array( 'title' => $lang->edit_setting_group, 'link' => "index.php?module=config-settings&action=editgroup&gid={$group['gid']}", 'description' => $lang->edit_setting_group_desc );
|
$sub_tabs['edit_setting_group'] = array( 'title' => $lang->edit_setting_group, 'link' => "index.php?module=config-settings&action=editgroup&gid={$group['gid']}", 'description' => $lang->edit_setting_group_desc );
|
$page->output_nav_tabs($sub_tabs, 'edit_setting_group');
$form = new Form("index.php?module=config-settings&action=editgroup", "post", "editgroup");
| $page->output_nav_tabs($sub_tabs, 'edit_setting_group');
$form = new Form("index.php?module=config-settings&action=editgroup", "post", "editgroup");
|
echo $form->generate_hidden_field("gid", $group['gid']);
if($errors)
|
echo $form->generate_hidden_field("gid", $group['gid']);
if($errors)
|
{
| {
|
$group_data = $mybb->input; $page->output_inline_error($errors); }
| $group_data = $mybb->input; $page->output_inline_error($errors); }
|
Zeile 202 | Zeile 202 |
---|
$form_container = new FormContainer($lang->edit_setting_group); $form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('title', $group_data['title'], array('id' => 'title')), 'title'); $form_container->output_row($lang->description, "", $form->generate_text_area('description', $group_data['description'], array('id' => 'description')), 'description');
|
$form_container = new FormContainer($lang->edit_setting_group); $form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('title', $group_data['title'], array('id' => 'title')), 'title'); $form_container->output_row($lang->description, "", $form->generate_text_area('description', $group_data['description'], array('id' => 'description')), 'description');
|
$form_container->output_row($lang->display_order, "", $form->generate_text_box('disporder', $group_data['disporder'], array('id' => 'disporder')), 'disporder');
| $form_container->output_row($lang->display_order, "", $form->generate_numeric_field('disporder', $group_data['disporder'], array('id' => 'disporder')), 'disporder');
|
$form_container->output_row($lang->name." <em>*</em>", $lang->group_name_desc, $form->generate_text_box('name', $group_data['name'], array('id' => 'name')), 'name'); $form_container->end();
| $form_container->output_row($lang->name." <em>*</em>", $lang->group_name_desc, $form->generate_text_box('name', $group_data['name'], array('id' => 'name')), 'name'); $form_container->end();
|
Zeile 234 | Zeile 234 |
---|
// User clicked no if($mybb->input['no'])
|
// User clicked no if($mybb->input['no'])
|
{ admin_redirect("index.php?module=config-settings&action=manage");
| { admin_redirect("index.php?module=config-settings&action=manage");
|
}
|
}
|
|
|
$plugins->run_hooks("admin_config_settings_deletegroup");
|
$plugins->run_hooks("admin_config_settings_deletegroup");
|
|
|
if($mybb->request_method == "post") { // Delete the setting group and its settings
| if($mybb->request_method == "post") { // Delete the setting group and its settings
|
Zeile 249 | Zeile 249 |
---|
rebuild_settings();
$plugins->run_hooks("admin_config_settings_deletegroup_commit");
|
rebuild_settings();
$plugins->run_hooks("admin_config_settings_deletegroup_commit");
|
|
|
// Log admin action log_admin_action($group['gid'], $group['name']);
| // Log admin action log_admin_action($group['gid'], $group['name']);
|
Zeile 279 | Zeile 279 |
---|
if(!$gid) { $errors[] = $lang->error_invalid_gid;
|
if(!$gid) { $errors[] = $lang->error_invalid_gid;
|
}
if(!trim($mybb->input['name'])) { $errors[] = $lang->error_missing_name; }
| }
if(!trim($mybb->input['name'])) { $errors[] = $lang->error_missing_name; }
|
$query = $db->simple_select("settings", "title", "name='".$db->escape_string($mybb->input['name'])."'"); if($db->num_rows($query) > 0) {
| $query = $db->simple_select("settings", "title", "name='".$db->escape_string($mybb->input['name'])."'"); if($db->num_rows($query) > 0) {
|
Zeile 307 | Zeile 307 |
---|
if(!$errors) { if($mybb->input['type'] == "custom")
|
if(!$errors) { if($mybb->input['type'] == "custom")
|
{
| {
|
$options_code = $mybb->input['extra']; } else if($mybb->input['extra'])
| $options_code = $mybb->input['extra']; } else if($mybb->input['extra'])
|
Zeile 318 | Zeile 318 |
---|
{ $options_code = $mybb->input['type']; }
|
{ $options_code = $mybb->input['type']; }
|
|
|
$mybb->input['name'] = str_replace("\\", '', $mybb->input['name']); $mybb->input['name'] = str_replace('$', '', $mybb->input['name']); $mybb->input['name'] = str_replace("'", '', $mybb->input['name']);
|
$mybb->input['name'] = str_replace("\\", '', $mybb->input['name']); $mybb->input['name'] = str_replace('$', '', $mybb->input['name']); $mybb->input['name'] = str_replace("'", '', $mybb->input['name']);
|
| if($options_code == "numeric") { $value = (int)$mybb->input['value']; } else { $value = $db->escape_string($mybb->input['value']); }
|
$new_setting = array( "name" => $db->escape_string($mybb->input['name']), "title" => $db->escape_string($mybb->input['title']), "description" => $db->escape_string($mybb->input['description']), "optionscode" => $db->escape_string($options_code),
|
$new_setting = array( "name" => $db->escape_string($mybb->input['name']), "title" => $db->escape_string($mybb->input['title']), "description" => $db->escape_string($mybb->input['description']), "optionscode" => $db->escape_string($options_code),
|
"value" => $db->escape_string($mybb->input['value']),
| "value" => $value,
|
"disporder" => (int)$mybb->input['disporder'], "gid" => (int)$mybb->input['gid'] );
| "disporder" => (int)$mybb->input['disporder'], "gid" => (int)$mybb->input['gid'] );
|
Zeile 344 | Zeile 353 |
---|
flash_message($lang->success_setting_added, 'success'); admin_redirect("index.php?module=config-settings&action=manage"); }
|
flash_message($lang->success_setting_added, 'success'); admin_redirect("index.php?module=config-settings&action=manage"); }
|
}
| }
|
$page->add_breadcrumb_item($lang->add_new_setting); $page->output_header($lang->board_settings." - ".$lang->add_new_setting);
| $page->add_breadcrumb_item($lang->add_new_setting); $page->output_header($lang->board_settings." - ".$lang->add_new_setting);
|
Zeile 389 | Zeile 398 |
---|
$options[$group['gid']] = $group['title']; } $form_container->output_row($lang->group." <em>*</em>", "", $form->generate_select_box("gid", $options, $mybb->input['gid'], array('id' => 'gid')), 'gid');
|
$options[$group['gid']] = $group['title']; } $form_container->output_row($lang->group." <em>*</em>", "", $form->generate_select_box("gid", $options, $mybb->input['gid'], array('id' => 'gid')), 'gid');
|
$form_container->output_row($lang->display_order, "", $form->generate_text_box('disporder', $mybb->input['disporder'], array('id' => 'disporder')), 'disporder');
$form_container->output_row($lang->name." <em>*</em>", $lang->name_desc, $form->generate_text_box('name', $mybb->input['name'], array('id' => 'name')), 'name');
$setting_types = array( "text" => $lang->text, "textarea" => $lang->textarea, "yesno" => $lang->yesno, "onoff" => $lang->onoff, "select" => $lang->select, "forumselect" => $lang->forum_selection_box, "groupselect" => $lang->group_selection_box, "radio" => $lang->radio, "checkbox" => $lang->checkbox, "language" => $lang->language_selection_box, "adminlanguage" => $lang->adminlanguage, "cpstyle" => $lang->cpstyle, //"php" => $lang->php // Internal Use Only );
| $form_container->output_row($lang->display_order, "", $form->generate_numeric_field('disporder', $mybb->input['disporder'], array('id' => 'disporder')), 'disporder');
$form_container->output_row($lang->name." <em>*</em>", $lang->name_desc, $form->generate_text_box('name', $mybb->input['name'], array('id' => 'name')), 'name');
$setting_types = array( "text" => $lang->text, "numeric" => $lang->numeric_text, "textarea" => $lang->textarea, "yesno" => $lang->yesno, "onoff" => $lang->onoff, "select" => $lang->select, "forumselect" => $lang->forum_selection_box, "groupselect" => $lang->group_selection_box, "radio" => $lang->radio, "checkbox" => $lang->checkbox, "language" => $lang->language_selection_box, "adminlanguage" => $lang->adminlanguage, "cpstyle" => $lang->cpstyle, //"php" => $lang->php // Internal Use Only );
|
$form_container->output_row($lang->type." <em>*</em>", "", $form->generate_select_box("type", $setting_types, $mybb->input['type'], array('id' => 'type')), 'type'); $form_container->output_row($lang->extra, $lang->extra_desc, $form->generate_text_area('extra', $mybb->input['extra'], array('id' => 'extra')), 'extra', array(), array('id' => 'row_extra')); $form_container->output_row($lang->value, "", $form->generate_text_area('value', $mybb->input['value'], array('id' => 'value')), 'value');
| $form_container->output_row($lang->type." <em>*</em>", "", $form->generate_select_box("type", $setting_types, $mybb->input['type'], array('id' => 'type')), 'type'); $form_container->output_row($lang->extra, $lang->extra_desc, $form->generate_text_area('extra', $mybb->input['extra'], array('id' => 'extra')), 'extra', array(), array('id' => 'row_extra')); $form_container->output_row($lang->value, "", $form->generate_text_area('value', $mybb->input['value'], array('id' => 'value')), 'value');
|
Zeile 483 | Zeile 493 |
---|
if(strtolower(substr($mybb->input['type'], 0, 3)) == "php") { $mybb->input['type'] = "";
|
if(strtolower(substr($mybb->input['type'], 0, 3)) == "php") { $mybb->input['type'] = "";
|
}
| }
|
if(!$mybb->input['type'])
|
if(!$mybb->input['type'])
|
{
| {
|
$errors[] = $lang->error_invalid_type; }
| $errors[] = $lang->error_invalid_type; }
|
Zeile 499 | Zeile 509 |
---|
else if($mybb->input['extra']) { $options_code = "{$mybb->input['type']}\n{$mybb->input['extra']}";
|
else if($mybb->input['extra']) { $options_code = "{$mybb->input['type']}\n{$mybb->input['extra']}";
|
} else {
| } else {
|
$options_code = $mybb->input['type'];
|
$options_code = $mybb->input['type'];
|
}
| }
|
$mybb->input['name'] = str_replace("\\", '', $mybb->input['name']); $mybb->input['name'] = str_replace('$', '', $mybb->input['name']); $mybb->input['name'] = str_replace("'", '', $mybb->input['name']);
|
$mybb->input['name'] = str_replace("\\", '', $mybb->input['name']); $mybb->input['name'] = str_replace('$', '', $mybb->input['name']); $mybb->input['name'] = str_replace("'", '', $mybb->input['name']);
|
| if($options_code == "numeric") { $value = (int)$mybb->input['value']; } else { $value = $db->escape_string($mybb->input['value']); }
|
$updated_setting = array( "name" => $db->escape_string($mybb->input['name']), "title" => $db->escape_string($mybb->input['title']), "description" => $db->escape_string($mybb->input['description']), "optionscode" => $db->escape_string($options_code),
|
$updated_setting = array( "name" => $db->escape_string($mybb->input['name']), "title" => $db->escape_string($mybb->input['title']), "description" => $db->escape_string($mybb->input['description']), "optionscode" => $db->escape_string($options_code),
|
"value" => $db->escape_string($mybb->input['value']),
| "value" => $value,
|
"disporder" => (int)$mybb->input['disporder'], "gid" => (int)$mybb->input['gid'] );
|
"disporder" => (int)$mybb->input['disporder'], "gid" => (int)$mybb->input['gid'] );
|
| $plugins->run_hooks("admin_config_settings_edit_commit");
|
$db->update_query("settings", $updated_setting, "sid='{$mybb->input['sid']}'"); rebuild_settings();
|
$db->update_query("settings", $updated_setting, "sid='{$mybb->input['sid']}'"); rebuild_settings();
|
$plugins->run_hooks("admin_config_settings_edit_commit");
|
|
// Log admin action log_admin_action($setting['sid'], $mybb->input['title']);
|
// Log admin action log_admin_action($setting['sid'], $mybb->input['title']);
|
|
|
flash_message($lang->success_setting_updated, 'success'); admin_redirect("index.php?module=config-settings&action=manage");
|
flash_message($lang->success_setting_updated, 'success'); admin_redirect("index.php?module=config-settings&action=manage");
|
} }
| } }
|
$page->add_breadcrumb_item($lang->edit_setting); $page->output_header($lang->board_settings." - ".$lang->edit_setting);
|
$page->add_breadcrumb_item($lang->edit_setting); $page->output_header($lang->board_settings." - ".$lang->edit_setting);
|
|
|
$sub_tabs['change_settings'] = array( 'title' => $lang->change_settings, 'link' => "index.php?module=config-settings",
|
$sub_tabs['change_settings'] = array( 'title' => $lang->change_settings, 'link' => "index.php?module=config-settings",
|
);
| );
|
$sub_tabs['add_setting'] = array( 'title' => $lang->add_new_setting, 'link' => "index.php?module=config-settings&action=add"
|
$sub_tabs['add_setting'] = array( 'title' => $lang->add_new_setting, 'link' => "index.php?module=config-settings&action=add"
|
);
| );
|
$sub_tabs['add_setting_group'] = array( 'title' => $lang->add_new_setting_group,
| $sub_tabs['add_setting_group'] = array( 'title' => $lang->add_new_setting_group,
|
Zeile 572 | Zeile 592 |
---|
$type = explode("\n", $setting['optionscode'], 2); $setting_data['type'] = trim($type[0]); $setting_data['extra'] = trim($type[1]);
|
$type = explode("\n", $setting['optionscode'], 2); $setting_data['type'] = trim($type[0]); $setting_data['extra'] = trim($type[1]);
|
}
| }
|
$form_container = new FormContainer($lang->modify_setting); $form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('title', $setting_data['title'], array('id' => 'title')), 'title');
| $form_container = new FormContainer($lang->modify_setting); $form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('title', $setting_data['title'], array('id' => 'title')), 'title');
|
Zeile 584 | Zeile 604 |
---|
$options[$group['gid']] = $group['title']; } $form_container->output_row($lang->group." <em>*</em>", "", $form->generate_select_box("gid", $options, $setting_data['gid'], array('id' => 'gid')), 'gid');
|
$options[$group['gid']] = $group['title']; } $form_container->output_row($lang->group." <em>*</em>", "", $form->generate_select_box("gid", $options, $setting_data['gid'], array('id' => 'gid')), 'gid');
|
$form_container->output_row($lang->display_order, "", $form->generate_text_box('disporder', $setting_data['disporder'], array('id' => 'disporder')), 'disporder');
| $form_container->output_row($lang->display_order, "", $form->generate_numeric_field('disporder', $setting_data['disporder'], array('id' => 'disporder')), 'disporder');
|
$form_container->end();
$form_container = new FormContainer($lang->setting_configuration, 1);
| $form_container->end();
$form_container = new FormContainer($lang->setting_configuration, 1);
|
Zeile 592 | Zeile 612 |
---|
$setting_types = array( "text" => $lang->text,
|
$setting_types = array( "text" => $lang->text,
|
| "numeric" => $lang->numeric_text,
|
"textarea" => $lang->textarea, "yesno" => $lang->yesno, "onoff" => $lang->onoff,
| "textarea" => $lang->textarea, "yesno" => $lang->yesno, "onoff" => $lang->onoff,
|
Zeile 649 | Zeile 670 |
---|
// User clicked no if($mybb->input['no'])
|
// User clicked no if($mybb->input['no'])
|
{ admin_redirect("index.php?module=config-settings&action=manage"); }
$plugins->run_hooks("admin_config_settings_delete");
| { admin_redirect("index.php?module=config-settings&action=manage"); }
$plugins->run_hooks("admin_config_settings_delete");
|
if($mybb->request_method == "post") {
| if($mybb->request_method == "post") {
|
Zeile 771 | Zeile 792 |
---|
$group_title = htmlspecialchars_uni($group['title']); } $table->construct_cell("<strong>{$group_title}</strong>", array('id' => "group{$group['gid']}"));
|
$group_title = htmlspecialchars_uni($group['title']); } $table->construct_cell("<strong>{$group_title}</strong>", array('id' => "group{$group['gid']}"));
|
$table->construct_cell($form->generate_text_box("group_disporder[{$group['gid']}]", $group['disporder'], array('style' => 'width: 80%; font-weight: bold', 'class' => 'align_center')));
| $table->construct_cell($form->generate_numeric_field("group_disporder[{$group['gid']}]", $group['disporder'], array('style' => 'width: 80%; font-weight: bold', 'class' => 'align_center')));
|
// Only show options if not a default setting group if($group['isdefault'] != 1) {
| // Only show options if not a default setting group if($group['isdefault'] != 1) {
|
Zeile 801 | Zeile 822 |
---|
$setting_title = htmlspecialchars_uni($setting['title']); } $table->construct_cell($setting_title, array('style' => 'padding-left: 40px;'));
|
$setting_title = htmlspecialchars_uni($setting['title']); } $table->construct_cell($setting_title, array('style' => 'padding-left: 40px;'));
|
$table->construct_cell($form->generate_text_box("setting_disporder[{$setting['sid']}]", $setting['disporder'], array('style' => 'width: 80%', 'class' => 'align_center')));
| $table->construct_cell($form->generate_numeric_field("setting_disporder[{$setting['sid']}]", $setting['disporder'], array('style' => 'width: 80%', 'class' => 'align_center')));
|
// Only show options if not a default setting group or is a custom setting if($group['isdefault'] != 1 || $setting['isdefault'] != 1) {
| // Only show options if not a default setting group or is a custom setting if($group['isdefault'] != 1 || $setting['isdefault'] != 1) {
|
Zeile 970 | Zeile 991 |
---|
}
rebuild_settings();
|
}
rebuild_settings();
|
| $plugins->run_hooks("admin_config_settings_change_commit");
|
// If we have changed our report reasons recache them if(isset($mybb->input['upsetting']['reportreasons'])) { $cache->update_reportedposts(); }
|
// If we have changed our report reasons recache them if(isset($mybb->input['upsetting']['reportreasons'])) { $cache->update_reportedposts(); }
|
$plugins->run_hooks("admin_config_settings_change_commit");
| |
// Log admin action log_admin_action();
| // Log admin action log_admin_action();
|
Zeile 1004 | Zeile 1025 |
---|
while($setting = $db->fetch_array($query)) { $cache_settings[$setting['gid']][$setting['sid']] = $setting;
|
while($setting = $db->fetch_array($query)) { $cache_settings[$setting['gid']][$setting['sid']] = $setting;
|
}
| }
|
if(!$db->num_rows($query)) { if(isset($mybb->input['ajax_search']))
| if(!$db->num_rows($query)) { if(isset($mybb->input['ajax_search']))
|
Zeile 1017 | Zeile 1038 |
---|
{ flash_message($lang->error_no_settings_found, 'error'); admin_redirect("index.php?module=config-settings");
|
{ flash_message($lang->error_no_settings_found, 'error'); admin_redirect("index.php?module=config-settings");
|
} }
// Cache groups
| } }
// Cache groups
|
$groups = array_keys($cache_settings); $groups = implode(',', $groups); $query = $db->simple_select("settinggroups", "*", "gid IN ({$groups})", array('order_by' => 'disporder'));
| $groups = array_keys($cache_settings); $groups = implode(',', $groups); $query = $db->simple_select("settinggroups", "*", "gid IN ({$groups})", array('order_by' => 'disporder'));
|
Zeile 1034 | Zeile 1055 |
---|
{ $page->add_breadcrumb_item($lang->settings_search); $page->output_header($lang->board_settings." - {$lang->settings_search}");
|
{ $page->add_breadcrumb_item($lang->settings_search); $page->output_header($lang->board_settings." - {$lang->settings_search}");
|
}
$form = new Form("index.php?module=config-settings&action=change", "post", "change");
| }
$form = new Form("index.php?module=config-settings&action=change", "post", "change");
|
echo $form->generate_hidden_field("gid", $group['gid']); }
| echo $form->generate_hidden_field("gid", $group['gid']); }
|
Zeile 1048 | Zeile 1069 |
---|
$groupinfo = $db->fetch_array($query); $cache_groups[$groupinfo['gid']] = $groupinfo;
|
$groupinfo = $db->fetch_array($query); $cache_groups[$groupinfo['gid']] = $groupinfo;
|
if(!$db->num_rows($query)) { $page->output_error($lang->error_invalid_gid2); }
| if(!$db->num_rows($query)) { $page->output_error($lang->error_invalid_gid2); }
|
// Cache settings $query = $db->simple_select("settings", "*", "gid='".(int)$mybb->input['gid']."'", array('order_by' => 'disporder')); while($setting = $db->fetch_array($query))
|
// Cache settings $query = $db->simple_select("settings", "*", "gid='".(int)$mybb->input['gid']."'", array('order_by' => 'disporder')); while($setting = $db->fetch_array($query))
|
{
| {
|
$cache_settings[$setting['gid']][$setting['sid']] = $setting; }
if(!$db->num_rows($query)) { flash_message($lang->error_no_settings_found, 'error');
|
$cache_settings[$setting['gid']][$setting['sid']] = $setting; }
if(!$db->num_rows($query)) { flash_message($lang->error_no_settings_found, 'error');
|
admin_redirect("index.php?module=config-settings"); }
$group_lang_var = "setting_group_{$groupinfo['name']}";
| admin_redirect("index.php?module=config-settings"); }
$group_lang_var = "setting_group_{$groupinfo['name']}";
|
if(isset($lang->$group_lang_var)) { $groupinfo['title'] = $lang->$group_lang_var;
| if(isset($lang->$group_lang_var)) { $groupinfo['title'] = $lang->$group_lang_var;
|
Zeile 1081 | Zeile 1102 |
---|
echo $form->generate_hidden_field("gid", $groupinfo['gid']); } else
|
echo $form->generate_hidden_field("gid", $groupinfo['gid']); } else
|
{
| {
|
// All settings list // Cache groups $query = $db->simple_select("settinggroups", "*", "", array('order_by' => 'disporder'));
| // All settings list // Cache groups $query = $db->simple_select("settinggroups", "*", "", array('order_by' => 'disporder'));
|
Zeile 1142 | Zeile 1163 |
---|
if($type[0] == "text" || $type[0] == "") { $setting_code = $form->generate_text_box($element_name, $setting['value'], array('id' => $element_id));
|
if($type[0] == "text" || $type[0] == "") { $setting_code = $form->generate_text_box($element_name, $setting['value'], array('id' => $element_id));
|
| } else if($type[0] == "numeric") { $setting_code = $form->generate_numeric_field($element_name, $setting['value'], array('id' => $element_id));
|
} else if($type[0] == "textarea") {
| } else if($type[0] == "textarea") {
|