<?php Route::filter('login_check', function () { session_start(); //$_SESSION['user_id']=57184;//62841;//78268;//105354;//36327;//11752; //66804; //48032 //47642 //22730 //50671 //48286 //85896//57184 if (empty($_SESSION['user_id'])) { if (App::environment('local')) { return Redirect::to('http://localhost/makeadiff.in/home/makeadiff/public_html/madapp/index.php/auth/login/' . base64_encode(Request::url())); } else { return Redirect::to('http://makeadiff.in/madapp/index.php/auth/login/' . base64_encode(Request::url())); } } }); Route::filter('propel_check', function () { if (!HomeController::checkPropel()) { return Redirect::to('error')->with('message', 'Only Propel Fellows and Propel Wingmen can access the Propel App'); } }); Route::get('/error', 'CommonController@showError'); Route::group(array('before' => 'login_check|propel_check'), function () { Route::get('/', ['as' => 'home', 'uses' => 'HomeController@showHome']); Route::get('/success', 'CommonController@showSuccess'); Route::get('/logout', 'CommonController@logout'); Route::get('/wingman-journal/select-wingman', 'WingmanJournalController@selectWingman'); Route::get('/wingman-journal/{wingman_id}', 'WingmanJournalController@showList'); Route::get('/feedback/module-feedback', 'WingmanJournalController@showModuleFeedback'); Route::get('/feedback/select-student', 'WingmanJournalController@selectStudentsCity'); Route::get('/feedback/{wingman_id}', 'WingmanJournalController@showStudents'); Route::get('/feedback/{wingman_id}/{student_id}', 'WingmanJournalController@showFeedback'); Route::get('/calendar/select-wingman', 'CalendarController@selectWingman'); Route::get('/calendar/approve-calendar', 'CalendarController@approveView');