summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rwxr-xr-xwww/functions/func_upload.php3
-rw-r--r--www/webdownload.php5
2 files changed, 7 insertions, 1 deletions
diff --git a/www/functions/func_upload.php b/www/functions/func_upload.php
index 6f39ad3..e74e04f 100755
--- a/www/functions/func_upload.php
+++ b/www/functions/func_upload.php
@@ -182,7 +182,8 @@ function web_upload($db){
echo "no hyperlink";
return false;
}
- if(!preg_match("/^[a-zA-Z]+://", $url){
+
+ if(!preg_match("/^[a-zA-Z]+://", $url)){
$url = "http://".$url;
}
$file = file_get_contents($url);
diff --git a/www/webdownload.php b/www/webdownload.php
new file mode 100644
index 0000000..ef87526
--- /dev/null
+++ b/www/webdownload.php
@@ -0,0 +1,5 @@
+<?php
+
+web_download();
+
+?>