0)
{
$meta[$tag] = stripslashes($$tag);
echo "$tag tag was updated.
";
}
else
{
unset($meta[$tag]);
echo "$tag tag was deleted.
";
}
}
}
}
write_descript($dir);
}
if (isset($meta["title"])) echo "".$meta["title"]."
";
echo "\n";
echo "
\n";
$dirlist = array();
$filelist = array();
$handle = opendir($dir);
while (false !== ($file = readdir($handle))) {
$fullname = "$dir/$file";
if (!is_file($fullname))
{
array_push($dirlist, $file);
}
else
{
# ignore html files
if (!preg_match("/html$/",$fullname))
{
array_push($filelist, $file);
}
}
}
closedir($handle);
sort ($dirlist);
foreach ($dirlist as $file)
{
$fullname = truepath("$dir/$file");
echo "edit | ";
echo "$file
";
if ($dirs[$file]["short_descript"]) {
echo "".$dirs[$file]["short_descript"]."
\n";
}
}
echo "\n";
sort ($filelist);
foreach ($filelist as $file)
{
$fullname = "$dir/$file";
if ($file == $caption_filename)
{
echo "$file
\n";
}
else
{
echo "$file
";
if ($photos[$file]["short_descript"]) {
echo "".$photos[$file]["short_descript"]."
\n";
}
}
}
?>