equal
deleted
inserted
replaced
33 // Is Enano installed? If so, load the config and check version info |
33 // Is Enano installed? If so, load the config and check version info |
34 define('IN_ENANO_UPGRADE', 'true'); |
34 define('IN_ENANO_UPGRADE', 'true'); |
35 // common.php above calls chdir() to the ENANO_ROOT, so this loads the full Enano API. |
35 // common.php above calls chdir() to the ENANO_ROOT, so this loads the full Enano API. |
36 require('includes/common.php'); |
36 require('includes/common.php'); |
37 } |
37 } |
|
38 |
|
39 // are we in PHP5? |
|
40 define('HAVE_PHP5', version_compare(PHP_VERSION, '5.0.0', '>=')); |
38 |
41 |
39 ?> |
42 ?> |
40 |
43 |
41 <div id="installnotice"> |
44 <div id="installnotice"> |
42 <?php |
45 <?php |
110 </a> |
113 </a> |
111 </li>'; |
114 </li>'; |
112 } |
115 } |
113 else |
116 else |
114 { |
117 { |
115 echo '<li><a href="upgrade.php" class="upgrade icon">Upgrade</a></li>'; |
118 if ( HAVE_PHP5 && !isset($_GET['debug_warn_php4']) ) |
|
119 echo '<li><a href="upgrade.php" class="upgrade icon">Upgrade</a></li>'; |
|
120 else |
|
121 echo '<li> |
|
122 <span class="upgrade-disabled icon icon-disabled"> |
|
123 Upgrade |
|
124 <small> |
|
125 Your server doesn\'t have PHP 5 or later installed. Enano 1.2 does not have support for PHP 4. |
|
126 <a href="install.php?debug_warn_php4">Learn more »</a> |
|
127 </small> <!-- CSS takes care of making this position properly --> |
|
128 </span> |
|
129 </li>'; |
116 } |
130 } |
117 endif; |
131 endif; |
118 ?> |
132 ?> |
119 </ul> |
133 </ul> |
120 </td> |
134 </td> |