# virtuEngine 3.0.2
# Albert Ruiz (Contenidos Binarios) | www.contenidosbinarios.com
# --------------------------------------------------------------
if(!@include_once($_SERVER["DOCUMENT_ROOT"]."/config.php")) die("[Error] No se ha podido inicializar el sistema");
if(!@include_once(CABECERA)) die("[Error] No se ha podido encontrar el fichero header");
# --------------------------------------------------------------
$engineSECCION = "Guia Lanzarote";
$contenido = cargaHTML("html/indice.htm", false);
extract($_GET);
if(isset($categoria)) $cat = " and categoria = '".$categoria."' ";
$sql = "SELECT * FROM guia WHERE baja = '0' $cat ORDER BY titulo ASC";
$res = mysql_query($sql, $conex);
$num = mysql_num_rows($res);
if($num == 0) return "Sin novedades";
else {
$plantilla = cargaHTML("html/plantilla.htm", false);
while($fila = mysql_fetch_array($res)) {
$temp = $plantilla;
// ---
$titulo = trim($fila["titulo"]);
$imagen = "
";
$web = trim($fila["web"]);
$descripcion = trim($fila["descripcion"]);
if($web != "") $imagen = "".$imagen."";
// ---
$temp = str_replace("__titulo__", $titulo, $temp);
$temp = str_replace("__imagen__", $imagen, $temp);
$temp = str_replace("__web__", $web, $temp);
$temp = str_replace("__descripcion__", $descripcion, $temp);
// ---
$anuncios .= $temp;
}
}
$contenido = str_replace("__listado__", $anuncios, $contenido);
# --------------------------------------------------------------
if(!@include_once(PIE)) die("[Error] No se ha podido encontrar el fichero parser");
# --------------------------------------------------------------
?>