diff options
Diffstat (limited to 'mayor-orig/www/policy/public/portal')
-rw-r--r-- | mayor-orig/www/policy/public/portal/portal/portal-pre.php | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/mayor-orig/www/policy/public/portal/portal/portal-pre.php b/mayor-orig/www/policy/public/portal/portal/portal-pre.php index 7ef3ebca..d02f5484 100644 --- a/mayor-orig/www/policy/public/portal/portal/portal-pre.php +++ b/mayor-orig/www/policy/public/portal/portal/portal-pre.php @@ -4,25 +4,9 @@ require_once('include/modules/portal/share/nevnap.php'); require_once('include/modules/portal/share/kerdoiv.php'); - $ev=date('Y'); - $honap=date('m'); - $nap=date('d'); - - if ($ev % 4 ==0) { - if ($ev % 100 !==0) { - $szokoev=true; - } else { - if ($ev % 400==0) { - $szokoev=true; - } - } - } else { - $szokoev=false; - } - - if (!$szokoev && $honap==2 && $nap>=24) { - $nap=$nap+1; - } + $ev=date('Y');$honap=date('m');$nap=date('d'); + if ($ev % 4 ==0) {if ($ev % 100 !==0) {$szokoev=true;} else {if ($ev % 400==0) {$szokoev=true;}}} else {$szokoev=false;} + if (!$szokoev && $honap==2 && $nap>=24) {$nap=$nap+1;} $ADAT['nevnap']['ma'] = getNevnap($honap,$nap); $ADAT['nevnap']['holnap'] = getNevnap($honap,$nap+1); |