2010-11-02 06:57:33 -04:00
|
|
|
<?php
|
2010-11-04 10:02:13 -04:00
|
|
|
|
|
|
|
/*
|
2010-11-04 10:18:23 -04:00
|
|
|
* WARNING: This is a project-wide configuration file shared by all Tinyboard users around the globe.
|
|
|
|
* If you would like to make instance-specific changes to your own setup, please use instance-config.php.
|
2010-11-04 10:02:13 -04:00
|
|
|
*
|
|
|
|
* This is the default configuration. You can copy values from here and use them in
|
|
|
|
* your instance-config.php
|
|
|
|
*
|
2011-02-16 03:41:34 -05:00
|
|
|
* You can also create per-board configuration files. Once a board is created, locate its directory and
|
|
|
|
* create a new file named config.php (eg. b/config.php). Like instance-config.php, you can copy values
|
|
|
|
* from here and use them in your per-board configuration files.
|
|
|
|
*
|
2010-11-04 10:02:13 -04:00
|
|
|
*/
|
2011-02-12 01:25:15 -05:00
|
|
|
|
|
|
|
$config = Array(
|
|
|
|
'db' => Array(),
|
|
|
|
'cookies' => Array(),
|
|
|
|
'error' => Array(),
|
|
|
|
'dir' => Array(),
|
2011-02-17 06:03:52 -05:00
|
|
|
'mod' => Array(),
|
|
|
|
'spam' => Array()
|
2011-02-12 01:25:15 -05:00
|
|
|
);
|
2010-11-02 06:57:33 -04:00
|
|
|
// Database stuff
|
2010-12-17 09:18:03 -05:00
|
|
|
|
2011-02-12 01:25:15 -05:00
|
|
|
|
2010-12-17 10:24:27 -05:00
|
|
|
// SQL driver ("mysql", "pgsql", "sqlite", "dblib", etc)
|
|
|
|
// http://www.php.net/manual/en/pdo.drivers.php
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['db']['type'] = 'mysql';
|
2010-12-17 09:18:03 -05:00
|
|
|
// Hostname or IP address
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['db']['server'] = 'localhost';
|
2010-12-17 09:18:03 -05:00
|
|
|
// Login
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['db']['user'] = '';
|
|
|
|
$config['db']['password'] = '';
|
|
|
|
// Tinyboard database
|
|
|
|
$config['db']['database'] = '';
|
2010-12-17 10:24:27 -05:00
|
|
|
// Anything more to add to the DSN string (eg. port=xxx;foo=bar)
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['db']['dsn'] = '';
|
2010-11-04 11:20:19 -04:00
|
|
|
|
2010-11-02 06:57:33 -04:00
|
|
|
// The name of the session cookie (PHP's $_SESSION)
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['cookies']['session']= 'imgboard';
|
2010-12-01 00:42:48 -05:00
|
|
|
|
2011-02-12 01:25:15 -05:00
|
|
|
// Used to safely determine when the user was first seen, to prevent floods. Contains a UNIX timestamp.
|
|
|
|
$config['cookies']['time'] = 'arrived';
|
|
|
|
// Contains an MD5 hash of $config['cookies']['time'] for verification.
|
|
|
|
$config['cookies']['hash'] = 'hash';
|
2010-12-01 05:24:14 -05:00
|
|
|
// Used for moderation login
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['cookies']['mod'] = 'mod';
|
|
|
|
// Where to set the 'path' parameter to $config['root'] when creating cookies. Recommended.
|
|
|
|
$config['cookies']['jail'] = true;
|
2010-11-02 06:57:33 -04:00
|
|
|
// How long should the cookies last (in seconds)
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['cookies']['expire']= 15778463; //6 months
|
2010-12-17 11:01:46 -05:00
|
|
|
// Make this something long and random for security
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['cookies']['salt'] = 'wefaw98YHEWUFuo';
|
|
|
|
// How long should moderators should remain logged in (0=browser session) (in seconds)
|
|
|
|
$config['mod']['expire'] = 15778463; //6 months
|
|
|
|
// Used to salt secure tripcodes (##trip)
|
|
|
|
$config['secure_trip_salt'] = '@#$&^@#)$(*&@!_$(&329-8347';
|
2011-01-18 20:37:31 -05:00
|
|
|
|
2010-11-02 06:57:33 -04:00
|
|
|
// How many seconds before you can post, after the first visit
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['lurktime'] = 30;
|
2011-01-18 01:11:28 -05:00
|
|
|
// How many seconds between each post
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['flood_time'] = 10;
|
2011-01-18 01:11:28 -05:00
|
|
|
// How many seconds between each post with exactly the same content and same IP
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['flood_time_ip'] = 120;
|
2011-01-18 01:11:28 -05:00
|
|
|
// Same as above but different IP address
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['flood_time_same'] = 30;
|
2011-01-18 20:37:31 -05:00
|
|
|
// Do you need a body for your non-OP posts?
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['force_body'] = true;
|
2011-02-21 19:09:43 -05:00
|
|
|
// Reject blank posts? (just whitespace, etc)?
|
|
|
|
$config['reject_blank'] = true;
|
|
|
|
|
2010-11-02 06:57:33 -04:00
|
|
|
// Max body length
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['max_body'] = 1800;
|
|
|
|
|
|
|
|
$config['threads_per_page'] = 10;
|
|
|
|
$config['max_pages'] = 10;
|
|
|
|
$config['threads_preview'] = 5;
|
2011-02-16 07:32:43 -05:00
|
|
|
$config['threads_preview_sticky'] = 1;
|
2010-12-01 00:20:59 -05:00
|
|
|
|
|
|
|
// For development purposes. Turns 'display_errors' on. Not recommended for production.
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['verbose_errors'] = true;
|
2010-11-04 11:20:19 -04:00
|
|
|
|
2010-11-02 06:57:33 -04:00
|
|
|
// Error messages
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['error']['lurk'] = 'Lurk some more before posting.';
|
|
|
|
$config['error']['bot'] = 'You look like a bot.';
|
|
|
|
$config['error']['toolong'] = 'The %s field was too long.';
|
|
|
|
$config['error']['toolong_body'] = 'The body was too long.';
|
|
|
|
$config['error']['tooshort_body'] = 'The body was too short or empty.';
|
|
|
|
$config['error']['noimage'] = 'You must upload an image.';
|
|
|
|
$config['error']['nomove'] = 'The server failed to handle your upload.';
|
|
|
|
$config['error']['fileext'] = 'Unsupported image format.';
|
|
|
|
$config['error']['noboard'] = 'Invalid board!';
|
|
|
|
$config['error']['nonexistant'] = 'Thread specified does not exist.';
|
|
|
|
$config['error']['locked'] = 'Thread locked. You may not reply at this time.';
|
|
|
|
$config['error']['nopost'] = 'You didn\'t make a post.';
|
2011-02-18 19:15:58 -05:00
|
|
|
$config['error']['flood'] = 'Flood detected; Post discarded.';
|
|
|
|
$config['error']['spam'] = 'Your request looks automated; Post discarded.';
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['error']['unoriginal'] = 'Unoriginal content!';
|
|
|
|
$config['error']['muted'] = 'Unoriginal content! You have been muted for %d seconds.';
|
|
|
|
$config['error']['youaremuted'] = 'You are muted! Expires in %d seconds.';
|
|
|
|
$config['error']['tor'] = 'Hmm… That looks like a Tor exit node.';
|
|
|
|
$config['error']['toomanylinks'] = 'Too many links; flood detected.';
|
|
|
|
$config['error']['nodelete'] = 'You didn\'t select anything to delete.';
|
2011-02-20 01:19:57 -05:00
|
|
|
$config['error']['noreport'] = 'You didn\'t select anything to report.';
|
|
|
|
$config['error']['toomanyreports'] = 'You can\'t report that many posts at once.';
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['error']['invalidpassword'] = 'Wrong password…';
|
|
|
|
$config['error']['invalidimg'] = 'Invalid image.';
|
|
|
|
$config['error']['filesize'] = 'Maximum file size: %maxsz% bytes<br>Your file\'s size: %filesz% bytes';
|
|
|
|
$config['error']['maxsize'] = 'The file was too big.';
|
|
|
|
$config['error']['invalidzip'] = 'Invalid archive!';
|
2011-02-19 03:52:18 -05:00
|
|
|
$config['error']['fileexists'] = 'That file <a href="%s">already exists</a>!';
|
2010-12-01 05:24:14 -05:00
|
|
|
|
|
|
|
// Moderator errors
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['error']['invalid'] = 'Invalid username and/or password.';
|
|
|
|
$config['error']['notamod'] = 'You are not a mod…';
|
|
|
|
$config['error']['invalidafter'] = 'Invalid username and/or password. Your user may have been deleted or changed.';
|
|
|
|
$config['error']['malformed'] = 'Invalid/malformed cookies.';
|
|
|
|
$config['error']['missedafield'] = 'Your browser didn\'t submit an input when it should have.';
|
|
|
|
$config['error']['required'] = 'The %s field is required.';
|
|
|
|
$config['error']['invalidfield'] = 'The %s field was invalid.';
|
|
|
|
$config['error']['boardexists'] = 'There is already a %s board.';
|
|
|
|
$config['error']['noaccess'] = 'You don\'t have permission to do that.';
|
|
|
|
$config['error']['invalidpost'] = 'That post doesn\'t exist…';
|
|
|
|
$config['error']['404'] = 'Page not found.';
|
2011-03-02 01:15:37 -05:00
|
|
|
$config['error']['modexists'] = 'That mod <a href="?/users/%d">already exists</a>!';
|
2010-12-01 05:24:14 -05:00
|
|
|
|
2011-02-20 01:19:57 -05:00
|
|
|
// How many reports you can create in the same request.
|
|
|
|
$config['report_limit'] = 2;
|
|
|
|
|
2011-01-20 03:24:41 -05:00
|
|
|
// Reply limit (deletes thread when this is reached)
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['reply_limit'] = 250;
|
2011-01-20 03:24:41 -05:00
|
|
|
|
2011-02-20 23:51:46 -05:00
|
|
|
// Strip superfluous new lines at the end of a post
|
|
|
|
$config['strip_superfluous_returns'] = true;
|
|
|
|
|
2010-11-02 06:57:33 -04:00
|
|
|
// For resizing, max values
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['thumb_width'] = 255;
|
|
|
|
$config['thumb_height'] = 255;
|
2011-01-02 06:45:25 -05:00
|
|
|
|
|
|
|
// Store image hash in the database for r9k-like boards implementation soon
|
|
|
|
// Function name for hashing
|
|
|
|
// sha1_file, md5_file, etc.
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['file_hash'] = 'sha1_file';
|
2011-01-18 20:37:31 -05:00
|
|
|
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['block_tor'] = true;
|
2011-01-18 20:37:31 -05:00
|
|
|
// Typically spambots try to post a lot of links. Refuse a post with X standalone links?
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['max_links'] = 20;
|
2011-01-18 20:37:31 -05:00
|
|
|
|
2010-11-03 04:44:24 -04:00
|
|
|
// Maximum image upload size in bytes
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['max_filesize'] = 10*1024*1024; // 10MB
|
2010-11-03 05:07:32 -04:00
|
|
|
// Maximum image dimensions
|
2011-02-16 05:13:32 -05:00
|
|
|
$config['max_width'] = 10000;
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['max_height'] = $config['max_width']; // 1:1
|
2011-02-19 03:52:18 -05:00
|
|
|
// Reject a post if its image is already in active content
|
|
|
|
$config['image_reject_repost'] = true;
|
2010-11-03 08:37:28 -04:00
|
|
|
/**
|
|
|
|
Redraw the image using GD functions to strip any excess data (commonly ZIP archives)
|
2011-02-12 01:25:15 -05:00
|
|
|
WARNING: Currently strips animated GIFs too :(
|
2010-11-03 08:37:28 -04:00
|
|
|
**/
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['redraw_image'] = false;
|
2010-11-03 08:37:28 -04:00
|
|
|
// Redrawing configuration
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['jpeg_quality'] = 100;
|
|
|
|
// Temporary fix for the animation-stripping bug
|
|
|
|
$config['redraw_gifs'] = false;
|
2010-11-30 03:21:06 -05:00
|
|
|
|
2011-02-12 01:25:15 -05:00
|
|
|
// Display the aspect ratio in a post's file info
|
|
|
|
$config['show_ratio'] = true;
|
2010-11-30 03:21:06 -05:00
|
|
|
|
2010-11-02 08:05:18 -04:00
|
|
|
// The root directory, including the trailing slash, for Tinyboard.
|
2010-11-30 03:12:35 -05:00
|
|
|
// examples: '/', 'http://boards.chan.org/', '/chan/'
|
2011-02-15 23:48:32 -05:00
|
|
|
$config['root'] = ($_SERVER['REQUEST_URI'] == '/' ? '/' : str_replace('\\', '/', dirname($_SERVER['REQUEST_URI'])) . '/');
|
2011-02-12 01:25:15 -05:00
|
|
|
|
|
|
|
$config['dir']['img'] = 'src/';
|
|
|
|
$config['dir']['thumb'] = 'thumb/';
|
|
|
|
$config['dir']['res'] = 'res/';
|
|
|
|
// For load balancing, having a seperate server (and domain/subdomain) for serving static content is possible.
|
|
|
|
// This can either be a directory or a URL (eg. http://static.example.org/)
|
2011-02-16 03:25:50 -05:00
|
|
|
//$config['dir']['static'] = $config['root'] . 'static/';
|
2011-02-12 01:25:15 -05:00
|
|
|
// Where to store the .html templates. This folder and templates must exist or fatal errors will be thrown.
|
|
|
|
$config['dir']['template'] = getcwd() . '/templates';
|
2011-01-01 23:30:20 -05:00
|
|
|
// Static images
|
|
|
|
// These can be URLs OR base64 (data URI scheme)
|
2011-02-16 03:25:50 -05:00
|
|
|
//$config['image_sticky'] = $config['dir']['static'] . 'sticky.gif';
|
|
|
|
//$config['image_locked'] = $config['dir']['static'] . 'locked.gif';
|
|
|
|
//$config['image_deleted'] = $config['dir']['static'] . 'deleted.png';
|
|
|
|
//$config['image_zip'] = $config['dir']['static'] . 'zip.png';
|
2011-01-01 23:30:20 -05:00
|
|
|
|
2010-11-05 05:43:18 -04:00
|
|
|
// If for some reason the folders and static HTML index files aren't in the current working direcotry,
|
|
|
|
// enter the directory path here. Otherwise, keep it false.
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['root_file'] = false;
|
2010-11-05 05:43:18 -04:00
|
|
|
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['file_index'] = 'index.html';
|
|
|
|
$config['file_page'] = '%d.html';
|
|
|
|
$config['file_mod'] = 'mod.php';
|
2011-02-16 00:21:14 -05:00
|
|
|
$config['file_post'] = 'post.php';
|
2010-11-30 02:59:48 -05:00
|
|
|
|
|
|
|
// Multi-board (%s is board abbreviation)
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['board_path'] = '%s/';
|
2010-11-30 03:12:35 -05:00
|
|
|
|
2010-12-02 02:07:24 -05:00
|
|
|
// The HTTP status code to use when redirecting.
|
|
|
|
// Should be 3xx (redirection). http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
|
|
|
|
// "302" is recommended.
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['redirect_http'] = 302;
|
2010-12-02 02:07:24 -05:00
|
|
|
|
2011-02-12 01:25:15 -05:00
|
|
|
// TODO: Put this in per-board instance-config instead
|
2011-01-18 08:41:43 -05:00
|
|
|
// Robot stuff
|
|
|
|
// Strip repeating characters when making hashes
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['robot_enable'] = false;
|
|
|
|
$config['robot_strip_repeating'] = true;
|
|
|
|
|
2011-01-18 20:37:31 -05:00
|
|
|
// Enable mutes
|
2011-02-12 01:25:15 -05:00
|
|
|
// Tinyboard uses ROBOT9000's original 2^x implementation
|
|
|
|
$config['robot_mute'] = true;
|
|
|
|
// How many mutes x hours ago to include in the algorithm
|
2011-02-19 04:34:04 -05:00
|
|
|
$config['robot_mute_hour'] = 336; // 2 weeks
|
2011-02-12 01:25:15 -05:00
|
|
|
// If you want to alter the algorithm a bit. Default value is 2. n^x
|
|
|
|
$config['robot_mute_multiplier'] = 2;
|
|
|
|
$config['robot_mute_descritpion'] = 'You have been muted for unoriginal content.';
|
2011-01-18 08:41:43 -05:00
|
|
|
|
2010-12-02 02:02:04 -05:00
|
|
|
/*
|
|
|
|
Mod stuff
|
|
|
|
*/
|
|
|
|
// Whether or not to lock moderator sessions to the IP address that was logged in with.
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['mod']['lock_ip'] = true;
|
2010-12-02 02:02:04 -05:00
|
|
|
// The page that is first shown when a moderator logs in. Defaults to the dashboard.
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['mod']['default'] = '/';
|
|
|
|
// Don't even display MySQL password to administrators (in the configuration page).
|
|
|
|
$config['mod']['never_reveal_password'] = true;
|
2011-01-14 23:29:05 -05:00
|
|
|
// Do a DNS lookup on IP addresses to get their hostname on the IP summary page
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['mod']['dns_lookup'] = true;
|
2011-01-14 23:29:05 -05:00
|
|
|
// Show ban form on the IP summary page
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['mod']['ip_banform'] = true;
|
2011-01-14 23:29:05 -05:00
|
|
|
// How many recent posts, per board, to show in the IP summary page
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['mod']['ip_recentposts'] = 5;
|
2011-02-20 02:28:39 -05:00
|
|
|
// How many posts to display on the reports page
|
|
|
|
$config['mod']['recent_reports'] = 5;
|
2010-12-02 02:02:04 -05:00
|
|
|
|
2010-12-10 04:39:56 -05:00
|
|
|
// Probably best not to change these:
|
2011-02-16 03:38:08 -05:00
|
|
|
if(!defined('JANITOR')) {
|
|
|
|
define('JANITOR', 0, true);
|
|
|
|
define('MOD', 1, true);
|
|
|
|
define('ADMIN', 2, true);
|
|
|
|
}
|
2010-12-02 04:55:56 -05:00
|
|
|
|
2010-12-12 10:44:43 -05:00
|
|
|
// Permissions
|
|
|
|
// What level of administration you need to:
|
|
|
|
|
2010-12-16 10:20:16 -05:00
|
|
|
/* Post Controls */
|
2010-12-12 10:44:43 -05:00
|
|
|
// View IP addresses
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['mod']['show_ip'] = MOD;
|
2010-12-12 10:44:43 -05:00
|
|
|
// Delete a post
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['mod']['delete'] = JANITOR;
|
2010-12-12 10:44:43 -05:00
|
|
|
// Ban a user for a post
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['mod']['ban'] = MOD;
|
2010-12-12 10:44:43 -05:00
|
|
|
// Ban and delete (one click; instant)
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['mod']['bandelete'] = MOD;
|
2011-02-17 08:36:50 -05:00
|
|
|
// Remove bans
|
|
|
|
$config['mod']['unban'] = MOD;
|
2010-12-12 10:44:43 -05:00
|
|
|
// Delete file (and keep post)
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['mod']['deletefile'] = JANITOR;
|
2010-12-12 10:44:43 -05:00
|
|
|
// Delete all posts by IP
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['mod']['deletebyip'] = MOD;
|
2010-12-16 01:04:33 -05:00
|
|
|
// Sticky a thread
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['mod']['sticky'] = MOD;
|
2011-01-02 09:23:34 -05:00
|
|
|
// Lock a thread
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['mod']['lock'] = MOD;
|
2011-01-02 09:33:57 -05:00
|
|
|
// Post in a locked thread
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['mod']['postinlocked'] = MOD;
|
2011-01-18 08:41:43 -05:00
|
|
|
// Post bypass unoriginal content check
|
2011-02-16 04:38:28 -05:00
|
|
|
$config['mod']['postunoriginal'] = ADMIN;
|
2011-02-17 01:07:22 -05:00
|
|
|
// Bypass flood check
|
|
|
|
$config['mod']['flood'] = ADMIN;
|
2011-02-03 04:28:14 -05:00
|
|
|
// Raw HTML posting
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['mod']['rawhtml'] = MOD;
|
2010-12-12 10:44:43 -05:00
|
|
|
|
2010-12-16 10:20:16 -05:00
|
|
|
/* Administration */
|
2011-02-12 01:25:15 -05:00
|
|
|
// Display the contents of instance-config.php
|
|
|
|
$config['mod']['show_config'] = ADMIN;
|
2011-02-20 01:19:57 -05:00
|
|
|
// View the report queue
|
|
|
|
$config['mod']['reports'] = JANITOR;
|
|
|
|
// Dismiss an abuse report
|
|
|
|
$config['mod']['report_dismiss'] = JANITOR;
|
|
|
|
// Dismiss all abuse reports by an IP
|
|
|
|
$config['mod']['report_dismiss_ip'] = JANITOR;
|
2011-02-06 08:38:01 -05:00
|
|
|
// View list of bans
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['mod']['view_banlist'] = MOD;
|
2011-02-06 08:38:01 -05:00
|
|
|
// View the username of the mod who made a ban
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['mod']['view_banstaff'] = MOD;
|
|
|
|
// If the moderator doesn't fit the $config['mod']['view_banstaff''] (previous) permission,
|
2011-02-06 08:38:01 -05:00
|
|
|
// show him just a "?" instead. Otherwise, it will be "Mod" or "Admin"
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['mod']['view_banquestionmark'] = false;
|
2011-02-06 08:38:01 -05:00
|
|
|
// Show expired bans in the ban list (they are kept in cache until the culprit returns)
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['mod']['view_banexpired'] = true;
|
2011-02-17 08:36:50 -05:00
|
|
|
// View ban for IP address
|
|
|
|
$config['mod']['view_ban'] = $config['mod']['view_banlist'];
|
2010-12-16 10:20:16 -05:00
|
|
|
// Create a new board
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['mod']['newboard'] = ADMIN;
|
2011-02-22 01:38:38 -05:00
|
|
|
// Manage existing boards (change title, etc)
|
|
|
|
$config['mod']['manageboards'] = ADMIN;
|
|
|
|
// Delete a board
|
|
|
|
$config['mod']['deleteboard'] = ADMIN;
|
2011-03-02 01:15:37 -05:00
|
|
|
// List/manage users
|
|
|
|
$config['mod']['manageusers'] = MOD;
|
|
|
|
// Promote/demote users
|
|
|
|
$config['mod']['promoteusers'] = ADMIN;
|
|
|
|
// Edit any users' login information
|
|
|
|
$config['mod']['editusers'] = ADMIN;
|
|
|
|
// Delete a user
|
|
|
|
$config['mod']['deleteusers'] = ADMIN;
|
|
|
|
// Create a user
|
|
|
|
$config['mod']['createusers'] = ADMIN;
|
2010-12-16 10:20:16 -05:00
|
|
|
|
2010-12-12 10:44:43 -05:00
|
|
|
// Mod links (full HTML)
|
|
|
|
// Correspond to above permission directives
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['mod']['link_delete'] = '[D]';
|
|
|
|
$config['mod']['link_ban'] = '[B]';
|
|
|
|
$config['mod']['link_bandelete'] = '[B&D]';
|
|
|
|
$config['mod']['link_deletefile'] = '[F]';
|
|
|
|
$config['mod']['link_deletebyip'] = '[D+]';
|
|
|
|
$config['mod']['link_sticky'] = '[Sticky]';
|
|
|
|
$config['mod']['link_desticky'] = '[-Sticky]';
|
|
|
|
$config['mod']['link_lock'] = '[Lock]';
|
|
|
|
$config['mod']['link_unlock'] = '[-Lock]';
|
|
|
|
|
2011-02-17 06:03:52 -05:00
|
|
|
// Spam filter
|
|
|
|
$config['spam']['hidden_inputs_min'] = 4;
|
|
|
|
$config['spam']['hidden_inputs_max'] = 12;
|
|
|
|
// These are fields used to confuse the bots. Make sure they aren't actually used by Tinyboard, or it won't work.
|
|
|
|
$config['spam']['hidden_input_names'] = Array(
|
|
|
|
'user',
|
|
|
|
'username',
|
|
|
|
'login',
|
|
|
|
'search',
|
|
|
|
'q',
|
|
|
|
'url',
|
|
|
|
'firstname',
|
|
|
|
'lastname',
|
|
|
|
'text',
|
|
|
|
'message'
|
|
|
|
);
|
|
|
|
// Always update this when adding new valid fields to the post form, or EVERYTHING WILL BE DETECTED AS SPAM!
|
|
|
|
$config['spam']['valid_inputs'] = Array(
|
|
|
|
'hash',
|
|
|
|
'board',
|
|
|
|
'thread',
|
|
|
|
'mod',
|
|
|
|
'name',
|
|
|
|
'email',
|
|
|
|
'subject',
|
|
|
|
'post',
|
|
|
|
'body',
|
2011-02-20 02:28:39 -05:00
|
|
|
'password',
|
|
|
|
'sticky',
|
|
|
|
'lock',
|
|
|
|
'raw'
|
2011-02-17 06:03:52 -05:00
|
|
|
);
|
|
|
|
|
2010-11-30 04:40:54 -05:00
|
|
|
// A small file in the main directory indicating that the script has been ran and the board(s) have been generated.
|
|
|
|
// This keeps the script from querying the database and causing strain when not needed.
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['has_installed'] = '.installed';
|
2010-11-30 04:40:54 -05:00
|
|
|
|
2011-02-12 01:25:15 -05:00
|
|
|
// Name of the boards. Usually '/%s/' (/b/, /mu/, etc)
|
|
|
|
// $config['board_abbreviation'] - BOARD_TITLE
|
|
|
|
$config['board_abbreviation'] = '/%s/';
|
2010-12-02 04:55:56 -05:00
|
|
|
|
2010-11-26 04:43:28 -05:00
|
|
|
// Automatically convert things like "..." to Unicode characters ("…")
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['auto_unicode'] = true;
|
2010-11-26 04:41:35 -05:00
|
|
|
// Use some Wiki-like syntax (''em'', '''strong''', ==Heading==, etc)
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['wiki_markup'] = true;
|
2010-11-03 05:44:51 -04:00
|
|
|
// Whether to turn URLs into functional links
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['markup_urls'] = true;
|
2010-11-26 04:45:59 -05:00
|
|
|
// Complex regular expression to catch URLs
|
2011-02-17 05:11:36 -05:00
|
|
|
$config['url_regex'] = '/' . '(https?|ftp):\/\/' . '(([\w\-]+\.)+[a-zA-Z]{2,6}|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})' . '(\/([\w\-~.#\/?=&;:+%!*\[\]@$\'()+,]+)?)?' . '/';
|
2011-02-17 04:41:00 -05:00
|
|
|
// INSANE regular expression for IPv6 addresses
|
|
|
|
$config['ipv6_regex'] = '((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?';
|
2011-02-17 04:58:34 -05:00
|
|
|
// Make IPv4 addresses look like IPv4 addresses ("::ffff:8.8.8.8" becomes "8.8.8.8")
|
|
|
|
$config['ipv6_ipv4'] = true;
|
2010-11-30 04:40:54 -05:00
|
|
|
|
2010-11-02 06:57:33 -04:00
|
|
|
// Allowed file extensions
|
2011-02-12 01:25:15 -05:00
|
|
|
$config['allowed_ext'] = Array('jpg', 'jpeg', 'bmp', 'gif', 'png');
|
|
|
|
|
|
|
|
// The names on the post buttons. (On most imageboards, these are both "Post".)
|
|
|
|
$config['button_newtopic'] = 'New Topic';
|
|
|
|
$config['button_reply'] = 'New Reply';
|
2010-11-05 05:43:18 -04:00
|
|
|
|
2011-02-17 04:12:09 -05:00
|
|
|
// The default name (ie. Anonymous)
|
|
|
|
$config['anonymous'] = 'Anonymous';
|
|
|
|
|
2011-01-01 09:45:14 -05:00
|
|
|
// The string passed to date() for post times
|
|
|
|
// http://php.net/manual/en/function.date.php
|
2011-02-17 04:12:09 -05:00
|
|
|
$config['post_date'] = 'm/d/y (D) H:i:s';
|
2011-01-01 09:45:14 -05:00
|
|
|
|
2011-02-12 01:25:15 -05:00
|
|
|
// Always act as if they had typed "noko" in the email field no mattter what
|
2011-02-17 04:12:09 -05:00
|
|
|
$config['always_noko'] = false;
|
2011-02-19 04:17:48 -05:00
|
|
|
|
|
|
|
// Boardlinks
|
|
|
|
// You can group, order and place the boardlist at the top of every page, using the following template.
|
|
|
|
//$config['boards'] = Array(
|
|
|
|
// Array('a', 'b'),
|
|
|
|
// Array('c', 'd', 'e', 'f', 'g'),
|
|
|
|
// Array('h', 'i', 'j'),
|
|
|
|
// Array('k', Array('l', 'm'))
|
|
|
|
//);
|
|
|
|
|
2011-01-02 05:09:02 -05:00
|
|
|
?>
|