Exemple #1
0
function pcheckdate($month, $day, $year)
{
    global $MonthDays;
    if ($month < 1 || $month > 12 || $year < 1 || $year > 32767 || $day < 1) {
        return false;
    }
    if ($day > $MonthDays[$month]) {
        if ($month != 12 && $day != 12 && !isKabise($year)) {
            return false;
        }
    }
    return true;
}
Exemple #2
0
function pcheckdate($month, $day, $year)
{
    if ($month < 1 || $month > 12 || $year < 1 || $year > 32767 || $day < 1) {
        return 0;
    }
    global $pdate_month_days;
    if ($day > $pdate_month_days[$month]) {
        if ($month != 12 || $day != 30 || !isKabise($year)) {
            return 0;
        }
    }
    return 1;
}