//Denne delen plasseres øverst i dit dokument
function getmicrotime(){
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
$xtime_start = getmicrotime();
if(strstr($_SERVER['PHP_SELF'], 'thread.php')){
/*
Her setter vi at denne tråden er fra nå av lest.
*/
if(!in_array($_GET['id'], explode(',', $_COOKIE['shiba_lest_innlegg']))){
$lestarray = $_COOKIE['shiba_lest_innlegg'] . "," . $_GET['id'];
setcookie('shiba_lest_innlegg', $lestarray,time()+60*60*24*15);
}
}
?>