phrasepin source leaked
July 1st 2019 in General
<!DOCTYPE html>
<link rel="stylesheet" type="text/css" href="files/newstyle.css" />
<br>
<div id="container"><div class="block">
<?php
error_reporting(E_ALL ^ E_NOTICE);
include "config.php";
session_start();
if(!(isset($_SESSION['startauth']))){$_SESSION['startauth'] = "";}
$startpass = @$_POST['spass'];
if($startpass == "poop") {
$_SESSION['startauth'] = "true";
}
if ($_SESSION['startauth'] <> "true") {
print ("<form id='auth' action="$_SERVER[PHP_SELF]" method="post">");
print ("<input type=password name=spass>");
print ("<input type=submit value='Authenticate'>");
print ("</form>");
exit;
}
print ("<form id='deauth' action="$_SERVER[PHP_SELF]" method="post">");
print ("<input type=hidden name=deauth value='kill'>");
print ("<input type=submit value='De-authenticate'>");
print ("</form>");
$deauth = @$_POST['deauth'];
$refresh = @$_POST['refresh'];
if($deauth == "kill") {
session_destroy();
die("<meta http-equiv="refresh" content="0">");
}
if($refresh == "refresh") {
die("<meta http-equiv="refresh" content="0">");
}
$user = stripslashes(htmlspecialchars($_POST['user']));
$user = $mysqli->real_escape_string($user);
$title = stripslashes(htmlspecialchars($_POST['title']));
$title = $mysqli->real_escape_string($title);
$cat = stripslashes(htmlspecialchars($_POST['category']));
$cat = $mysqli->real_escape_string($cat);
$post = stripslashes(htmlspecialchars($_POST['post']));
$post = $mysqli->real_escape_string($post);
$time = time();
$query = "INSERT INTO postsdev (user,catid,title,post,date) VALUES ('$user', '$cat', '$title', '$post', '$time')";
if(isset($_POST['blog'])) {
if( (empty($_POST['user'])) || (empty($_POST['title'])) || (empty($_POST['post'])) ) {
echo 'Error: One or more fields are empty';
} else {
if($mysqli->query($query)) {
echo 'Congratulations on releasing yet more bullshit. <a href="view.php?id='.$mysqli->insert_id.'">View</a> your failure of a post.';
} else {
echo 'Error happened: Mysqli says:'.$mysqli->error;
}
}
}
?>
<form method="post">
<table>
<tr>
<td><label for="category">Category</label></td>
<td><select name="category">
<option id="1" value="1">Test Post</option>
<option id="2" value="2">Site Update</option>
<option id="3" value="3">Thought</option>
<option id="4" value="4">Rage Post</option>
<option id="5" value="5">Question</option>
<option id="6" value="6">Circle Post</option>
<option id="7" value="7">Announcement</option>
<option id="8" value="8">Sad Post</option>
</select></td>
</tr>
<tr>
<td><label for="user">User</label></td>
<td><input name="user" id="user" /></td>
</tr>
<tr>
<td><label for="title">Title</label></td>
<td><input name="title" id="title" /></td>
</tr>
<tr>
<td><label for="post">Body</label></td>
<td><textarea name="post" id="post" width="100%" height="300px"></textarea></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Post" name="blog" /></td>
</tr>
</table>
</form>
</div></div>
me!93e74a3c12 - 01 Jul 2019
[colour][/colour]Reply | Delete
the best part is!114811bccf - 01 Jul 2019
that i didn't even censor the password, it always was just "poop"Reply | Delete