Changeset 4 for trunk/app/app_controller.php
- Timestamp:
- 06/01/07 06:38:36 (18 months ago)
- Files:
-
- 1 modified
-
trunk/app/app_controller.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/app_controller.php
r1 r4 9 9 public $helpers = array('Html', 'othAuth'); 10 10 11 public $tags = array("font", "em", "strong", "div", "img", "p", "br", "hr", "a", "i", "b", "object", "param", "embed"); // tags authorized to inputfilter 12 13 public $attr = array("color", "width", "src", "height", "alt", "title", "href", "value", "type", "name", "align", "?", "="); // attributes authorized to inputfilter 14 11 15 // these are the global restrictions, they are very important. 12 16 //all the permissions defined above are weighted against these restrictions to calculate the total allow or deny for a specific request. 13 public $othAuthRestrictions = array('ad d','edit','delete', 'listing');17 public $othAuthRestrictions = array('admin_add','admin_edit','admin_delete', 'admin_listing', 'admin_start'); 14 18 15 public function beforeFilter() 16 { 17 19 public function beforeFilter() { 20 18 21 $auth_conf = array( 19 22 'mode' => 'oth', 20 23 'login_page' => '/users/login', 21 24 'logout_page' => '/users/logout', 22 'access_page' => '/ users/general',23 'hashkey' => 'mYpERsOn ALhaSHkeY2',25 'access_page' => '/news/view', 26 'hashkey' => 'mYpERsOn78787ALhaSHkeY', 24 27 'noaccess_page' => '/users/noaccess', 25 28 'strict_gid_check' => true); … … 28 31 $this->othAuth->init($auth_conf); 29 32 $this->othAuth->check(); 30 //echo $this->othAuth->check();31 33 32 34 }
