summaryrefslogtreecommitdiff
path: root/lib/conf
diff options
context:
space:
mode:
Diffstat (limited to 'lib/conf')
-rw-r--r--lib/conf/apps.php63
1 files changed, 34 insertions, 29 deletions
diff --git a/lib/conf/apps.php b/lib/conf/apps.php
index 524da45..e0c1dfe 100644
--- a/lib/conf/apps.php
+++ b/lib/conf/apps.php
@@ -2,53 +2,58 @@
$homepage = "view-static-home";
+$priv_guest = 0;
+$priv_user = 1;
+$priv_auth = 2;
+$priv_mod = 3;
+$priv_admin = 4;
+
$apps = array(
"static" => array(
- "view" => 0,
+ "view" => $priv_guest,
),
// File upload application
"file" => array(
- "index" => 1,
- "delete" => 1,
- "editinfo" => 1,
- "upload" => 0,
- "folder" => 0,
- "newfld" => 1,
- "editfld" => 1,
- "delfld" => 1,
+ "index" => $priv_guest,
+ "delete" => $priv_user,
+ "editinfo" => $priv_user,
+ "upload" => $priv_user,
+ "folder" => $priv_guest,
+ "newfld" => $priv_user,
+ "editfld" => $priv_user,
+ "delfld" => $priv_user,
),
// Account application
"account" => array(
- "new" => 0,
- "list" => 0,
+ "new" => $priv_guest,
+ "list" => $priv_guest,
),
// Notebook application
"notes" => array(
- //"index" => 0,
- "user" => 0,
- "view" => 0,
- "new" => 1,
- "edit" => 1,
- "delete" => 1,
- "move" => 1,
- "source" => 0,
+ "user" => $priv_guest,
+ "view" => $priv_guest,
+ "new" => $priv_user,
+ "edit" => $priv_user,
+ "delete" => $priv_user,
+ "move" => $priv_user,
+ "source" => $priv_guest,
),
// Blogging application
"blog" => array(
- "index" => 0,
- "view" => 0,
- "drafts" => 2,
- "publish" => 2,
- "post" => 2,
- "edit" => 2,
- "delete" => 2,
- "comment" => 1,
- "edcom" => 1,
- "delcom" => 2,
+ "index" => $priv_guest,
+ "view" => $priv_guest,
+ "drafts" => $priv_auth,
+ "publish" => $priv_auth,
+ "post" => $priv_auth,
+ "edit" => $priv_auth,
+ "delete" => $priv_auth,
+ "comment" => $priv_user,
+ "edcom" => $priv_user,
+ "delcom" => $priv_mod,
),