Added a config.php file

This commit is contained in:
Marc MAURICE 2010-12-12 22:49:01 +01:00
parent 4c7e1533e4
commit cbbc2407ba
2 changed files with 6 additions and 4 deletions

5
config.php Normal file
View file

@ -0,0 +1,5 @@
<?php
define('THUMB_SIZE', 100);
define('DATA_DIR', 'data');
define('IMAGES_DIR', 'images');
?>

View file

@ -17,10 +17,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
define('THUMB_SIZE', 100); require 'config.php';
define('DATA_DIR', 'data');
define('IMAGES_DIR', 'images');
define('USE_VIEWER', true); # if set to false, you can delete view.php
function getPreview($imgFile, $maxSize = THUMB_SIZE) function getPreview($imgFile, $maxSize = THUMB_SIZE)
{ {