<?php
include ('../../../../include/init.inc');
if (function_exists('ob_end_flush()')) {ob_end_flush ();}
includeNaPro('mversion,array');
$update_success = true;
/* Get currently installed version */
$installed_version = version_normalize(version_get($sql_world,'software','napro'));
/* Check here for desired version */
$version_comp = version_compare($installed_version,'4.5.4','>=');
?>
<html>
<head><title>Activate Update 4.5.4</title></head>
<link href="../../../../include/netautor.css" rel="stylesheet" type="TEXT/CSS" media="screen" >
<script language="JavaScript">
<!--
function reloadChoice(){
if (parent.frames['update_choice']) {
parent.frames['update_choice'].document.location.href= parent.frames['update_choice'].document.location.href;
}
}
//-->
</script>
<body bgcolor="White" text="Black" leftmargin="1" topmargin="1">
<br>
<?php
if ($version_comp==1){
?> <font class="setuptextokay">Version 4.5.4 allready installed</font>
<script language="JavaScript">reloadChoice();</script>
</body>
</html>
<?php
exit();
}
?>
<font class="setuplinktext">Start : <?php echo(date('d.m.Y H:i:s'));?></font>
<br>
<font class="setuptextokay"><br>Registring update informations</font><br>
<?php version_set($sql_world,'software','napro','4.5.4'); ?>
<br><font class="setuplinktext">End : <?php echo(date('d.m.Y H:i:s'));?></font><br>
<script language="JavaScript">reloadChoice();</script>
</body>
</html>