<?php Debug::config(IS_DEBUG_ALLOWED); //BD $oDB = Database::get_instancia(); //$oDB->conectar(); //bug($oDB); die; //JS $oHlpCss = new HelperCss(); $oHlpCss->add_plug_filehref("debug", "css_debug"); //$oHlpCss->add_ext_filehref("classic","styles/"); $oHlpJavascript = new HelperJavascript(); $oHlpJavascript->add_plug_filesrc("google_maps", "js_google_maps_3"); //$oHlpJavascript->add_tfw_filesrc("jquery-1.7.2","jquery"); //$oHlpJavascript->add_tfw_filesrc("js_functions"); //$oHlpJavascript->add_tfw_filesrc("js_natc_ajax"); //$oHlpJavascript->show_tag_links(); //$oHlpJavascript->add_js_line($sScriptLine);
<?php ob_start(); require_once "../config.inc"; require_once "folders_tree.php"; require_once "ZZZBootstrap.inc"; session_start(); Debug::config(IS_DEBUG_SQL, IS_DEBUG_MSG, SHOW_PHP_INFO); $oDB = Database::get_instancia(DB_HOST, DB_NAME, DB_USER, DB_PASS, "sqlserver"); //bug($oDB); $oAuthorization = new Authorization(); //bug($oAuthorization); /** * @var GlobalParams */ $oGParams = new GlobalParams(); /** * @var Site */ $oSite = new Site(); //bug($_POST,"POST DESPUES DE CONST SITE"); $sControllerFile = $oSite->get_controller_file_name(); //bug($sControllerFile,"ARCHIVO DE CONTROLADOR"); DIE; if (file_exists_in_incpath($sControllerFile)) { require_once $sControllerFile; //bug(get_included_files()); $sControllerName = $oSite->get_controller_name(); $sControllerMethod = $oSite->get_controller_method_name(); Debug::set_message($sControllerName, "ControllerName"); Debug::set_message($sControllerMethod, "ControllerMethod"); $oController = new $sControllerName();