summaryrefslogtreecommitdiff
path: root/demos/chat/protected/pages/config.php
diff options
context:
space:
mode:
authorcarlgmathisen <>2008-12-07 13:05:05 +0000
committercarlgmathisen <>2008-12-07 13:05:05 +0000
commit736e92efbc75908a2bf26fe333a03990e3bb8100 (patch)
tree21dfe413b2f3f52704ca28e17f22269f9cfdb5ea /demos/chat/protected/pages/config.php
parent6228873cf9d6471463d2413e7dfd7447f759baf2 (diff)
work on php style configuration
Diffstat (limited to 'demos/chat/protected/pages/config.php')
-rw-r--r--demos/chat/protected/pages/config.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/demos/chat/protected/pages/config.php b/demos/chat/protected/pages/config.php
new file mode 100644
index 00000000..926bf150
--- /dev/null
+++ b/demos/chat/protected/pages/config.php
@@ -0,0 +1,31 @@
+<?php
+return array(
+ 'modules' => array(
+ 'users' => array(
+ 'class' => 'ChatUserManager',
+ ),
+ 'auth' => array(
+ 'class' => 'TAuthManager',
+ 'properties' => array(
+ 'UserManager' => 'users',
+ 'LoginPage' => 'Login',
+ ),
+ ),
+ ),
+
+ 'authorization' => array(
+ array(
+ 'action' => 'allow',
+ 'pages' => 'Login',
+ 'users' => '?',
+ ),
+ array(
+ 'action' => 'allow',
+ 'roles' => 'normal',
+ ),
+ array(
+ 'action' => 'deny',
+ 'users' => '*',
+ ),
+ ),
+); \ No newline at end of file