* En remplacent 'utilisateur', par le login (nom de société)
* 
*/
// Route pour Bulhmann
Route::any('buhlmann', array('as' => 'buhlmann', 'uses' => 'company@index', 'before' => 'client'));
// Route pour TCR-Group
Route::any('tcr-group', array('as' => 'tcr-group', 'uses' => 'company@index', 'before' => 'client'));
/*
|--------------------------------------------------------------------------
| Application Routes // NE PAS TOUCHER
|--------------------------------------------------------------------------
|
*/
Route::controller(array('company', 'geocode', 'client', 'home'));
Route::get('/', array('before' => 'auth'));
if (!Request::cli()) {
    /**
     * Routes principales
     * 
     */
    Route::any('admin/list', array('as' => 'marker_list', 'uses' => 'home@marker', 'before' => 'auth'));
    Route::any('client/listing', array('before' => 'auth', 'uses' => 'client@listing', 'before' => 'auth'));
    Route::any('client/new_client', array('before' => 'auth', 'uses' => 'client@new_client', 'before' => 'auth'));
    Route::any('new', array('as' => 'new_marker', 'uses' => 'home@new_marker', 'before' => 'auth'));
    Route::any('edit/marker/(:any)', array('as' => 'edit_marker', 'uses' => 'home@edit_marker', 'before' => 'auth'));
    Route::any('geocode/index', array('uses' => 'geocode@index', 'before' => 'auth'));
    if (Auth::check()) {
        Route::any(strtolower(Auth::user()->username) . '/list', array('as' => 'client_marker_list', 'uses' => 'home@marker', 'before' => 'client'));
        Route::any(strtolower(Auth::user()->username) . '/new', array('as' => 'client_new_marker', 'uses' => 'home@new_marker', 'before' => 'client'));
        Route::any(strtolower(Auth::user()->username) . '/edit/marker/(:any)', array('as' => 'client_edit_marker', 'uses' => 'home@edit_marker', 'before' => 'client'));
    }
Example #2
0
| the typical PHP control structures. We'll simply enable it here.
|
*/
Blade::sharpen();
/*
|--------------------------------------------------------------------------
| Set The Default Timezone
|--------------------------------------------------------------------------
|
| We need to set the default timezone for the application. This controls
| the timezone that will be used by any of the date methods and classes
| utilized by Laravel or your application. The timezone may be set in
| your application configuration file.
|
*/
date_default_timezone_set(Config::get('application.timezone'));
/*
|--------------------------------------------------------------------------
| Start / Load The User Session
|--------------------------------------------------------------------------
|
| Sessions allow the web, which is stateless, to simulate state. In other
| words, sessions allow you to store information about the current user
| and state of your application. Here we'll just fire up the session
| if a session driver has been configured.
|
*/
if (!Request::cli() and Config::get('session.driver') !== '') {
    Session::load();
}
include 'helpers.php';
Example #3
0
 * GNU General Public license for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 * @category	FluxBB
 * @package		Core
 * @copyright	Copyright (c) 2008-2012 FluxBB (http://fluxbb.org)
 * @license		http://www.gnu.org/licenses/gpl.html	GNU General Public License
 */
define('FLUXBB_VERSION', '2.0-alpha1');
Autoloader::namespaces(array('fluxbb' => __DIR__ . DS . 'classes'));
if (fluxbb\Core::installed()) {
    Request::set_env('fluxbb');
}
// Set up our custom session handler
if (!Request::cli() && !Session::started()) {
    Session::extend('fluxbb::session', function () {
        return new fluxbb\Session\Driver(Laravel\Database::connection());
    });
    Config::set('session.driver', 'fluxbb::session');
    Session::load();
}
// View composers
require 'helpers/composers.php';
// Route filters
require 'helpers/filters.php';
// HTML helpers
require 'helpers/html.php';
// Validators
require 'helpers/validator.php';