/inc/config.php
PHP | 1185 lines | 354 code | 197 blank | 634 comment | 2 complexity | 14d0246f1053e44cfc5021303dbab3ab MD5 | raw file
- <?php
- /*
- * Copyright (c) 2010-2013 Tinyboard Development Group
- *
- * WARNING: This is a project-wide configuration file and is overwritten when upgrading to a newer
- * version of Tinyboard. Please leave this file unchanged, or it will be a lot harder for you to upgrade.
- * If you would like to make instance-specific changes to your own setup, please use instance-config.php.
- *
- * This is the default configuration. You can copy values from here and use them in
- * your instance-config.php
- *
- * 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.
- *
- * Some directives are commented out. This is either because they are optional and examples, or because
- * they are "optionally configurable", and given their default values by Tinyboard's code later if unset.
- *
- * More information: http://tinyboard.org/docs/?p=Config
- *
- * Tinyboard documentation: http://tinyboard.org/docs/
- *
- */
- defined('TINYBOARD') or exit;
- /*
- * =======================
- * General/misc settings
- * =======================
- */
- // Global announcement -- the very simple version.
- // This used to be wrongly named $config['blotter'] (still exists as an alias).
- // $config['global_message'] = 'This is an important announcement!';
- $config['blotter'] = &$config['global_message'];
- // Shows some extra information at the bottom of pages. Good for development/debugging.
- $config['debug'] = false;
- // For development purposes. Displays (and "dies" on) all errors and warnings. Turn on with the above.
- $config['verbose_errors'] = true;
- // EXPLAIN all SQL queries (when in debug mode).
- $config['debug_explain'] = false;
- // Directory where temporary files will be created.
- $config['tmp'] = sys_get_temp_dir();
- // The HTTP status code to use when redirecting. http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
- // Can be either 303 "See Other" or 302 "Found". (303 is more correct but both should work.)
- // There is really no reason for you to ever need to change this.
- $config['redirect_http'] = 303;
- // A tiny text 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.
- $config['has_installed'] = '.installed';
- // Use syslog() for logging all error messages and unauthorized login attempts.
- $config['syslog'] = false;
- // Use `host` via shell_exec() to lookup hostnames, avoiding query timeouts. May not work on your system.
- // Requires safe_mode to be disabled.
- $config['dns_system'] = false;
- // Check validity of the reverse DNS of IP addresses. Highly recommended.
- $config['fcrdns'] = true;
- // When executing most command-line tools (such as `convert` for ImageMagick image processing), add this
- // to the environment path (seperated by :).
- $config['shell_path'] = '/usr/local/bin';
- /*
- * ====================
- * Database settings
- * ====================
- */
- // Database driver (http://www.php.net/manual/en/pdo.drivers.php)
- // Only MySQL is supported by Tinyboard at the moment, sorry.
- $config['db']['type'] = 'mysql';
- // Hostname, IP address or Unix socket (prefixed with ":")
- $config['db']['server'] = 'localhost';
- // Example: Unix socket
- // $config['db']['server'] = ':/tmp/mysql.sock';
- // Login
- $config['db']['user'] = '';
- $config['db']['password'] = '';
- // Tinyboard database
- $config['db']['database'] = '';
- // Table prefix (optional)
- $config['db']['prefix'] = '';
- // Use a persistent database connection when possible
- $config['db']['persistent'] = false;
- // Anything more to add to the DSN string (eg. port=xxx;foo=bar)
- $config['db']['dsn'] = '';
- // Connection timeout duration in seconds
- $config['db']['timeout'] = 30;
- /*
- * ====================
- * Cache, lock and queue settings
- * ====================
- */
- /*
- * On top of the static file caching system, you can enable the additional caching system which is
- * designed to minimize SQL queries and can significantly increase speed when posting or using the
- * moderator interface. APC is the recommended method of caching.
- *
- * http://tinyboard.org/docs/index.php?p=Config/Cache
- */
- $config['cache']['enabled'] = false;
- // $config['cache']['enabled'] = 'xcache';
- // $config['cache']['enabled'] = 'apc';
- // $config['cache']['enabled'] = 'memcached';
- // $config['cache']['enabled'] = 'redis';
- // $config['cache']['enabled'] = 'fs';
- // Timeout for cached objects such as posts and HTML.
- $config['cache']['timeout'] = 60 * 60 * 48; // 48 hours
- // Optional prefix if you're running multiple Tinyboard instances on the same machine.
- $config['cache']['prefix'] = '';
- // Memcached servers to use. Read more: http://www.php.net/manual/en/memcached.addservers.php
- $config['cache']['memcached'] = array(
- array('localhost', 11211)
- );
- // Redis server to use. Location, port, password, database id.
- // Note that Tinyboard may clear the database at times, so you may want to pick a database id just for
- // Tinyboard to use.
- $config['cache']['redis'] = array('localhost', 6379, '', 1);
- // EXPERIMENTAL: Should we cache configs? Warning: this changes board behaviour, i'd say, a lot.
- // If you have any lambdas/includes present in your config, you should move them to instance-functions.php
- // (this file will be explicitly loaded during cache hit, but not during cache miss).
- $config['cache_config'] = false;
- // Define a lock driver.
- $config['lock']['enabled'] = 'fs';
- // Define a queue driver.
- $config['queue']['enabled'] = 'fs'; // xD
- /*
- * ====================
- * Cookie settings
- * ====================
- */
- // Used for moderation login.
- $config['cookies']['mod'] = 'mod';
- // Used for communicating with Javascript; telling it when posts were successful.
- $config['cookies']['js'] = 'serv';
- // Cookies path. Defaults to $config['root']. If $config['root'] is a URL, you need to set this. Should
- // be '/' or '/board/', depending on your installation.
- // $config['cookies']['path'] = '/';
- // Where to set the 'path' parameter to $config['cookies']['path'] when creating cookies. Recommended.
- $config['cookies']['jail'] = true;
- // How long should the cookies last (in seconds). Defines how long should moderators should remain logged
- // in (0 = browser session).
- $config['cookies']['expire'] = 60 * 60 * 24 * 30 * 6; // ~6 months
- // Make this something long and random for security.
- $config['cookies']['salt'] = 'abcdefghijklmnopqrstuvwxyz09123456789!@#$%^&*()';
- // Whether or not you can access the mod cookie in JavaScript. Most users should not need to change this.
- $config['cookies']['httponly'] = true;
- // Used to salt secure tripcodes ("##trip") and poster IDs (if enabled).
- $config['secure_trip_salt'] = ')(*&^%$#@!98765432190zyxwvutsrqponmlkjihgfedcba';
- /*
- * ====================
- * Flood/spam settings
- * ====================
- */
- /*
- * To further prevent spam and abuse, you can use DNS blacklists (DNSBL). A DNSBL is a list of IP
- * addresses published through the Internet Domain Name Service (DNS) either as a zone file that can be
- * used by DNS server software, or as a live DNS zone that can be queried in real-time.
- *
- * Read more: http://tinyboard.org/docs/?p=Config/DNSBL
- */
- // Prevents most Tor exit nodes from making posts. Recommended, as a lot of abuse comes from Tor because
- // of the strong anonymity associated with it.
- $config['dnsbl'][] = array('exitnodes.tor.dnsbl.sectoor.de', 1);
- // http://www.sorbs.net/using.shtml
- // $config['dnsbl'][] = array('dnsbl.sorbs.net', array(2, 3, 4, 5, 6, 7, 8, 9));
- // http://www.projecthoneypot.org/httpbl.php
- // $config['dnsbl'][] = array('<your access key>.%.dnsbl.httpbl.org', function($ip) {
- // $octets = explode('.', $ip);
- //
- // // days since last activity
- // if ($octets[1] > 14)
- // return false;
- //
- // // "threat score" (http://www.projecthoneypot.org/threat_info.php)
- // if ($octets[2] < 5)
- // return false;
- //
- // return true;
- // }, 'dnsbl.httpbl.org'); // hide our access key
- // Skip checking certain IP addresses against blacklists (for troubleshooting or whatever)
- $config['dnsbl_exceptions'][] = '127.0.0.1';
- /*
- * Introduction to Tinyboard's spam filter:
- *
- * In simple terms, whenever a posting form on a page is generated (which happens whenever a
- * post is made), Tinyboard will add a random amount of hidden, obscure fields to it to
- * confuse bots and upset hackers. These fields and their respective obscure values are
- * validated upon posting with a 160-bit "hash". That hash can only be used as many times
- * as you specify; otherwise, flooding bots could just keep reusing the same hash.
- * Once a new set of inputs (and the hash) are generated, old hashes for the same thread
- * and board are set to expire. Because you have to reload the page to get the new set
- * of inputs and hash, if they expire too quickly and more than one person is viewing the
- * page at a given time, Tinyboard would return false positives (depending on how long the
- * user sits on the page before posting). If your imageboard is quite fast/popular, set
- * $config['spam']['hidden_inputs_max_pass'] and $config['spam']['hidden_inputs_expire'] to
- * something higher to avoid false positives.
- *
- * See also: http://tinyboard.org/docs/?p=Your_request_looks_automated
- *
- */
- // Number of hidden fields to generate.
- $config['spam']['hidden_inputs_min'] = 4;
- $config['spam']['hidden_inputs_max'] = 12;
- // How many times can a "hash" be used to post?
- $config['spam']['hidden_inputs_max_pass'] = 12;
- // How soon after regeneration do hashes expire (in seconds)?
- $config['spam']['hidden_inputs_expire'] = 60 * 60 * 3; // three hours
-
- // Whether to use Unicode characters in hidden input names and values.
- $config['spam']['unicode'] = true;
- // 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',
- 'password',
- 'sticky',
- 'lock',
- 'raw',
- 'embed',
- 'recaptcha_challenge_field',
- 'recaptcha_response_field',
- 'captcha_cookie',
- 'captcha_text',
- 'spoiler',
- 'page',
- 'file_url',
- 'json_response',
- 'user_flag',
- 'no_country',
- 'tag'
- );
-
-
- /* Uses are you a human to stop automated requests to make boards disabled by default
- * if you wish to use 'are you a human' to block automated board creation requests
-
- * to use AYAH you must enter your 'AYAH_PUBLISHER_KEY' and your 'AYAH_SCORING_KEY' in
- * the configuration file for AYAH. The config file for AYAH
- * is located in the following directory:'/inc/lib/ayah/ayah_config.php'
- */
- $config['ayah_enabled'] = false;
-
- // Enable reCaptcha to make spam even harder. Rarely necessary.
- $config['recaptcha'] = false;
- // Enable reCaptcha on create.php to prevent automated requests.
- $config['cbRecaptcha'] = false;
- // Public and private key pair from https://www.google.com/recaptcha/admin/create
- $config['recaptcha_public'] = '6LcXTcUSAAAAAKBxyFWIt2SO8jwx4W7wcSMRoN3f';
- $config['recaptcha_private'] = '6LcXTcUSAAAAAOGVbVdhmEM1_SyRF4xTKe8jbzf_';
- $config['captcha'] = array();
- // Enable custom captcha provider
- $config['captcha']['enabled'] = false;
- // Custom CAPTCHA provider general settings
- // Captcha expiration:
- $config['captcha']['expires_in'] = 120; // 120 seconds
- // Captcha length:
- $config['captcha']['length'] = 6;
- /*
- * Custom captcha provider path (You will need to change these depending on your configuration! It cannot be
- * automatically determined because provider_check requires curl which needs to know the domain of your site.)
- *
- * Specify yourimageboard.com/$config['root']/8chan-captcha/entrypoint.php for the default provider or write your own
- */
- $config['captcha']['provider_get'] = 'http://localhost/8chan-captcha/entrypoint.php';
- $config['captcha']['provider_check'] = 'http://localhost/8chan-captcha/entrypoint.php';
- // Custom captcha extra field (eg. charset)
- $config['captcha']['extra'] = 'abcdefghijklmnopqrstuvwxyz';
- /*
- * Custom filters detect certain posts and reject/ban accordingly. They are made up of a condition and an
- * action (for when ALL conditions are met). As every single post has to be put through each filter,
- * having hundreds probably isn't ideal as it could slow things down.
- *
- * By default, the custom filters array is populated with basic flood prevention conditions. This
- * includes forcing users to wait at least 5 seconds between posts. To disable (or amend) these flood
- * prevention settings, you will need to empty the $config['filters'] array first. You can do so by
- * adding "$config['filters'] = array();" to inc/instance-config.php. Basic flood prevention used to be
- * controlled solely by config variables such as $config['flood_time'] and $config['flood_time_ip'], and
- * it still is, as long as you leave the relevant $config['filters'] intact. These old config variables
- * still exist for backwards-compatability and general convenience.
- *
- * Read more: http://tinyboard.org/docs/index.php?p=Config/Filters
- */
- // Minimum time between between each post by the same IP address.
- $config['flood_time'] = 10;
- // Minimum time between between each post with the exact same content AND same IP address.
- $config['flood_time_ip'] = 120;
- // Same as above but by a different IP address. (Same content, not necessarily same IP address.)
- $config['flood_time_same'] = 30;
- // Minimum time between posts by the same IP address (all boards).
- $config['filters'][] = array(
- 'condition' => array(
- 'flood-match' => array('ip'), // Only match IP address
- 'flood-time' => &$config['flood_time']
- ),
- 'action' => 'reject',
- 'message' => &$config['error']['flood']
- );
- // Minimum time between posts by the same IP address with the same text.
- $config['filters'][] = array(
- 'condition' => array(
- 'flood-match' => array('ip', 'body'), // Match IP address and post body
- 'flood-time' => &$config['flood_time_ip'],
- '!body' => '/^$/', // Post body is NOT empty
- ),
- 'action' => 'reject',
- 'message' => &$config['error']['flood']
- );
- // Minimum time between posts with the same text. (Same content, but not always the same IP address.)
- /*$config['filters'][] = array(
- 'condition' => array(
- 'flood-match' => array('body'), // Match only post body
- 'flood-time' => &$config['flood_time_same'],
- '!body' => '/^$/', // Post body is NOT empty
- ),
- 'action' => 'reject',
- 'message' => &$config['error']['flood']
- );*/
- // Example: Minimum time between posts with the same file hash.
- // $config['filters'][] = array(
- // 'condition' => array(
- // 'flood-match' => array('file'), // Match file hash
- // 'flood-time' => 60 * 2 // 2 minutes minimum
- // ),
- // 'action' => 'reject',
- // 'message' => &$config['error']['flood']
- // );
- // Example: Use the "flood-count" condition to only match if the user has made at least two posts with
- // the same content and IP address in the past 2 minutes.
- // $config['filters'][] = array(
- // 'condition' => array(
- // 'flood-match' => array('ip', 'body'), // Match IP address and post body
- // 'flood-time' => 60 * 2, // 2 minutes
- // 'flood-count' => 2 // At least two recent posts
- // ),
- // '!body' => '/^$/',
- // 'action' => 'reject',
- // 'message' => &$config['error']['flood']
- // );
- // Example: Blocking an imaginary known spammer, who keeps posting a reply with the name "surgeon",
- // ending his posts with "regards, the surgeon" or similar.
- // $config['filters'][] = array(
- // 'condition' => array(
- // 'name' => '/^surgeon$/',
- // 'body' => '/regards,\s+(the )?surgeon$/i',
- // 'OP' => false
- // ),
- // 'action' => 'reject',
- // 'message' => 'Go away, spammer.'
- // );
- // Example: Same as above, but issuing a 3-hour ban instead of just reject the post and
- // add an IP note with the message body
- // $config['filters'][] = array(
- // 'condition' => array(
- // 'name' => '/^surgeon$/',
- // 'body' => '/regards,\s+(the )?surgeon$/i',
- // 'OP' => false
- // ),
- // 'action' => 'ban',
- // 'add_note' => true,
- // 'expires' => 60 * 60 * 3, // 3 hours
- // 'reason' => 'Go away, spammer.'
- // );
- // Example: PHP 5.3+ (anonymous functions)
- // There is also a "custom" condition, making the possibilities of this feature pretty much endless.
- // This is a bad example, because there is already a "name" condition built-in.
- // $config['filters'][] = array(
- // 'condition' => array(
- // 'body' => '/h$/i',
- // 'OP' => false,
- // 'custom' => function($post) {
- // if($post['name'] == 'Anonymous')
- // return true;
- // else
- // return false;
- // }
- // ),
- // 'action' => 'reject'
- // );
-
- // Filter flood prevention conditions ("flood-match") depend on a table which contains a cache of recent
- // posts across all boards. This table is automatically purged of older posts, determining the maximum
- // "age" by looking at each filter. However, when determining the maximum age, Tinyboard does not look
- // outside the current board. This means that if you have a special flood condition for a specific board
- // (contained in a board configuration file) which has a flood-time greater than any of those in the
- // global configuration, you need to set the following variable to the maximum flood-time condition value.
- // $config['flood_cache'] = 60 * 60 * 24; // 24 hours
- /*
- * ====================
- * Post settings
- * ====================
- */
- //New thread captcha
- //Require solving a captcha to post a thread.
- //Default off.
- $config['new_thread_capt'] = false;
-
- // Do you need a body for your reply posts?
- $config['force_body'] = false;
- // Do you need a user or country flag for your posts?
- $config['force_flag'] = false;
- // Do you need a body for new threads?
- $config['force_body_op'] = true;
- // Require an image for threads?
- $config['force_image_op'] = true;
- // Require a subject for threads?
- $config['force_subject_op'] = false;
- // Strip superfluous new lines at the end of a post.
- $config['strip_superfluous_returns'] = true;
- // Strip combining characters from Unicode strings (eg. "Zalgo").
- $config['strip_combining_chars'] = true;
- // Maximum post body length.
- $config['max_body'] = 1800;
- // Maximum number of newlines. (0 for unlimited)
- $config['max_newlines'] = 0;
- // Maximum number of post body lines to show on the index page.
- $config['body_truncate'] = 15;
- // Maximum number of characters to show on the index page.
- $config['body_truncate_char'] = 2500;
- // Typically spambots try to post many links. Refuse a post with X links?
- $config['max_links'] = 20;
- // Maximum number of cites per post (prevents abuse, as more citations mean more database queries).
- $config['max_cites'] = 45;
- // Maximum number of cross-board links/citations per post.
- $config['max_cross'] = $config['max_cites'];
- // Track post citations (>>XX). Rebuilds posts after a cited post is deleted, removing broken links.
- // Puts a little more load on the database.
- $config['track_cites'] = true;
- // Maximum filename length (will be truncated).
- $config['max_filename_len'] = 255;
- // Maximum filename length to display (the rest can be viewed upon mouseover).
- $config['max_filename_display'] = 30;
- // Allow users to delete their own posts?
- $config['allow_delete'] = true;
- // How long after posting should you have to wait before being able to delete that post? (In seconds.)
- $config['delete_time'] = 10;
- // Reply limit (stops bumping thread when this is reached).
- $config['reply_limit'] = 250;
- // Image hard limit (stops allowing new image replies when this is reached if not zero).
- $config['image_hard_limit'] = 0;
- // Reply hard limit (stops allowing new replies when this is reached if not zero).
- $config['reply_hard_limit'] = 0;
- $config['robot_enable'] = false;
- // Strip repeating characters when making hashes.
- $config['robot_strip_repeating'] = true;
- // Enabled mutes? Tinyboard uses ROBOT9000's original 2^x implementation where x is the number of times
- // you have been muted in the past.
- $config['robot_mute'] = true;
- // How long before Tinyboard forgets about a mute?
- $config['robot_mute_hour'] = 336; // 2 weeks
- // If you want to alter the algorithm a bit. Default value is 2.
- $config['robot_mute_multiplier'] = 2; // (n^x where x is the number of previous mutes)
- $config['robot_mute_descritpion'] = _('You have been muted for unoriginal content.');
- // Automatically convert things like "..." to Unicode characters ("…").
- $config['auto_unicode'] = true;
- // Whether to turn URLs into functional links.
- $config['markup_urls'] = true;
- // Optional URL prefix for links (eg. "http://anonym.to/?").
- $config['link_prefix'] = '';
- $config['url_ads'] = &$config['link_prefix']; // leave alias
-
- // Allow "uploading" images via URL as well. Users can enter the URL of the image and then Tinyboard will
- // download it. Not usually recommended.
- $config['allow_upload_by_url'] = false;
- // The timeout for the above, in seconds.
- $config['upload_by_url_timeout'] = 15;
- // A wordfilter (sometimes referred to as just a "filter" or "censor") automatically scans users’ posts
- // as they are submitted and changes or censors particular words or phrases.
- // For a normal string replacement:
- // $config['wordfilters'][] = array('cat', 'dog');
- // Advanced raplcement (regular expressions):
- // $config['wordfilters'][] = array('/ca[rt]/', 'dog', true); // 'true' means it's a regular expression
- // Always act as if the user had typed "noko" into the email field.
- $config['always_noko'] = false;
- // Example: Custom tripcodes. The below example makes a tripcode of "#test123" evaluate to "!HelloWorld".
- // $config['custom_tripcode']['#test123'] = '!HelloWorld';
- // Example: Custom secure tripcode.
- // $config['custom_tripcode']['##securetrip'] = '!!somethingelse';
- // Allow users to mark their image as a "spoiler" when posting. The thumbnail will be replaced with a
- // static spoiler image instead (see $config['spoiler_image']).
- $config['spoiler_images'] = false;
- // With the following, you can disable certain superfluous fields or enable "forced anonymous".
- // When true, all names will be set to $config['anonymous'].
- $config['field_disable_name'] = false;
- // When true, there will be no email field.
- $config['field_disable_email'] = false;
- // When true, there will be no subject field.
- $config['field_disable_subject'] = false;
- // When true, there will be no subject field for replies.
- $config['field_disable_reply_subject'] = &$config['field_disable_name'];
- // When true, a blank password will be used for files (not usable for deletion).
- $config['field_disable_password'] = false;
- // When true, users are instead presented a selectbox for email. Contains, blank, noko and sage.
- $config['field_email_selectbox'] = &$config['field_disable_name'];
- // Prevent users from uploading files.
- $config['disable_images'] = false;
- // When true, the sage won't be displayed
- $config['hide_sage'] = false;
- // Attach country flags to posts.
- $config['country_flags'] = false;
- // Allow the user to decide whether or not he wants to display his country
- $config['allow_no_country'] = false;
- // Load all country flags from one file
- $config['country_flags_condensed'] = true;
- $config['country_flags_condensed_css'] = 'static/flags/flags.css';
- // Allow the user choose a /pol/-like user_flag that will be shown in the post. For the user flags, please be aware
- // that you will have to disable BOTH country_flags and contry_flags_condensed optimization (at least on a board
- // where they are enabled).
- $config['user_flag'] = false;
-
- // List of user_flag the user can choose. Flags must be placed in the directory set by $config['uri_flags']
- $config['user_flags'] = array();
- /* example:
- $config['user_flags'] = array (
- 'nz' => 'Nazi',
- 'cm' => 'Communist',
- 'eu' => 'Europe'
- );
- */
- // Allow dice rolling: an email field of the form "dice XdY+/-Z" will result in X Y-sided dice rolled and summed,
- // with the modifier Z added, with the result displayed at the top of the post body.
- $config['allow_roll'] = false;
- $config['board_locked'] = false;
-
- /*
- * ====================
- * Ban settings
- * ====================
- */
- // Require users to see the ban page at least once for a ban even if it has since expired.
- $config['require_ban_view'] = true;
- // Show the post the user was banned for on the "You are banned" page.
- $config['ban_show_post'] = false;
- // Optional HTML to append to "You are banned" pages. For example, you could include instructions and/or
- // a link to an email address or IRC chat room to appeal the ban.
- $config['ban_page_extra'] = '';
- // Allow users to appeal bans through Tinyboard.
- $config['ban_appeals'] = false;
- // Do not allow users to appeal bans that are shorter than this length (in seconds).
- $config['ban_appeals_min_length'] = 60 * 60 * 6; // 6 hours
- // How many ban appeals can be made for a single ban?
- $config['ban_appeals_max'] = 1;
-
- // Blacklisted board names. Default values to protect existing folders in the core codebase.
- $config['banned_boards'] = array(
- '.git',
- 'inc',
- 'js',
- 'static',
- 'stylesheets',
- 'templates',
- 'tools',
- 'dmca',
- 'transparency',
- 'vendor'
- );
- // Show moderator name on ban page.
- $config['show_modname'] = false;
- /*
- * ====================
- * Markup settings
- * ====================
- */
- // JIS ASCII art. This *must* be the first markup or it won't work.
- $config['markup'][] = array(
- "/\[(aa|code)\](.+?)\[\/(?:aa|code)\]/ms",
- function($matches) {
- $markupchars = array('_', '\'', '~', '*', '=', '-');
- $replacement = $markupchars;
- array_walk($replacement, function(&$v) {
- $v = "&#".ord($v).";";
- });
- // These are hacky fixes for ###board-tags###, ellipses and >quotes.
- $markupchars[] = '###';
- $replacement[] = '###';
- $markupchars[] = '>';
- $replacement[] = '>';
- $markupchars[] = '...';
- $replacement[] = '...';
- if ($matches[1] === 'aa') {
- return '<span class="aa">' . str_replace($markupchars, $replacement, $matches[2]) . '</span>';
- } else {
- return str_replace($markupchars, $replacement, $matches[0]);
- }
- }
- );
- // "Wiki" markup syntax ($config['wiki_markup'] in pervious versions):
- $config['markup'][] = array("/'''(.+?)'''/", "<strong>\$1</strong>");
- $config['markup'][] = array("/''(.+?)''/", "<em>\$1</em>");
- $config['markup'][] = array("/\*\*(.+?)\*\*/", "<span class=\"spoiler\">\$1</span>");
- $config['markup'][] = array("/^[ |\t]*==(.+?)==[ |\t]*$/m", "<span class=\"heading\">\$1</span>");
- // Highlight PHP code wrapped in <code> tags (PHP 5.3+)
- // $config['markup'][] = array(
- // '/^<code>(.+)<\/code>/ms',
- // function($matches) {
- // return highlight_string(html_entity_decode($matches[1]), true);
- // }
- // );
- // Repair markup with HTML Tidy. This may be slower, but it solves nesting mistakes. Tinyboad, at the
- // time of writing this, can not prevent out-of-order markup tags (eg. "**''test**'') without help from
- // HTML Tidy.
- $config['markup_repair_tidy'] = false;
- // Always regenerate markup. This isn't recommended and should only be used for debugging; by default,
- // Tinyboard only parses post markup when it needs to, and keeps post-markup HTML in the database. This
- // will significantly impact performance when enabled.
- $config['always_regenerate_markup'] = false;
- /*
- * ====================
- * Image settings
- * ====================
- */
- // Maximum number of images allowed. Increasing this number enabled multi image.
- // If you make it more than 1, make sure to enable the below script for the post form to change.
- // $config['additional_javascript'][] = 'js/multi_image.js';
- $config['max_images'] = 1;
- // Method to use for determing the max filesize.
- // "split" means that your max filesize is split between the images. For example, if your max filesize
- // is 2MB, the filesizes of all files must add up to 2MB for it to work.
- // "each" means that each file can be 2MB, so if your max_images is 3, each post could contain 6MB of
- // images. "split" is recommended.
- $config['multiimage_method'] = 'split';
- // For resizing, maximum thumbnail dimensions.
- $config['thumb_width'] = 255;
- $config['thumb_height'] = 255;
- // Maximum thumbnail dimensions for thread (OP) images.
- $config['thumb_op_width'] = 255;
- $config['thumb_op_height'] = 255;
- // Thumbnail extension ("png" recommended). Leave this empty if you want the extension to be inherited
- // from the uploaded file.
- $config['thumb_ext'] = 'png';
- // Maximum amount of animated GIF frames to resize (more frames can mean more processing power). A value
- // of "1" means thumbnails will not be animated. Requires $config['thumb_ext'] to be 'gif' (or blank) and
- // $config['thumb_method'] to be 'imagick', 'convert', or 'convert+gifsicle'. This value is not
- // respected by 'convert'; will just resize all frames if this is > 1.
- $config['thumb_keep_animation_frames'] = 1;
- /*
- * Thumbnailing method:
- *
- * 'gd' PHP GD (default). Only handles the most basic image formats (GIF, JPEG, PNG).
- * GD is a prerequisite for Tinyboard no matter what method you choose.
- *
- * 'imagick' PHP's ImageMagick bindings. Fast and efficient, supporting many image formats.
- * A few minor bugs. http://pecl.php.net/package/imagick
- *
- * 'convert' The command line version of ImageMagick (`convert`). Fixes most of the bugs in
- * PHP Imagick. `convert` produces the best still thumbnails and is highly recommended.
- *
- * 'gm' GraphicsMagick (`gm`) is a fork of ImageMagick with many improvements. It is more
- * efficient and gets thumbnailing done using fewer resources.
- *
- * 'convert+gifscale'
- * OR 'gm+gifsicle' Same as above, with the exception of using `gifsicle` (command line application)
- * instead of `convert` for resizing GIFs. It's faster and resulting animated
- * thumbnails have less artifacts than if resized with ImageMagick.
- */
- $config['thumb_method'] = 'gd';
- // $config['thumb_method'] = 'convert';
- // Command-line options passed to ImageMagick when using `convert` for thumbnailing. Don't touch the
- // placement of "%s" and "%d".
- $config['convert_args'] = '-size %dx%d %s -thumbnail %dx%d -auto-orient +profile "*" %s';
- // Strip EXIF metadata from JPEG files.
- $config['strip_exif'] = false;
- // Use the command-line `exiftool` tool to strip EXIF metadata without decompressing/recompressing JPEGs.
- // Ignored when $config['redraw_image'] is true. This is also used to adjust the Orientation tag when
- // $config['strip_exif'] is false and $config['convert_manual_orient'] is true.
- $config['use_exiftool'] = false;
-
- // Redraw the image to strip any excess data (commonly ZIP archives) WARNING: This might strip the
- // animation of GIFs, depending on the chosen thumbnailing method. It also requires recompressing
- // the image, so more processing power is required.
- $config['redraw_image'] = false;
-
- // Automatically correct the orientation of JPEG files using -auto-orient in `convert`. This only works
- // when `convert` or `gm` is selected for thumbnailing. Again, requires more processing power because
- // this basically does the same thing as $config['redraw_image']. (If $config['redraw_image'] is enabled,
- // this value doesn't matter as $config['redraw_image'] attempts to correct orientation too.)
- $config['convert_auto_orient'] = false;
-
- // Is your version of ImageMagick or GraphicsMagick old? Older versions may not include the -auto-orient
- // switch. This is a manual replacement for that switch. This is independent from the above switch;
- // -auto-orrient is applied when thumbnailing too.
- $config['convert_manual_orient'] = false;
- // Regular expression to check for an XSS exploit with IE 6 and 7. To disable, set to false.
- // Details: https://github.com/savetheinternet/Tinyboard/issues/20
- $config['ie_mime_type_detection'] = '/<(?:body|head|html|img|plaintext|pre|script|table|title|a href|channel|scriptlet)/i';
- // Config panel, fileboard: allowed upload extensions
- $config['fileboard_allowed_types'] = array('zip', '7z', 'tar', 'gz', 'bz2', 'xz', 'swf', 'txt', 'pdf', 'torrent');
- // Allowed image file extensions.
- $config['allowed_ext'][] = 'jpg';
- $config['allowed_ext'][] = 'jpeg';
- $config['allowed_ext'][] = 'gif';
- $config['allowed_ext'][] = 'png';
- // $config['allowed_ext'][] = 'svg';
- // Allowed extensions for OP. Inherits from the above setting if set to false. Otherwise, it overrides both allowed_ext and
- // allowed_ext_files (filetypes for downloadable files should be set in allowed_ext_files as well). This setting is useful
- // for creating fileboards.
- $config['allowed_ext_op'] = false;
- // Allowed additional file extensions (not images; downloadable files).
- // $config['allowed_ext_files'][] = 'txt';
- // $config['allowed_ext_files'][] = 'zip';
- // An alternative function for generating image filenames, instead of the default UNIX timestamp.
- // $config['filename_func'] = function($post) {
- // return sprintf("%s", time() . substr(microtime(), 2, 3));
- // };
- // Thumbnail to use for the non-image file uploads.
- $config['file_icons']['default'] = 'file.png';
- $config['file_icons']['zip'] = 'zip.png';
- $config['file_icons']['webm'] = 'video.png';
- $config['file_icons']['mp4'] = 'video.png';
- // Example: Custom thumbnail for certain file extension.
- // $config['file_icons']['extension'] = 'some_file.png';
- // Location of above images.
- $config['file_thumb'] = 'static/%s';
- // Location of thumbnail to use for spoiler images.
- $config['spoiler_image'] = 'static/spoiler.png';
- // Location of thumbnail to use for deleted images.
- $config['image_deleted'] = 'static/deleted.png';
- // Location of placeholder image for fileless posts in catalog.
- $config['no_file_image'] = 'static/no-file.png';
- // When a thumbnailed image is going to be the same (in dimension), just copy the entire file and use
- // that as a thumbnail instead of resizing/redrawing.
- $config['minimum_copy_resize'] = false;
- // Maximum image upload size in bytes.
- $config['max_filesize'] = 10 * 1024 * 1024; // 10MB
- // Maximum image dimensions.
- $config['max_width'] = 10000;
- $config['max_height'] = $config['max_width'];
- // Reject duplicate image uploads.
- $config['image_reject_repost'] = true;
- // Reject duplicate image uploads within the same thread. Doesn't change anything if
- // $config['image_reject_repost'] is true.
- $config['image_reject_repost_in_thread'] = false;
- // Display the aspect ratio of uploaded files.
- $config['show_ratio'] = false;
- // Display the file's original filename.
- $config['show_filename'] = true;
- // WebM Settings
- $config['webm']['use_ffmpeg'] = false;
- $config['webm']['allow_audio'] = false;
- $config['webm']['max_length'] = 120;
- $config['webm']['ffmpeg_path'] = 'ffmpeg';
- $config['webm']['ffprobe_path'] = 'ffprobe';
- // Display image identification links for ImgOps, regex.info/exif, Google Images and iqdb.
- $config['image_identification'] = false;
- // Which of the identification links to display. Only works if $config['image_identification'] is true.
- $config['image_identification_imgops'] = true;
- $config['image_identification_exif'] = true;
- $config['image_identification_google'] = true;
- // Anime/manga search engine.
- $config['image_identification_iqdb'] = false;
-
- // Set this to true if you're using a BSD
- $config['bsd_md5'] = false;
- // Set this to true if you're using Linux and you can execute `md5sum` binary.
- $config['gnu_md5'] = false;
- // Use Tesseract OCR to retrieve text from images, so you can use it as a spamfilter.
- $config['tesseract_ocr'] = false;
- // Tesseract parameters
- $config['tesseract_params'] = '';
- // Tesseract preprocess command
- $config['tesseract_preprocess_command'] = 'convert -monochrome %s -';
- // Max file size for spam filter
- $config['hash_maxsize'] = 800 * 1024;
- // Number of posts in a "View Last X Posts" page
- $config['noko50_count'] = 50;
- // Number of posts a thread needs before it gets a "View Last X Posts" page.
- // Set to an arbitrarily large value to disable.
- $config['noko50_min'] = 100;
- /*
- * ====================
- * Board settings
- * ====================
- */
- // Maximum amount of threads to display per page.
- $config['threads_per_page'] = 10;
- // Maximum number of pages. Content past the last page is automatically purged.
- $config['max_pages'] = 10;
- // Replies to show per thread on the board index page.
- $config['threads_preview'] = 5;
- // Same as above, but for stickied threads.
- $config['threads_preview_sticky'] = 1;
- // How to display the URI of boards. Usually '/%s/' (/b/, /mu/, etc). This doesn't change the URL. Find
- // $config['board_path'] if you wish to change the URL.
- $config['board_abbreviation'] = '/%s/';
- // The default name (ie. Anonymous). Can be an array - in that case it's picked randomly from the array.
- // Example: $config['anonymous'] = array('Bernd', 'Senpai', 'Jonne', 'ChanPro');
- $config['anonymous'] = 'Anonymous';
- // Number of reports you can create at once.
- $config['report_limit'] = 3;
- // Allow unfiltered HTML in board subtitle. This is useful for placing icons and links.
- $config['allow_subtitle_html'] = false;
- /*
- * ====================
- * Display settings
- * ====================
- */
- // Tinyboard has been translated into a few langauges. See inc/locale for available translations.
- $config['locale'] = 'en'; // (en, ru_RU.UTF-8, fi_FI.UTF-8, pl_PL.UTF-8)
- // Timezone to use for displaying dates/tiems.
- $config['timezone'] = 'America/Los_Angeles';
- // The format string passed to strftime() for displaying dates.
- // http://www.php.net/manual/en/function.strftime.php
- $config['post_date'] = '%m/%d/%y (%a) %H:%M:%S';
- // Same as above, but used for "you are banned' pages.
- $config['ban_date'] = '%A %e %B, %Y';
- // The names on the post buttons. (On most imageboards, these are both just "Post").
- $config['button_newtopic'] = _('New Topic');
- $config['button_reply'] = _('New Reply');
- // Assign each poster in a thread a unique ID, shown by "ID: xxxxx" before the post number.
- $config['poster_ids'] = false;
- // Number of characters in the poster ID (maximum is 40).
- $config['poster_id_length'] = 5;
- // Show thread subject in page title.
- $config['thread_subject_in_title'] = false;
- // Additional lines added to the footer of all pages.
- // $config['footer'][] = _('All trademarks, copyrights, comments, and images on this page are owned by and are the responsibility of their respective parties.');
- // Characters used to generate a random password (with Javascript).
- $config['genpassword_chars'] = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+';
- // Optional banner image at the top of every page.
- // $config['url_banner'] = '/banner.php';
- // Banner dimensions are also optional. As the banner loads after the rest of the page, everything may be
- // shifted down a few pixels when it does. Making the banner a fixed size will prevent this.
- // $config['banner_width'] = 300;
- // $config['banner_height'] = 100;
- // Custom stylesheets available for the user to choose. See the "stylesheets/" folder for a list of
- // available stylesheets (or create your own).
- $config['stylesheets']['Yotsuba B'] = ''; // Default; there is no additional/custom stylesheet for this.
- $config['stylesheets']['Yotsuba'] = 'yotsuba.css';
- // $config['stylesheets']['Futaba'] = 'futaba.css';
- // $config['stylesheets']['Dark'] = 'dark.css';
- $config['stylesheets']['Tomorrow'] = 'tomorrow.css';
- // The prefix for each stylesheet URI. Defaults to $config['root']/stylesheets/
- // $config['uri_stylesheets'] = 'http://static.example.org/stylesheets/';
- // The default stylesheet to use.
- $config['default_stylesheet'] = array('Yotsuba B', $config['stylesheets']['Yotsuba B']);
- // Make stylesheet selections board-specific.
- $config['stylesheets_board'] = false;
- // Use Font-Awesome for displaying lock and pin icons, instead of the images in static/.
- // http://fortawesome.github.io/Font-Awesome/icon/pushpin/
- // http://fortawesome.github.io/Font-Awesome/icon/lock/
- $config['font_awesome'] = true;
- $config['font_awesome_css'] = 'stylesheets/font-awesome/css/font-awesome.min.css';
- /*
- * For lack of a better name, “boardlinks” are those sets of navigational links that appear at the top
- * and bottom of board pages. They can be a list of links to boards and/or other pages such as status
- * blogs and social network profiles/pages.
- *
- * "Groups" in the boardlinks are marked with square brackets. Tinyboard allows for infinite recursion
- * with groups. Each array() in $config['boards'] represents a new square bracket group.
- */
- // $config['boards'] = array(
- // array('a', 'b'),
- // array('c', 'd', 'e', 'f', 'g'),
- // array('h', 'i', 'j'),
- // array('k', array('l', 'm')),
- // array('status' => 'http://status.example.org/')
- // );
- // Whether or not to put brackets around the whole board list
- $config['boardlist_wrap_bracket'] = false;
- // Show page navigation links at the top as well.
- $config['page_nav_top'] = false;
- // Show "Catalog" link in page navigation. Use with the Catalog theme.
- $config['catalog_link'] = 'catalog.html';
- // Board categories. Only used in the "Categories" theme.
- // $config['categories'] = array(
- // 'Group Name' => array('a', 'b', 'c'),
- // 'Another Group' => array('d')
- // );
- // Optional for the Categories theme. This is an array of name => (title, url) groups for categories
- // with non-board links.
- // $config['custom_categories'] = array(
- // 'Links' => array(
- // 'Tinyboard' => 'http://tinyboard.org',
- // 'Donate' => 'donate.html'
- // )
- // );
- // Automatically remove unnecessary whitespace when compiling HTML files from templates.
- $config['minify_html'] = true;
- /*
- * Advertisement HTML to appear at the top and bottom of board pages.
- */
- // $config['ad'] = array(
- // 'top' => '',
- // 'bottom' => '',
- // );
- // Display flags (when available). This config option has no effect unless poster flags are enabled (see
- // $config['country_flags']). Disable this if you want all previously-assigned flags to be hidden.
- $config['display_flags'] = true;
- // Location of post flags/icons (where "%s" is the flag name). Defaults to static/flags/%s.png.
- // $config['uri_flags'] = 'http://static.example.org/flags/%s.png';
- // Width and height (and more?) of post flags. Can be overridden with the Tinyboard post modifier:
- // <tinyboard flag style>.
- // $config['flag_style'] = 'width:16px;height:11px;';
- $config['flag_style'] = '';
- /*
- * ====================
- * Javascript
- * ====================
- */
- // Additional Javascript files to include on board index and thread pages. See js/ for available scripts.
- // $config['additional_javascript'][] = 'js/inline-expanding.js';
- // $config['additional_javascript'][] = 'js/local-time.js';
- // Some scripts require jQuery. Check the comments in script files to see what's needed. When enabling
- // jQuery, you should first empty the array so that "js/query.min.js" can be the first, and then re-add
- // "js/inline-expanding.js" or else the inline-expanding script might not interact properly with other
- // scripts.
- // $config['additional_javascript'] = array();
- // $config['additional_javascript'][] = 'js/jquery.min.js';
- // $config['additional_javascript'][] = 'js/inline-expanding.js';
- // $config['additional_javascript'][] = 'js/auto-reload.js';
- // $config['additional_javascript'][] = 'js/post-hover.js';
- // $config['additional_javascript'][] = 'js/style-select.js';
- // Where these script files are located on the web. Defaults to $config['root'].
- // $config['additional_javascript_url'] = 'http://static.example.org/tinyboard-javascript-stuff/';
- // Compile all additional scripts into one file ($config['file_script']) instead of including them seperately.
- $config['additional_javascript_compile'] = false;
- // Minify Javascript using http://code.google.com/p/minify/.
- $config['minify_js'] = false;
- // Dispatch thumbnail loading and image configuration with JavaScript. It will need a certain javascript
- // code to work.
- $config['javascript_image_dispatch'] = false;
- /*
- * ====================
- * Video embedding
- * ====================
- */
- // Enable embedding (see below).
- $config['enable_embedding'] = false;
-
- $config['youtube_regex'] = '/^https?:\/\/(?:\w+\.)?(?:youtube\.com\/watch\?|youtu\.be\/)(?:(?:&?v=)?([a-zA-Z0-9\-_]{10,11}))$/i';
- // Youtube.js embed HTML code
- $config['youtube_js_html'] = '<div class="video-container" data-video="$1" data-params="&$2&$3">'.
- '<span class="unimportant yt-help">YouTube embed. Click thumbnail to play.</span><br>'.
- '<a href="$0" target="_blank" class="file">'.
- '<img style="width:255px" src="/%s/yt/$1.jpg" class="post-image"/>'.
- '</a></div>';
- // Custom embedding (YouTube, vimeo, etc.)
- // It's very important that you match the entire input (with ^ and $) or things will not work correctly.
- $config['embedding'] = array(
- array(
- $config['youtube_regex'],
- $config['youtube_js_html']
- ),
- );
-
- // Youtube thumbnail link
- $config['youtube_remote_thumb'] = 'https://img.youtube.com/vi/%s/0.jpg';
-
- // Base64 encoded youtube 404 thumbnail.
- $config['youtube_404_thumb'] = "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAUDBAcFBwUFBQUGBQgFBgUFBQUIBQUHBQgFBQUJBggJBQUTChwLBwgaCQgFDiEYGh0RHxMfEwsiGCIeGBwSExIBBQUFBwYHBQgIBRIIBQgSEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEv/AABEIAFoAeAMBIgACEQEDEQH/xAAbAAEAAgMBAQAAAAAAAAAAAAAAAQQCAwcGBf/EAD0QAAIBAgMDBwYNBQAAAAAAAAACAQMEBRESBhMhByIxMkFSYRRCcXKS0hVVgYSRlLHBwsPR0/AXUWJks//EABQBAQAAAAAAAAAAAAAAAAAAAAD/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwDvQAAAAACYgnSBiDLQNAGIMtA0gYgmYIAAAAAAAAAQZqpipYoqASkbloHyNoNq7HBWWjcb2tWaFdrejEM6I3Vms8zCp4cc/A+RPKhar1cKum9Na3X9QPYbgbg8XPKnT83B3+W9SPyzH+qi/E0/Xl/aA9tuDFqB41eVOj52D1f8tN7Sn8uDbHKfaN04ZeJ6Ktq33wB6d6ZpZTTgG0VljUP5Izo9KNT29RVStCdGpeMwy+iS3WUCuAwAAAAAAMkLtouqVKSF+znioHCseuJuLzELhm1TVu7ltXTzVrMi/JpVIKZNSec7d56je08lvBLCcQurWyR4pTdVVpa24qurpnT28IYCmD023mysYFNpKXU3CXW9XnoqVVejplubE5SuTKXLrYbdYT8MeW6qi21O9a33S7ndOsTpWrnnryZfDMDxoPV7C7IRjqXVardzarRqLRVUpK7tVZNebcYyXKVPN4jbTaV7i1aYdrWrVt2deqzUnlJlfDgB9bk/rzRxTDW1aYq1Wt38VrIyZfTKnYLmDiey7acQwyV6VvLT/sp26784Ci5BLkAAAAAAEoXbRuMekowb6T6QOF3KSlWsjdKVaqN60VZifsMabykq6NKMkrKOrZSrLxiVbsnM+3tthNSxu7p2SdzdValxb1oXmStV5eVaexomWg+FqjvQBaxC/uL1lq3t1WunWNCPUqs7KnTkv9oJfErlqC2U3ddrdZ1LazVfcxpbOOZ0ZZ8SpmSBaw/Ermy1+SXde13saau7qsmpezV9JVmf5PFpbtlm7ZIzGqO9AH1Nkk14jhi/7ls3svDz9h2m4Y5dya4VUrXdK+ZJWjabx97K5K9aUlESl3pjVnOX3nS6jAamIEgAAAAAAErJAA2atXNZYaO7KrMeya2trd+va28+tb0Z/CBmBqbDLFuth9m3zWj7pj8EWHxZZ/VqP6G/MZga1wyyXq4fZr80o+6bVt6CdS1t09W3or+EjMZgbJfs7F6qxwWPVXsMJkgAAAAAAAAAAAAAAAAAAAAAAAAAAAB//9k=";
- // Embedding width and height.
- $config['embed_width'] = 300;
- $config['embed_height'] = 246;
- /*
- * ====================
- * Error messages
- * ====================
- */
- // Error messages
- $config['error']['bot'] = _('You look like a bot.');
- $config['error']['referer'] = _('Your browser sent an invalid or no HTTP referer.');
- $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']['toomanyimages'] = _('You have attempted to upload too many images!');
- $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']['reply_hard_limit'] = _('Thread has reached its maximum reply limit.');
- $config['error']['image_hard_limit'] = _('Thread has reached its maximum image limit.');
- $config['error']['nopost'] = _('You didn\'t make a post.');
- $config['error']['flood'] = _('Flood detected; Post discarded.');
- $config['error']['spam'] = _('Your request looks automated; Post discarded. Try refreshing the page. If that doesn\'t work, please post the board, thread and browser this error occurred on on /operate/.');
- $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']['dnsbl'] = _('Your IP address is listed in %s.');
- $config['error']['toomanylinks'] = _('Too many links; flood detected.');
- $config['error']['notenoughlinks'] = _('OPs are required to have at least %d links on this board.');
- $config['error']['toomanycites'] = _('Too many cites; post discarded.');
- $config['error']['toomanycross'] = _('Too many cross-board links; post discarded.');
- $config['error']['nodelete'] = _('You didn\'t select anything to delete.');
- $config['error']['noreport'] = _('You didn\'t select anything to report.');
- $config['error']['toomanyreports'] = _('You can\'t report that many posts at once.');
- $config['error']['invalidpassword'] = _('Wrong password…');
- $config['error']['invalidimg'] = _('Invalid image.');
- $config['error']['unknownext'] = _('Unknown file e