config.php
26 lines
| 1 | <?php |
| 2 | |
| 3 | //Paths |
| 4 | define('SG_PUBLIC_PATH', realpath(dirname(__FILE__).'/../').'/'); |
| 5 | define('SG_PUBLIC_CONFIG_PATH', SG_PUBLIC_PATH.'config/'); |
| 6 | define('SG_PUBLIC_INCLUDE_PATH', SG_PUBLIC_PATH.'include/'); |
| 7 | define('SG_PUBLIC_MODALS_PATH', SG_PUBLIC_PATH.'include/modals/'); |
| 8 | define('SG_PUBLIC_AJAX_PATH', SG_PUBLIC_PATH.'ajax/'); |
| 9 | |
| 10 | define('SG_EXTENSIONS_FOLDER_PATH', dirname(SG_PUBLIC_PATH)."/extensions/"); |
| 11 | |
| 12 | //Defines |
| 13 | define('SG_BACKUP_TYPE_FULL', 1); |
| 14 | define('SG_BACKUP_TYPE_CUSTOM', 2); |
| 15 | define('SG_BACKUP_MAX_FILE_UPLOAD_SIZE', 100); // in megabytes |
| 16 | |
| 17 | @ini_set('upload_max_filesize',SG_BACKUP_MAX_FILE_UPLOAD_SIZE.'M'); |
| 18 | @ini_set('post_max_size',SG_BACKUP_MAX_FILE_UPLOAD_SIZE.'M'); |
| 19 | |
| 20 | //Review popup states |
| 21 | define('SG_SHOW_REVIEW_POPUP', 1); |
| 22 | define('SG_NEVER_SHOW_REVIEW_POPUP', 2); |
| 23 | |
| 24 | //Ajax frequency |
| 25 | define('SG_AJAX_DEFAULT_REQUEST_FREQUENCY', '2000'); //in miliseconds |
| 26 |