-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.php
42 lines (36 loc) · 1.34 KB
/
constants.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
//Software
define('PROGRAM_NAME','EZFramework');
define('PROGRAM_TITLE','EZ Program title');
define('VERSION','1.0');
define('AUTHOR','Antoine Leprevost');
define('EMAIL_BASE', '@antlab.fr');
define('PROTOCOL', isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 'https' : 'http');
define('BASE_URL', PROTOCOL . ':https://' . $_SERVER['SERVER_NAME'] . '/' . 'EZFramework');
//Folders
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', dirname(__FILE__));
define('APP_FOLDER', ROOT . DS . 'app');
define('CORE_FOLDER', ROOT . DS . 'core');
define('CLASS_FOLDER', APP_FOLDER . DS . 'class');
define('CONTROLLER_FOLDER', APP_FOLDER . DS . 'controller');
define('MODEL_FOLDER', APP_FOLDER . DS . 'model');
define('MIDDLEWARE_FOLDER', APP_FOLDER . DS . 'middleware');
define('VIEW_FOLDER', APP_FOLDER . DS. 'view');
define('ASSETS_FOLDER', APP_FOLDER . DS . 'assets');
define('TEMPLATE_FOLDER', VIEW_FOLDER . DS . 'template');
//Extensions
class Extension {
/**
* (array) Supported php file exetensions
*/
static $supportedPhpExtensions = array('.class.php', '.php');
}
//Database constants
class DBConstant {
const DBHOST = 'localhost';
const DBNAME = '';
const DBUSER = '';
const DBPASSWD = '';
}
?>