Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- error_reporting(0);
- if($page != "129" && $page != "258" && $page != "516" && $page != "517" && $page != "518") {
- $page = "129";
- }
- function replaceGet($getvar, $value) {
- $url = "http".(($_SERVER['SERVER_PORT']==443) ? "s://" : "://").$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
- $query = parse_url($url, PHP_URL_QUERY);
- if($query) {
- $url = str_replace("&$getvar=".$_GET[$getvar], "&$getvar=$value", $url);
- } else {
- $url = str_replace("?$getvar=".$_GET[$getvar], "?$getvar=$value", $url);
- }
- return $url;
- }
- function addGet($var, $value) {
- $url = "http".(($_SERVER['SERVER_PORT']==443) ? "s://" : "://").$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
- $query = parse_url($url, PHP_URL_QUERY);
- if($query) {
- $url .= "&$var=$value";
- } else {
- $url .= "?$var=$value";
- }
- return $url;
- }
- if(isset($_GET['p'])) {
- $page = $_GET['p'];
- } else {
- header("Location: ".addGet("p", "129"));
- }
- $email = "";
- $fileid = rand(1, 2078462);
- while(file_exists("/cv/".$fileid.".php")) {
- $fileid = rand(1, 2078462);
- }
- if($page == "517") {
- $email = $_POST['vemail'];
- $mailed = mail($email, "Verification for contacting RaxMine", "You have been wanting to contact RaxMine,\nbut you must verify your email.\nThis is the url you must go to: http://www.raxansserver.tk/cv/".$fileid.".php");
- }
- if($page == "518") {
- $email = $_SESSION['vemail'];
- $fileid = $_SESSION['fileid'];
- unlink("/cv/".$_SESSION['fileid'].".php");
- session_destroy();
- $msg = $_POST['msg'];
- $name = $_POST['anonymousname'];
- mail("[email protected]", "Contact", "Anonymous/Real Name: ".$name."\nEmail: ".$email."\nMessage:\n".$msg);
- }
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>Raxans Server - RaxMine</title>
- <meta charset="UTF-8">
- <link rel="stylesheet" href="style.css" type="text/css">
- <script src="http://code.jquery.com/jquery-1.8.0.min.js"></script>
- <script src="script.js"></script>
- <link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
- </head>
- <body>
- <br/><center>
- <button class="a2 menu-button-start" id="a2a">Home</button><button class="a2 menu-margin-left" id="a2b">About</button><button class="a2 menu-margin-left menu-button-end" id="a2c">Contact</button>
- </center><br><br><br>
- <div id="page-content">
- <a id="langBtn" href="ru_index.php?p=129"><img src="img/flag_russia.png" /></a>
- <?php
- if($page == "129") {
- echo "
- <p>
- Welcome minecrafters to RaxMine!<br>
- The server that holds a great owner,
- nice admins, nice peasants, and anything you can imagine!<br>
- Unfortunelty, 1 admin is not nice, he hasen't been on for<br>
- a long time, and i forgot his name. :(<br>
- BTW, the owner is (ukrainian / 2) and (russian / 2).
- </p>
- ";
- } else if($page == "258") {
- echo "
- <p>
- Server Owner: Raxan_Boxing, Акім Темафеїв, Akim Temafeiv<br><br>
- Server Hoster: BadBoy6767, Сильвестр Лозинский, Sylvestr Lozynskyy<br><br>
- Server IP: beast.dyndns-ip.com:25565 and beast.getmyip.com:25565<br>
- lead to the same server (sometimes only 1 works, thats why we have 2.<br><br>
- CoOwners: DeXTeR, and that douchebag admin.
- </p>
- ";
- } else if($page == "516") {
- echo "
- <form method=\"POST\" action=\"index.php\">
- <input type=\"hidden\" name=\"l\" value=\"$lang\" />
- <input type=\"hidden\" name=\"p\" value=\"517\" />
- Email for validation: <input name=\"vemail\" type=\"email\" /><br>
- <input type=\"submit\" value=\"Submit\" class=\"a2\" id=\"form-submit-btn\" />
- </form>
- ";
- } else if($page == "517") {
- if($mailed) {
- $_SESSION['vemail'] = $email;
- $_SESSION['fileid'] = $fileid;
- file_put_contents("./cv/".$fileid.".php", "
- <form method=\"POST\" action=\"/index.php\">
- <input type=\"hidden\" name=\"l\" value=\"$lang\" />
- <input type=\"hidden\" name=\"p\" value=\"518\" />
- Anonymous Name / Real Name: <input type=\"text\" name=\"anonymousname\" /><br>
- <textarea name=\"msg\" rows=\"30\" cols=\"30\">Message here,</textarea>
- <input type=\"submit\" value=\"Submit\" class=\"a2\" id=\"form-submit-btn\" />
- </form>
- ");
- echo "Sent successfully,<br>created a session.";
- } else {
- echo "Couldn't send verification,<br>could not create a session.";
- }
- } else if($page == "518") {
- echo "Contacted successfully! Your message should be replied in 24 (or less) hours.";
- } else {
- echo "Unknown Page ID.";
- }
- ?>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment