equal
deleted
inserted
replaced
11 * |
11 * |
12 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied |
12 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied |
13 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. |
13 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. |
14 */ |
14 */ |
15 |
15 |
16 define('IN_ENANO_INSTALL', 'true'); |
16 define('IN_ENANO_INSTALL', 'true'); |
|
17 define('IN_ENANO_UPGRADE', 'true'); |
17 |
18 |
18 if(!defined('scriptPath')) { |
19 if(!defined('scriptPath')) { |
19 $sp = dirname($_SERVER['REQUEST_URI']); |
20 $sp = dirname($_SERVER['REQUEST_URI']); |
20 if($sp == '/' || $sp == '\\') $sp = ''; |
21 if($sp == '/' || $sp == '\\') $sp = ''; |
21 define('scriptPath', $sp); |
22 define('scriptPath', $sp); |
25 $sp = dirname($_SERVER['REQUEST_URI']); |
26 $sp = dirname($_SERVER['REQUEST_URI']); |
26 if($sp == '/' || $sp == '\\') $sp = ''; |
27 if($sp == '/' || $sp == '\\') $sp = ''; |
27 define('contentPath', $sp); |
28 define('contentPath', $sp); |
28 } |
29 } |
29 |
30 |
30 global $_starttime, $this_page, $sideinfo; |
31 global $this_page, $sideinfo; |
31 $_starttime = microtime(true); |
32 |
|
33 function microtime_float() |
|
34 { |
|
35 list($usec, $sec) = explode(" ", microtime()); |
|
36 return ((float)$usec + (float)$sec); |
|
37 } |
|
38 |
|
39 global $_starttime; |
|
40 $_starttime = microtime_float(); |
32 |
41 |
33 // Determine directory (special case for development servers) |
42 // Determine directory (special case for development servers) |
34 if ( strpos(__FILE__, '/repo/') && file_exists('.enanodev') ) |
43 if ( strpos(__FILE__, '/repo/') && file_exists('.enanodev') ) |
35 { |
44 { |
36 $filename = str_replace('/repo/', '/', __FILE__); |
45 $filename = str_replace('/repo/', '/', __FILE__); |