00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 if (!defined('ROOT')) {
00034 define('ROOT', '../');
00035 }
00036 if (!defined('WEBROOT_DIR')) {
00037 define('WEBROOT_DIR', 'webroot');
00038 }
00039
00040
00041
00042 define('CAKE', CORE_PATH.'cake'.DS);
00043
00044
00045
00046 if (!defined('APP')) {
00047 define('APP', ROOT.DS.APP_DIR.DS);
00048 }
00049
00050
00051
00052 define('MODELS', APP.'models'.DS);
00053
00054
00055
00056 define('BEHAVIORS', MODELS.'behaviors'.DS);
00057
00058
00059
00060 define('CONTROLLERS', APP.'controllers'.DS);
00061
00062
00063
00064 define('COMPONENTS', CONTROLLERS.'components'.DS);
00065
00066
00067
00068 define('VIEWS', APP.'views'.DS);
00069
00070
00071
00072 define('HELPERS', VIEWS.'helpers'.DS);
00073
00074
00075
00076 define('LAYOUTS', VIEWS.'layouts'.DS);
00077
00078
00079
00080
00081
00082 define('ELEMENTS', VIEWS.'elements'.DS);
00083
00084
00085
00086 if (!defined('CONFIGS')) {
00087 define('CONFIGS', APP.'config'.DS);
00088 }
00089
00090
00091
00092 define('INFLECTIONS', CAKE.'config'.DS.'inflections'.DS);
00093
00094
00095
00096 define('LIBS', CAKE.'libs'.DS);
00097
00098
00099
00100 define('CSS', WWW_ROOT.'css'.DS);
00101
00102
00103
00104 define('JS', WWW_ROOT.'js'.DS);
00105
00106
00107
00108 define('IMAGES', WWW_ROOT.'img'.DS);
00109
00110
00111
00112 define('CONSOLE_LIBS', CAKE.'console'.DS.'libs'.DS);
00113
00114
00115
00116 if (!defined('TESTS')) {
00117 define('TESTS', APP.'tests'.DS);
00118 }
00119
00120
00121
00122 if (!defined('CAKE_TESTS')) {
00123 define('CAKE_TESTS', CAKE.'tests'.DS);
00124 }
00125
00126
00127
00128 define('CAKE_TESTS_LIB', CAKE_TESTS.'lib'.DS);
00129
00130
00131
00132
00133 define('CONTROLLER_TESTS', TESTS.'cases'.DS.'controllers'.DS);
00134
00135
00136
00137 define('COMPONENT_TESTS', TESTS.'cases'.DS.'components'.DS);
00138
00139
00140
00141 define('HELPER_TESTS', TESTS.'cases'.DS.'views'.DS.'helpers'.DS);
00142
00143
00144
00145 define('MODEL_TESTS', TESTS.'cases'.DS.'models'.DS);
00146
00147
00148
00149 define('LIB_TESTS', CAKE_TESTS.'cases'.DS.'lib'.DS);
00150
00151
00152
00153 if (!defined('TMP')) {
00154 define('TMP', APP.'tmp'.DS);
00155 }
00156
00157
00158
00159 define('LOGS', TMP.'logs'.DS);
00160
00161
00162
00163 define('CACHE', TMP.'cache'.DS);
00164
00165
00166
00167 if (!defined('VENDORS')) {
00168 define('VENDORS', CAKE_CORE_INCLUDE_PATH.DS.'vendors'.DS);
00169 }
00170
00171
00172
00173
00174
00175 define('PEAR', VENDORS.'Pear'.DS);
00176
00177
00178
00179 if (!defined('FULL_BASE_URL')) {
00180 $s = null;
00181 if (env('HTTPS')) {
00182 $s ='s';
00183 }
00184
00185 $httpHost = env('HTTP_HOST');
00186
00187 if (isset($httpHost)) {
00188 define('FULL_BASE_URL', 'http'.$s.':
00189 }
00190 unset($httpHost, $s);
00191 }
00192
00193
00194
00195 if (!defined('IMAGES_URL')) {
00196 define('IMAGES_URL', 'img/');
00197 }
00198
00199
00200
00201 if (!defined('CSS_URL')) {
00202 define('CSS_URL', 'css/');
00203 }
00204
00205
00206
00207 if (!defined('JS_URL')) {
00208 define('JS_URL', 'js/');
00209 }
00210 ?>