diff options
Diffstat (limited to 'inc/config.php')
| -rw-r--r-- | inc/config.php | 68 |
1 files changed, 40 insertions, 28 deletions
diff --git a/inc/config.php b/inc/config.php index 56f8ba4f..26346072 100644 --- a/inc/config.php +++ b/inc/config.php @@ -270,7 +270,6 @@ 'recaptcha_challenge_field', 'recaptcha_response_field', 'spoiler', - 'quick-reply', 'page', 'file_url', 'json_response', @@ -451,6 +450,8 @@ // 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). @@ -607,6 +608,17 @@ * 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; @@ -628,22 +640,22 @@ /* * 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. + * '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 + * '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. + * '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. + * '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. + * 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'; @@ -693,7 +705,7 @@ // 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)); + // return sprintf("%s", time() . substr(microtime(), 2, 3)); // }; // Thumbnail to use for the non-image file uploads. @@ -730,8 +742,12 @@ // Display the file's original filename. $config['show_filename'] = true; - // Display image identification links using regex.info/exif, TinEye and Google Images. + // Display image identification links using ImgOps, regex.info/exif and Google Images. $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; // Number of posts in a "View Last X Posts" page $config['noko50_count'] = 50; @@ -757,17 +773,13 @@ // $config['board_path'] if you wish to change the URL. $config['board_abbreviation'] = '/%s/'; - // The default name (ie. Anonymous). + // 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; - // Attention Whoring Bar - // REMEMBER TO CHMOD attentionbar.txt PROPERLY - // Oh, and add jQuery in additional_javascript. - $config['attention_bar'] = false; - // Allow unfiltered HTML in board subtitle. This is useful for placing icons and links. $config['allow_subtitle_html'] = false; @@ -928,9 +940,6 @@ // Minify Javascript using http://code.google.com/p/minify/. $config['minify_js'] = false; - // Allows js/quick-reply-old.js to work. This could make your imageboard more vulnerable to flood attacks. - $config['quick_reply'] = false; - /* * ==================== * Video embedding @@ -986,6 +995,7 @@ $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!'); @@ -1399,6 +1409,8 @@ $config['mod']['view_ban_appeals'] = MOD; // Accept and deny ban appeals $config['mod']['ban_appeals'] = MOD; + // View the recent posts page + $config['mod']['recent'] = MOD; // Config editor permissions $config['mod']['config'] = array(); @@ -1447,16 +1459,16 @@ $config['search']['enable'] = false; // Maximal number of queries per IP address per minutes - $config['search']['queries_per_minutes'] = Array(15, 2); + $config['search']['queries_per_minutes'] = Array(15, 2); // Global maximal number of queries per minutes - $config['search']['queries_per_minutes_all'] = Array(50, 2); + $config['search']['queries_per_minutes_all'] = Array(50, 2); // Limit of search results - $config['search']['search_limit'] = 100; - + $config['search']['search_limit'] = 100; + // Boards for searching - //$config['search']['boards'] = array('a', 'b', 'c', 'd', 'e'); + //$config['search']['boards'] = array('a', 'b', 'c', 'd', 'e'); /* * ==================== |
