-
Notifications
You must be signed in to change notification settings - Fork 1
/
sysConfig.php
executable file
·68 lines (56 loc) · 2.34 KB
/
sysConfig.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
/*
* System Configuration File
*
* This file contains the main constants and variables ( as well some functions )
* to make the system work all right and plug'n'play.
*/
##########################################
# URL
##########################################
/**
* Base URL variable (auto-detect)
* @var String
*/
@$baseUrl = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http");
@$baseUrl .= "://".$_SERVER['HTTP_HOST'];
@$baseUrl .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE)
{
$basePath = realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR;
}
define('SYS_BASE_URL',$baseUrl,true);
##########################################
# PATH
##########################################
define('DS',DIRECTORY_SEPARATOR,true);
define('SYS_BASE_PATH',$basePath,true);
define('SYS_APPLICATION_PATH', SYS_BASE_PATH . DS . 'system');
define('SYS_MODEL_PATH',SYS_APPLICATION_PATH . DS . 'model' . DS,true);
define('SYS_VIEW_PATH',SYS_APPLICATION_PATH . DS . 'views' . DS,true);
define('SYS_CONTROLLER_PATH',SYS_APPLICATION_PATH . DS . 'controllers' . DS,true);
define('SYS_SPICES_PATH', SYS_APPLICATION_PATH . DS . 'config' . DS . 'spices' . DS);
define('SYS_CSS_PATH',SYS_BASE_PATH . DS . 'public' . DS . 'css' ,true);
define('SYS_IMAGE_PATH',SYS_BASE_PATH . DS . 'public' . DS . 'images',true);
define('SYS_JAVASCRIPT_PATH',SYS_BASE_PATH . DS . 'public' . DS . 'js',true);
define('SYS_FILE_PATH',SYS_BASE_PATH . DS . 'public' . DS . 'files',true);
##########################################
# EXTENSIONS
##########################################
define('SYS_MODEL_EXT', '.php',true);
define('SYS_VIEW_EXT', 'php',true);
define('SYS_CONTROLLER_EXT', 'php',true);
define('SYS_SPICES_EXT','spices.php',true);
################################
# Infos
################################
define('PHPBURN_SESSIONNAME', md5(SYS_BASE_PATH), true);
define('PHPBURN_VERSION','0.9b',true);
define('PHPBURN_WEBSITE','http://www.phpburn.com/',true);
define('PHPBURN_REPOSITORY_TYPE','git',true);
define('PHPBURN_REPOSITORY','http://github.com/klederson/phpburn/tree/master',true);
##########################################
# EXTRAS
##########################################
define('SYS_USE_DATEFORMAT',"%a, %b : %H:%M:%S",true); //To see more read about srftime
?>