Really Simple Folder Browser

Script last updated on February 17, 2007 3:56pm by !nucleo.

This is a very simple folder browser. I needed to make it to display a directory of clientel folders, but I didn't want it to be able to show directory contents past the first folder like the Nucleocide File Browser.

It's only 15 lines, barely worth being called a script. Here's the source:

<font face="verdana, arial" size="1">
<?
$directory = './';           # starting directory, don't forget the slash
$dir = opendir($directory);  # opens our current directory
$dl = array();
while ($f = readdir($dir)) { # read the folder
    if ($f[0] != '.' && is_dir($f))
        $dl[] = $f;          # only add to list if they are directories
}
asort($dl);                  # alphabetize
echo "<b>" . sizeof($dl) . " Folders:</b><br />\n";
foreach ($dl as $f)          # echo the list of links to folders
    echo "<a href=\"$directory$f\">$f</a><br />\n";
?>
</font>

Alternatively, you can download it here

Login

Username:
Password:

Shoutbox

By !nucleo
Jun 12, 2008 7:56pm
About time you're back... Shoot me an email with your 88x31.
By ?Lee
Jun 12, 2008 3:27pm
vimixx.net has moved to lee-stewart.co.uk!!!
By ?Medvedko
May 4, 2008 7:04am
That's right. Sorry, I am not making much sense, am I? Basically, I created the DB myself instead of using your install script. All necessary tables are there, I added few more based on plugin POST options and added those to the update.php also. At the beginning I added mysql.ssi.php function to both update and winamp_playing scripts as I had some troubles before with include_once.
By !nucleo
May 2, 2008 9:56am
Now I'm really confused, are you modifying my shoutbox script?
By ?Medvedko
Apr 30, 2008 1:08am
another thing is that update script terminates with invalid password (I added the pass in the Additional Options in the plugin and set the pass in the update script.
By ?Medvedko
Apr 30, 2008 1:06am
my fault really. I modded the scripts and added more tables to the DB such as "TIMESTAMP". I think include_once doesn't fetch the mysql function. Or atleast this is what seems to me is the problem.
Name: Shout: This Number: [View All]

Partners

Rand Affiliates

Andreas on the Web Acecool Photoshop Lab Lone Matrix