2012-09-21 03:34:38 +00:00
|
|
|
<html>
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
var _gaq = _gaq || [];
|
|
|
|
_gaq.push(['_setAccount', 'UA-24492597-1']);
|
|
|
|
_gaq.push(['_trackPageview']);
|
|
|
|
|
|
|
|
(function() {
|
|
|
|
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
|
|
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
|
|
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
|
|
|
})();
|
|
|
|
|
|
|
|
</script>
|
2012-10-09 05:21:08 +00:00
|
|
|
<body background="https://si0.twimg.com/profile_background_images/468495900/bg.gif" text="greem" link="red" vlink="purple">
|
|
|
|
<div align="center">
|
|
|
|
<a href="http://unps-gama.tk/">
|
|
|
|
<img src="http://unps-gama.tk/upload/Pictures/header.png" alt="To UnPS-GAMA" title="To Home" />
|
|
|
|
</a><br>
|
2012-09-21 03:34:38 +00:00
|
|
|
<?php
|
2012-10-09 05:21:08 +00:00
|
|
|
if (($_FILES["file"]["size"] < 2000000))
|
2012-09-21 03:34:38 +00:00
|
|
|
{
|
|
|
|
if ($_FILES["file"]["error"] > 0)
|
|
|
|
{
|
|
|
|
echo "Return Code: " . $_FILES["file"]["error"] . "<br />";
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
echo "Upload: " . $_FILES["file"]["name"] . "<br />";
|
|
|
|
echo "Type: " . $_FILES["file"]["type"] . "<br />";
|
|
|
|
echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";
|
2012-10-09 05:21:08 +00:00
|
|
|
//echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br />";
|
2012-10-09 08:04:04 +00:00
|
|
|
|
|
|
|
|
2012-09-21 03:34:38 +00:00
|
|
|
|
|
|
|
if (file_exists("upload/" . $_FILES["file"]["name"]))
|
|
|
|
{
|
|
|
|
echo $_FILES["file"]["name"] . " already exists. ";
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2012-10-09 08:04:04 +00:00
|
|
|
if($_FILES["file"]["type"] == "application/x-php"){
|
|
|
|
echo $_FILES["file"]["name"] . " is not allowed, sorry about that...";
|
|
|
|
}else{
|
|
|
|
move_uploaded_file($_FILES["file"]["tmp_name"],
|
|
|
|
"upload/" . $_FILES["file"]["name"]);
|
|
|
|
echo "Stored at: <a href='http://unps-gama.tk/upload/".$_FILES["file"]["name"]."'>". $_FILES["file"]["name"]."</a>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2012-09-21 03:34:38 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
echo "Invalid file";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
</body></html>
|