<?php include 'http://urinal.net/' ?>

<?php

$archives = sdir(getcwd(), "[0-9]*.php");
foreach ($archives as $file) {
	include $file;
}


function sdir( $path='.', $mask='*', $nocache=0 ){
    static $dir = array(); // cache result in memory
    if ( !isset($dir[$path]) || $nocache) {
        $dir[$path] = scandir($path, 1);
    }
    foreach ($dir[$path] as $i=>$entry) {
        if ($entry!='.' && $entry!='..' && fnmatch($mask, $entry) ) {
            $sdir[] = $entry;
        }
    }
    return ($sdir);
} 

?>


