You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PlexShare/fuel/app/classes/controller/admin.php

22 lines
399 B

<?php
use Fuel\Core\Response;
use Fuel\Core\View;
class Controller_Admin extends Controller_Home
{
public function before()
{
parent::before();
$user = Session::get('user');
if(!$user->admin)
Response::redirect('/login');
}
public function action_index()
{
Response::forge(View::forge('admin/index'));
}
}