Location: PHPKode > projects > phpCAMALEO > common/fun2inc/bld_last_update.inc
<?php
if(!function_exists('bld_last_update'))
{
	#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	# Update the last update configuration include file
	#
	function bld_last_update($date,$creator)
	#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	{
		$cfg_fname=$_SERVER[DOCUMENT_ROOT].$_SESSION[misc][folder].'tmp/last_update_'.$_SESSION[misc][skin].'.inc'; # 10 Oct 2006
		if(file_exists($cfg_fname)) { @unlink($cfg_fname); }
		$fd=@fopen($cfg_fname,'w') or die('Cannot write file: '.$cfg_fname);
		if($fd)
		{
			$tmp="<?php\n#\n#\tAutomatically written by: ".$creator;
			$fout=@fwrite($fd, $tmp."\n");
			$tmp="#\tLast update: ".date('d-m-Y H:i:s')."\n#";
			$fout=@fwrite($fd, $tmp."\n");
			$tmp='define(_LAST_UPDATE_,\''.$date.'\');';
			$fout=@fwrite($fd,$tmp."\n");
			$fout=@fwrite($fd,'?>');
			@fclose($fd);
		}
	}
}
?>
Return current item: phpCAMALEO