2
Here is the whole code section. I THINK it might be the date format causing this problem, but I am not sure. I am assuming it is the function that checks to make sure a user is 18 years old, but I could be wrong. I tried replacing all insances of "mktime" with "time", but then it thinks everyone is too young to join no matter what birthday they enter. I also tried "gmmktime" and the error returned.
function daysleft($date,$format) {
### this function will return the number of seconds between 2 dates!!
$today=date("Y-m-d H:i:s");
$split_datenow=explode (" ",$today);
$date_now=explode ("-",$split_datenow[0]);
list ($nyear,$nmonth,$nday)=$date_now;
$time_now=explode (":",$split_datenow[1]);
list ($nhour,$nmin,$nsec)=$time_now;
$datenow=mktime($nhour,$nmin,$nsec,$nmonth,$nday,$nyear);
$arrDateTime = explode(" ", $date);
$arrDate = explode("-", $arrDateTime[0]);
$arrTime = explode(":", $arrDateTime[1]);
$daysleft=mktime($arrTime[0],$arrTime[1],$arrTime[2],$arrDate[1],$arrDate[2],$arrDate[0]);
$daycount=intval($daysleft-$datenow);
return $daycount;
}
Magick can never be restrained, but when freely given is thrice regained!