";
echo "| ";
echo "";
echo " | ";
echo "";
echo "";
echo " | ";
echo "
";
if (isset($_POST['searchtext'])){
$XMLFILE = $rss_url."?sort=N&items=9999999&tag=".urlencode( stripslashes( trim($_POST['searchtext'])) )."&";
}
else if ($subalbum != ""){
if ($rootselected == "selected") $subalbum="";
$XMLFILE = $rss_url."?sort=N&items=9999999&folder=".urlencode($subalbum)."&";
}
else {
$XMLFILE = $rss_url."?sort=N&items=9999999";
}
$TEMPLATE = $RSS_template;
$MAXITEMS = "999999";
include("rss2html.php");
function map_dirs($path) {
global $subalbum;
if(is_dir($path)) {
if($contents = opendir($path)) {
while(($node = readdir($contents)) !== false) {
$subalbumfound="n";
if ($path==".") {
$folpath = $node."/";
}
else {
$folpath = $path."/".$node."/";
$folpath = ltrim($folpath,'./');
if ( file_exists($folpath."res/") ) $subalbumfound="y";
}
if( substr($node,0,1)!="." && substr($node,0,4)!="_vti" && file_exists($folpath."photos.xml") && $subalbumfound=="n" && $node!="res" && $node !="images" && $node != "slides" && $node !="thumbs" && $node!= "." && $node!= ".." ) {
if ($path==".") {
$folselected="";
if ( $node == $subalbum) $folselected="selected";
echo '