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.
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");
?>