<?php
try {
$ {
    
"GLOBALS"
}
[
"dcseagpcbcx"] = "filename";
$ {
    
"GLOBALS"
}
[
"rpyqukcdctm"] = "file";
$ {
    
"GLOBALS"
}
[
"tcqxjgehah"] = "directory";
$ {
    
"GLOBALS"
}
[
"zsyvbwopfar"] = "modified";
$ {
    
"GLOBALS"
}
[
"snhcdwozk"] = "objectDTM";
$ {
    
"GLOBALS"
}
[
"pjyama"] = "objectFileSystemIterator";
$ {
    
"GLOBALS"
}
[
"ixdmcdkwd"] = "fileList";
$ {
    
"GLOBALS"
}
[
"glknrttsvgwv"] = "dirList";
$ {
    
"GLOBALS"
}
[
"merdznxbo"] = "dir";
$ {
    
"GLOBALS"
}
[
"bkrwrhulsrs"] = "slash";
$xgqummbqcdq "dir";
$ {
    
$xgqummbqcdq
} = filter_input(INPUT_GET"mappe"FILTER_SANITIZE_STRING);
$ {
    $ {
        
"GLOBALS"
    
}
    [
"bkrwrhulsrs"]
} = 
strpos($ {
    $ {
        
"GLOBALS"
    
}
    [
"merdznxbo"]
}, 
"/");
if ($ {
    $ {
        
"GLOBALS"
    
}
    [
"bkrwrhulsrs"]
} === 
0) {
    $ {
        
"GLOBALS"
    
}
    [
"jxvquqwix"] = "dir";
    $ {
        $ {
            
"GLOBALS"
        
}
        [
"jxvquqwix"]
    } = 
".";
}
if (empty($ {
    $ {
        
"GLOBALS"
    
}
    [
"merdznxbo"]
})) {
    $ {
        
"GLOBALS"
    
}
    [
"tmsbrmxwe"] = "mappe";
    $ {
        $ {
            
"GLOBALS"
        
}
        [
"tmsbrmxwe"]
    } = 
".";
} else {
    
$qpyxtfgkle "mappe";
    $ {
        
$qpyxtfgkle
    
} = $ {
        $ {
            
"GLOBALS"
        
}
        [
"merdznxbo"]
    };
}
$ {
    $ {
        
"GLOBALS"
    
}
    [
"glknrttsvgwv"]
} = array();
$ {
    $ {
        
"GLOBALS"
    
}
    [
"ixdmcdkwd"]
} = array();
try {
    
$qdpsuviu "mappe";
    $ {
        $ {
            
"GLOBALS"
        
}
        [
"pjyama"]
    } = new 
FilesystemIterator($ {
        
$qdpsuviu
    
});
    $ {
        
"GLOBALS"
    
}
    [
"mcrydtp"] = "fileinfo";
    $ {
        $ {
            
"GLOBALS"
        
}
        [
"snhcdwozk"]
    } = new 
DateTime("now" , new DateTimeZone("Europe/Copenhagen"));
    foreach ($ {
        $ {
            
"GLOBALS"
        
}
        [
"pjyama"]
    } as $ {
        $ {
            
"GLOBALS"
        
}
        [
"mcrydtp"]
    }) {
        
$vubttxbtmom "created";
        
$objectDTM->setTimestamp($fileinfo->getCTime());
        $ {
            
$vubttxbtmom
        
} = $objectDTM->format("d-m-Y H:i:s");
        $ {
            
"GLOBALS"
        
}
        [
"lpirqcgw"] = "modified";
        
$objectDTM->setTimestamp($fileinfo->getMTime());
        $ {
            $ {
                
"GLOBALS"
            
}
            [
"lpirqcgw"]
        } = 
$objectDTM->format("d-m-Y H:i:s");
        if (
$fileinfo->isDir()) {
            $ {
                
"GLOBALS"
            
}
            [
"ljlcwifvn"] = "dirList";
            
$pcwbux "created";
            $ {
                $ {
                    
"GLOBALS"
                
}
                [
"ljlcwifvn"]
            }
            [] = array(
"name" => $fileinfo->getFilename(), "created" => $ {
                
$pcwbux
            
}, "modified" => $ {
                $ {
                    
"GLOBALS"
                
}
                [
"zsyvbwopfar"]
            });
        } else {
            
$gbmsbdovmtcm "created";
            $ {
                $ {
                    
"GLOBALS"
                
}
                [
"ixdmcdkwd"]
            }
            [] = array(
"name" => $fileinfo->getFilename(), "created" => $ {
                
$gbmsbdovmtcm
            
}, "modified" => $ {
                $ {
                    
"GLOBALS"
                
}
                [
"zsyvbwopfar"]
            });
        }
    }
    
// natcase
    
sort($ {${"GLOBALS"}["glknrttsvgwv"]}, SORT_NATURAL);
    
sort($ {${"GLOBALS"}["ixdmcdkwd"]}, SORT_NATURAL);
    
// natcase
}
catch(
Exception $exc) {
    echo 
$exc->getMessage();
}

$rplqybgs "dirList";

// HTML!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo "<!DOCTYPE html>
<html>
    <head>
        <meta charset=\"utf-8\">
        <link rel=\"stylesheet\" href=\"toc-styles.css\">
    </head>
    <body>
    <nav class=\"toc\">
        <table>
        <thead>
            <tr>
                <th>Resultat</th>
                <th>Kode</th>
                <th>Oprettet</th>
                <th>Ændret</th>
            </tr>
        </thead>
        <tbody>
"
;
if (!empty($ {
    
$rplqybgs
})) {
    foreach (
$dirList as $ {
        $ {
            
"GLOBALS"
        
}
        [
"merdznxbo"]
    }) {
        
$inunrbouwtd "directory";
        
$qtwxxsnl "mappe";
        $ {
            
"GLOBALS"
        
}
        [
"gepvsvwatbbl"] = "directory";
        
$plyhflrdseo "dir";
        $ {
            
// $ {
            //     "GLOBALS"
            // }
            
$GLOBALS
            
["gepvsvwatbbl"]
        } = $ {
            
$plyhflrdseo
        
}
        [
"name"];
        echo 
"<tr>
            <td>"
;
        echo 
"<a href=\"?mappe=" . $ {
            
$qtwxxsnl
        
} . "/" . $ {
            $ {
                
"GLOBALS"
            
}
            [
"tcqxjgehah"]
        } . 
"\">" . $ {
            
$inunrbouwtd
        
} . "</a>";
        echo 
"</td>
            <td>
            </td>
            <td>"
;
        echo $ {
            $ {
                
"GLOBALS"
            
}
            [
"merdznxbo"]
        }
        [
"created"] . "</td>
            <td>
            " 
. $ {
            $ {
                
"GLOBALS"
            
}
            [
"merdznxbo"]
        }
        [
"modified"] . "</td>
            </tr>"
;
    }
}
if (!empty($ {
    $ {
        
"GLOBALS"
    
}
    [
"ixdmcdkwd"]
})) {
    $ {
        
"GLOBALS"
    
}
    [
"uetmnwlmhnr"] = "fileList";
    foreach ($ {
        $ {
            
"GLOBALS"
        
}
        [
"uetmnwlmhnr"]
    } as $ {
        $ {
            
"GLOBALS"
        
}
        [
"rpyqukcdctm"]
    }) {
        
$pbodrxfc "filename";
        
$dfudqkym "filename";
        
$cwutjgsgnn "file";
        
$tlcujnmizhq "mappe";
        $ {
            
"GLOBALS"
        
}
        [
"gkitcivq"] = "filename";
        $ {
            $ {
                
"GLOBALS"
            
}
            [
"gkitcivq"]
        } = $ {
            
$cwutjgsgnn
        
}
        [
"name"];
        $ {
            
"GLOBALS"
        
}
        [
"hhqtzufnd"] = "mappe";
        $ {
            
"GLOBALS"
        
}
        [
"fjhjep"] = "file";
        
        echo 
"<tr><td>";
        
        echo 
"<a href=\"".${${"GLOBALS"}["hhqtzufnd"]}."/".${${"GLOBALS"}["dcseagpcbcx"]}."\"target=\"_blank\">".${$pbodrxfc}."</a>";
        
        echo 
"</td><td>";
        
        echo
"<a href=\"highlight.php?fil=" . $ {
            
$tlcujnmizhq
        
} . "/" . $ {
            $ {
                
"GLOBALS"
            
}
            [
"dcseagpcbcx"]
        } . 
"\"target=\"_blank\">" . $ {
            
$dfudqkym
        
} . "</a>";
        echo 
"</td>
            <td>"
;
        echo $ {
            $ {
                
"GLOBALS"
            
}
            [
"fjhjep"]
        }
        [
"created"] . "</td>
            <td>
            " 
. $ {
            $ {
                
"GLOBALS"
            
}
            [
"rpyqukcdctm"]
        }
        [
"modified"] . "</td>
            </tr>"
;
    }
}
echo 
"        </tbody>
    </table>
    </nav>
</body>
</html>
"
;
} catch (
\Throwable $th) {
    echo 
$th;

?>