Initial commit
This commit is contained in:
9
data/upload.php
Normal file
9
data/upload.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
if (isset($_FILES["upload"]) && $_FILES["upload"]["error"] < 1 && in_array($_FILES["upload"]["type"], explode(',', $_set['allowedPicTypes'])))
|
||||
{
|
||||
if (move_uploaded_file($_FILES["upload"]["tmp_name"], 'data/uploads/'.$_FILES["upload"]["name"]))
|
||||
die($_locale['upload_successful']);
|
||||
}
|
||||
|
||||
echo $_locale['upload_failed'];
|
Reference in New Issue
Block a user