Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* $Id: settings.php 4120 2008-08-16 02:40:05Z Tikitiki $
| * $Id: settings.php 4249 2008-10-25 05:37:16Z Tikitiki $
|
*/
// Disallow direct access to this file for security reasons
| */
// Disallow direct access to this file for security reasons
|
Zeile 43 | Zeile 43 |
---|
flash_message($lang->success_duplicate_settings_deleted, 'success'); admin_redirect("index.php?module=config/settings&action=manage"); }*/
|
flash_message($lang->success_duplicate_settings_deleted, 'success'); admin_redirect("index.php?module=config/settings&action=manage"); }*/
|
// ^^ Code, Please go away. Forever.
| // ^^ Code, Please go away. Forever.
|
// Creating a new setting group if($mybb->input['action'] == "addgroup")
| // Creating a new setting group if($mybb->input['action'] == "addgroup")
|
Zeile 231 | Zeile 231 |
---|
$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->name." <em>*</em>", $lang->group_name_desc, $form->generate_text_box('name', $group_data['name'], array('id' => 'name')), 'name');
|
$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->name." <em>*</em>", $lang->group_name_desc, $form->generate_text_box('name', $group_data['name'], array('id' => 'name')), 'name');
|
| |
$form_container->end();
$buttons[] = $form->generate_submit_button($lang->update_setting_group);
| $form_container->end();
$buttons[] = $form->generate_submit_button($lang->update_setting_group);
|
Zeile 264 | Zeile 263 |
---|
// 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"); }
|
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 285 | Zeile 284 |
---|
admin_redirect("index.php?module=config/settings&action=manage"); } else
|
admin_redirect("index.php?module=config/settings&action=manage"); } else
|
{
| {
|
$page->output_confirm_action("index.php?module=config/settings&action=deletegroup&gid={$group['gid']}", $lang->confirm_setting_group_deletion); } }
| $page->output_confirm_action("index.php?module=config/settings&action=deletegroup&gid={$group['gid']}", $lang->confirm_setting_group_deletion); } }
|
Zeile 339 | Zeile 338 |
---|
$options_code = $mybb->input['extra']; } else if($mybb->input['extra'])
|
$options_code = $mybb->input['extra']; } else if($mybb->input['extra'])
|
{
| {
|
$options_code = "{$mybb->input['type']}\n{$mybb->input['extra']}"; } else
| $options_code = "{$mybb->input['type']}\n{$mybb->input['extra']}"; } else
|
Zeile 376 | Zeile 375 |
---|
$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",
|
Zeile 401 | Zeile 400 |
---|
if($errors) { $page->output_inline_error($errors);
|
if($errors) { $page->output_inline_error($errors);
|
}
| }
|
$form_container = new FormContainer($lang->add_new_setting); $form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title');
| $form_container = new FormContainer($lang->add_new_setting); $form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title');
|
Zeile 425 | Zeile 424 |
---|
"select" => $lang->select, "radio" => $lang->radio, "checkbox" => $lang->checkbox,
|
"select" => $lang->select, "radio" => $lang->radio, "checkbox" => $lang->checkbox,
|
"language" => $lang->language,
| "language" => $lang->language_selection_box,
|
"adminlanguage" => $lang->adminlanguage, "cpstyle" => $lang->cpstyle, //"php" => $lang->php // Internal Use Only
| "adminlanguage" => $lang->adminlanguage, "cpstyle" => $lang->cpstyle, //"php" => $lang->php // Internal Use Only
|
Zeile 462 | Zeile 461 |
---|
{ 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");
|
}
| }
|
// Prevent editing of default if($setting['isdefault'] == 1)
| // Prevent editing of default if($setting['isdefault'] == 1)
|
Zeile 474 | Zeile 473 |
---|
$type = trim($type[0]); if($type == "php") {
|
$type = trim($type[0]); if($type == "php") {
|
| |
flash_message($lang->error_cannot_edit_php, 'error'); admin_redirect("index.php?module=config/settings&action=manage"); }
| flash_message($lang->error_cannot_edit_php, 'error'); admin_redirect("index.php?module=config/settings&action=manage"); }
|
Zeile 612 | Zeile 610 |
---|
"select" => $lang->select, "radio" => $lang->radio, "checkbox" => $lang->checkbox,
|
"select" => $lang->select, "radio" => $lang->radio, "checkbox" => $lang->checkbox,
|
"language" => $lang->language,
| "language" => $lang->language_selection_box,
|
"adminlanguage" => $lang->adminlanguage, "cpstyle" => $lang->cpstyle, //"php" => $lang->php // Internal Use Only
| "adminlanguage" => $lang->adminlanguage, "cpstyle" => $lang->cpstyle, //"php" => $lang->php // Internal Use Only
|
Zeile 669 | Zeile 667 |
---|
{ // Delete the setting $db->delete_query("settings", "sid='{$setting['sid']}'");
|
{ // Delete the setting $db->delete_query("settings", "sid='{$setting['sid']}'");
|
rebuild_settings();
| rebuild_settings();
|
$plugins->run_hooks("admin_config_settings_delete_commit");
| $plugins->run_hooks("admin_config_settings_delete_commit");
|
Zeile 1105 | Zeile 1103 |
---|
eval("\$setting_code = \"".$setting['optionscode']."\";"); } else
|
eval("\$setting_code = \"".$setting['optionscode']."\";"); } else
|
{
| {
|
for($i=0; $i < count($type); $i++) { $optionsexp = explode("=", $type[$i]);
| for($i=0; $i < count($type); $i++) { $optionsexp = explode("=", $type[$i]);
|
Zeile 1177 | Zeile 1175 |
---|
$form->end(); print_setting_peekers();
|
$form->end(); print_setting_peekers();
|
|
|
if(!isset($mybb->input['ajax_search'])) { $page->output_footer();
| if(!isset($mybb->input['ajax_search'])) { $page->output_footer();
|
Zeile 1250 | Zeile 1248 |
---|
GROUP BY g.gid ORDER BY g.disporder ");
|
GROUP BY g.gid ORDER BY g.disporder ");
|
}
| }
|
while($group = $db->fetch_array($query)) { $group_lang_var = "setting_group_{$group['name']}";
| while($group = $db->fetch_array($query)) { $group_lang_var = "setting_group_{$group['name']}";
|
Zeile 1322 | Zeile 1320 |
---|
{ Event.stop(e); if(this.search_box.value != "")
|
{ Event.stop(e); if(this.search_box.value != "")
|
{
| {
|
this.spinner = new ActivityIndicator("body", {image: "../images/spinner_big.gif"}); pars = "module=config/settings&action=change&ajax_search=1&search="+encodeURIComponent(this.search_box.value); new Ajax.Request("index.php", {
| this.spinner = new ActivityIndicator("body", {image: "../images/spinner_big.gif"}); pars = "module=config/settings&action=change&ajax_search=1&search="+encodeURIComponent(this.search_box.value); new Ajax.Request("index.php", {
|
Zeile 1395 | Zeile 1393 |
---|
new Peeker($$(".setting_enablewarningsystem"), $("row_setting_canviewownwarning"), /1/, true); new Peeker($$(".setting_enablewarningsystem"), $("row_setting_maxwarningpoints"), /1/, true); new Peeker($$(".setting_enablepms"), $("row_setting_pmsallowhtml"), /1/, true);
|
new Peeker($$(".setting_enablewarningsystem"), $("row_setting_canviewownwarning"), /1/, true); new Peeker($$(".setting_enablewarningsystem"), $("row_setting_maxwarningpoints"), /1/, true); new Peeker($$(".setting_enablepms"), $("row_setting_pmsallowhtml"), /1/, true);
|
|
|
new Peeker($$(".setting_enablepms"), $("row_setting_pmsallowmycode"), /1/, true); new Peeker($$(".setting_enablepms"), $("row_setting_pmsallowsmilies"), /1/, true); new Peeker($$(".setting_enablepms"), $("row_setting_pmsallowimgcode"), /1/, true);
|
new Peeker($$(".setting_enablepms"), $("row_setting_pmsallowmycode"), /1/, true); new Peeker($$(".setting_enablepms"), $("row_setting_pmsallowsmilies"), /1/, true); new Peeker($$(".setting_enablepms"), $("row_setting_pmsallowimgcode"), /1/, true);
|
new Peeker($$(".setting_enablecalendar"), $("row_setting_publiceventcolor"), /1/, true); new Peeker($$(".setting_enablecalendar"), $("row_setting_privateeventcolor"), /1/, true);
| |
new Peeker($$(".setting_smilieinserter"), $("row_setting_smilieinsertertot"), /1/, true); new Peeker($$(".setting_smilieinserter"), $("row_setting_smilieinsertercols"), /1/, true); new Peeker($("setting_mail_handler"), $("row_setting_smtp_host"), /smtp/, false);
| new Peeker($$(".setting_smilieinserter"), $("row_setting_smilieinsertertot"), /1/, true); new Peeker($$(".setting_smilieinserter"), $("row_setting_smilieinsertercols"), /1/, true); new Peeker($("setting_mail_handler"), $("row_setting_smtp_host"), /smtp/, false);
|