File Uploader for v26

Demonz

Member
Oct 6, 2011
144
12
I am releasing this because, its extinct and its a cool feature to add to your hotel .
But exploitable non the less,And still under development so that's why i released here .
it would be cool for anyone upload a custom to your hotel.
So Here is and How and simple it is..
You edit were you see example to your hotels directory.
Then Make sure u make a php file in your hotels directory name it upload, so you make a href link in your site..
now if u want swf just type in where .ctt is and type .swf
if you want both add the same line below or above.


<form enctype="multipart/form-data" action="upload.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="20000" />
Send this file: <input name="userfile" type="file" />
<input type="submit" value="Upload File" />
</form>
<?php

$uploaddir = '/www/example/xammp/htdocs/';
$uploadfile = $uploaddir . basename($_FILES['userfile']['name']);

echo "<p>";

if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
echo "File is valid, and was successfully uploaded.
if its not a ctt then it will not be uploaded!\n";
} else {
echo "Upload failed";
}
$extlimit = "no"; //Do you want to limit the extensions of files uploaded (yes/no)
$limitedext = array(".cct"); //Extensions you want files uploaded limited to. also you can use: //array(".gif",".jpg",".jpeg",".png",".txt",".nfo",".doc",".rtf",".htm",".dmg",".zip",".rar",".gz",".exe");

?>
 

Demonz

Member
Oct 6, 2011
144
12

heres what mine looks like
lol that took me 4 hours to do.
 

Spoderman

y u do dis 2 me
Jun 30, 2013
209
37
Pretty simple, however they would still need to add the furnidata and then sqls..

I have one that does everything, puts the text onto the bottom of thr furnidata and puts it inside a catalogue page.
 

Users who are viewing this thread

Top