Location: PHPKode > projects > Nukequiz > html/modules/Nukequiz/public/NQPErrorReport.php
<?php
/*****************************************************************/
/* Nukequiz (tm)    v 3.1.0                                		 */
/* By: Kissoftware (hide@address.com)      		     */
/* http://www.kissoftware.org.uk                           		 */
/* http://www.kissoftware.co.uk                       		     */
/* Copyright © 2003-2008 by Kissoftware         				 */
/* See Docs For Information & Credits                 			 */
/* For More information Visit Forums Or The Online Help Manual	 */
/*****************************************************************/
include('header.php');
logoheader();
if (is_user($user))
{
cookiedecode($user);
$user = $cookie[1];
}
if (is_admin($admin))
{
$aid = $admin[0];
$aid = substr(addslashes($aid), 0, 25);
$resulta = $db->sql_query("SELECT aid FROM ".$prefix."_authors WHERE aid='$aid'");
list($user) = $db->sql_fetchrow($resulta);
}
OpenTable();
echo "<center><br><font class='title'>"._NQ_ERRORREPORT."</font><br><br>"._NQ_REPORTDETAIL."<br><br>";
echo "<form method='post' action='modules.php?name=$module_name'>";
echo "<input type='hidden' name='op' value='sendreport'>";
$result = $db->sql_query("SELECT ip, username, email FROM ".$prefix."_nquiz_scoreboard WHERE username='$user' ORDER BY date DESC LIMIT 0,1");
list($ip, $logname, $adrs) = $db->sql_fetchrow($result);
echo "<input type='hidden' name='erremail' value='$adrs'>";
echo "<input type='hidden' name='errip' value='$ip'>";
echo "<input type='hidden' name='errlogname' value='$logname'>";
echo "<input type='hidden' name='errqid' value='$qid'>";
echo "<textarea wrap='virtual' name='error' cols='60' rows='6'></textarea><br><br>";
echo "<input type='submit' onClick=\"this.disabled=true;submit()\" value='"._NQ_SEND."'</form><br><br>"._GOBACK."<br><br></center>";
CloseTable();
include('footer.php');
?>
Return current item: Nukequiz