Added a config.php file
This commit is contained in:
parent
4c7e1533e4
commit
cbbc2407ba
2 changed files with 6 additions and 4 deletions
5
config.php
Normal file
5
config.php
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?php
|
||||
define('THUMB_SIZE', 100);
|
||||
define('DATA_DIR', 'data');
|
||||
define('IMAGES_DIR', 'images');
|
||||
?>
|
|
@ -17,10 +17,7 @@
|
|||
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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue