1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
| <?php
/*
This file is part of Mkframework.
Mkframework 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 3 of the License.
Mkframework 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 Mkframework. If not, see <http://www.gnu.org/licenses/>.
*/
/*-----------------------------------------------------------------------------------
Auteur: Mika http://mkdevs.com
Page: tout passe par la; c'est le moteur du site, il gere les appels aux modules/action...
Description:
C'est ici que vous pouvez installer ci-besoin un compteur de visite
-------------------------------------------Warning: include(../../../../lib/framework//html2pdf/html2pdf.class.php): failed to open stream: No such file or directory in /opt/lampp/htdocs/tests/mkframework/data/genere/secu04/public/index.php on line 38
Warning: include(): Failed opening '../../../../lib/framework//html2pdf/html2pdf.class.php' for inclusion (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/tests/mkframework/data/genere/secu04/public/index.php on line 38
Fatal error: Class 'HTML2PDF' not found in /opt/lampp/htdocs/tests/mkframework/data/genere/secu04/module/mesEval/main.php on line 67----------------------------------------*/
/* decommenter pour utiliser zendframework a partir de la 1.8
set_include_path(get_include_path() . PATH_SEPARATOR .'../../lib/');
require_once 'Zend/Loader/Autoloader.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->setFallbackAutoloader(false);
*/
//on parse le fichier ini pour trouver l'adresse de la librairie
$tIni=parse_ini_file('../conf/site.ini.php',true);
//enregistrement de l'auto loader du framework
include($tIni['path']['lib'].'/class_root.php');
include($tIni['path']['lib'].'/html2pdf/html2pdf.class.php');
spl_autoload_register(array('_root','autoload'));
//pour gerer toutes les erreurs en exception
function exception_error_handler($errno, $errstr, $errfile, $errline ) {
throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
}
set_error_handler("exception_error_handler");
$oRoot=new _root();
$oRoot->addConf('../conf/mode.ini.php');
$oRoot->addConf('../conf/connexion.ini.php');
$oRoot->addConf('../conf/site.ini.php');
$oRoot->addRequest($_GET);
$oRoot->addRequest($_POST);
$oRoot->run(); |
Partager