$app->settings["ecAPI"]["TEMPLATE_DIR"], 'compileDir' => $app->settings["ecAPI"]["COMPILE_DIR"] ); include("auth.php"); /* if("http://".$_SERVER["SERVER_NAME"]."/" != "http://www.denovios.com/") { Header("Location: http://www.denovios.com". $_SERVER["REQUEST_URI"]); exit; } */ /* Insert your code here */ /* $query = $app->do_query("SELECT * FROM CATEGORIAS"); while( $reg = $query->fetchRow(DB_FETCHMODE_ASSOC) ) { //$app->updateRecord("CATEGORIAS" , array("NOMBRE__CAT" => utf8_decode($reg["NOMBRE__CAT"] )) , " ID______CAT = '".$reg["ID______CAT"]."' " ); } */ /* print "

En este momento el Sitio esta en desarrollo ".date("Y-m-d h:i:s")." pvargas

"; $query = $app->do_query("SELECT * FROM arbol"); while( $reg = $query->fetchRow(DB_FETCHMODE_ASSOC) ) { $url = explode("/", $reg["URL"] ); if ( count($url) <= 5 ) { echo $reg["URL"]."\n"; } else { $app->do_query(" DELETE FROM arbol WHERE ID = '".$reg["ID"]."' "); } } die(); */ $query = $app->do_query("SELECT * FROM CATEGORIAS WHERE destacadcat = 'S' ORDER BY ordendescat LIMIT 3 "); $i=0; while( $reg = $query->fetchRow(DB_FETCHMODE_ASSOC) ) { if ( $i%2 == 0 ) $reg['CLASS'] = 'block3'; else $reg['CLASS'] = 'block5'; $tpl->destacado[] = $reg; $i++; } /* // Imange Principal $qid = $app->do_query("SELECT * FROM CONFIG WHERE nombre__con = 'Imagen Principal' LIMIT 1"); if($row = $qid->fetchRow(DB_FETCHMODE_ASSOC)) { $tpl->imagenprincipal = $row; // Tiene Url if ( $row["URL_____CON"] ) { $tpl->imageurl = $row["URL_____CON"]; } elseif ( $row["REP_____CON"] ) { $query = $app->do_query("SELECT * FROM reportajes WHERE id______rep = '".$app->quotesql( (int)$row["REP_____CON"] )."'"); while( $reg = $query->fetchRow(DB_FETCHMODE_ASSOC) ) { #$tpl->imageurl = '/reportajes/'.$reg["ID______REP"].'-'.$tpl->urlsVeryFriendlyAndFun($reg["TITULO__REP"]); $tpl->imageurl = '/reportajes/'.$reg["LINK____REP"]; } } } */ // Slider Principal $qid = $app->do_query("SELECT * FROM SLIDER WHERE activa__slider='S' AND activa__url='N' "); while( $slider = $qid->fetchRow(DB_FETCHMODE_ASSOC) ) { $tpl->sliderprincipal[] = $slider; } $qidurl = $app->do_query("SELECT * FROM SLIDER WHERE activa__slider='S' AND activa__url='S'"); while( $sliderurl = $qidurl->fetchRow(DB_FETCHMODE_ASSOC) ) { $tpl->sliderprincipalenlace[] = $sliderurl; } $output = new HTML_Template_Flexy($options); $output->compile("index.html"); $tpl->CONTENT=$output->bufferedOutputObject($tpl); #$tpl->TITLE="Inicio"; include("container.php"); ?>