diff options
author | Michael Tänzer <neo@nhng.de> | 2014-03-24 17:46:24 +0100 |
---|---|---|
committer | Michael Tänzer <neo@nhng.de> | 2014-03-24 17:46:24 +0100 |
commit | b73cb1b8bd762a2c853e5981064fe86620ad0203 (patch) | |
tree | 6252c2ec4c5b24f7a08e5885407f90dac69506d4 | |
parent | 97485af305ae48c756684ada7d379881e309bb7d (diff) | |
download | cacert-devel-b73cb1b8bd762a2c853e5981064fe86620ad0203.tar.gz cacert-devel-b73cb1b8bd762a2c853e5981064fe86620ad0203.tar.xz cacert-devel-b73cb1b8bd762a2c853e5981064fe86620ad0203.zip |
bug 1138: $_SESSION['support'] is not used anywhere => remove it
Signed-off-by: Michael Tänzer <neo@nhng.de>
-rw-r--r-- | includes/account.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/includes/account.php b/includes/account.php index d7fd43d..4e59a00 100644 --- a/includes/account.php +++ b/includes/account.php @@ -3138,11 +3138,9 @@ function buildSubjectFromSession() { } if($id == 59){ - if ($oldid == 43 && $_SESSION['profile']['admin'] == 1) { - $_SESSION['support']=1; - }ELSEIF ($oldid == 13 && intval($_REQUEST['userid']) == $_SESSION['profile']['id']){ - $_SESSION['support']=0; - }ELSE{ + if (!($oldid == 43 && $_SESSION['profile']['admin'] == 1) && + !($oldid == 13 && intval($_REQUEST['userid']) == $_SESSION['profile']['id'])) + { showheader(_("My CAcert.org Account!")); echo _("You do not have access to this page."); showfooter(); |