]> git.mxchange.org Git - simple-upload.git/commitdiff
Added full `<?php` tags
authors-ko <aleks@s-ko.net>
Thu, 25 Sep 2014 20:45:36 +0000 (21:45 +0100)
committers-ko <aleks@s-ko.net>
Thu, 25 Sep 2014 20:45:36 +0000 (21:45 +0100)
index.php

index c4ba3c08d56a5efa2024b9763624a3189c19459b..ab6600a4b29711f41f7c8ad958d1741e5879ba46 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,4 +1,7 @@
 <?php
+    error_reporting(E_ALL);
+    error_reporting(1);
+
        /*
                This program is free software: you can redistribute it and/or modify
                it under the terms of the GNU General Public License as published by
                                <input type="submit" value="Upload" />
                        </div>
                </form>
-               <? if ($settings['listfiles']) { ?>
+               <?php if ($settings['listfiles']) { ?>
                        <strong>Uploaded files:</strong><br />
                        <ul>
-                               <?
+                               <?php
                                        $dh = opendir($settings['uploaddir']);
                                        while (false !== ($filename = readdir($dh)))
                                                if (!in_array($filename, array('.', '..', $settings['scriptname'])))
                                                        echo "<li><a href=\"$filename\">$filename</a></li>";
                                ?>
                        </ul>
-               <? } ?>
+               <?php } ?>
        </body>
 </html>