Location: PHPKode > projects > Netautor Professional > netautor/napro4/admin/install/update/4.5.5/update.php
<?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.5','>=');

/*
add table mcache !!
*/

?>
<html>
<head><title>Activate Update 4.5.5</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.5 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>
<br>
<font class="setuptextokay"><br>Update Netautor tables (May take some time)</font>
<br>
<?
	include('../../packages/base/tables/mcache.def');

	$status = $sql_world->sql_create_table($table);

	if($sql_world->errnr < 0)
	{
		echo('<font class="setuptextfaild"><br>Table mcache not installed !</font><br>');
	}
	else
	{
		echo('<font class="setuptextokay"><br>Table mcache installed !</font><br>');
	}
?>
<font class="setuptextokay"><br>Registring update informations</font><br>
<?php version_set($sql_world,'software','napro','4.5.5'); ?>

<br><font class="setuplinktext">End : <?php echo(date('d.m.Y H:i:s'));?></font><br>
<script language="JavaScript">reloadChoice();</script>
</body>
</html>
Return current item: Netautor Professional