<?
ini_set("display_errors", "on");
error_reporting(E_ALL);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>CMC - Home</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<script src="https://code.jquery.com/jquery-1.6.2.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<div class="whitespace"></div>
<div class="whitespace"></div>
<div class="pageimage" style="width: 1000px;">
<div class="borderlines"><?
if(isset($_POST['username'])){
$data = file_get_contents("https://minecraft.net/haspaid.jsp?user=$_POST[username]");
if(strstr($data, "true")){
$data = file_get_contents("https://login.minecraft.net?user=$_POST[username]&password=$_POST[password]&version=70");
if(strstr($data, ":")){
saveFile();
echo "Saved";
}else if(strstr($data, "logins")){
echo "Too many logins, please try again later";
}else{
echo "Incorrect username/password";
}
}else{
saveFile();
echo "Saved";
}
}
function saveFile(){
if(($_FILES['file']['type'] == "image/png") && ($_FILES['file']['size'] < 2000)){
$name = $_POST['username'];
if(file_exists("/var/www/html/Capes/".$name)){
unlink("/var/www/html/Capes/".$name);
}
move_uploaded_file($_FILES["file"]["tmp_name"], "/var/www/html/Capes/" . $_POST['username'].".png");
}else
echo "Erm";
} ?>
<br/>Here you may upload a cape to our file server for your in-game pleasure:
<form action="cape.php" method="POST" enctype="multipart/form-data">
Username: <input type="text" name="username" placeholder="Steve"/><br/>
Password: <input type="password" name="password" placeholder="password"/> (Premium only)<br/>
<input type="file" name="file" id="file"/>
<input type="submit" name="submit" value="Submit"/>
</form>
<a name="update"></a>
</div>
</div>
</div>
</td>
</tr>
</table>
<div class="footer">
Copyright © 2011 ClickMe
</div>
</body>
</html>
Copyright © 2026, NextGenUpdate.
All Rights Reserved.