From: Roland Häder Date: Tue, 29 Mar 2016 14:16:44 +0000 (+0200) Subject: Opps, no more standard, using comment block. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=002b8947f1d325b95e2853f08e281b38d801ebf1;p=simple-upload.git Opps, no more standard, using comment block. --- 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:
- +