Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php require_once $_SERVER['DOCUMENT_ROOT'].'/app/init.php';
- if(isset($_GET['logout'])) { Auth::logout(); redirect_to( App::url('admin.php') ); }
- if(Auth::guest()) { echo View::make('admin.login')->render(); exit; }
- if(!Auth::userCan('dashboard')) { echo View::make('admin.restricted')->render(); exit; }
- if(Auth::user()->username != "mukeshdak" ) { die("You must be logged in as <i>mukeshdak</i> to access this content."); }
- echo View::make('header')->render();
- echo View::make('footer')->render();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement