|
|
@ -476,8 +476,8 @@ |
|
|
|
|
|
|
|
// 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_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; |
|
|
|
|
|
|
|
/* |
|
|
@ -562,7 +562,7 @@ |
|
|
|
// 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'; |
|
|
|
// $config['image_deleted'] = 'static/deleted.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. |
|
|
@ -988,6 +988,10 @@ |
|
|
|
// persistent spammers and ban evaders. Again, a little more database load. |
|
|
|
$config['ban_cidr'] = true; |
|
|
|
|
|
|
|
// How often (minimum) to purge the ban list of expired bans (which have been seen). Only works when |
|
|
|
// $config['cache'] is enabled and working. |
|
|
|
$config['purge_bans'] = 60 * 60 * 12; // 12 hours |
|
|
|
|
|
|
|
// Do DNS lookups on IP addresses to get their hostname for the moderator IP pages (?/IP/x.x.x.x). |
|
|
|
$config['mod']['dns_lookup'] = true; |
|
|
|
// How many recent posts, per board, to show in ?/IP/x.x.x.x. |
|
|
@ -1188,12 +1192,47 @@ |
|
|
|
$config['mod']['news_custom'] = ADMIN; |
|
|
|
// Delete news entries |
|
|
|
$config['mod']['news_delete'] = ADMIN; |
|
|
|
|
|
|
|
// Execute un-filtered SQL queries on the database (?/debug/sql) |
|
|
|
$config['mod']['debug_sql'] = DISABLED; |
|
|
|
// Edit the current configuration (via web interface) |
|
|
|
$config['mod']['edit_config'] = ADMIN; |
|
|
|
|
|
|
|
// Execute un-filtered SQL queries on the database (?/debug/sql) |
|
|
|
$config['mod']['debug_sql'] = DISABLED; |
|
|
|
// Config editor permissions |
|
|
|
$config['mod']['config'] = array( |
|
|
|
JANITOR => false, |
|
|
|
MOD => false, |
|
|
|
ADMIN => false, |
|
|
|
DISABLED => false, |
|
|
|
); |
|
|
|
|
|
|
|
// Disable the following configuration variables from being changed via ?/config. The following default |
|
|
|
// banned variables are considered somewhat dangerous. |
|
|
|
$config['mod']['config'][DISABLED] = array( |
|
|
|
'mod>config', |
|
|
|
'mod>config_editor_php', |
|
|
|
'convert_args', |
|
|
|
'db>password', |
|
|
|
); |
|
|
|
|
|
|
|
$config['mod']['config'][JANITOR] = array( |
|
|
|
'!', // Allow editing ONLY the variables listed (in this case, nothing). |
|
|
|
); |
|
|
|
|
|
|
|
$config['mod']['config'][MOD] = array( |
|
|
|
'!', // Allow editing ONLY the variables listed (plus that in $config['mod']['config'][JANITOR]). |
|
|
|
'global_message', |
|
|
|
); |
|
|
|
|
|
|
|
// Example: Disallow ADMIN from editing (and viewing) $config['db']['password']. |
|
|
|
// $config['mod']['config'][ADMIN] = array( |
|
|
|
// 'db>password', |
|
|
|
// ); |
|
|
|
|
|
|
|
// Example: Allow ADMIN to edit anything other than $config['db'] |
|
|
|
// (and $config['mod']['config'][DISABLED]). |
|
|
|
// $config['mod']['config'][ADMIN] = array( |
|
|
|
// 'db', |
|
|
|
// ); |
|
|
|
|
|
|
|
/* |
|
|
|
* ==================== |
|
|
|