Here are a few pictures from the camp's development.
read()))
{
if($entry!='.' && $entry!='..')
{
if(substr($entry, 0,1) != "_")
{
$entry = $dir.'/'.$entry;
if(is_dir($entry))
{
$subdirs = get_leaf_dirs($entry);
if ($subdirs)
$array = array_merge($array, $subdirs);
else
$array[] = $entry;
}
}
}
}
$d->close();
}
return $array;
}
if ($mode != "viewcat") {
$list_dir = get_leaf_dirs($gallery_url);
$list_dir_clean = array_unique($list_dir);
sort($list_dir_clean);
$count = count($list_dir_clean);
$i=0;
$total_num = 0;
while ($i<$count) {
$catname = explode("/", $list_dir_clean[$i]);
$maincats = array_merge($maincats, $catname);
$i = $i+1;
}
$maincats_clean_b = array_unique($maincats);
///
//lets put the array in the right order.
//print "READING MAINCATS_CLEAN_B";
//print_r($maincats_clean_b);
foreach($maincats_clean_b as $key => $value){
// print " " .$key. " " . $value. "
";
if (is_file($gallery_url . "/" . $value . "/order.txt")) {
$order = file_get_contents($gallery_url . "/" . $value . "/order.txt");
//print $value . " is set as order: " . $order . "
";
$maincats_clean[$order] = $value;
} else {
//no order file..oh noooo
//print "NO ORDER FILE!
";
}
}
//reset($maincats_clean);
//print_r($maincats_clean);
$table_ct = 0;
print "
| ";
if (is_file($gallery_url . "/" . $maincats_clean[$i] . "/info.html")) {
include($gallery_url . "/" . $maincats_clean[$i] . "/info.html");
} else {
//no info file. Display just the cat name.
print " " . $maincats_clean[$i] . " ";
}
print " | ";
if ($table_ct == 2) {
print "
