Commit 9b7367d8 authored by RemyD's avatar RemyD

1.7.3.1

parent 7a69c949
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
require_once('lib/class.csti.php');
$app->auth->check_module_permissions('Exchange');
echo '<p>&nbsp;</p><p>&nbsp;</p><p class="frmTextHead" style="text-align:left;"><h3>Realease Notes :</h3><br> For a full detailled release notes, please go on the project page :<a href="'.$_SESSION['$_SITE_SOURCE'].'" target="_blank">'.$_SESSION['$_SITE_SOURCE'].' </a></p>';
// check if already installed before.
$v = new cstiConfig();
print_r($v->getVersion());
$ver= ($v->version);
$rev =($v->revision);
$sub = ($v->subversion);
// set the actual version of this app.
//echo "<p>Check version APP</p>";
$dbVer=$app->db->queryOneRecord("select AppVersion,AppRevision,AppSubversion,AppDevVersion from AD_HOSTED_Setup order by id desc limit 1");
$_SESSION['MOD_EXCHANGE_VERSION']= $dbVer['AppVersion'];
$_SESSION['MOD_EXCHANGE_REVISION']= $dbVer['AppRevision'];
$_SESSION['MOD_EXCHANGE_SUBVERSION']=$dbVer['AppSubversion'];
$_SESSION['MOD_EXCHANGE_DEV_LEVEL']= $dbVer['AppDevVersion'];
$OnLineVer = $ver .'.'. $rev .'.'.$sub;
$thisver =$_SESSION['MOD_EXCHANGE_VERSION'].'.'.$_SESSION['MOD_EXCHANGE_REVISION'].'.'.$_SESSION['MOD_EXCHANGE_SUBVERSION'].'-'.$_SESSION['MOD_EXCHANGE_DEV_LEVEL'];
$message='<br><br><h3> Version:';
$bad='<font color="RED">You need to update to the latest version (';
$ok='<font color="GREEN">You use the latest version (Online:';
// value 0 Not installed , 1 Need Update , 2 Need minor Update , 3 Uptodate
$UptoDate=0;
if ($_SESSION['MOD_EXCHANGE_VERSION']==0) {
// not installed
$message = "Not installed.";
} else {
// installed
if ($ver == $_SESSION['MOD_EXCHANGE_VERSION']) {
// Version OK
if ($rev ==$_SESSION['MOD_EXCHANGE_REVISION'] ) {
// revision OK
if ($sub == $_SESSION['MOD_EXCHANGE_SUBVERSION']) {
$message.= $ok.$ver.'.'.$rev.'.'.$sub.' - '.$thisver ;
} else {
$message.= $bad. $OnLineVer .'#'.$thisver;
}
} else {
$message.= $bad. $OnLineVer .'#'.$thisver;
}
} else {
// version not OK
$message.= $bad. $OnLineVer .'#'.$thisver;
}
}
echo $message.')</h3></FONT>';
unset($v);
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
require_once('lib/class.csti.php');
$app->auth->check_module_permissions('Exchange');
echo '<p>&nbsp;</p><p>&nbsp;</p><p class="frmTextHead" style="text-align:left;"><h3>Realease Notes :</h3><br> For a full detailled release notes, please go on the project page :<a href="'.$_SESSION['$_SITE_SOURCE'].'" target="_blank">'.$_SESSION['$_SITE_SOURCE'].' </a></p>';
?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment