diff -r e3d7322305bf -r 5e1f1e916419 punbb/admin_options.php --- a/punbb/admin_options.php Sun Sep 02 11:00:57 2007 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,706 +0,0 @@ -= $form['timeout_visit']) - message('The value of "Timeout online" must be smaller than the value of "Timeout visit".'); - - while (list($key, $input) = @each($form)) - { - // Only update values that have changed - if (array_key_exists('o_'.$key, $pun_config) && $pun_config['o_'.$key] != $input) - { - if ($input != '' || is_int($input)) - $value = '\''.$pun_db->escape($input).'\''; - else - $value = 'NULL'; - - $pun_db->query('UPDATE '.$pun_db->prefix.'config SET conf_value='.$value.' WHERE conf_name=\'o_'.$pun_db->escape($key).'\'') or error('Unable to update board config', __FILE__, __LINE__, $pun_db->error()); - } - } - - // Regenerate the config cache - require_once PUN_ROOT.'include/cache.php'; - generate_config_cache(); - - pun_redirect('admin_options.php', 'Options updated. Redirecting …'); -} - - -$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Options'; -$form_name = 'update_options'; -require PUN_ROOT.'header.php'; - -generate_admin_menu('options'); - -?> -