'.$options['admin_email'].'.'); $form = array_map('trim', $_POST['form']); if ($form['board_title'] == '') message('You must enter a board title.'); require 'include/email.php'; $form['admin_email'] = strtolower($form['admin_email']); if (!is_valid_email($form['admin_email'])) message('The admin e-mail address you entered is invalid.'); $form['webmaster_email'] = strtolower($form['webmaster_email']); if (!is_valid_email($form['webmaster_email'])) message('The webmaster e-mail address you entered is invalid.'); if ($form['mailing_list'] != '') $form['mailing_list'] = strtolower(preg_replace('/[\s]/', '', $form['mailing_list'])); // Make sure all newlines are \n and not \r\n or \r if ($form['rules_message'] != '') $form['rules_message'] = str_replace("\r", "\n", str_replace("\r\n", "\n", $form['rules_message'])); if ($form['rules'] == '1' && $form['rules_message'] == '') $form['rules'] = '0'; // Make sure base_url doesn't end with a slash if (substr($form['base_url'], -1) == '/') $form['base_url'] = substr($form['base_url'], 0, -1); // Make sure avatars_dir doesn't end with a slash if (substr($form['avatars_dir'], -1) == '/') $form['avatars_dir'] = substr($form['avatars_dir'], 0, -1); if ($form['maintenance_message'] != '') $form['maintenance_message'] = str_replace("\r", "\n", str_replace("\r\n", "\n", $form['maintenance_message'])); else $form['maintenance_message'] = 'The forums are temporarily down for maintenance. Please try again in a few minutes.\n\n/Administrator'; foreach ($form as $key => $input) { $value = ($input != '') ? $value = '\''.escape($input).'\'' : 'NULL'; $temp[] = $key.'='.$value; } $db->query('UPDATE '.$db->prefix.'options SET '.implode(',', $temp)) or error('Unable to update options', __FILE__, __LINE__, $db->error()); redirect('admin_options.php', 'Options updated. Redirecting ...'); } $page_title = htmlspecialchars($options['board_title']).' / Admin / Options'; $validate_form = true; $form_name = 'update_options'; require 'header.php'; admin_menu('options'); ?>
Options



Title and description  
Board title
The title of this bulletin board (shown at the top of every page). This field may not contain HTML.
Board description
A short description of this bulletin board (shown at the top of every page). This field may contain HTML.
Time and timeouts  
Server timezone
The timezone for the server.
Time format
The format string for representing time. See here for formatting options.
  Current format:
Date format
The format string for representing date. See here for formatting options.
  Current format:
Cookie timeout
Number of seconds to wait before writing a new cookie (primarily affects new message indicators).
Online timeout
Number of seconds a user can be idle before being removed from the online users list.
Redirect time
Number of seconds to wait when redirecting.
Flood interval
Number of seconds that users have to wait between posts. Set to 0 to disable.
Display  
Smilies
Convert a series of smilies to small icons.
> Yes   > No
Smilies in signatures
Convert a series of smilies to small icons in user signatures.
> Yes   > No
Make clickable links
When enabled, PunBB will automatically detect any URL's in posts and make them clickable hyperlinks.
> Yes   > No
Show user post count
Show the number of posts a user has made (affects topic view, profile and userlist).
> Yes   > No
Default style
This is the default style used if the visitor is a guest or a user that hasn't changed from the default in his/her profile.
Topic review
Maximum number of posts to display when posting (newest first). 0 to disable.
Topics per page default
The default number of topics to display per page in a forum. Users can personalize this setting.
Posts per page default
The default number of posts to display per page in a topic. Users can personalize this setting.
Indent size
If set to 8, a regular tab will be used when displaying text within the [code][/code] tag. Otherwise this many spaces will be used to indent the text.
Features  
Quick post
When enabled, PunBB will add a quick post form at the bottom of topics. This way users can post directly from the topic view.
> Yes   > No
Users online
Display a list of users current online on the index page.
> Yes   > No
Censor words
Enable this to censor specific words in the forum. See Censoring for more info.
> Yes   > No
User ranks
Enable this to use user ranks. See Ranks for more info.
> Yes   > No
User has posted earlier
This feature displays a dot in front of topics in viewforum.php in case the currently logged in user has posted in that topic earlier. Disable if you are experiencing high server load.
> Yes   > No
Quick jump
Enable the quick jump (jump to forum) drop list.
> Yes   > No
GZip output
If enabled, PunBB will gzip the output sent to browsers. This will reduce bandwidth usage, but use a little more CPU. This feature requires that PHP is configured with zlib (--with-zlib). Note: If you already have the Apache module mod_gzip set up to compress PHP scripts, you should disable this feature.
> Yes   > No
Reports  
Report method
Select the method for handling topic/post reports. You can choose whether topic/post reports should be handled by the internal report system, e-mailed to the addresses on the mailing list (see below) or both.
> Internal   > E-mail   > Both
Mailing list
A comma separatad list of subscribers. The people on this list are the recipients of topic/post reports (see above).
Avatars  
Use avatars
When enabled, users will be able to upload an avatar which will be displayed under their title/rank.
> Yes   > No
Upload directory
The upload directory for avatars (relative to the PunBB root directory). PHP must have write permissions to this directory.
Max width
The maximum allowed width of avatars in pixels (60 is recommended).
Max height
The maximum allowed height of avatars in pixels (60 is recommended).
Max size
The maximum allowed size of avatars in bytes (10240 is recommended).
Search  
Search enabled
When disabled, regular users will not be able to use the search feature. "Show new posts since last visit" and "Show posts by this user" will still work though.
> Yes   > No
Search all forums
When disabled, searches will only be allowed in one forum at a time. Disable if server load is high due to excessive searching.
> Yes   > No
E-mail  
Base URL
The complete URL of the forum without trailing slash (i.e. http://www.mydomain.com/forums). This must be correct in order for all admin and moderator features to work. If you get "Bad referer" errors, it's probably incorrect.
Admin e-mail
The e-mail address of the forum administrator.
Webmaster e-mail
This is the address that all e-mails sent by the forum will be addressed from.
Subscriptions
Enable users to subscribe to topics (recieve e-mail when someone replies).
> Yes   > No
SMTP server address
The address of an external SMTP server to send e-mails with. Leave blank to use the local mail program.
SMTP username
Username for SMTP server. Only enter a username if it is required by the SMTP server (most servers don't require authentication).
SMTP password
Password for SMTP server. Only enter a password if it is required by the SMTP server (most servers don't require authentication).
Registration  
Allow new registrations
Controls whether this forum accepts new registrations. Disable only under special circumstances.
> Yes   > No
Validate registrations
When enabled, users are e-mailed a random password when they register. They can then log in and change the password in their profile if they see fit. This feature also requires users to validate new e-mail addresses if they choose to change from the one they registered with. This is an effective way of avoiding registration abuse and making sure that all users have "correct" e-mail addresses in their profiles.
> Yes   > No
Use forum rules
When enabled, users must agree to a set of rules when registering (enter text below). The rules will always be available through a link in the navigation table at the top of every page.
> Yes   > No
Rules
Here you can enter any rules or other information that the user must review and accept when registering. If you enabled rules above you have to enter something here, otherwise it will be disabled. This text will not be parsed like regular posts and thus may contain HTML.
Maintenance  
Maintenance mode
When enabled, the board will only be available to administrators. This should be used if the board needs to taken down temporarily for maintenance. WARNING! Do not log out when the board is in maintenance mode. You will not be able to login again.
> Yes   > No
Message
The message that will be displayed to users when the board is in maintenance mode. If left blank a default message will be used. This text will not be parsed like regular posts and thus may contain HTML.