Jeff PHP framework
0.99
Modular, extensible, OOP, MVC, lightweight php framework designed to ease the programmers in the development of web applications.
|
00001 <?php 00015 define('ABS_ADMIN', ABS_ROOT.DS.'admin'); 00016 00020 define('ABS_UPLOAD', ABS_ROOT.DS.'upload'); 00021 00025 define('ABS_CACHE', ABS_ROOT.DS.'cache'); 00026 00030 define('ABS_CORE', ABS_ROOT.DS.'core'); 00031 00037 define('ABS_MVC', ABS_CORE.DS.'mvc'); 00038 00042 define('ABS_LIB', ABS_ROOT.DS.'lib'); 00043 00047 define('ABS_PHPLIB', ABS_LIB.DS.'php'); 00048 00052 define('ABS_THEMES', ABS_ROOT.DS.'themes'); 00053 00057 define('ABS_MDL', ABS_ROOT.DS.'modules'); 00058 00062 define('ABS_DB', ABS_CORE.DS.'db'); 00063 00067 define('ABS_THEME', ABS_CORE.DS.'theme'); 00068 00072 define('ABS_TEMPLATE', ABS_CORE.DS.'template'); 00073 00077 define('ABS_PLUGINS', ABS_ROOT.DS.'plugins'); 00078 00079 if(strrpos(php_uname(), "Windows")!==false) { 00080 00081 $os = 'win'; 00082 $sdocroot = preg_replace("#/#", "\\", $_SERVER['DOCUMENT_ROOT']); 00083 $root = preg_replace("#".preg_quote($sdocroot)."#", "", ABS_ROOT); 00084 $root_const = $root[0] != '/' ? '/'.$root : $root; 00085 } 00086 else { 00087 if(strrpos(php_uname(), "Darwin")!==false) { 00088 $os = 'mac'; 00089 } 00090 elseif(strrpos(php_uname(), "Linux")!==false) { 00091 $os = 'linux'; 00092 } 00093 else { 00094 $os = 'undefined'; 00095 } 00096 00097 $root_const = preg_replace("#".$_SERVER['DOCUMENT_ROOT']."#", "", ABS_ROOT); 00098 } 00099 00103 define('OS', $os); 00104 00108 define('ROOT', $root_const); 00109 00113 define('ROOT_ADMIN', ROOT.'/admin'); 00114 00118 define('REL_JSLIB', ROOT.'/lib/js'); 00119 00123 define('REL_CSS', ROOT.'/css'); 00124 00128 define('REL_UPLOAD', ROOT.'/upload'); 00129 00130 ?>