From cbbc2407ba4c951c77c6fbb3fa39efeee1266c70 Mon Sep 17 00:00:00 2001 From: Marc MAURICE Date: Sun, 12 Dec 2010 22:49:01 +0100 Subject: [PATCH] Added a config.php file --- config.php | 5 +++++ index.php | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 config.php 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) { -- 1.7.10.4