if (isset($d)) {
function cut_last_occurence($string,$cut_off) {
return strrev(substr(strstr(strrev($string), strrev($cut_off)),strlen($cut_off)));
}
if (cut_last_occurence($d,'/') == '') {
echo "Back to image index
\n";
} else {
$sub = cut_last_occurence($d,'/');
echo "Go up a directory
\n";
}
}
if ($dir == '') {
print dirGather('/');
} else {
print dirGather("$dir/");
}
?>
error_reporting(E_ALL);
##include('foot.php');
?>