// ##################### Save birthdays into template ################### function getbirthdays() { global $timeoffset, $DB_site; $btoday = date("Y-m-d",time()+(-12-$timeoffset)*3600) . '|||'; $btoday .= date("Y-m-d",time()+(12-$timeoffset)*3600) . '|||'; $todayneggmt = date("m-d",time()+(-12-$timeoffset)*3600); $todayposgmt = date("m-d",time()+(12-$timeoffset)*3600); $bdays = $DB_site->query("SELECT username,userid,birthday FROM user WHERE birthday LIKE '%-$todayneggmt' OR birthday LIKE '%-$todayposgmt'");
// ##################### Save birthdays into template ################### function getbirthdays() { global $timeoffset, $DB_site; $btoday = date("Y-m-d",time()+(-12-$timeoffset)*3600) . '|||'; $btoday .= date("Y-m-d",time()+(12-$timeoffset)*3600) . '|||'; $todayneggmt = date("Y-m-d",time()+(-12-$timeoffset)*3600); $todayposgmt = date("Y-m-d",time()+(12-$timeoffset)*3600); $bdays = $DB_site->query("SELECT username,userid,birthday FROM user WHERE birthday = '$todayneggmt' OR birthday = '$todayposgmt'");