"; } } $homepage = "http://meets.americangirlscouts.org"; ?> AGS Meets
"; while($file = readdir($dir_handle)) { if (($file != '.') && ($file != '..') && ($file != 'index.php')) $files_gathered[] = $file; } closedir($dir_handle); sort ($files_gathered); for ($loop_start = 0; $loop_start < sizeof($files_gathered); $loop_start++) { $u = $files_gathered[$loop_start]; $uCaps = $u; if($u == "aga") $uCaps = "AGA"; else if($u == "chrille") $uCaps = "Chrille"; else if($u == "creed_malay") $uCaps = "Creed Malay"; else if($u == "grundislav") $uCaps = "Grundislav"; else if($u == "hajo") $uCaps = "Hajo"; else if($u == "jet_xl") $uCaps = "jet (Jet XL)"; else if($u == "magintz") $uCaps = "Magintz"; else if($u == "mods") $uCaps = "Mods"; else if($u == "cj") $uCaps = "Pumaman (CJ)"; else if($u == "disco") $uCaps = "Disco"; else if($u == "zoot") $uCaps = "Zoot(y)"; echo "$uCaps
"; } } function showPhotos() { $y = $_GET['y']; $e = $_GET['e']; $u = $_GET['u']; echo "
"; $root = "/home/www/vhosts/americangirlscouts.org/subdomains/meets/files/photos"; $webroot = "http://meets.americangirlscouts.org/files/photos/$y/$e/$u"; $files_gathered = array(); $dir_handle = @opendir("$root/$y/$e/$u") or die("Invalid gallery"); while($file = readdir($dir_handle)) { if(is_dir($file)) continue; else if (($file != '.') && ($file != '..') && ($file != "index.php") && ($file != "Thumbs.db") && (strstr($file,"th_") == FALSE)) $files_gathered[] = $file; } closedir($dir_handle); sort ($files_gathered); for ($loop_start = 0; $loop_start < sizeof($files_gathered); $loop_start++) echo "

"; echo "
"; } function showBWCs() { $y = $_GET['y']; $e = $_GET['e']; echo "
"; $root = "/home/www/vhosts/americangirlscouts.org/subdomains/meets/files/1kbwc"; $webroot = "http://meets.americangirlscouts.org/files/1kbwc/$e/$y"; $files_gathered = array(); $dir_handle = @opendir("$root/$e/$y") or die("Invalid gallery"); while($file = readdir($dir_handle)) { if(is_dir($file)) continue; else if (($file != '.') && ($file != '..') && ($file != "index.php")) $files_gathered[] = $file; } closedir($dir_handle); sort ($files_gathered); for ($loop_start = 0; $loop_start < sizeof($files_gathered); $loop_start++) echo "

"; echo "
"; } ?>
"; folderLister(); $y = $_GET['y']; $e = $_GET['e']; $tablename = $y."_".$e; $fetch = mysql_query("SELECT photos FROM $tablename", $link); $r = mysql_fetch_array($fetch); if (strlen($r['photos'] > 0)) { echo "Externally-hosted photos:
"; } echo ""; } if(($_GET['s'] == "events")&&($_GET['y'] != "")&&($_GET['e'] != "")&&($_GET['i'] == "photos")&&($_GET['u'] != "")) showPhotos(); if(($_GET['s'] == "events")&&($_GET['y'] != "")&&($_GET['e'] != "")&&($_GET['i'] == "1kbwc")) showBWCs(); } else { $fetch = mysql_query("SELECT * FROM `index`",$link); $r = mysql_fetch_array($fetch); echo $r["index"]; } ?>