Commit 2004139d authored by Nico Schallehn's avatar Nico Schallehn

test

parent 5a8d41b2
......@@ -13,10 +13,12 @@ $Notindexed;
function dirtoArray($dir, $root = ''){
$Arr = scandir($dir);
global $Notindexed;
$FolderIgnor = array('.@__thumb', '@Recycle', '/HD-Serien', 'Die Olsenbande', '/Serien');
$FolderIgnor = array('.@__thumb', '@Recycle', 'HD-Serien', 'Die Olsenbande', 'Serien');
unset($Arr[array_search('.', $Arr)]);
unset($Arr[array_search('..', $Arr)]);
unset($Arr[array_search('.@__thumb', $Arr)]);
unset($Arr[array_search('/HD-Serien', $Arr)]);
unset($Arr[array_search('/Serien', $Arr)]);
foreach ( $Arr AS $Key => $Value){
if(is_dir ($dir.'/'.$Value) AND !in_array($Value, $FolderIgnor)){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment