



<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
           
            border: 5px unset green;
        }

        .main {
            border: 5px unset green;
            background-color: red;
            
            color: green;
            border: 5px unset green;
        }

        h2 {
            border: 2px solid yellowgreen;
            background-color: yellow;
        }
        .upload {
            border: 5px unset green;
            background-color: yellow;
        }
    </style>
</head>
<body>
    <div class="main">
    <div class="upload"><a href="#" onClick="MyWindow=window.open('files.php','MyWindow','width=600,height=300'); return false;">Upload new file</a></div><hr>
    <h2>My files</h2>
   <?php
$files = glob("uploads/*.*");
foreach($files as $file) {
    echo "<a href='" .$file . "' target='_blank'>" . $file . "</a> <br />" ;
}
?> </div>




</body>
</html>

