% include("intecol.inc"); $timestamps[] = @getlastmod(); //$pad = dirname($_SERVER["PATH_TRANSLATED"]); $pad = dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']); if ($handle = opendir($pad)) { while (false !== ($file = readdir($handle))) { $timestamps[] = @getlastmod($file); } closedir($handle); } $timestamp = max($timestamps); $today = Date("Y-m-d"); $vandaag = Date("D, j n Y"); $nu = Date("H:i:s"); $dlnu = split(':',$nu); $totu = $dlnu[0]*3600 + $dlnu[1]*60 + $dlnu[2]; $tsstring = gmdate("D, d M Y ", $timestamp) . "GMT"; $tshtring = gmdate("D, d M Y H:i:s ", $timestamp) . "GMT"; // Check if the client has the same page cached if (isset($_SERVER["HTTP_IF_MODIFIED_SINCE"]) && ($_SERVER["HTTP_IF_MODIFIED_SINCE"] == $tshtring)) { header("HTTP/1.1 304 Not Modified"); exit(); } else { // Inform the user agent what is our last modification date header("Last-Modified: " . $tsstring); } $purl = ''; $bm = ''; $vlag = 0; $fvlag = 0; $eerste = ''; if ( $link = intecol_beheer_connect() ) { $query = "select distinct DATE_FORMAT(datum,'%W_%e_%M_%Y') AS wdag,datum,start from sessions_all order by datum,start"; if ($result = mysql_query ($query) ) { if ($row = mysql_fetch_array($result)) { do { $wdag = $row['wdag']; $dag = $row['datum']; $tijd = $row['start']; if ($today == $dag) { $vlag = 1; $dln = split(':',$tijd); $bmdeel = $dln[0].'_'.$dln[1]; $tot = $dln[0]*3600 + $dln[1]*60; if ($vlag == 1 && $fvlag == 0) { $eerste = $wdag ."_".$bmdeel; $fvlag = 1 ; } if ($totu >= $tot) { $vlag = 2; $bm = $wdag ."_".$bmdeel; } } } while($row = mysql_fetch_array($result)); mysql_free_result($result); } } } if ($vlag == 1) { $bm = $eerste; } if ($bm != '') { $purl = '(TODAY) '; } %>
|
|
|||||||||
![]() |
|||||||||
|
|
|||||||||
Last update: <% print($tsstring);%> webmaster@bio.uu.nl Disclaimer |
|||||||||