roobre
Chevereto Noob
Code placed on a file called sitemap.php
I hope it will be useful for someone!
Regards
PHP:
<?
//Mod creado por Roobre para Chevereto
$DIR = "/images/";
$directorio=opendir(".".$DIR);
while ($archivo = readdir($directorio)){
If(getimagesize(".".$DIR.$archivo)!= 0){
$lista[] = "http://". $_SERVER['SERVER_NAME'] . $DIR . $archivo;
}
}
closedir($directorio);
header ("Content-type: text/xml");
echo('
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
');
foreach($lista as $imagen){
echo("<url>");
echo("<loc>".$imagen."</loc>");
echo("</url>");
}
echo("</urlset>");
?>
I hope it will be useful for someone!
Regards