Changeset 2388 for trunk/modules/auth

Show
Ignore:
Timestamp:
03/31/2008 07:31:25 AM (8 months ago)
Author:
PugFish
Message:

Updated url references to new controller name

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/auth/controllers/auth_demo.php

    r2316 r2388  
    2020                parent::__construct(); 
    2121 
    22                 // Load some libraries 
    23                 foreach(array('auth', 'session') as $lib) 
    24                 { 
    25                         $class = ucfirst($lib); 
    26                         $this->$lib = new $class(); 
    27                 } 
     22                // Load auth library 
     23                $this->auth = new Auth(); 
    2824        } 
    2925 
     
    5955                                { 
    6056                                        // Redirect to the login page 
    61                                         url::redirect('auth/login'); 
     57                                        url::redirect('auth_demo/login'); 
    6258                                } 
    6359                        } 
     
    7268                if ($this->auth->logged_in()) 
    7369                { 
    74                         $form = new Forge('auth/logout', 'Log Out'); 
     70                        $form = new Forge('auth_demo/logout', 'Log Out'); 
    7571 
    7672                        $form->submit('Logout Now'); 
     
    114110 
    115111                // Redirect back to the login page 
    116                 url::redirect('auth/login'); 
     112                url::redirect('auth_demo/login'); 
    117113        } 
    118114