Changeset 248

Show
Ignore:
Timestamp:
05/23/07 17:28:44
Author:
grahack
Message:

renamed the config item FAL_flash to FAL_deny_with_flash_message + improved the comments

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • FreakAuth/trunk/www/system/application/config/freakauth_light.php

    r245 r248  
    6868 /* 
    6969 |-------------------------------------------------------------------------- 
    70  | Enable/Disable the Flash Message notice system (only for the deny system) 
    71  |-------------------------------------------------------------------------- 
    72  | 
    73  | if TRUE, uses FLASH messages and a redirect to deny the visitor 
    74  | if FALSE, only loads the page you defined in $config['FAL_denied_page'] 
    75  | 
    76  */ 
    77  $config['FAL_flash'] = TRUE; 
     70 | Enable/Disable the Flash Message notice system FOR THE DENY SYSTEM ONLY 
     71 |-------------------------------------------------------------------------- 
     72 | 
     73 | when a visitor is not allowed to see a particular page, his (her) access 
     74 | is "denied" 
     75 | 
     76 | if TRUE, FAL uses a FLASH message and a "redirect back" to deny the visitor 
     77 | if FALSE, FAL only loads the page you defined in $config['FAL_denied_page'] 
     78 | 
     79 */ 
     80 $config['FAL_deny_with_flash_message'] = TRUE; 
    7881  
    7982 /* 
     
    9194 /* 
    9295 |------------------------------------------------------------------------------ 
    93  | Page loaded if 'FAL_flash' set to FALSE 
     96 | Page loaded if 'FAL_deny_with_flash_message' set to FALSE 
    9497 |------------------------------------------------------------------------------ 
    9598 | 
  • FreakAuth/trunk/www/system/application/libraries/Freakauth_light.php

    r247 r248  
    188188     * doesn't have enough credentials 
    189189     * 
    190      * if FAL_flash == true in config file, displays a flash message 
    191      *      and redirect to the referer page (or root if none) 
     190     * if FAL_deny_with_flash_message == true in config file, displays a flash 
     191     * message and redirects to the referer page (or homepage if none) 
    192192     * 
    193193     * else displays the FAL_denied_page (see config file) 
     
    198198    { 
    199199        $this->CI->lang->load('freakauth'); 
    200         if ($this->CI->config->item('FAL_flash')) 
     200        if ($this->CI->config->item('FAL_deny_with_flash_message')) 
    201201        { 
    202202            // if visitor is a GUEST