forked from science-ation/science-ation
Detect when the installation isnt complete
This commit is contained in:
parent
f0cbb618ec
commit
850be50973
@ -68,6 +68,16 @@ else
|
|||||||
//first things first - make sure our DB version matches our CODE version
|
//first things first - make sure our DB version matches our CODE version
|
||||||
$dbcodeversion=@file("db/db.code.version.txt");
|
$dbcodeversion=@file("db/db.code.version.txt");
|
||||||
$dbdbversion=@file("db/db.db.version.txt");
|
$dbdbversion=@file("db/db.db.version.txt");
|
||||||
|
if(!$dbdbversion)
|
||||||
|
{
|
||||||
|
echo "<html><head><title>SFIAB ERROR</title></head><body>";
|
||||||
|
echo "<h1>Science Fair In A Box - ERROR</h1>";
|
||||||
|
echo "SFIAB installation is not complete. Please go to <A href=\"install2.php\">Installer Step 2</a> to complete the installation process";
|
||||||
|
echo "<br>";
|
||||||
|
echo "</body></html>";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
if($dbcodeversion[0]!=$dbdbversion[0])
|
if($dbcodeversion[0]!=$dbdbversion[0])
|
||||||
{
|
{
|
||||||
echo "<html><head><title>SFIAB ERROR</title></head><body>";
|
echo "<html><head><title>SFIAB ERROR</title></head><body>";
|
||||||
|
Loading…
Reference in New Issue
Block a user