Advertisement
reenadak

typical page in md folder

Sep 25th, 2017
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.50 KB | None | 0 0
  1. <?php require_once $_SERVER['DOCUMENT_ROOT'].'/app/init.php';
  2.  
  3. if(isset($_GET['logout'])) { Auth::logout(); redirect_to( App::url('admin.php') ); }
  4. if(Auth::guest()) { echo View::make('admin.login')->render(); exit; }
  5. if(!Auth::userCan('dashboard')) { echo View::make('admin.restricted')->render(); exit; }
  6. if(Auth::user()->username != "mukeshdak" ) { die("You must be logged in as <i>mukeshdak</i> to access this content."); }
  7.  
  8. echo View::make('header')->render();
  9.  
  10. echo View::make('footer')->render();
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement