File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99namespace PH7 \Doc ;
1010defined ('PH7 ' ) or exit ('Restricted access ' );
1111
12+ #################### VARIABLES ####################
13+
14+
15+ ########## URL ##########
16+
1217$ sHttp = (isset ($ _SERVER ['HTTPS ' ]) && strtolower ($ _SERVER ['HTTPS ' ]=='on ' )) ? 'https:// ' : 'http:// ' ;
1318$ sPhp_self = dirname (htmlspecialchars ($ _SERVER ['PHP_SELF ' ]));
1419
15- #################### URL ####################
20+ #################### CONSTANTS ####################
21+
22+
23+ ########## URL ##########
1624
1725define ('SELF ' , (substr ($ sPhp_self ,-1 ) !== '/ ' ) ? $ sPhp_self . '/ ' : $ sPhp_self );
1826define ('RELATIVE ' , SELF );
2331define ('ROOT_PATH ' , dirname (__DIR__ ) . '/ ' );
2432define ('DATA_PATH ' , ROOT_PATH . 'data/ ' );
2533
26- #################### PATH ########## ##########
34+ ########## PATH ##########
2735
2836define ('ROOT_URL ' , PROT_URL . $ _SERVER ['HTTP_HOST ' ] . SELF );
2937define ('STATIC_URL ' , RELATIVE . 'static/ ' );
3038
31- #################### INFORMATION ########## ##########
39+ ########## INFORMATION ##########
3240
3341define ('SITE_NAME ' , 'pH ' );
3442define ('SITE_SLOGAN ' , 'Documentation ' );
You can’t perform that action at this time.
0 commit comments