From b7e725bf3e0394193dee9373c18dec7f727ea6ed Mon Sep 17 00:00:00 2001
From: Marcin Łabanowski
Date: Mon, 24 Dec 2012 05:34:06 +0100
Subject: Support for resizing gifs using gifsicle with resizing the rest using
ImageMagick
---
inc/config.php | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
(limited to 'inc/config.php')
diff --git a/inc/config.php b/inc/config.php
index 36518028..863b9043 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -413,11 +413,16 @@
$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.
+ // - '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.
+ // - 'convert+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 gifs
+ // have less artifacts than if resized with ImageMagick.
+
$config['thumb_method'] = 'gd';
// Strip EXIF metadata from JPEG files
--
cgit v1.3
From 44d3b12cefce4e6e2e5c6e367e8443790f38bf57 Mon Sep 17 00:00:00 2001
From: asiekierka
Date: Sat, 5 Jan 2013 13:45:21 +0100
Subject: Embedding: added vocaroo support
---
inc/config.php | 4 ++++
1 file changed, 4 insertions(+)
(limited to 'inc/config.php')
diff --git a/inc/config.php b/inc/config.php
index 863b9043..e2cd79f1 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -663,6 +663,10 @@
array(
'/^https?:\/\/video\.google\.com\/videoplay\?docid=(\d+)([](.+)?)?$/i',
''
+ ),
+ array(
+ '/^https?:\/\/(\w+\.)?vocaroo\.com\/i\/([a-zA-Z0-9]{2,15})$/i',
+ ''
)
);
--
cgit v1.3
From 51efd817c8e82a498dbdd603d1194a0dd43f7192 Mon Sep 17 00:00:00 2001
From: szalej
Date: Wed, 16 Jan 2013 11:32:15 +0100
Subject: Update inc/config.php
hide referrer option
---
inc/config.php | 5 +++++
1 file changed, 5 insertions(+)
(limited to 'inc/config.php')
diff --git a/inc/config.php b/inc/config.php
index e2cd79f1..cf55d149 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -335,6 +335,11 @@
$config['auto_unicode'] = true;
// Whether to turn URLs into functional links
$config['markup_urls'] = true;
+ $config['url_ads'] = '';
+ // Use it if you want to add something before URL
+ //for example hide referrer 'http://www.nullrefer.com/?' 'http://anonym.to/?'
+ //or add some sort of ads
+
// Wordfilters are used to automatically replace certain words/phrases with something else.
// For a normal string replacement:
--
cgit v1.3
From 18516ff8289cc4e0c147f185d29824643b1f960d Mon Sep 17 00:00:00 2001
From: Michael Foster
Date: Wed, 31 Jul 2013 03:43:01 -0400
Subject: Rename $config['url_ads'] to $config['link_prefix']
---
inc/config.php | 6 ++----
inc/functions.php | 2 +-
2 files changed, 3 insertions(+), 5 deletions(-)
(limited to 'inc/config.php')
diff --git a/inc/config.php b/inc/config.php
index cf55d149..35b31b86 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -335,10 +335,8 @@
$config['auto_unicode'] = true;
// Whether to turn URLs into functional links
$config['markup_urls'] = true;
- $config['url_ads'] = '';
- // Use it if you want to add something before URL
- //for example hide referrer 'http://www.nullrefer.com/?' 'http://anonym.to/?'
- //or add some sort of ads
+ // Optional URL prefix for links (eg. "http://anonym.to/?")
+ $config['link_prefix'] = '';
// Wordfilters are used to automatically replace certain words/phrases with something else.
diff --git a/inc/functions.php b/inc/functions.php
index 5d3a5757..a261e350 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -1385,7 +1385,7 @@ function markup_url($matches) {
$markup_urls[] = $url;
- return '' . $url . '' . $after;
+ return '' . $url . '' . $after;
}
function unicodify($body) {
--
cgit v1.3
From 7c8bbe8527be504804893672cc26430d11c272f2 Mon Sep 17 00:00:00 2001
From: Marcin Łabanowski
Date: Sun, 23 Dec 2012 04:38:20 +0100
Subject: Implement image identification buttons using regex.info/exif, google
images and tineye
---
inc/config.php | 8 ++++++++
templates/post_reply.html | 11 +++++++++++
templates/post_thread.html | 10 ++++++++++
3 files changed, 29 insertions(+)
(limited to 'inc/config.php')
diff --git a/inc/config.php b/inc/config.php
index 35b31b86..55c49045 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -485,6 +485,9 @@
$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
@@ -753,6 +756,11 @@
$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.
diff --git a/templates/post_reply.html b/templates/post_reply.html
index c5735a0e..5f7c2619 100644
--- a/templates/post_reply.html
+++ b/templates/post_reply.html
@@ -71,6 +71,17 @@
{{ post.filename|bidi_cleanup }}
{% endif %}
{% endif %}
+ {% if post.thumb != 'file' and config.image_identification %}
+ ,
+
+ {% if post.file|extension == 'jpg' %}
+ e
+ {% endif %}
+ g
+ t
+
+ {% endif %}
+
)