File: /home/httpd/html/tubeshemale.com/public_html/includes/inc.removal_request.php
<?
session_start();
include('admin/db.php');
if(!isLoggedIn()) { header("Location: login.php"); exit(); }
$_GET[id] = mysql_real_escape_string($_GET[id]);
$result = mysql_query("SELECT * FROM content WHERE submitter = '$_SESSION[userid]' AND record_num = '$_GET[id]'");
if(mysql_num_rows($result) < 1) { header("Location: /index.php"); exit(); }
if($_POST[name] && $_POST[email] && $_POST[content] && $_POST[id] && eregi('@',$_POST[email])) {
$to = $admin_email;
$subject = '$sitename Removal Request';
$from = "From: $_POST[name] <$_POST[email]>";
$message =
"Content Removal Request
------------------------
URL: http://www.$site_domain/video.php?id=$_POST[id]
Reason: ".strip_tags($_POST[content]);
if(mail($to,$subject,$message,$from)) {
$success = true;
}
}
$title = 'Removal Request';
include('inc.header.php'); ?>
<h3>Request Video Removal</h3>
<? if($success) { ?>
<p>Your message has been sent, and you should recieve a reply within 24 hours.</p>
<? } else { ?>
<p>
Please use this form to request a piece of content be removed from our network.</p>
<p>All fields are mandatory.</p>
<form id="form1" name="form1" method="post" action="">
<input type='hidden' name='id' value='<? echo $_REQUEST[id]; ?>' />
<input type='hidden' name='name' value='<? echo $_SESSION[username]; ?>' />
<input type='hidden' name='email' value='<? echo $_SESSION[email]; ?>' />
<table width="500" border="0" align="center">
<tr>
<td>Reason</td>
<td><textarea style='width: 300px; height: 80px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; margin-bottom: 5px;' name="content" id="textfield3"></textarea></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="button" id="button" value="Send Message" /></td>
</tr>
</table>
</form>
<?
}
include('inc.footer.php'); ?>