16 define('IN_ENANO', 1); |
16 define('IN_ENANO', 1); |
17 |
17 |
18 // The list of versions in THIS AND PREVIOUS branches, in chronological order. |
18 // The list of versions in THIS AND PREVIOUS branches, in chronological order. |
19 $enano_versions = array(); |
19 $enano_versions = array(); |
20 $enano_versions['1.0'] = array('1.0', '1.0.1', '1.0.2b1', '1.0.2', '1.0.3', '1.0.4', '1.0.5', '1.0.6', '1.0.6pl1'); |
20 $enano_versions['1.0'] = array('1.0', '1.0.1', '1.0.2b1', '1.0.2', '1.0.3', '1.0.4', '1.0.5', '1.0.6', '1.0.6pl1'); |
21 $enano_versions['1.1'] = array('1.1.1', '1.1.2', '1.1.3', '1.1.4', '1.1.5', '1.1.6', '1.1.7'); |
21 $enano_versions['1.1'] = array('1.1.1', '1.1.2', '1.1.3', '1.1.4', '1.1.5', '1.1.6', '1.1.7', '1.1.8'); |
22 |
22 |
23 // If true, this will do a full langimport instead of only adding new strings. |
23 // If true, this will do a full langimport instead of only adding new strings. |
24 // Will probably be left on, but some change probably needs to be made to mark |
24 // Will probably be left on, but some change probably needs to be made to mark |
25 // strings as customized in the DB. |
25 // strings as customized in the DB. |
26 $do_langimport = true; |
26 $do_langimport = false; |
27 |
27 |
28 // Turn on every imaginable API hack to make common load on older databases |
28 // Turn on every imaginable API hack to make common load on older databases |
29 define('IN_ENANO_UPGRADE', 1); |
29 define('IN_ENANO_UPGRADE', 1); |
30 define('IN_ENANO_MIGRATION', 1); |
30 define('IN_ENANO_MIGRATION', 1); |
31 define('ENANO_ALLOW_LOAD_NOLANG', 1); |
31 define('ENANO_ALLOW_LOAD_NOLANG', 1); |
39 // when the installer's common is loaded, it runs chdir() to the ENANO_ROOT, thus making this Enano's common.php |
39 // when the installer's common is loaded, it runs chdir() to the ENANO_ROOT, thus making this Enano's common.php |
40 // PHP5 notice removed in 1.1.4 since the existing common is loaded and that loads lang and json2, which will |
40 // PHP5 notice removed in 1.1.4 since the existing common is loaded and that loads lang and json2, which will |
41 // give syntax errors on PHP4. So much for that. The installer will warn about this anyway. |
41 // give syntax errors on PHP4. So much for that. The installer will warn about this anyway. |
42 require_once('includes/common.php'); |
42 require_once('includes/common.php'); |
43 @ini_set('display_errors', 'on'); |
43 @ini_set('display_errors', 'on'); |
|
44 |
|
45 // do langimport if below 1.1.7 |
|
46 $versions_flipped = array_flip($enano_versions['1.1']); |
|
47 if ( !isset($versions_flipped[ enano_version() ]) || $versions_flipped[ enano_version() ] < $versions_flipped['1.1.7'] ) |
|
48 { |
|
49 $do_langimport = true; |
|
50 } |
44 |
51 |
45 if ( in_array(enano_version(), array('1.1.1', '1.1.2', '1.1.3', '1.1.4', '1.1.5')) || substr(enano_version(), 0, 3) == '1.0' ) |
52 if ( in_array(enano_version(), array('1.1.1', '1.1.2', '1.1.3', '1.1.4', '1.1.5')) || substr(enano_version(), 0, 3) == '1.0' ) |
46 define('ENANO_UPGRADE_USE_AES_PASSWORDS', 1); |
53 define('ENANO_UPGRADE_USE_AES_PASSWORDS', 1); |
47 |
54 |
48 // init languages |
55 // init languages |
151 else |
158 else |
152 { |
159 { |
153 echo $lang->get('upgrade_login_msg_auth_needed_body_level1'); |
160 echo $lang->get('upgrade_login_msg_auth_needed_body_level1'); |
154 } |
161 } |
155 ?></p> |
162 ?></p> |
|
163 <p> |
|
164 <?php echo $lang->get('upgrade_login_msg_local_auth'); ?> |
|
165 </p> |
156 <table border="0" cellspacing="0" cellpadding="5" style="margin: 0 auto;"> |
166 <table border="0" cellspacing="0" cellpadding="5" style="margin: 0 auto;"> |
157 <tr> |
167 <tr> |
158 <td><?php echo $lang->get('user_login_field_username'); ?>:</td> |
168 <td><?php echo $lang->get('user_login_field_username'); ?>:</td> |
159 <td><input type="text" name="username" tabindex="1" /></td> |
169 <td><input type="text" name="username" tabindex="1" /></td> |
160 </tr> |
170 </tr> |