Execute($q);
/**
* Nos aseguramos de que la categoria elegida este disponible como feed de RSS
*/
if ($r->NumRows() > 0 and $r->fields['es_rss'] == 1) {
// Buscando el nombre de la categoria elegida
$q1 = sprintf("SELECT * FROM %s WHERE idcategoria = %s", _TBLCATEGORIA, $idcategoria);
$r1 = $db->Execute($q1);
if ($r1->NumRows() > 0) {
$nombreSeccion = " : " . $r1->fields["nombre"];
}
} else { // SI no dejamos el colocado por Default
$idcategoria = _SECCIONES_RSS;
}
}
/**
* Buscamos la menra e ordenamiento
*/
$orden_tmp = '';
$asc_tmp = '';
if (is_numeric($idcategoria)) {
$orden_tmp = Funciones::BusquedaRecursiva($idcategoria, "orden_sub");
$tmp = Funciones::BusquedaRecursiva($idcategoria, "asc_sub");
switch ($tmp) {
case 1: $asc_tmp = "DESC";break;
case 2: $asc_tmp = "ASC";break;
}
}
header ("Content-type: text/xml");
echo "";
?>
_nombresitio
_URL
_nombresitio: _METAKEYWORDS
es
_NOMBRESITIO
60