.%.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 // 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', 'imgcaptcha_hash', 'imgcaptcha_verify', 'spoiler', 'quick-reply' ); // Custom flood filters. Detect flood attacks and reject new posts if there's a positive match. // See http://tinyboard.org/wiki/index.php?title=Flood_filters for more information. //$config['flood_filters'][] = array( // 'condition' => array( // // 100 posts in the past 5 minutes (~20 p/m) // 'posts_in_past_x_minutes' => array(100, 5) // ), // // Don't allow the user to post // 'action' => 'reject', // // Display this message // 'message' => 'Your post has been rejected on the suspicion of a flood attack on this board.' //); // Another filter //$config['flood_filters'][] = array( // 'condition' => array( // // 10 new empty threads in the past 2 minutes // 'threads_with_no_replies_in_past_x_minutes' => array(10, 2), // // Allow replies, but not new threads (ie. reject topics only). // 'OP' => true // ), // 'action' => 'reject', // 'message' => 'Your post has been rejected on the suspicion of a flood attack on this board (too many new threads); post a reply instead.' //); // Enable reCaptcha to make spam even harder $config['recaptcha'] = false; // Public and private key pair from https://www.google.com/recaptcha/admin/create $config['recaptcha_public'] = '6LcXTcUSAAAAAKBxyFWIt2SO8jwx4W7wcSMRoN3f'; $config['recaptcha_private'] = '6LcXTcUSAAAAAOGVbVdhmEM1_SyRF4xTKe8jbzf_'; $config['imgcaptcha'] = false; $config['imgcaptcha_key'] = "cos losowego"; // max 32 znaki $config['imgcaptcha_list'] = "/sciezka/do/pliku.txt"; $config['imgcaptcha_images'] = "/sciezka/do/obrazkow"; // without a slash at the end $config['imgcaptcha_question'] = "Was ist das?"; $config['imgcaptcha_time_limit'] = 90; // Kapcza wazna przez 90 sekund po wejsciu $config['imgcaptcha_filler'] = "/plik/kliknijmie.png"; $config['imgcaptcha_width'] = 128; $config['imgcaptcha_height'] = 96; // JESLI DODAJESZ IMGKAPCZE, NIE ZAPOMNIJ O TYM // Wymagane tez jQuery - o tam, nizej. //$config['additional_javascript'][] = 'js/imgcaptcha.js'; /* * ==================== * Post settings * ==================== */ // Do you need a body for your reply posts? $config['force_body'] = false; // Do you need a body for new threads? $config['force_body_op'] = true; // Strip superfluous new lines at the end of a post $config['strip_superfluous_returns'] = true; // Require an image for threads? $config['force_image_op'] = true; // Max body length $config['max_body'] = 1800; // Amount of post lines to show on the index page $config['body_truncate'] = 15; // Amount of characters to show on the index page $config['body_truncate_char'] = 2500; // Typically spambots try to post a lot of links. Refuse a post with X standalone links? $config['max_links'] = 20; // Maximum number of cites per post (protects against abuse) $config['max_cites'] = 45; // Maximum number of cross-board links/cites per post $config['max_cross'] = $config['max_cites']; // Track post citations (>>XX). Rebuilds posts after a cited post is deleted, removing broken links. // A little more database load. $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; // How long before you can delete a post after posting, in seconds. $config['delete_time'] = 10; // Reply limit (stops bumping thread when this is reached) $config['reply_limit'] = 250; // Strip repeating characters when making hashes $config['robot_enable'] = false; $config['robot_strip_repeating'] = true; // Enable mutes // Tinyboard uses ROBOT9000's original 2^x implementation $config['robot_mute'] = true; // How many mutes x hours ago to include in the algorithm $config['robot_mute_hour'] = 336; // 2 weeks // 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.'; // Automatically convert things like "..." to Unicode characters ("…") $config['auto_unicode'] = true; // Whether to turn URLs into functional links $config['markup_urls'] = true; // Wordfilters are used to automatically replace certain words/phrases with something else. // For a normal string replacement: // $config['wordfilters'][] = array('cat', 'dog'); // Advanced raplcement (regular expressions): // $config['wordfilters'][] = array('/cat/', 'dog', true); // 'true' means it's a regular expression // Always act as if they had typed "noko" in the email field no mattter what $config['always_noko'] = false; // Custom tripcodes. The below example makes a tripcode // of "#test123" evaluate to "!HelloWorld" // $config['custom_tripcode']['#test123'] = '!HelloWorld'; // $config['custom_tripcode']['##securetrip'] = '!!somethingelse'; // Optional spoiler images $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, no email will be able to be set. $config['field_disable_email'] = false; // When true, a blank password will be used for files (not usable for deletion). $config['field_disable_password'] = false; /* * ==================== * Markup settings * ==================== */ // "Wiki" markup syntax ($config['wiki_markup'] in pervious versions): $config['markup'][] = array("/'''(.+?)'''/", "\$1"); $config['markup'][] = array("/''(.+?)''/", "\$1"); $config['markup'][] = array("/\*\*(.+?)\*\*/", "\$1"); $config['markup'][] = array("/^[ |\t]*==(.+?)==[ |\t]*$/m", "\$1"); // Highlight PHP code wrapped in tags (PHP 5.3.0+) // $config['markup'][] = array( // '/^<code>(.+)<\/code>/ms', // function($matches) { // return highlight_string(html_entity_decode($matches[1]), true); // } // ); /* * ==================== * Image settings * ==================== */ // For resizing, max thumbnail size $config['thumb_width'] = 255; $config['thumb_height'] = 255; // Max thumbnail size for thread images $config['thumb_op_width'] = 255; $config['thumb_op_height'] = 255; // Thumbnail extension, empty for inherited (png recommended) $config['thumb_ext'] = 'png'; // EXPERIMENTAL: // Maximum amount of frames to resize (more frames means more processing power). "1" means no animated thumbnails. // Requires $config['thumb_ext'] to be 'gif' $config['imagick'] to be enabled. $config['thumb_keep_animation_frames'] = 1; // Thumbnailing method: // - 'gd' PHP GD (default). Only handles the most basic image formats (GIF, JPEG, PNG). This 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. $config['thumb_method'] = 'gd'; // Regular expression to check for IE MIME type detection XSS exploit. To disable, comment the line out // 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'; // Allowed image file extensions $config['allowed_ext'][] = 'jpg'; $config['allowed_ext'][] = 'jpeg'; $config['allowed_ext'][] = 'bmp'; $config['allowed_ext'][] = 'gif'; $config['allowed_ext'][] = 'png'; // $config['allowed_ext'][] = 'svg'; // Allowed additional file extensions (not images; downloadable files) // $config['allowed_ext_files'][] = 'txt'; // $config['allowed_ext_files'][] = 'zip'; // An alternative function for generating a filename, instead of the default UNIX timestamp. // http://tinyboard.org/wiki/index.php?title=Filenames // $config['filename_func'] = 'some_function_you_have_created'; // Non-image file icons $config['file_icons']['default'] = 'file.png'; $config['file_icons']['zip'] = 'zip.png'; // Thumbnail to use for the downloadable files (not images) $config['file_thumb'] = 'static/%s'; // Thumbnail to use for spoiler images $config['spoiler_image'] = 'static/spoiler.png'; // Thumbnail quality (compression level), from 0 to 9 $config['thumb_quality'] = 8; // 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; // Store image hash in the database for r9k-like boards implementation soon // Function name for hashing // sha1_file, md5_file, etc. You can also define your own similar function. $config['file_hash'] = 'sha1_file'; // 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']; // 1:1 // Reject dupliate image uploads $config['image_reject_repost'] = true; // Display the aspect ratio in a post's file info $config['show_ratio'] = false; // Display the file's original filename $config['show_filename']= true; // Image identification buttons using regex.info/exif, tineye and google images $config['image_identification'] = false; // Redraw the image using GD functions to strip any excess data (commonly ZIP archives) // WARNING: Currently strips animated GIFs too $config['redraw_image'] = false; /* * ==================== * Board settings * ==================== */ // Maximum amount of threads to display on a given 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; // Name of the boards. Usually '/%s/' (/b/, /mu/, etc) // $config['board_abbreviation'] - BOARD_TITLE $config['board_abbreviation'] = '/%s/'; // The default name (ie. Anonymous) $config['anonymous'] = 'Anonymous'; // How many reports you can create in the same request. $config['report_limit'] = 3; // Attention Whoring Bar // REMEMBER TO CHMOD attentionbar.txt PROPERLY // Oh, and add jQuery in additional_javascript. $config['attention_bar'] = false; /* * ==================== * Display settings * ==================== */ // Locale (en, ru_RU.UTF-8, fi_FI.UTF-8, pl_PL.UTF-8) $config['locale'] = 'en'; // Timezone $config['timezone'] = 'America/Los_Angeles'; // The format string passed to strftime() for post times // 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 "Post") $config['button_newtopic'] = 'New Topic'; $config['button_reply'] = 'New Reply'; // Assign each poster in a thread a unique ID, shown by "ID: {id}" before the post number. $config['poster_ids'] = false; // Number of characters in the poster ID (maximum is 40) $config['poster_id_length'] = 5; // Page footer $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 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. The prefix for each stylesheet URI is defined below. $config['stylesheets']['Yotsuba B'] = ''; // default $config['stylesheets']['Yotsuba'] = 'yotsuba.css'; // $config['stylesheets']['Futaba'] = 'futaba.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']); // 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')), // array('status' => 'http://status.example.org/') //); // Categories // Required for the Categories theme. //$config['categories'] = array( // 'Group Name' => array('a', 'b', 'c'), // 'Another Group' => array('d') //); // Custom_categories // Optional for the Categories theme. 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; /* * ==================== * Javascript * ==================== */ // Additional Javascript files to include on board index and thread pages. $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. // $config['additional_javascript'][] = 'js/jquery.min.js'; // $config['additional_javascript'][] = 'js/auto-reload.js'; // Where these script files are located on the web (defaults to $config['root']). // $config['additional_javascript_url'] = '/js/'; // 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; // Allows js/quick-reply.js to work // This will make your imageboard more vulnerable to flood attacks. $config['quick_reply'] = false; /* * ==================== * Video embedding * ==================== */ // Enable embedding (see below) $config['enable_embedding'] = false; // Custom embedding (YouTube, vimeo, etc.) // It's very important that you match the full string (with ^ and $) or things will not work correctly. $config['embedding'] = array( array( '/^https?:\/\/(\w+\.)?youtube\.com\/watch\?v=([a-zA-Z0-9\-_]{10,11})(&.+)?$/i', '' ), array( '/^https?:\/\/(\w+\.)?vimeo\.com\/(\d{2,10})(\?.+)?$/i', '' ), array( '/^https?:\/\/(\w+\.)?dailymotion\.com\/video\/([a-zA-Z0-9]{2,10})(_.+)?$/i', '' ), array( '/^https?:\/\/(\w+\.)?metacafe\.com\/watch\/(\d+)\/([a-zA-Z0-9_\-.]+)\/(\?.+)?$/i', '
' ), array( '/^https?:\/\/video\.google\.com\/videoplay\?docid=(\d+)([&#](.+)?)?$/i', '' ) ); // Embedding width and height $config['embed_width'] = 300; $config['embed_height'] = 246; /* * ==================== * Error messages * ==================== */ // Error messages $config['error']['lurk'] = _('Lurk some more before posting.'); $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']['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.'); $config['error']['flood'] = _('Flood detected; Post discarded.'); $config['error']['spam'] = _('Your request looks automated; Post discarded.'); $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']['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 extension.'); $config['error']['filesize'] = _('Maximum file size: %maxsz% bytes
Your file\'s size: %filesz% bytes'); $config['error']['maxsize'] = _('The file was too big.'); $config['error']['invalidzip'] = _('Invalid archive!'); $config['error']['fileexists'] = _('That file already exists!'); $config['error']['delete_too_soon'] = _('You\'ll have to wait another %s before deleting that.'); $config['error']['mime_exploit'] = _('MIME type detection XSS exploit (IE) detected; post discarded.'); $config['error']['invalid_embed'] = _('Couldn\'t make sense of the URL of the video you tried to embed.'); $config['error']['captcha'] = _('You seem to have mistyped the verification.'); // Moderator errors $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.'); $config['error']['modexists'] = _('That mod already exists!'); $config['error']['invalidtheme'] = _('That theme doesn\'t exist!'); $config['error']['csrf'] = _('Invalid security token! Please go back and try again.'); /* * ========================= * Directory/file settings * ========================= */ // The root directory, including the trailing slash, for Tinyboard. // examples: '/', 'http://boards.chan.org/', '/chan/' if (isset($_SERVER['REQUEST_URI'])) $config['root'] = (str_replace('\\', '/', dirname($_SERVER['REQUEST_URI'])) == '/' ? '/' : str_replace('\\', '/', dirname($_SERVER['REQUEST_URI'])) . '/'); else $config['root'] = '/'; // CLI mode // The scheme and domain. This is needed to get absolute URL of some page (for instance image // identification buttons). If you use the CLI tools, it would be wise to override this setting. $config['domain'] = (isset ($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ? "https://" : "http://"; $config['domain'] .= isset ($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'localhost'; // 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. $config['root_file'] = false; $config['file_index'] = 'index.html'; $config['file_page'] = '%d.html'; $config['file_mod'] = 'mod.php'; $config['file_post'] = 'post.php'; $config['file_script'] = 'main.js'; // Board directory, followed by a forward-slash (/). (%s is board abbreviation) $config['board_path'] = '%s/'; $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/) //$config['dir']['static'] = $config['root'] . 'static/'; // Where to store the .html templates. This folder and templates must exist or fatal errors will be thrown. $config['dir']['template'] = getcwd() . '/templates'; // For the themes (homepages, etc.) $config['dir']['themes'] = getcwd() . '/templates/themes'; // Same as above, but a URI (accessable by web interface, not locally) $config['dir']['themes_uri'] = 'templates/themes'; // Homepage directory $config['dir']['home'] = ''; // Static images // These can be URLs OR base64 (data URI scheme) //$config['image_sticky'] = $config['dir']['static'] . 'sticky.gif'; //$config['image_locked'] = $config['dir']['static'] . 'locked.gif'; //$config['image_bumplocked'] = $config['dir']['static'] . 'sage.gif'; //$config['image_deleted'] = $config['dir']['static'] . 'deleted.'; //$config['image_zip'] = $config['dir']['static'] . 'zip.'; // If you want to put images and other dynamic-static stuff on another (preferably cookieless) domain, you can use this: // This will override $config['root'] and $config['dir']['...'] directives. // "%s" will get replaced with $board['dir'], which usually includes a trailing slash. To avoid double slashes, you don't need // to put a slash after %s // $config['uri_thumb'] = 'http://images.example.org/%sthumb/'; // $config['uri_img'] = 'http://images.example.org/%ssrc/'; // Set custom locations for stylesheets, scripts and maybe a banner. // This can be good for load balancing across multiple servers or hostnames. // $config['url_stylesheet'] = 'http://static.example.org/style.css'; // main/base stylesheet // $config['url_javascript'] = 'http://static.example.org/main.js'; // $config['url_favicon'] = '/favicon.gif'; /* * ==================== * Mod settings * ==================== */ // Whether or not to lock moderator sessions to the IP address that was logged in with. $config['mod']['lock_ip'] = true; // The page that is first shown when a moderator logs in. Defaults to the dashboard. $config['mod']['default'] = '/'; // Don't even display MySQL password to administrators (in the configuration page). $config['mod']['never_reveal_password'] = true; // Mod links (full HTML) // Correspond to above permission directives $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_deletebyip_global'] = '[D++]'; $config['mod']['link_sticky'] = '[Sticky]'; $config['mod']['link_desticky'] = '[-Sticky]'; $config['mod']['link_lock'] = '[Lock]'; $config['mod']['link_unlock'] = '[-Lock]'; $config['mod']['link_bumplock'] = '[Sage]'; $config['mod']['link_bumpunlock'] = '[-Sage]'; $config['mod']['link_editpost'] = '[Edit]'; $config['mod']['link_move'] = '[Move]'; // Moderator capcodes $config['capcode'] = ' ## %s'; // Custom capcodes, by example: // "## Custom" becomes lightgreen, italic and bold //$config['custom_capcode']['Custom'] =' ## %s'; // "## Mod" makes everything purple, including the name and tripcode //$config['custom_capcode']['Mod'] = array( // ' ## %s', // 'color:purple', // Change name style; optional // 'color:purple' // Change tripcode style; optional //); // "## Admin" makes everything red and bold, including the name and tripcode //$config['custom_capcode']['Admin'] = array( // ' ## %s', // 'color:red;font-weight:bold', // Change name style; optional // 'color:red;font-weight:bold' // Change tripcode style; optional //); // Enable IP range bans (eg. "127.*.0.1", "127.0.0.*", and "12*.0.0.1" all match "127.0.0.1"). // A little more load on the database $config['ban_range'] = true; // Enable CDIR netmask bans (eg. "10.0.0.0/8" for 10.0.0.0.0 - 10.255.255.255). Useful for stopping persistent spammers. // Again, a little more database load. $config['ban_cidr'] = true; // Do a DNS lookup on IP addresses to get their hostname on the IP summary page $config['mod']['dns_lookup'] = true; // How many recent posts, per board, to show in the IP summary page $config['mod']['ip_recentposts'] = 5; // How many posts to display on the reports page $config['mod']['recent_reports'] = 10; // How many actions to show per page in the moderation log $config['mod']['modlog_page'] = 350; // How many bans to show per page in the ban list $config['mod']['banlist_page'] = 350; // Number of news entries to display per page $config['mod']['news_page'] = 40; // Maximum number of results to display for a search, per board $config['mod']['search_results'] = 75; // How many entries to show per page in the moderator noticeboard $config['mod']['noticeboard_page'] = 50; // Number of entries to summarize and display on the dashboard $config['mod']['noticeboard_dashboard'] = 5; // Default public ban message $config['mod']['default_ban_message'] = 'USER WAS BANNED FOR THIS POST'; // What to append to the post for public bans ("%s" is the message) $config['mod']['ban_message'] = '(%s)'; // When moving a thread to another board and choosing to keep a "shadow thread", an automated post (with a capcode) will // be made, linking to the new location for the thread. "%s" will be replaced with a standard cross-board post citation (>>>/board/xxx) $config['mod']['shadow_mesage'] = 'Moved to %s.'; // Capcode to use when posting the above message. $config['mod']['shadow_capcode'] = 'Mod'; // Name to use when posting the above message. $config['mod']['shadow_name'] = $config['anonymous']; // Wait indefinitely when rebuilding everything $config['mod']['rebuild_timelimit'] = 0; // PM snippet (for ?/inbox) length in characters $config['mod']['snippet_length'] = 75; // Probably best not to change these: if (!defined('JANITOR')) { define('JANITOR', 0, true); define('MOD', 1, true); define('ADMIN', 2, true); define('DISABLED', 3, true); } /* * ==================== * Mod permissions * ==================== */ // Capcode permissions $config['mod']['capcode'] = array( // JANITOR => array('Janitor'), MOD => array('Mod'), ADMIN => true ); // Example: Allow mods to post with "## Moderator" as well // $config['mod']['capcode'][MOD][] = 'Moderator'; // Example: Allow janitors to post with any capcode // $config['mod']['capcode'][JANITOR] = true; // Set any of the below to "DISABLED" to make them unavailable for everyone. // Don't worry about per-board moderators. Let all mods moderate any board. $config['mod']['skip_per_board'] = false; /* Post Controls */ // View IP addresses $config['mod']['show_ip'] = MOD; // Delete a post $config['mod']['delete'] = JANITOR; // Ban a user for a post $config['mod']['ban'] = MOD; // Ban and delete (one click; instant) $config['mod']['bandelete'] = MOD; // Remove bans $config['mod']['unban'] = MOD; // Delete file (and keep post) $config['mod']['deletefile'] = JANITOR; // Delete all posts by IP $config['mod']['deletebyip'] = MOD; // Delete all posts by IP across all boards $config['mod']['deletebyip_global'] = ADMIN; // Sticky a thread $config['mod']['sticky'] = MOD; // Lock a thread $config['mod']['lock'] = MOD; // Post in a locked thread $config['mod']['postinlocked'] = MOD; // Prevent a thread from being bumped $config['mod']['bumplock'] = MOD; // View whether a thread has been bumplocked ("-1" to allow non-mods to see too) $config['mod']['view_bumplock'] = MOD; // Edit posts (EXPERIMENTAL) $config['mod']['editpost'] = DISABLED; // "Move" a thread to another board (EXPERIMENTAL; has some known bugs) $config['mod']['move'] = DISABLED; // Bypass "field_disable_*" (forced anonymity, etc.) $config['mod']['bypass_field_disable'] = MOD; // Post bypass unoriginal content check on robot-enabled boards $config['mod']['postunoriginal'] = ADMIN; // Bypass flood check $config['mod']['flood'] = ADMIN; // Raw HTML posting $config['mod']['rawhtml'] = MOD; /* Administration */ // 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; // View list of bans $config['mod']['view_banlist'] = MOD; // View the username of the mod who made a ban $config['mod']['view_banstaff'] = MOD; // If the moderator doesn't fit the $config['mod']['view_banstaff''] (previous) permission, // show him just a "?" instead. Otherwise, it will be "Mod" or "Admin" $config['mod']['view_banquestionmark'] = false; // Show expired bans in the ban list (they are kept in cache until the culprit returns) $config['mod']['view_banexpired'] = true; // View ban for IP address $config['mod']['view_ban'] = $config['mod']['view_banlist']; // View IP address notes $config['mod']['view_notes'] = JANITOR; // Create notes $config['mod']['create_notes'] = $config['mod']['view_notes']; // Remote notes $config['mod']['remove_notes'] = ADMIN; // Create a new board $config['mod']['newboard'] = ADMIN; // Manage existing boards (change title, etc) $config['mod']['manageboards'] = ADMIN; // Delete a board $config['mod']['deleteboard'] = ADMIN; // List/manage users $config['mod']['manageusers'] = MOD; // Promote/demote users $config['mod']['promoteusers'] = ADMIN; // Edit any users' login information $config['mod']['editusers'] = ADMIN; // Change user's own password $config['mod']['change_password'] = JANITOR; // Delete a user $config['mod']['deleteusers'] = ADMIN; // Create a user $config['mod']['createusers'] = ADMIN; // View the moderation log $config['mod']['modlog'] = ADMIN; // Create a PM (viewing mod usernames) $config['mod']['create_pm'] = JANITOR; // Read any PM, sent to or from anybody $config['mod']['master_pm'] = ADMIN; // Rebuild everything $config['mod']['rebuild'] = ADMIN; // Search through posts $config['mod']['search'] = JANITOR; // Read the moderator noticeboard $config['mod']['noticeboard'] = JANITOR; // Post to the moderator noticeboard $config['mod']['noticeboard_post'] = MOD; // Delete entries from the noticeboard $config['mod']['noticeboard_delete'] = ADMIN; // Public ban messages; attached to posts $config['mod']['public_ban'] = MOD; // Manage and install themes for homepage $config['mod']['themes'] = ADMIN; // Post news entries $config['mod']['news'] = ADMIN; // Custom name when posting news $config['mod']['news_custom'] = ADMIN; // Delete news entries $config['mod']['news_delete'] = ADMIN; // View the current configuration $config['mod']['show_config'] = ADMIN; // Edit the current configuration (via web interface) $config['mod']['edit_config'] = ADMIN; /* * ==================== * Events (PHP 5.3.0+) * ==================== */ // http://tinyboard.org/docs/?p=Events // event_handler('post', function($post) { // // do something // }); // event_handler('post', function($post) { // // do something else // // // return an error (reject post) // return 'Sorry, you cannot post that!'; // }); /* * ==================== * Other/uncategorized * ==================== */ // Meta keywords. It's probably best to include these in per-board configurations. //$config['meta_keywords'] = 'chan,anonymous discussion,imageboard,tinyboard'; // Link imageboard to your Google Analytics account to track users and provide marketing insights. // $config['google_analytics'] = 'UA-xxxxxxx-yy'; // Keep the Google Analytics cookies to one domain -- ga._setDomainName() // $config['google_analytics_domain'] = 'www.example.org'; // If you use Varnish, Squid, or any similar caching reverse-proxy in front of Tinyboard, // you can configure Tinyboard to PURGE files when they're written to //$config['purge'] = array( // array('127.0.0.1', 80) // array('127.0.0.1', 80, 'example.org') //); // Connection timeout, in seconds $config['purge_timeout'] = 3; // Remote servers // http://tinyboard.org/wiki/index.php?title=Multiple_Servers //$config['remote']['static'] = array( // 'host' => 'static.example.org', // 'auth' => array( // 'method' => 'plain', // 'username' => 'username', // 'password' => 'password!123' // ), // 'type' => 'scp' //); // Complex regular expression to catch URLs $config['url_regex'] = '/' . '(https?|ftp):\/\/' . '(([\w\-]+\.)+[a-zA-Z]{2,6}|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})' . '(:\d+)?' . '(\/([\w\-~.#\/?=&;:+%!*\[\]@$\'()+,|\^]+)?)?' . '/';