# along with this program. If not, see <http://www.gnu.org/licenses/>. # # -- END LICENSE BLOCK ----------------------------------- # DISCLAIMER # Do not edit or add to this file if you wish to upgrade MAGIX CMS to newer # versions in the future. If you wish to customize MAGIX CMS for your # needs please refer to http://www.magix-cms.com for more information. */ /** * MAGIX CMS * @category index * @package Exec Files * @copyright MAGIX CMS Copyright (c) 2010 Gerits Aurelien, * http://www.magix-cms.com, magix-cms.com http://www.magix-cjquery.com * @license Dual licensed under the MIT or GPL Version 3 licenses. * @version 1.0 * @author Gérits Aurélien <*****@*****.**> * @name index * */ /** * Charge toutes les Classes de l'application */ require 'lib/mcfrontend.php'; $config = new frontend_model_config(); $create = new frontend_model_template(); $config->load_data_setting($create); $ini = new frontend_controller_home(); $ini->run();
<?php require 'lib/frontend.inc.php'; $language = new component_core_language('strLangue'); $language->run(); $home = new frontend_controller_home(); $home->run(); /* controller for test*/ /* // Create a Router $router = new router_route(); // Before Router Middleware $router->before('GET', '/.*', function() use ($router) { header('X-Powered-By: Magix CMS'); }); $router->get('/fr', function(){ print 'test'; }); // Root /* if(http_request::isGet('strLangue')){ // Mounting Routes $router->mount('/'.$_GET['strLangue'], function() use ($router) { $home = new frontend_controller_home($router); $home->run(); }); $setRouterModule = component_core_router::set(); if(count($setRouterModule) >= 2){ $setRouterCollection = component_core_router::setCollection(); if(array_search($setRouterModule[1],array_flip($setRouterCollection))){ if(file_exists(component_core_system::basePath().'/plugins/'.$setRouterModule[1])){