From 002b8947f1d325b95e2853f08e281b38d801ebf1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 29 Mar 2016 16:16:44 +0200 Subject: [PATCH] Opps, no more standard, using comment block. --- index.php | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/index.php b/index.php index 39abc27..3bbc625 100644 --- a/index.php +++ b/index.php @@ -93,11 +93,11 @@ $data = array(); // Name of this file - $data['scriptname'] = pathinfo(__FILE__, PATHINFO_BASENAME); + $data['scriptname'] = $settings['url'] . '/' . pathinfo(__FILE__, PATHINFO_BASENAME); // Adding current script name to ignore list $data['ignores'] = $settings['ignores']; - $data['ignores'][] = $data['scriptname']; + $data['ignores'][] = basename($data['scriptname']); // Use canonized path $data['uploaddir'] = realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . $settings['uploaddir']); @@ -296,16 +296,18 @@ $file_array = createArrayFromPath($data['uploaddir']); } ?> - - + + - - - - + + + + + + + <?=$settings['title']?> -

-
+ Maximum upload size:
- +