function Step2() { // Are they submitting? if ($_REQUEST['action'] == 'update') { $strError = Step2B(); } // Header PrintHeader(); // Display any errors. if ($strError) { echo "<b>Error</b>: {$strError}<br /><br />\nIf you would like to retry, click <a href=\"index.php?action=update\">here</a>.\n"; } else { ?> <h1>Update Database</h1> <p>The database must be updated so that the new version of OvBB can use it.</p> <p>Click <a href="index.php?action=update">here</a> to update the database.</p> <?php } // Footer PrintFooter(); }
function Step2() { // Are they submitting? if ($_REQUEST['action'] == 'setup') { $strError = Step2B(); } // Header PrintHeader(); // Display any errors. if ($strError) { echo "<b>Error</b>: {$strError}<br /><br />\nIf you would like to retry, click <a href=\"index.php?action=setup\">here</a>.\n"; } else { ?> <h1>Database Setup</h1> <p>The first thing that must be done is to setup your database so that OvBB can use it.</p> <p>Click <a href="index.php?action=setup">here</a> to setup the database.</p> <?php } // Footer PrintFooter(); }