Location: PHPKode > scripts > Hot or Not Clone > hotornot/reportabuse.php
<?
include("config.php");
include("functions.php");
					if(isset($fromname))
					{
							$act=getSetting("adminemail");
							sendHTMLmail($fromemail,$adminemail,"Report abuse $fromname",$message);
							$mmessage="Email has been sent to Admin.";
					}
$sql="select * from members where username='$ses_username'";
$res=mysql_query($sql);
while($obj=mysql_fetch_object($res))
{
$email=$obj->email;
$fname=$obj->fname;
$lname=$obj->lname;
}
$message="I found the pic gallery of $username [$urldomain/index.php?username=$username] abusive.";										
?>
<script language="JavaScript">
function checkifvalid(){
	if (window.document.myform.fromname.value=="")
	{
	alert("please enter your name!");
	window.document.myform.fromname.focus();
	return false;
	}
	if (window.document.myform.fromemail.value=="")
	{
	alert("please enter your email!");
	window.document.myform.fromemail.focus();
	return false;
	}
	if (window.document.myform.message.value=="")
	{
	alert("please enter your message!");
	window.document.myform.message.focus();
	return false;
	}	
}
</script>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<link rel="stylesheet" href="stylesheet.css" type="text/css">

<title>Rate My Looks</title>
</head>

<body leftmargin="0" rightmargin="0" bottommargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><br>
      <table width="80%" height="10" border="0" align="center" cellpadding="0" cellspacing="0" class="mytable">
        <tr> 
          <td valign="top"> <div align="center"> 
              <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
                <form name="myform" action="reportabuse.php" method="post" onsubmit="javascript: return checkifvalid();">
                  <tr > 
                    <td width="1"  class="header">&nbsp;</td>
                    <td height="20" colspan="2" class="header">Report Abuse</td>
                  </tr>
                  <?
				  if(empty($fromname))
				  {
				  ?>
                  <tr > 
                    <td height="25" class="normal">&nbsp;</td>
                    <td width="40%" height="25" class="normal">Your Name</td>
                    <td width="60%" height="19" align="left" class="normal"> <input name="fromname" type="text" class="mytext" id="fromname" value="<? print $fname. " ".$lname; ?>"></td>
                  </tr>
                  <tr > 
                    <td height="25" class="normal">&nbsp;</td>
                    <td width="40%" height="25" class="normal">Your Email</td>
                    <td width="60%" height="19" align="left" class="normal"> <input name="fromemail" type="text" class="mytext" id="fromemail" value="<? print $email;?>"></td>
                  </tr>
                  <tr > 
                    <td width="1" height="25" class="normal">&nbsp;</td>
                    <td width="40%" height="25" class="normal">please mention 
                      your complaint</td>
                    <td width="60%" height="19" align="left" class="normal"><textarea name="message" cols="30" rows="6" class="mytext" id="message"><? print $message; ?></textarea> 
                    </td>
                  </tr>
                  <tr align="center" > 
                    <td height="25" colspan="3" class="normal"> <input type="submit" name="Submit" value="Submit" class="mybutton"></td>
                  </tr>
                  <?
				  }
				  else
				  {
				  ?>
                  <tr align="left" > 
				  <td height="25" class="normal">&nbsp;</td>
                    <td height="25" colspan="2" class="normal"><? print $mmessage;?></td>
                  </tr>
                  <?
				  }
				  ?>
                </form>
              </table>
            </div></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
Return current item: Hot or Not Clone