From: Marc MAURICE Date: Sun, 12 Dec 2010 21:49:01 +0000 (+0100) Subject: Added a config.php file X-Git-Tag: v1.2~14 X-Git-Url: http://positon.org/gitweb/?p=bizou.git;a=commitdiff_plain;h=cbbc2407ba4c951c77c6fbb3fa39efeee1266c70 Added a config.php file --- diff --git a/config.php b/config.php new file mode 100644 index 0000000..703626c --- /dev/null +++ b/config.php @@ -0,0 +1,5 @@ + diff --git a/index.php b/index.php index 03989d6..c20a4dc 100644 --- a/index.php +++ b/index.php @@ -17,10 +17,7 @@ along with this program. If not, see . */ -define('THUMB_SIZE', 100); -define('DATA_DIR', 'data'); -define('IMAGES_DIR', 'images'); -define('USE_VIEWER', true); # if set to false, you can delete view.php +require 'config.php'; function getPreview($imgFile, $maxSize = THUMB_SIZE) {