Merge branch 'master' of github.com:sourcefabric/Airtime
This commit is contained in:
commit
ed304ed309
|
@ -529,4 +529,14 @@ class AirtimeInstall
|
||||||
}
|
}
|
||||||
return $opts;
|
return $opts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function checkPHPVersion()
|
||||||
|
{
|
||||||
|
if (PHP_VERSION_ID < 50400)
|
||||||
|
{
|
||||||
|
echo "Error: Airtime requires PHP 5.4 or greater.";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,12 @@ require_once(__DIR__.'/airtime-constants.php');
|
||||||
// The only way we get here is if we are doing a new install or a reinstall.
|
// The only way we get here is if we are doing a new install or a reinstall.
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
//Enforce a minimum PHP version
|
||||||
|
if (!AirtimeInstall::checkPHPVersion())
|
||||||
|
{
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
$iniExists = file_exists("/etc/airtime/airtime.conf");
|
$iniExists = file_exists("/etc/airtime/airtime.conf");
|
||||||
if ($iniExists) {
|
if ($iniExists) {
|
||||||
//reinstall, Will ask if we should rewrite config files.
|
//reinstall, Will ask if we should rewrite config files.
|
||||||
|
|
|
@ -34,6 +34,12 @@ $con = Propel::getConnection();
|
||||||
|
|
||||||
$version = AirtimeInstall::GetVersionInstalled();
|
$version = AirtimeInstall::GetVersionInstalled();
|
||||||
|
|
||||||
|
//Enforce a minimum PHP version
|
||||||
|
if (!AirtimeInstall::checkPHPVersion())
|
||||||
|
{
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
echo "******************************** Upgrade Begin *********************************".PHP_EOL;
|
echo "******************************** Upgrade Begin *********************************".PHP_EOL;
|
||||||
|
|
||||||
$CC_CONFIG = Config::getConfig();
|
$CC_CONFIG = Config::getConfig();
|
||||||
|
|
Loading…
Reference in New Issue