via PayPal / credit card
Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
Hello folks,
just my simple script to build the image part in the XML.
Have fun,
Robert
##############################
<html>
<head>
<title>partial output for XML data </title>
</head>
<?
//partial output for XML data
//by robert wagner
//[email protected]
//it's free, have fun!
//secure: after getting data you can switch off with changing $on to 0
$on=1;
if ($on=="1")
{
$neuesDir="";
//e.g.: $neuesDir="cms/pictures/2008/";
$dh = opendir($neuesDir);
while (false !== ($filenames = readdir($dh)))
{
if ($filenames=="." || $filenames=="..")
{
}
else
{
$bilder[] = $filenames;
}
}
closedir($dh);
$anzahlBilder=count($bilder);
//output number of pictures in directory
//echo $anzahlBilder;
for ($i=0;$i< $anzahlBilder;$i++)
{
//monoslideshow 1 xml paramenter
//echo '\n<img source="'.$bilder[$i].'" thumbnail="'.$bilder[$i].'" />';
//monoslideshow 2 xml paramenter
echo '<image source="'.$bilder[$i].'" />';
echo "\n";
}
}
?>
<body>
</body>
</html>
1 to 1 of 1