getConfig('rutaClassRel') . "core/lang/Lang.class.php"); $lang = new Lang(); //Clase User include_once($site->getConfig('rutaClassRel') . "core/user/User.class.php"); $user = new User('public_users'); //Clase Modulos include_once($site->getConfig('rutaClassRel') . "core/module/PublicModule.class.php"); $module = new PublicModule(); //Clase Fechas include_once($site->getConfig('rutaClassRel') . "core/fechas/Fechas.class.php"); $fechas = new Fecha(); //Clase Parser include_once($site->getConfig('rutaClassRel') . "core/parser/Parser.class.php"); $parser = new Parser(); //Clase Form include_once($site->getConfig('rutaClassRel') . 'core/form_public/Form.class.php'); //Clase Links include_once($site->getConfig('rutaClassRel') . "core/linksUrl/linksUrl.class.php"); $links = new linksUrl(' '); /** API **/ include_once($site->getConfig('rutaTemplate') . 'addons/api-loader.php'); /* CONSULTAS AJAX */ include_once($site->getConfig('rutaTemplate') . 'index-ajax.php'); $user = $API->User; // Es necesario logearse? if( !$user->isLogged() && $module->getConfig('login') ) $site->gotoURL($site->getLink(_MOD_LOGIN)); if($site->getQS('src') != 'ajax') { if($module->getModule('class')) include_once($site->getConfig('rutaModulesRel') . $module->getConfig('src')); //El modulo no tiene listado if($module->getConfig('estructure') == 0 || $module->getConfig('src') == '') $site->showError(404); //Esta la web cerrada por obras? if($site->getConfig('working')) if($site->getURL('id1') != _MOD_AVISOS) $site->showError(1000); //History if( $module->getConfig('link') != _MOD_LOGIN && $module->getConfig('link') != _MOD_AVISOS && $module->getConfig('link') != _MOD_RECORDAR_PASS && $module->getConfig('link') != _MOD_PROCESO_COMPRA ) $_SESSION['url'] = $site->getActualPageLink(); else if($_SESSION['url'] == '') { $aDefaultModule = $module->getDefaultModule(); $_SESSION['url'] = $site->getLink($aDefaultModule['link']); } //Clase Posicionador include_once($site->getConfig('rutaClassRel') . "core/posicionador/Posicionador.class.php"); $posicionador = new Posicionador($module->getConfig('id'), $module->getSelectedElement()); //GOOGLE ANALYTICS include_once($site->getConfig('rutaClassRel') . 'core/googleAnalytics/googleAnalytics.class.php'); $gA = new googleAnalytics($site->getConfig('googleACode')); } ?> getQS('src') == '') include_once($site->getConfig('rutaTemplate') . 'index.php'); else { include_once($site->getConfig('rutaTemplate') . 'includes/' . $module->getConfig('src')); include_once($site->getConfig('rutaTemplate') . 'layouts/html-body-end-ajax.php'); } ?> saveVisit() ?> close() ?>