Update install file and version number

This commit is contained in:
Mike Koch 2015-02-05 20:54:04 -05:00
parent 4b91ff12bc
commit 023ccd505f
2 changed files with 8 additions and 6 deletions

View File

@ -37,7 +37,7 @@ if (!defined('IN_SCRIPT')) {die('Invalid attempt');}
// We will be installing this HESK version: // We will be installing this HESK version:
define('HESK_NEW_VERSION','2.6.0 beta 1'); define('HESK_NEW_VERSION','2.6.0 beta 1');
define('MODS_FOR_HESK_NEW_VERSION','1.7.0'); define('MODS_FOR_HESK_NEW_VERSION','2.0.0');
define('REQUIRE_PHP_VERSION','5.0.0'); define('REQUIRE_PHP_VERSION','5.0.0');
define('REQUIRE_MYSQL_VERSION','5.0.7'); define('REQUIRE_MYSQL_VERSION','5.0.7');

View File

@ -123,13 +123,15 @@ hesk_dbConnect();
$versionArray = hesk_dbFetchAssoc($versionRS); $versionArray = hesk_dbFetchAssoc($versionRS);
$version = $versionArray['Value']; $version = $versionArray['Value'];
echo '<div class="row">'; if ($version != MODS_FOR_HESK_NEW_VERSION) {
echo '<div class="col-sm-12">'; echo '<div class="row">';
echo '<p id="updateText">Mods for HESK has detected that you currently have v'.$version.' installed. echo '<div class="col-sm-12">';
echo '<p id="updateText">Mods for HESK has detected that you currently have v' . $version . ' installed.
The button you should click to upgrade has been highlighted for you. However, if The button you should click to upgrade has been highlighted for you. However, if
Mods for HESK selected the wrong version, click <a href="javascript:void(0)" onclick="enableAllDisablable();">here</a> to reset them.</p>'; Mods for HESK selected the wrong version, click <a href="javascript:void(0)" onclick="enableAllDisablable();">here</a> to reset them.</p>';
echo '</div>'; echo '</div>';
echo '</div>'; echo '</div>';
}
} }
?> ?>
<div class="row"> <div class="row">