Permalink
Browse files

Detect that OBBLM is already installed if going to install.php again …

…after install.
  • Loading branch information...
bloodybowlers
bloodybowlers committed Jan 30, 2015
1 parent cd2a5ec commit 8428625d0b74a08739887683d384717655f4ba56
Showing with 14 additions and 1 deletion.
  1. +14 −1 install.php
View
@@ -56,14 +56,27 @@
}
}
else {
else
{
// Make sure OBBLM is not already installed
$conn = mysql_up();
if(mysql_query("DESCRIBE coaches"))
{
echo <<<EOL
It seems OBBLM is already installed.<br>You can safely delete the file <i>install.php</i> and go to the main page.
<br><br>If you need help please visit <a href='http://code.google.com/p/obblm/issues/list'>code.google.com/p/obblm</a> and create a bug report.<br>
EOL;
}
else
{
?>
Please, <b>before starting the installation process</b>, make sure that the MySQL user and database you have specified in <i>settings.php</i> exist and are valid.<br><br>When ready, press the button below :<br><br>
<form method="POST">
<input type="submit" name="setup" value="Setup DB for OBBLM">
</form>
<?php
}
}
HTMLOUT::frame_end();
?>

0 comments on commit 8428625

Please sign in to comment.