PhpRiot

Listing 2716

Submitted by Jeff, 2 March 2010
            <?php 
 
            $Album=$_GET['Album'];
 
            if(!isset($_GET['Album'])) {
                echo "<p>Please select a Album.</p><p>";
 
                    $categories = scandir(".");
                    $category=$_GET['category'];
 
                        foreach ($categories as $item) {
                        if ($item == '.' || $item == '..' ) {
                        continue;
                        }
 
                        if (is_dir("$item")) {
                        print "<a href=\"index.php?Album=$item\">$item</a><br>";
                        }
                        }
                echo "</p>";
                }
            ?>
Submit a Follow Up