30 </script><p><span style="color:black;">You been f***ed by Enano | valid XHTML 1.1</span></p></body></html> |
30 </script><p><span style="color:black;">You been f***ed by Enano | valid XHTML 1.1</span></p></body></html> |
31 <?php |
31 <?php |
32 exit; |
32 exit; |
33 } |
33 } |
34 |
34 |
|
35 // only do this if it hasn't been done yet |
|
36 if ( !defined('ENANO_COMMON_ROOT_LOADED') ) |
|
37 { |
|
38 |
|
39 // log this |
|
40 define('ENANO_COMMON_ROOT_LOADED', 1); |
|
41 |
35 // Our version number |
42 // Our version number |
36 // This needs to match the version number in the database. This number should |
43 // This needs to match the version number in the database. This number should |
37 // be the expected output of enano_version(), which will always be in the |
44 // be the expected output of enano_version(), which will always be in the |
38 // format of 1.0.2, 1.0.2a1, 1.0.2b1, 1.0.2RC1 |
45 // format of 1.0.2, 1.0.2a1, 1.0.2b1, 1.0.2RC1 |
39 // You'll want to change this for custom distributions. |
46 // You'll want to change this for custom distributions. |
101 if ( file_exists( ENANO_ROOT . '/_nightly.php') ) |
108 if ( file_exists( ENANO_ROOT . '/_nightly.php') ) |
102 require(ENANO_ROOT.'/_nightly.php'); |
109 require(ENANO_ROOT.'/_nightly.php'); |
103 |
110 |
104 // List of scheduled tasks (don't change this manually, use register_cron_task()) |
111 // List of scheduled tasks (don't change this manually, use register_cron_task()) |
105 $cron_tasks = array(); |
112 $cron_tasks = array(); |
|
113 |
|
114 } // check for ENANO_COMMON_ROOT_LOADED |
|
115 else |
|
116 { |
|
117 // loading a second time |
|
118 if ( !defined('ENANO_COMMON_ROOT_LOADED_MULTI') ) |
|
119 { |
|
120 define('ENANO_COMMON_ROOT_LOADED_MULTI', 1); |
|
121 } |
|
122 } |
|
123 |
|
124 // If all we really need is the root directory, just leave now |
|
125 // checking for ENANO_COMMON_ROOT_LOADED_MULTI here means that if common |
|
126 // is included a second time, the rest of Enano will load. |
|
127 if ( defined('ENANO_COMMON_ROOTONLY') && !defined('ENANO_COMMON_ROOT_LOADED_MULTI') ) |
|
128 { |
|
129 return true; |
|
130 } |
106 |
131 |
107 // Start including files. LOTS of files. Yeah! |
132 // Start including files. LOTS of files. Yeah! |
108 require_once(ENANO_ROOT.'/includes/constants.php'); |
133 require_once(ENANO_ROOT.'/includes/constants.php'); |
109 require_once(ENANO_ROOT.'/includes/functions.php'); |
134 require_once(ENANO_ROOT.'/includes/functions.php'); |
110 require_once(ENANO_ROOT.'/includes/dbal.php'); |
135 require_once(ENANO_ROOT.'/includes/dbal.php'); |