} } $status_msg .= "\nSettings added to database<br />\n\n"; } else { displaySettingsForm("Invalid characters used in the username or password"); exit(0); } } else { // if not saving then ask user for username / password and set defaults displaySettingsForm(""); exit(0); } /** Reach this point we have successfully installed the basic layout **/ //- In future add additional security to move second config file somewhere safer // This needs to be done manually following instructions in the user manual displayComplete($status_msg); /******************************************************************************* * Functions * *******************************************************************************/ function displayComplete($message) { print <<<EOT <html> <head> <title>Install complete</title> </head> <body> <h1>Install complete</h1> <p> Now edit the settings and add your questions. </p>
displayStep2(); break; case 3: runChecks(3); setConfigValues(2); if ($_REQUEST['installtype'] != 'upgrade') { addDBTables(); } displayStep3(); break; case 4: setConfigValues(3); displayStep4(); break; case 5: displayComplete(); break; default: echo "Invalid Step"; break; } ?> <p> </p> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td background="<?php echo SITE_ROOT; ?>