Changeset 4
- Timestamp:
- 06/01/07 06:38:36 (20 months ago)
- Location:
- trunk/app
- Files:
-
- 3 modified
-
app_controller.php (modified) (2 diffs)
-
config/core.php (modified) (3 diffs)
-
controllers/users_controller.php (modified) (1 diff)
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 } -
trunk/app/config/core.php
r3 r4 49 49 * 50 50 */ 51 define('DEBUG', 0);51 define('DEBUG', 1); 52 52 /** 53 53 * Turn of caching checking wide. … … 74 74 * 75 75 */ 76 define('CAKE_SESSION_SAVE', ' php');76 define('CAKE_SESSION_SAVE', 'database'); 77 77 /** 78 78 * If using you own table name for storing sessions … … 114 114 * For example: admin_index, admin_edit 115 115 */ 116 //define('CAKE_ADMIN', 'admin');116 define('CAKE_ADMIN', 'admin'); 117 117 /** 118 118 * The define below is used to turn cake built webservices -
trunk/app/controllers/users_controller.php
r1 r4 75 75 } 76 76 77 public function edit($id = null) {77 public function admin_edit($id = null) { 78 78 79 79 $this->layout = 'admin';
