Added a config.php file
authorMarc MAURICE <dooblempub@positon.org>
Sun, 12 Dec 2010 21:49:01 +0000 (22:49 +0100)
committerMarc MAURICE <dooblempub@positon.org>
Sun, 12 Dec 2010 21:49:01 +0000 (22:49 +0100)
config.php [new file with mode: 0644]
index.php

diff --git a/config.php b/config.php
new file mode 100644 (file)
index 0000000..703626c
--- /dev/null
@@ -0,0 +1,5 @@
+<?php
+define('THUMB_SIZE', 100);
+define('DATA_DIR', 'data');
+define('IMAGES_DIR', 'images');
+?>
index 03989d6..c20a4dc 100644 (file)
--- a/index.php
+++ b/index.php
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-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)
 {