/** * Display a listing of the resource. * * @return Response */ public function index() { if (ACL::checkUserPermission('games.roulette') == false) { return Redirect::action('dashboard'); } $title = Lang::get('Roulette Game List'); $tablelist = Gametables::with('gamedetails', 'operator')->get(); $data = array('acl' => ACL::buildACL(), 'tablelist' => $tablelist, 'title' => $title); return View::make('games/index', $data); }
public function winnings() { if (ACL::checkUserPermission('reports.winnings') == false) { return Redirect::action('dashboard'); } $game_winnings = Gamewinnings::with('channel.tabledetails.operator')->get(); $title = Lang::get('Winning Numbers'); $data = array('acl' => ACL::buildACL(), 'winnings' => $game_winnings, 'title' => $title); return View::make('reports/winnings', $data); }
/** * Display a listing of the resource. * * @return Response */ public function index() { if (ACL::checkUserPermission('settings.groups') == false) { return Redirect::action('dashboard'); } $groupList = Group::all(); $title = Lang::get('Group'); $acl = ACL::buildACL(); return View::make('groups/index', array('groupList' => $groupList, 'title' => $title)); }
/** * Display a listing of the resource. * * @return Response */ public function index() { if (ACL::checkUserPermission('settings.user') == false) { return Redirect::action('dashboard'); } $userList = User::all(); $title = Lang::get('User'); $status = array('0' => array('label' => 'default', 'status' => 'Inactive'), '1' => array('label' => 'success', 'status' => 'Active')); return View::make('user/index', array('acl' => ACL::buildACL(), 'userList' => $userList, 'title' => $title, 'status' => $status)); }
/** * Display a listing of the resource. * * @return Response */ public function index() { if (ACL::checkUserPermission('settings.permission') == false) { return Redirect::action('dashboard'); } $permission = Permission::all(); $title = Lang::get('Permission'); $acl = ACL::buildACL(); return View::make('permission/index', array('acl' => $acl, 'permissionList' => $permission, 'title' => $title)); }
/** * Display a listing of the resource. * * @return Response */ public function index() { if (ACL::checkUserPermission('settings.index') == false) { return Redirect::action('dashboard'); } $title = Lang::get('Setting List'); $settingList = Settings::all(); $acl = ACL::buildACL(); $data = array('title' => $title, 'acl' => $acl, 'settingList' => $settingList); return View::make('settings/index', $data); }
public function player() { if (ACL::checkUserPermission('points.player') == false) { return Redirect::action('dashboard'); } $form_open = Form::open(array('method' => 'post', 'files' => true, 'id' => 'form-player-csv', 'class' => 'smart-form', 'role' => 'form')); $userList = UserMember::with('user', 'group', 'points')->where('group_id', 4)->get(); $title = Lang::get('Player List'); $client_ip = Request::getClientIp(true); $data = array('acl' => ACL::buildACL(), 'userList' => $userList, 'title' => $title, 'form_open' => $form_open, 'client_ip' => $client_ip); return View::make('points/index', $data); }
/** * Display a listing of the resource. * * @return Response */ public function index() { if (ACL::checkUserPermission('player.index') == false) { return Redirect::action('dashboard'); } $form_open = Form::open(array('method' => 'post', 'files' => true, 'id' => 'form-player-csv', 'class' => 'smart-form', 'role' => 'form')); $userList = UserMember::with('user', 'group', 'points')->where('group_id', 4)->get(); $title = Lang::get('Player List'); $status = array('0' => array('label' => 'default', 'status' => 'Inactive'), '1' => array('label' => 'success', 'status' => 'Active')); $user = $userList->toArray(); $data = array('acl' => ACL::buildACL(), 'userList' => $userList, 'title' => $title, 'status' => $status, 'form_open' => $form_open); return View::make('player/index', $data); }
| */ Route::filter('auth', function () { if (Auth::guest()) { Session::put('loginRedirect', Request::url()); $errorMsg = 'Please login using your credentials'; return Redirect::action('login.index')->with('error', $errorMsg); } }); Route::filter('auth.basic', function () { return Auth::basic(); }); Route::filter('auth.permission', function () { $routeName = Route::currentRouteName(); if (Auth::check()) { $buildACL = ACL::buildACL(); if (!array_key_exists($routeName, $buildACL['access'])) { return Redirect::action('denied'); } } else { $errorMsg = 'Please login using your credentials'; return Redirect::action('login.index')->with('error', $errorMsg); } }); Route::filter('auth.session', function () { if (Auth::check()) { $user = User::find(Auth::user()->id); $sessionToken = Session::get('_token'); if ($user->session_token != $sessionToken) { Auth::logout(); Session::flush();