923 |
923 |
924 <div class="pagenav"> |
924 <div class="pagenav"> |
925 <?php |
925 <?php |
926 if($warned) { |
926 if($warned) { |
927 echo '<table border="0" cellspacing="0" cellpadding="0">'; |
927 echo '<table border="0" cellspacing="0" cellpadding="0">'; |
928 run_test('return false;', 'Some scalebacks were made due to your server configuration.', 'Enano has detected that some of the features or configuration settings on your server are not optimal for the best behavior and/or performance for Enano. As a result, certain features or enhancements that are part of Enano have been disabled to prevent further errors. You have seen those "fatal error" notices that spew from PHP, haven\'t you?<br /><br />Fatal error:</b> call to undefined function wannahokaloogie() in file <b>'.__FILE__.'</b> on line <b>'.__LINE__.'', true); |
928 run_test('return false;', 'Some of the features of Enano have been turned off to accommodate your server.', 'Enano has detected that some of the features or configuration settings on your server are not optimal for the best behavior and/or performance for Enano. As a result, certain features or enhancements that are part of Enano have been disabled to prevent further errors. You have seen those "fatal error" notices that spew from PHP, haven\'t you?<br /><br /> <tt>Fatal error:</tt></b><tt> call to undefined function wannahockaloogie() in file <b>'.__FILE__.'</b> on line </tt><b><tt>'.__LINE__.'</tt>', true); |
929 echo '</table>'; |
929 echo '</table>'; |
930 } else { |
930 } else { |
931 echo '<table border="0" cellspacing="0" cellpadding="0">'; |
931 echo '<table border="0" cellspacing="0" cellpadding="0">'; |
932 run_test('return true;', '<b>Your server meets all the requirements for running Enano.</b><br />Click the button below to continue the installation.', 'You should never see this text. Congratulations for being an Enano hacker!'); |
932 run_test('return true;', '<b>Your server meets all the requirements for running Enano.</b><br />Click the button below to continue the installation.', 'You should never see this text. Congratulations for being an Enano hacker!'); |
933 echo '</table>'; |
933 echo '</table>'; |
934 } |
934 } |
935 ?> |
935 ?> |
936 <form action="install.php?mode=database" method="post"> |
936 <form action="install.php?mode=database" method="post"> |
937 <table border="0"> |
937 <table border="0"> |
938 <tr> |
938 <tr> |
939 <td><input type="submit" value="Continue" /></td><td><p><span style="font-weight: bold;">Before clicking continue:</span><br />• Ensure that you are satisfied with any scalebacks that may have been made to accomodate your server configuration<br />• Have your database host, name, username, and password available</p></td> |
939 <td><input type="submit" value="Continue" /></td><td><p><span style="font-weight: bold;">Before clicking continue:</span><br />• Review the list above to ensure that you are satisfied with any of Enano's workarounds for your server. If you need a particular feature and that feature is listed as disabled above, you should take the opportunity now to correct the problem.<br />• Have your database host, name, username, and password available</p></td> |
940 </tr> |
940 </tr> |
941 </table> |
941 </table> |
942 </form> |
942 </form> |
943 </div> |
943 </div> |
944 <?php |
944 <?php |
1159 echo '<p><b>MySQL login information for this virtual appliance:</b><br /><br />Database hostname: localhost<br />Database login: username "enano", password: "clurichaun" (without quotes)<br />Database name: enano_www1</p>'; |
1159 echo '<p><b>MySQL login information for this virtual appliance:</b><br /><br />Database hostname: localhost<br />Database login: username "enano", password: "clurichaun" (without quotes)<br />Database name: enano_www1</p>'; |
1160 } |
1160 } |
1161 ?> |
1161 ?> |
1162 <form name="dbinfo" action="install.php?mode=website" method="post"> |
1162 <form name="dbinfo" action="install.php?mode=website" method="post"> |
1163 <table border="0"> |
1163 <table border="0"> |
1164 <tr><td colspan="3" style="text-align: center"><h3>Database information</h3></td></tr> |
1164 <tr> |
1165 <tr><td><b>Database hostname</b><br />This is the hostname (or sometimes the IP address) of your MySQL server. In many cases, this is "localhost".<br /><span style="color: #993300" id="e_db_host"></span></td><td><input onkeyup="verify();" name="db_host" size="30" type="text" /></td><td><img id="s_db_host" alt="Good/bad icon" src="images/bad.gif" /></td></tr> |
1165 <td colspan="3" style="text-align: center"> |
1166 <tr><td><b>Database name</b><br />The name of the actual database. If you don't already have a database, you can create one here, if you have the username and password of a MySQL user with administrative rights.<br /><span style="color: #993300" id="e_db_name"></span></td><td><input onkeyup="verify();" name="db_name" size="30" type="text" /></td><td><img id="s_db_name" alt="Good/bad icon" src="images/bad.gif" /></td></tr> |
1166 <h3>Database information</h3> |
1167 <tr><td rowspan="2"><b>Database login</b><br />These fields should be the username and password of a user with "select", "insert", "update", "delete", "create table", and "replace" privileges for your database.<br /><span style="color: #993300" id="e_db_auth"></span></td><td><input onkeyup="verify();" name="db_user" size="30" type="text" /></td><td rowspan="2"><img id="s_db_auth" alt="Good/bad icon" src="images/bad.gif" /></td></tr> |
1167 </td> |
1168 <tr><td><input name="db_pass" size="30" type="password" /></td></tr> |
1168 </tr> |
1169 <tr><td colspan="3" style="text-align: center"><h3>Optional information</h3></td></tr> |
1169 <tr> |
1170 <tr><td><b>Table prefix</b><br />The value that you enter here will be added to the beginning of the name of each Enano table. You may use lowercase letters (a-z), numbers (0-9), and underscores (_).</td><td><input onkeyup="verify();" name="table_prefix" size="30" type="text" /></td><td><img id="s_table_prefix" alt="Good/bad icon" src="images/good.gif" /></td></tr> |
1170 <td> |
1171 <tr><td rowspan="2"><b>Database administrative login</b><br />If the MySQL database or username that you entered above does not exist yet, you can create them here, assuming that you have the login information for an administrative user (such as root). Leave these fields blank unless you need to use them.<br /><span style="color: #993300" id="e_db_root"></span></td><td><input onkeyup="verify();" name="db_root_user" size="30" type="text" /></td><td rowspan="2"><img id="s_db_root" alt="Good/bad icon" src="images/good.gif" /></td></tr> |
1171 <b>Database hostname</b> |
1172 <tr><td><input onkeyup="verify();" name="db_root_pass" size="30" type="password" /></td></tr> |
1172 <br />This is the hostname (or sometimes the IP address) of your MySQL server. In many cases, this is "localhost". |
1173 <tr><td><b>MySQL version</b></td><td id="e_mysql_version">MySQL version information will be checked when you click "Test Connection".</td><td><img id="s_mysql_version" alt="Good/bad icon" src="images/unknown.gif" /></td></tr> |
1173 <br /><span style="color: #993300" id="e_db_host"></span> |
1174 <tr><td><b>Delete existing tables?</b><br />If this option is checked, all the tables that will be used by Enano will be dropped (deleted) before the schema is executed. Do NOT use this option unless specifically instructed to.</td><td><input type="checkbox" name="drop_tables" id="dtcheck" /> <label for="dtcheck">Drop existing tables</label></td></tr> |
1174 </td> |
1175 <tr><td colspan="3" style="text-align: center"><input type="button" value="Test connection" onclick="ajaxTestConnection();" /></td></tr> |
1175 <td> |
|
1176 <input onkeyup="verify();" name="db_host" size="30" type="text" /> |
|
1177 </td> |
|
1178 <td> |
|
1179 <img id="s_db_host" alt="Good/bad icon" src="images/bad.gif" /> |
|
1180 </td> |
|
1181 </tr> |
|
1182 <tr> |
|
1183 <td> |
|
1184 <b>Database name</b><br /> |
|
1185 The name of the actual database. If you don't already have a database, you can create one here, if you have the username and password |
|
1186 of a MySQL user with administrative rights.<br /> |
|
1187 <span style="color: #993300" id="e_db_name"></span> |
|
1188 </td> |
|
1189 <td> |
|
1190 <input onkeyup="verify();" name="db_name" size="30" type="text" /> |
|
1191 </td> |
|
1192 <td> |
|
1193 <img id="s_db_name" alt="Good/bad icon" src="images/bad.gif" /> |
|
1194 </td> |
|
1195 </tr> |
|
1196 <tr> |
|
1197 <td rowspan="2"> |
|
1198 <b>Database login</b><br /> |
|
1199 These fields should be the username and password of a user with "select", "insert", "update", "delete", "create table", and "replace" |
|
1200 privileges for your database.<br /> |
|
1201 <span style="color: #993300" id="e_db_auth"></span> |
|
1202 </td> |
|
1203 <td> |
|
1204 <input onkeyup="verify();" name="db_user" size="30" type="text" /> |
|
1205 </td> |
|
1206 <td rowspan="2"> |
|
1207 <img id="s_db_auth" alt="Good/bad icon" src="images/bad.gif" /> |
|
1208 </td> |
|
1209 </tr> |
|
1210 <tr> |
|
1211 <td> |
|
1212 <input name="db_pass" size="30" type="password" /> |
|
1213 </td> |
|
1214 </tr> |
|
1215 <tr> |
|
1216 <td colspan="3" style="text-align: center"> |
|
1217 <h3>Optional information</h3> |
|
1218 </td> |
|
1219 </tr> |
|
1220 <tr> |
|
1221 <td> |
|
1222 <b>Table prefix</b><br /> |
|
1223 The value that you enter here will be added to the beginning of the name of each Enano table. You may use lowercase letters (a-z), |
|
1224 numbers (0-9), and underscores (_). |
|
1225 </td> |
|
1226 <td> |
|
1227 <input onkeyup="verify();" name="table_prefix" size="30" type="text" /> |
|
1228 </td> |
|
1229 <td> |
|
1230 <img id="s_table_prefix" alt="Good/bad icon" src="images/good.gif" /> |
|
1231 </td> |
|
1232 </tr> |
|
1233 <tr> |
|
1234 <td rowspan="2"> |
|
1235 <b>Database administrative login</b><br /> |
|
1236 If the MySQL database or username that you entered above does not exist yet, you can create them here, assuming that you have the |
|
1237 login information for an administrative user (such as root). Leave these fields blank unless you need to use them.<br /> |
|
1238 <span style="color: #993300" id="e_db_root"></span> |
|
1239 </td> |
|
1240 <td> |
|
1241 <input onkeyup="verify();" name="db_root_user" size="30" type="text" /> |
|
1242 </td> |
|
1243 <td rowspan="2"> |
|
1244 <img id="s_db_root" alt="Good/bad icon" src="images/good.gif" /> |
|
1245 </td> |
|
1246 </tr> |
|
1247 <tr> |
|
1248 <td> |
|
1249 <input onkeyup="verify();" name="db_root_pass" size="30" type="password" /> |
|
1250 </td> |
|
1251 </tr> |
|
1252 <tr> |
|
1253 <td> |
|
1254 <b>MySQL version</b> |
|
1255 </td> |
|
1256 <td id="e_mysql_version"> |
|
1257 MySQL version information will be checked when you click "Test Connection". |
|
1258 </td> |
|
1259 <td> |
|
1260 <img id="s_mysql_version" alt="Good/bad icon" src="images/unknown.gif" /> |
|
1261 </td> |
|
1262 </tr> |
|
1263 <tr> |
|
1264 <td> |
|
1265 <b>Delete existing tables?</b><br /> |
|
1266 If this option is checked, all the tables that will be used by Enano will be dropped (deleted) before the schema is executed. Do |
|
1267 NOT use this option unless specifically instructed to. |
|
1268 </td> |
|
1269 <td> |
|
1270 <input type="checkbox" name="drop_tables" id="dtcheck" /> <label for="dtcheck">Drop existing tables</label> |
|
1271 </td> |
|
1272 </tr> |
|
1273 <tr> |
|
1274 <td colspan="3" style="text-align: center"> |
|
1275 <input type="button" value="Test connection" onclick="ajaxTestConnection();" /> |
|
1276 </td> |
|
1277 </tr> |
1176 </table> |
1278 </table> |
1177 <div class="pagenav"> |
1279 <div class="pagenav"> |
1178 <table border="0"> |
1280 <table border="0"> |
1179 <tr> |
1281 <tr> |
1180 <td><input type="submit" value="Continue" onclick="return verify();" name="_cont" /></td><td><p><span style="font-weight: bold;">Before clicking continue:</span><br />• Check your MySQL connection using the "Test Connection" button.<br />• Be aware that your database information will be transmitted unencrypted several times.</p></td> |
1282 <td> |
1181 </tr> |
1283 <input type="submit" value="Continue" onclick="return verify();" name="_cont" /> |
1182 </table> |
1284 </td> |
1183 </div> |
1285 <td> |
|
1286 <p> |
|
1287 <span style="font-weight: bold;">Before continuing:</span><br /> |
|
1288 • Check your MySQL connection using the "Test Connection" button.<br /> |
|
1289 • Be aware that your database information will be transmitted unencrypted several times. |
|
1290 </p> |
|
1291 </td> |
|
1292 </tr> |
|
1293 </table> |
|
1294 </div> |
1184 </form> |
1295 </form> |
1185 <?php |
1296 <?php |
1186 break; |
1297 break; |
1187 case "website": |
1298 case "website": |
1188 if(!isset($_POST['_cont'])) { |
1299 if(!isset($_POST['_cont'])) { |