$idcon, 'webmaster_email' => $webmaster_email, 'email_recibo' => $email_recibo, 'bd_server' => $bd_server, 'bd_dbname' => $bd_dbname, 'bd_user' => $bd_user, 'bd_pass' => $bd_pass, 'bd_prefix' => $bd_prefix, 'objConection' => $bd_connection, 'webBase' => $webBase, 'webAbsolut' => $webAbsolut, 'webImages' => $webImages, 'webImgMenu' => $webImgMenu, 'webImgSubf' => $webImgSubf, 'webImgPd' => $webImgPd, 'webAbsPd' => $webAbsPd, 'webImgMarca' => $webImgMarca, 'webImgPeque' => $webImgPeque, 'webImgDestaca' => $webImgDestaca, 'webThemes' => $webThemes, 'webBaseAdmin' => $webBaseAdmin, 'webAdmin' => $webAdmin, 'noticias' => $noticias, 'sufrase' => $sufrase, 'pvp0' => $pvp0, 'titleWeb' => $titleWeb, 'rowsToDisplay' => $rowsToDisplay, 'transpueblo' => $transpueblo, 'caja0' => $caja0, 'urlpromo' => $urlpromo, 'nombrepromo' => $nombrepromo, 'txtpromo' => $txtpromo, 'pvpporte' => $pvpporte, 'dtoporte' => $dtoporte, 'payper' => $payper, 'paymin' => $paymin, 'reeper' => $reeper, 'reemin' => $reemin, 'horadia' => $horadia, 'horanoche' => $horanoche, 'promfin' => $promfin, 'promjpg' => $promjpg, 'solapa' => $solapa, 'solapap' => $solapap, 'solapag' => $solapag, 'solapaurl' => $solapaurl, 'link1' => $link1, 'link2' => $link2, 'link3' => $link3, 'elink1' => $elink1, 'elink2' => $elink2, 'elink3' => $elink3, 'venta' => $venta, 'vaca' => $vaca, 'txtvaca' => $txtvaca, 'txtvaca2' => $txtvaca2, 'pvpfree' => $pvpfree, 'imppvpfree' => $imppvpfree, 'txtsuperoferta' => $txtsuperoferta, 'txtoferta' => $txtoferta ); $functions->initializeVars( $vars ); $functions->joinArray( $_REQUEST ); //Creamos la cookie $aceptar=$_REQUEST['aceptar']; if ($aceptar == "1") { setcookie ("cookie[id]","1",time() + 2592000); header("Location: ".$refer.""); } /*La variable customapp puede ser 1, 2 o 3 y solo llega en la primera petición*/ $mystring = $_SERVER["REQUEST_URI"]; $findme = 'customapp'; $pos = strpos($mystring, $findme); if ($pos !== false) { $app = 1; $functions->setVar( 'app', 1); setcookie ("cookie[app]","1",time() + 9999000); } if ($_COOKIE['cookie']['app'] == 1) { $app = 1; $functions->setVar( 'app', 1); } $functions->setVar( 'cookie', $_COOKIE['cookie']); /*********************************************************/ /****************** dibujado de la página ****************/ /*********************************************************/ // dibujamos página $p = $_REQUEST[ 'p' ]; require_once( $webThemes.'/default.php' ); $theme = new TDefaultTheme( $functions ); $theme->printHeader(); $theme->printBodyHeader(); $theme->printBodyContext(); $theme->printBodyFooter(); $bd_connection->close; ?>