require_once 'view/DateTimeView.php'; require_once 'view/LayoutView.php'; require_once 'view/RegisterView.php'; require_once 'view/RockPaperScissorsView.php'; require_once 'view/ToDoListView.php'; require_once 'model/Login.php'; require_once 'model/ListOfUsers.php'; require_once 'model/RegisterUser.php'; require_once 'model/User.php'; require_once 'model/AddToDoList.php'; require_once 'model/RockPaperScissor.php'; require_once 'controller/LoginController.php'; require_once 'controller/RegisterUserController.php'; //MAKE SURE ERRORS ARE SHOWN... MIGHT WANT TO TURN THIS OFF ON A PUBLIC SERVER error_reporting(E_ALL); ini_set('display_errors', 'On'); $listOfUsers = new ListOfUsers(); $login = new Login($listOfUsers); $register = new RegisterUser(); //CREATE OBJECTS OF THE VIEWS $v = new LoginView($login); $dtv = new DateTimeView(); $lv = new LayoutView(); $regView = new RegisterView(); $rpsGameView = new RockPaperScissorsView(); $toDoListView = new ToDoListView(); $regController = new RegisterUserController($regView, $register, $v); $lc = new LoginController($v, $login, $lv, $toDoListView); $regController->startRegisterNewUser(); $lc->tryToLogin(); $lv->chooseLayout($login->isLoggedIn(), $v, $dtv, $regView, $rpsGameView, $toDoListView);
* * The page for calling the Hackademic Register User Controller * * Copyright (c) 2012 OWASP * * LICENSE: * * This file is part of Hackademic CMS (https://www.owasp.org/index.php/OWASP_Hackademic_Challenges_Project). * * Hackademic CMS is free software: you can redistribute it and/or modify it under the terms of the GNU General Public * License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any * later version. * * Hackademic CMS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with Hackademic CMS. If not, see * <http://www.gnu.org/licenses/>. * * * @author Pragya Gupta <pragya18nsit[at]gmail[dot]com> * @author Konstantinos Papapanagiotou <conpap[at]gmail[dot]com> * @license http://www.gnu.org/licenses/gpl.html * @copyright 2012 OWASP * */ require_once "../init.php"; require_once HACKADEMIC_PATH . "controller/class.RegisterUserController.php"; $controller = new RegisterUserController(); echo $controller->go();
Route::get('/password/remind', array('uses' => 'PasswordController@remind', 'as' => 'password.remind')); Route::get('/password/reset', function () { return View::make('/password/reset'); }); //sending the request email Route::post('/password/reset', array('uses' => 'PasswordController@request', 'as' => 'password.request')); //creating a reset form Route::get('/password/reset/{token}', array('uses' => 'PasswordController@reset', 'as' => 'password.reset')); //updating the password Route::post('password/reset/{token}', array('uses' => 'PasswordController@update', 'as' => 'password.update')); /*=============================================================*/ /* This is the second later of the App(system) which is /* signing up the user to the grand database */ /*=============================================================*/ Route::post('/register_user', function () { $created_user = new RegisterUserController(); return $created_user->storeUser(); }); Route::get('/register/signup_user', function () { return View::make('register/signup_user'); }); //This is for backend routine Route::get('/back_end/addProduct', array('uses' => 'InventoryController@display', 'as' => 'manageproduct.display')); Route::post('/back_end/deletep/{idp}', array('uses' => 'InventoryController@destroy', 'as' => 'deleteProduct')); Route::get('/back_end/manageProduct', array('uses' => 'InventoryController@displayInformation', 'as' => 'manageproduct.displayInformation')); //Routes to handle Catergory Module Route::get('/back_end/addCategory', function () { return View::make('/back_end/addCategory'); }); Route::get('/back_end/manageCategory', array('uses' => 'CategoryController@displayCategory', 'as' => 'managecategory.displayCategory')); /*Route::get('/back_end/manageCategory', function()