'index' => 'new'//"new" or "list"
);
$GLOBALS['phorkie']['auth'] = array(
- 'secure' => 0, // 0 = public, no authentication, 1 = protect adds/edits/deletes, 2 = use authentication
+ 'securityLevel' => 0, // 0 = public, no authentication, 1 = protect adds/edits/deletes, 2 = require authentication
'userlist' => false, // true = user must be explicitly defined, false = anyone allowed, but they must authenticate
'anonymousName' => 'Anonymous', // Email for non-authenticated commits
'anonymousEmail' => 'anonymous@phorkie' // Email for non-authenticated commits
* 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;
}
$logged_in = true;
}
-if ($secureAtLevel >= $GLOBALS['phorkie']['auth']['secure']) {
+if ($secureAtLevel >= $GLOBALS['phorkie']['auth']['securityLevel']) {
if ($logged_in) {
return;
}