diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2012-09-18 07:41:31 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2012-09-18 07:41:31 +0200 |
| commit | 3367fca1c9cdeb70c95154f20011b268d4d080a4 (patch) | |
| tree | 2c193268b58209dc7f10a9313eacf0f0562364ca /www/www-security.php | |
| parent | 46e5ed5df53911bd2ae3584ef35f86e5d3094fb3 (diff) | |
| download | phorkie-3367fca1c9cdeb70c95154f20011b268d4d080a4.tar.gz phorkie-3367fca1c9cdeb70c95154f20011b268d4d080a4.zip | |
rename "secure" config setting to "securityLevel"
Diffstat (limited to 'www/www-security.php')
| -rw-r--r-- | www/www-security.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/www/www-security.php b/www/www-security.php index 9fae87b..e9fdab7 100644 --- a/www/www-security.php +++ b/www/www-security.php @@ -4,12 +4,12 @@ namespace phorkie; * security levels + login requirement: */ -if (!isset($GLOBALS['phorkie']['auth']['secure'])) { +if (!isset($GLOBALS['phorkie']['auth']['securityLevel'])) { //not set? highest level of security - $GLOBALS['phorkie']['auth']['secure'] = 2; + $GLOBALS['phorkie']['auth']['securityLevel'] = 2; } -if ($GLOBALS['phorkie']['auth']['secure'] == 0) { +if ($GLOBALS['phorkie']['auth']['securityLevel'] == 0) { //everyone may do everything return; } @@ -26,7 +26,7 @@ if (!isset($_SESSION['identity'])) { $logged_in = true; } -if ($secureAtLevel >= $GLOBALS['phorkie']['auth']['secure']) { +if ($secureAtLevel >= $GLOBALS['phorkie']['auth']['securityLevel']) { if ($logged_in) { return; } |
