summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorMarcin Łabanowski <marcin@6irc.net>2012-12-23 04:38:20 +0100
committerMarcin Łabanowski <marcin@6irc.net>2012-12-23 04:38:20 +0100
commit3dae5a8bc7093ee642f4c10b77f7c16009536171 (patch)
tree7c831a531059b64c17652037b66f6a2ed561f274 /inc
parent9a33867e6579c955d71e4e62923aa4faf27e450d (diff)
Implement image identification buttons using regex.info/exif, google images and tineye
Diffstat (limited to 'inc')
-rw-r--r--inc/config.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/inc/config.php b/inc/config.php
index c700d232..49cb137b 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -467,6 +467,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
@@ -715,6 +718,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.