function dirTree($dir) {
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
if($file != "." && $file != ".." && !preg_match("/\.[bB][mM][pP]/", $file) && !preg_match("/\.db/", $file) && $file != "thumbs") {
$arDir[] = $file;
}
}
closedir($dh);
}
}
return $arDir;
}
function MakeRandom(&$arr, $url) {
if(count($arr) > 0) {
foreach($arr AS $key => $val) {
$arrEmpty[] = $val;
}
$rand = rand(0, count($arrEmpty));
if($arrEmpty[$rand] != "") {
echo "";
} else {
MakeRandom(&$arr, $url);
}
}
}
$arrDirPad = "/home/emile/domains/fuckedbymachine.nl/public_html/random_foto/";
$arrDir = dirTree("$arrDirPad");
$arrDirPad2 = "/home/emile/domains/fuckedbymachine.nl/public_html/random_film/";
$arrDir2 = dirTree("$arrDirPad2");
?>
![]() |
|
||||||||||||||
|
|
![]() |
|
![]() |
|
|
||||||||||
|
|
|
|
|
|
|||||||||||
|
|
![]() |
|
|
||||||||||||
|
|
|
|
|
|
|||||||||||
|
|
|||||||||||||||
![]() |
|
||||||||||||||
![]() |
![]() |
![]() |
![]() |
|
|||||||||||
|
|
|||||||||||||||
![]() |
|
||||||||||||||
|
|
|
|
|
|
|||||||||||
|
|
|||||||||||||||
![]() |
|
||||||||||||||
![]() |
![]() |
![]() |
![]() |
|
|||||||||||
|
|
|
||||||||||||||