1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- define('LYCHEE', substr(__DIR__, 0, -3));
- define('LYCHEE_STATUS_NOCONFIG', 0);
- define('LYCHEE_STATUS_LOGGEDOUT', 1);
- define('LYCHEE_STATUS_LOGGEDIN', 2);
- define('LYCHEE_DATA', LYCHEE . 'data/');
- define('LYCHEE_SRC', LYCHEE . 'src/');
- define('LYCHEE_UPLOADS', LYCHEE . 'uploads/');
- define('LYCHEE_UPLOADS_BIG', LYCHEE_UPLOADS . 'big/');
- define('LYCHEE_UPLOADS_MEDIUM', LYCHEE_UPLOADS . 'medium/');
- define('LYCHEE_UPLOADS_THUMB', LYCHEE_UPLOADS . 'thumb/');
- define('LYCHEE_UPLOADS_IMPORT', LYCHEE_UPLOADS . 'import/');
- define('LYCHEE_PLUGINS', LYCHEE . 'plugins/');
- define('LYCHEE_CONFIG_FILE', LYCHEE_DATA . 'config.php');
- define('LYCHEE_URL_UPLOADS_BIG', 'uploads/big/');
- define('LYCHEE_URL_UPLOADS_MEDIUM', 'uploads/medium/');
- define('LYCHEE_URL_UPLOADS_THUMB', 'uploads/thumb/');
- function defineTablePrefix($dbTablePrefix = '') {
-
-
-
-
-
- if ($dbTablePrefix!=='') $dbTablePrefix .= '_';
-
- define('LYCHEE_TABLE_ALBUMS', $dbTablePrefix . 'lychee_albums');
- define('LYCHEE_TABLE_LOG', $dbTablePrefix . 'lychee_log');
- define('LYCHEE_TABLE_PHOTOS', $dbTablePrefix . 'lychee_photos');
- define('LYCHEE_TABLE_SETTINGS', $dbTablePrefix . 'lychee_settings');
- }
- ?>
|