aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/www/policy/public
diff options
context:
space:
mode:
authorM.Gergo2019-01-20 11:48:48 +0100
committerM.Gergo2019-01-20 11:48:48 +0100
commitf70027ffbedce10f412868a7bf9b0b67b113f1b1 (patch)
treefbcc48049f1e66fe3ec66a0f3d8eee47bb400cdb /mayor-orig/www/policy/public
parente6988247360fa98b85915a38803d018dd353df00 (diff)
downloadmayor-f70027ffbedce10f412868a7bf9b0b67b113f1b1.tar.gz
mayor-f70027ffbedce10f412868a7bf9b0b67b113f1b1.zip
Rev: 4423
Diffstat (limited to 'mayor-orig/www/policy/public')
-rw-r--r--mayor-orig/www/policy/public/password/changeMyPassword-pre.php3
-rw-r--r--mayor-orig/www/policy/public/portal/portal/portal-pre.php22
-rw-r--r--mayor-orig/www/policy/public/session/logout-pre.php1
3 files changed, 7 insertions, 19 deletions
diff --git a/mayor-orig/www/policy/public/password/changeMyPassword-pre.php b/mayor-orig/www/policy/public/password/changeMyPassword-pre.php
index f7c68879..e9ef2f3c 100644
--- a/mayor-orig/www/policy/public/password/changeMyPassword-pre.php
+++ b/mayor-orig/www/policy/public/password/changeMyPassword-pre.php
@@ -2,6 +2,9 @@
if (_RIGHTS_OK !== true) die();
+ _clearSessionCache($sessionID);
+ unsetTokenCookies(); // ha valaki ide tévedne, visszavonjuk a Tokenjét és a cache-t is vissza kell
+
$toPolicy = readVariable($_REQUEST['toPolicy'], 'enum', 'private', $POLICIES);
$userAccount = readVariable($_REQUEST['userAccount'], 'emptystringnull', (defined('_USERACCOUNT'))?_USERACCOUNT:null);
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);
diff --git a/mayor-orig/www/policy/public/session/logout-pre.php b/mayor-orig/www/policy/public/session/logout-pre.php
index ac344fee..013be18c 100644
--- a/mayor-orig/www/policy/public/session/logout-pre.php
+++ b/mayor-orig/www/policy/public/session/logout-pre.php
@@ -21,6 +21,7 @@
session_destroy();
session_write_close();
setcookie(session_name(),'',0,'/');
+ setcookie($sessionID,'',0,'/');
session_regenerate_id(true);
header('Location: index.php');
}