function updateSiteDate(){ sql_query("UPDATE ".TABLE_PREFIX."options SET lastdate='".date("Y-m-d H:i:s")."'"); } function printDate($d){ return date("d.m.Y",strtotime($d)); } function printFullDate($d){ return date("d",strtotime($d))." ".$GLOBALS['MONTHS3'][intval(date("m",strtotime($d)))]." ".date("Y",strtotime($d)); } function printWeekDay($d){ $i = intval(date("w",strtotime($d))); return $GLOBALS['DAYS2'][$i]; } ?>