diff options
author | M.Gergo | 2019-01-20 11:48:48 +0100 |
---|---|---|
committer | M.Gergo | 2019-01-20 11:48:48 +0100 |
commit | f70027ffbedce10f412868a7bf9b0b67b113f1b1 (patch) | |
tree | fbcc48049f1e66fe3ec66a0f3d8eee47bb400cdb /mayor-orig/www/policy/public/portal | |
parent | e6988247360fa98b85915a38803d018dd353df00 (diff) | |
download | mayor-f70027ffbedce10f412868a7bf9b0b67b113f1b1.tar.gz mayor-f70027ffbedce10f412868a7bf9b0b67b113f1b1.zip |
Rev: 4423
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); |