$page['body'] = '<pstyle="text-align:center">Thank you for using Tinyboard. Please remember to report any bugs you discover.</p>';
if(!empty($sql_errors)) {
$page['body'] .= '<divclass="ban"><h2>SQL errors</h2><p>SQL errors were encountered when trying to install the database. This may be the result of using a database which is already occupied with a Tinyboard installation; if so, you can probably ignore this.</p><p>The errors encountered were:</p><ul>' . $sql_errors . '</ul><p><ahref="?step=5">Ignore errors and complete installation.</a></p></div>';
} else {
touch($config['has_installed'], 0777);
if(!@unlink(__FILE__)) {
$page['body'] .= '<divclass="ban"><h2>Delete install.php!</h2><p>I couldn\'t remove <strong>install.php</strong>. You will have to remove it manually.</p></div>';
}
}
echo Element('page.html', $page);
} elseif($step == 5) {
$page['title'] = 'Installation complete';
$page['body'] = '<pstyle="text-align:center">Thank you for using Tinyboard. Please remember to report any bugs you discover.</p>';
touch($config['has_installed'], 0777);
if(!@unlink(__FILE__)) {
$page['body'] = '<pstyle="text-align:center">I couldn\'t remove <strong>install.php</strong>. You will have to remove it manually.</p>';
$page['body'] .= '<divclass="ban"><h2>Delete install.php!</h2><p>I couldn\'t remove <strong>install.php</strong>. You will have to remove it manually.</p></div>';