forked from leftypol/leftypol
Fix cyclic threads not cycling, remove inconsistent code whitespace
This commit is contained in:
parent
3379b9c72e
commit
c909b31cd7
1 changed files with 25 additions and 25 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2010-2013 Tinyboard Development Group
|
* Copyright (c) 2010-2013 Tinyboard Development Group
|
||||||
*
|
*
|
||||||
* WARNING: This is a project-wide configuration file and is overwritten when upgrading to a newer
|
* 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.
|
* 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.
|
* If you would like to make instance-specific changes to your own setup, please use instance-config.php.
|
||||||
|
@ -258,7 +258,7 @@
|
||||||
|
|
||||||
// How soon after regeneration do hashes expire (in seconds)?
|
// How soon after regeneration do hashes expire (in seconds)?
|
||||||
$config['spam']['hidden_inputs_expire'] = 60 * 60 * 3; // three hours
|
$config['spam']['hidden_inputs_expire'] = 60 * 60 * 3; // three hours
|
||||||
|
|
||||||
// Whether to use Unicode characters in hidden input names and values.
|
// Whether to use Unicode characters in hidden input names and values.
|
||||||
$config['spam']['unicode'] = true;
|
$config['spam']['unicode'] = true;
|
||||||
|
|
||||||
|
@ -317,7 +317,7 @@
|
||||||
// Public and private key pair from https://www.google.com/recaptcha/admin/create
|
// Public and private key pair from https://www.google.com/recaptcha/admin/create
|
||||||
$config['recaptcha_public'] = '6LcXTcUSAAAAAKBxyFWIt2SO8jwx4W7wcSMRoN3f';
|
$config['recaptcha_public'] = '6LcXTcUSAAAAAKBxyFWIt2SO8jwx4W7wcSMRoN3f';
|
||||||
$config['recaptcha_private'] = '6LcXTcUSAAAAAOGVbVdhmEM1_SyRF4xTKe8jbzf_';
|
$config['recaptcha_private'] = '6LcXTcUSAAAAAOGVbVdhmEM1_SyRF4xTKe8jbzf_';
|
||||||
|
|
||||||
// Ability to lock a board for normal users and still allow mods to post. Could also be useful for making an archive board
|
// Ability to lock a board for normal users and still allow mods to post. Could also be useful for making an archive board
|
||||||
$config['board_locked'] = false;
|
$config['board_locked'] = false;
|
||||||
|
|
||||||
|
@ -474,7 +474,7 @@
|
||||||
// ),
|
// ),
|
||||||
// 'action' => 'reject'
|
// 'action' => 'reject'
|
||||||
// );
|
// );
|
||||||
|
|
||||||
// Filter flood prevention conditions ("flood-match") depend on a table which contains a cache of recent
|
// 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
|
// 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
|
// "age" by looking at each filter. However, when determining the maximum age, Tinyboard does not look
|
||||||
|
@ -560,9 +560,9 @@
|
||||||
$config['markup_urls'] = true;
|
$config['markup_urls'] = true;
|
||||||
|
|
||||||
// Optional URL prefix for links (eg. "http://anonym.to/?").
|
// Optional URL prefix for links (eg. "http://anonym.to/?").
|
||||||
$config['link_prefix'] = '';
|
$config['link_prefix'] = '';
|
||||||
$config['url_ads'] = &$config['link_prefix']; // leave alias
|
$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
|
// Allow "uploading" images via URL as well. Users can enter the URL of the image and then Tinyboard will
|
||||||
// download it. Not usually recommended.
|
// download it. Not usually recommended.
|
||||||
$config['allow_upload_by_url'] = false;
|
$config['allow_upload_by_url'] = false;
|
||||||
|
@ -580,7 +580,7 @@
|
||||||
// as they are submitted and changes or censors particular words or phrases.
|
// as they are submitted and changes or censors particular words or phrases.
|
||||||
|
|
||||||
// For a normal string replacement:
|
// For a normal string replacement:
|
||||||
// $config['wordfilters'][] = array('cat', 'dog');
|
// $config['wordfilters'][] = array('cat', 'dog');
|
||||||
// Advanced raplcement (regular expressions):
|
// Advanced raplcement (regular expressions):
|
||||||
// $config['wordfilters'][] = array('/ca[rt]/', 'dog', true); // 'true' means it's a regular expression
|
// $config['wordfilters'][] = array('/ca[rt]/', 'dog', true); // 'true' means it's a regular expression
|
||||||
|
|
||||||
|
@ -632,7 +632,7 @@
|
||||||
// that you will have to disable BOTH country_flags and contry_flags_condensed optimization (at least on a board
|
// that you will have to disable BOTH country_flags and contry_flags_condensed optimization (at least on a board
|
||||||
// where they are enabled).
|
// where they are enabled).
|
||||||
$config['user_flag'] = false;
|
$config['user_flag'] = false;
|
||||||
|
|
||||||
// List of user_flag the user can choose. Flags must be placed in the directory set by $config['uri_flags']
|
// List of user_flag the user can choose. Flags must be placed in the directory set by $config['uri_flags']
|
||||||
$config['user_flags'] = array();
|
$config['user_flags'] = array();
|
||||||
/* example:
|
/* example:
|
||||||
|
@ -649,7 +649,7 @@
|
||||||
|
|
||||||
// Use semantic URLs for threads, like /b/res/12345/daily-programming-thread.html
|
// Use semantic URLs for threads, like /b/res/12345/daily-programming-thread.html
|
||||||
$config['slugify'] = false;
|
$config['slugify'] = false;
|
||||||
|
|
||||||
// Max size for slugs
|
// Max size for slugs
|
||||||
$config['slug_max_size'] = 80;
|
$config['slug_max_size'] = 80;
|
||||||
|
|
||||||
|
@ -723,10 +723,10 @@
|
||||||
// $config['additional_javascript'][] = 'js/file-selector.js';
|
// $config['additional_javascript'][] = 'js/file-selector.js';
|
||||||
$config['max_images'] = 1;
|
$config['max_images'] = 1;
|
||||||
|
|
||||||
// Method to use for determing the max filesize.
|
// 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
|
// "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.
|
// 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
|
// "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.
|
// images. "split" is recommended.
|
||||||
$config['multiimage_method'] = 'split';
|
$config['multiimage_method'] = 'split';
|
||||||
|
|
||||||
|
@ -780,18 +780,18 @@
|
||||||
// Ignored when $config['redraw_image'] is true. This is also used to adjust the Orientation tag when
|
// 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['strip_exif'] is false and $config['convert_manual_orient'] is true.
|
||||||
$config['use_exiftool'] = false;
|
$config['use_exiftool'] = false;
|
||||||
|
|
||||||
// Redraw the image to strip any excess data (commonly ZIP archives) WARNING: This might strip the
|
// 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
|
// animation of GIFs, depending on the chosen thumbnailing method. It also requires recompressing
|
||||||
// the image, so more processing power is required.
|
// the image, so more processing power is required.
|
||||||
$config['redraw_image'] = false;
|
$config['redraw_image'] = false;
|
||||||
|
|
||||||
// Automatically correct the orientation of JPEG files using -auto-orient in `convert`. This only works
|
// 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
|
// 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 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.)
|
// this value doesn't matter as $config['redraw_image'] attempts to correct orientation too.)
|
||||||
$config['convert_auto_orient'] = false;
|
$config['convert_auto_orient'] = false;
|
||||||
|
|
||||||
// Is your version of ImageMagick or GraphicsMagick old? Older versions may not include the -auto-orient
|
// 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;
|
// switch. This is a manual replacement for that switch. This is independent from the above switch;
|
||||||
// -auto-orrient is applied when thumbnailing too.
|
// -auto-orrient is applied when thumbnailing too.
|
||||||
|
@ -873,7 +873,7 @@
|
||||||
$config['image_identification_google'] = true;
|
$config['image_identification_google'] = true;
|
||||||
// Anime/manga search engine.
|
// Anime/manga search engine.
|
||||||
$config['image_identification_iqdb'] = false;
|
$config['image_identification_iqdb'] = false;
|
||||||
|
|
||||||
// Set this to true if you're using a BSD
|
// Set this to true if you're using a BSD
|
||||||
$config['bsd_md5'] = false;
|
$config['bsd_md5'] = false;
|
||||||
|
|
||||||
|
@ -1071,7 +1071,7 @@
|
||||||
// $config['additional_javascript'][] = 'js/auto-reload.js';
|
// $config['additional_javascript'][] = 'js/auto-reload.js';
|
||||||
// $config['additional_javascript'][] = 'js/post-hover.js';
|
// $config['additional_javascript'][] = 'js/post-hover.js';
|
||||||
// $config['additional_javascript'][] = 'js/style-select.js';
|
// $config['additional_javascript'][] = 'js/style-select.js';
|
||||||
|
|
||||||
// Defer some additional Javascript for faster initial page load times. Defering may break some scripts.
|
// Defer some additional Javascript for faster initial page load times. Defering may break some scripts.
|
||||||
// To enable, set this to true and add the scripts you want to defer to $config['additional_javascript_defer'].
|
// To enable, set this to true and add the scripts you want to defer to $config['additional_javascript_defer'].
|
||||||
// If using $config['additional_javascript_compile'], this will be ignored and no files will be deferred.
|
// If using $config['additional_javascript_compile'], this will be ignored and no files will be deferred.
|
||||||
|
@ -1294,8 +1294,8 @@
|
||||||
|
|
||||||
// Website favicon.
|
// Website favicon.
|
||||||
// $config['url_favicon'] = '/favicon.gif';
|
// $config['url_favicon'] = '/favicon.gif';
|
||||||
|
|
||||||
// Website Apple touch icon.
|
// Website Apple touch icon.
|
||||||
// $config['url_appletouchicon'] = '/favicon.gif';
|
// $config['url_appletouchicon'] = '/favicon.gif';
|
||||||
|
|
||||||
// Try not to build pages when we shouldn't have to.
|
// Try not to build pages when we shouldn't have to.
|
||||||
|
@ -1554,7 +1554,7 @@
|
||||||
$config['mod']['sticky'] = MOD;
|
$config['mod']['sticky'] = MOD;
|
||||||
// Cycle a thread
|
// Cycle a thread
|
||||||
$config['mod']['cycle'] = MOD;
|
$config['mod']['cycle'] = MOD;
|
||||||
$config['cycle_limit'] = &$config['reply_limit'];
|
$config['cycle_limit'] = 250;
|
||||||
// Lock a thread
|
// Lock a thread
|
||||||
$config['mod']['lock'] = MOD;
|
$config['mod']['lock'] = MOD;
|
||||||
// Post in a locked thread
|
// Post in a locked thread
|
||||||
|
@ -1684,21 +1684,21 @@
|
||||||
'convert_args',
|
'convert_args',
|
||||||
'db>password',
|
'db>password',
|
||||||
);
|
);
|
||||||
|
|
||||||
$config['mod']['config'][JANITOR] = array(
|
$config['mod']['config'][JANITOR] = array(
|
||||||
'!', // Allow editing ONLY the variables listed (in this case, nothing).
|
'!', // Allow editing ONLY the variables listed (in this case, nothing).
|
||||||
);
|
);
|
||||||
|
|
||||||
$config['mod']['config'][MOD] = array(
|
$config['mod']['config'][MOD] = array(
|
||||||
'!', // Allow editing ONLY the variables listed (plus that in $config['mod']['config'][JANITOR]).
|
'!', // Allow editing ONLY the variables listed (plus that in $config['mod']['config'][JANITOR]).
|
||||||
'global_message',
|
'global_message',
|
||||||
);
|
);
|
||||||
|
|
||||||
// Example: Disallow ADMIN from editing (and viewing) $config['db']['password'].
|
// Example: Disallow ADMIN from editing (and viewing) $config['db']['password'].
|
||||||
// $config['mod']['config'][ADMIN] = array(
|
// $config['mod']['config'][ADMIN] = array(
|
||||||
// 'db>password',
|
// 'db>password',
|
||||||
// );
|
// );
|
||||||
|
|
||||||
// Example: Allow ADMIN to edit anything other than $config['db']
|
// Example: Allow ADMIN to edit anything other than $config['db']
|
||||||
// (and $config['mod']['config'][DISABLED]).
|
// (and $config['mod']['config'][DISABLED]).
|
||||||
// $config['mod']['config'][ADMIN] = array(
|
// $config['mod']['config'][ADMIN] = array(
|
||||||
|
@ -1738,7 +1738,7 @@
|
||||||
|
|
||||||
// Limit of search results
|
// Limit of search results
|
||||||
$config['search']['search_limit'] = 100;
|
$config['search']['search_limit'] = 100;
|
||||||
|
|
||||||
// Boards for searching
|
// Boards for searching
|
||||||
//$config['search']['boards'] = array('a', 'b', 'c', 'd', 'e');
|
//$config['search']['boards'] = array('a', 'b', 'c', 'd', 'e');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue