bizou/config.php

19 lines
861 B
PHP

<?php
## WARNING ##
# ALWAYS make sure your `DATA_DIR` and `DATA_URL` (resp. IMAGES_) are
# consistent. If you are using relative paths, it will be enforced by default.
# If you are using absolute paths (ie. `MEDIA_BASE_DIR` is absolute), you will
# have to make sure your web server serves `DATA_DIR` at `DATA_URL` (resp.
# IMAGES_).
#############
define('THUMB_SIZE', 100);
define('JPEG_QUALITY', '80');
define('MEDIA_BASE_DIR', ''); # Useful whenever those should be absolute locations
define('DATA_DIR', MEDIA_BASE_DIR . 'data');
define('DATA_URL', DATA_DIR); # Used in urls, but not in filesystem paths
define('IMAGES_DIR', MEDIA_BASE_DIR . 'images');
define('IMAGES_URL', IMAGES_DIR); # Used in urls, but not in filesystem paths
define('DATA_UMASK', 0002); # 0002: allow group to write for files created in data dir. change to 0022 to be more strict.
?>