Changeset 4

Show
Ignore:
Timestamp:
06/01/07 06:38:36 (20 months ago)
Author:
aarkerio
Message:

Friday little changes

Location:
trunk/app
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/app_controller.php

    r1 r4  
    99    public $helpers = array('Html', 'othAuth'); 
    1010     
     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     
    1115    // these are the global restrictions, they are very important.  
    1216    //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('add','edit','delete', 'listing'); 
     17    public $othAuthRestrictions = array('admin_add','admin_edit','admin_delete', 'admin_listing', 'admin_start'); 
    1418     
    15     public function beforeFilter() 
    16     { 
    17       
     19    public function beforeFilter() { 
     20        
    1821       $auth_conf = array( 
    1922                    'mode'  => 'oth', 
    2023                    'login_page'  => '/users/login', 
    2124                    'logout_page' => '/users/logout', 
    22                     'access_page' => '/users/general', 
    23                     'hashkey'     => 'mYpERsOnALhaSHkeY2', 
     25                    'access_page' => '/news/view', 
     26                    'hashkey'     => 'mYpERsOn78787ALhaSHkeY', 
    2427                    'noaccess_page' => '/users/noaccess', 
    2528                    'strict_gid_check' => true); 
     
    2831        $this->othAuth->init($auth_conf); 
    2932        $this->othAuth->check(); 
    30         //echo $this->othAuth->check(); 
    3133         
    3234    } 
  • trunk/app/config/core.php

    r3 r4  
    4949 * 
    5050 */ 
    51     define('DEBUG', 0); 
     51    define('DEBUG', 1); 
    5252/** 
    5353 * Turn of caching checking wide. 
     
    7474 * 
    7575 */ 
    76     define('CAKE_SESSION_SAVE', 'php'); 
     76    define('CAKE_SESSION_SAVE', 'database'); 
    7777/** 
    7878 * If using you own table name for storing sessions 
     
    114114 * For example: admin_index, admin_edit 
    115115 */ 
    116 //  define('CAKE_ADMIN', 'admin'); 
     116    define('CAKE_ADMIN', 'admin'); 
    117117/** 
    118118 *  The define below is used to turn cake built webservices 
  • trunk/app/controllers/users_controller.php

    r1 r4  
    7575    } 
    7676     
    77     public function edit($id = null) { 
     77    public function admin_edit($id = null) { 
    7878     
    7979    $this->layout    = 'admin';