<?
# Slashster: Open Source Friend of a Friend Software
# Copyright 2004 Mark El-Wakil
# Contact: hide@address.com
# http://seventhcycle.net
#
# This file is part of Slashster.
#
# Slashster is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# Slashster is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Slashster; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
import_request_variables("gPc");
require_once("PageClass.php");
$mpage = new PageClass("authonly");
$mpage->MembersOnly();
$sql = "select * from UserTable where Id = \"$id\" ";
$r = $mpage->DoQuery($sql,1);
if (!sizeof($r))
{
$mpage->Initialize("authremainder");
echo "No such user";
$mpage->ClosePage();
}
$r = $r[0];
if ($submit)
{
$tx = "Report:\n\n";
$tx .= "Perpetrator:\n";
$tx .= "First Name: $r[Fname]\n";
$tx .= "Last Name : $r[Lname]\n";
$tx .= "Email : $r[Email]\n";
$tx .= $mpage->stdurl . "user.php?id=$r[Id]\n\n";
$tx .= "Sender:\n";
$tx .= "First Name: " . $mpage->user[Fname]."\n";
$tx .= "Last Name : " . $mpage->user[Lname]."\n";
$tx .= "Email : " . $mpage->user[Email]."\n";
$tx .= $mpage->stdurl . "user.php?id=".$mpage->user[Id]."\n\n";
$tx .= "Description:\n\n$txt";
mail($mpage->adm[email], $mpage->sys[sitename]." Report", $tx);
$mpage->Initialize("authremainder");
echo "<P class=\"title1\">Thank You</p>";
echo "<P>Your report has been sent and will be dealt with accordingly.";
$mpage->ClosePage();
}
$mpage->Initialize("authremainder");
?>
<form method=post>
<table width=600 align=center><tr><td>
<span class="title1">Report User</span>
<P>
By clicking on "Report" below, this profile will be sent to <?= $mpage->sys[sitename] ?>, and the
account of <?= $r[Fname]?> will be reviewed for violations of <?= $mpage->sys[sitename] ?> guidelines and
policies. Examples of violations include offensive photos, fake profiles, etc.
<P><B>Why are you reporting this person?</b>
<P>
<textarea name="txt" cols=50 rows=5>
</textarea>
<P>
<input type="submit" class="submit" name="submit" value="Report">
<BR>
<BR>
<a class="submit" href="user.php?id=<?= $r[Id] ?>"> Cancel </a>
<BR><BR>
</td></tr></table>
</form>
<? $mpage->ClosePage(); ?>