0){ $mod=date('Y/m/d H:i:s',filemtime("$d$f/$file")); }else{ $mod=date('Y/m/d H:i:s',filemtime("$d$file")); } $array[]=$mod; } } }else{ closedir(array_shift($stack)); --$level; } } //sort($array); //print_r($array); $fmod=max($array); # Database settings include('content/connect.php'); $tablemod=mysql_query('SELECT DATE_FORMAT(MAX(pubdate),\'%Y/%m/%d %H:%i:%s\') AS pubdate FROM '.MYSQL_TABLE); while($row=@mysql_fetch_array($tablemod,MYSQL_ASSOC)){ $rowmod=$row['pubdate']; $this->maxmod=max($fmod,$rowmod).date(' T')."\r\n"; $this->gmtime=date('D, d M Y H:i:s T',strtotime($this->maxmod)); } } function cache($gmtime){ if(isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])||isset($_SERVER['HTTP_IF_NONE_MATCH'])){ if($_SERVER['HTTP_IF_MODIFIED_SINCE']==$gmtime){ header('Status:304 Not Modified',true,304); exit(); } } header("Last-Modified:$gmtime"); } } $datemod=new datemod(); $datemod->date(); $datemod->cache($datemod->gmtime); ?> /* TEAM */ Author: Jordi Alhambra Contact: actoreflejo [at] mac.com From: Madrid, Spain /* SITE */ Last update: maxmod;?> Language: Castellano Doctype: HTML5 with CSS3 and Microdata IDE: MAMP, Dreamweaver, Photoshop Tools: JavaScript, jQuery, JSON, PHP, MySQL, Apache Source: http://www.u-vox.com /* THANKS & CREDITS */ Binyamin Laukstein (jQuery Address) http://cubiq.org/iscroll-4 http://cubiq.org/add-to-home-screen