Location: PHPKode > projects > Nukequiz > html/modules/Nukequiz/public/NQPReportSend.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();
$qid = intval($errqid);
$db->sql_query("UPDATE ".$prefix."_nquiz_quiz SET active='0' WHERE qid='$qid'");
$error= nl2br(stripslashes(FixQuotes(check_html($error, "nohtml"))));
$now = time();
$formatdate = $nq_config['dateformat'];
$date = date($formatdate,$now);
$emailtemplate = $nq_config['templates'];
$result = $db->sql_query("SELECT title FROM ".$prefix."_nquiz_quiz WHERE qid='$qid'");
list($title) = $db->sql_fetchrow($result);
$subject = ""._NQ_REPORTERROR." : $date";
$from  = "FROM:$errlogname<$erremail>\nContent-Type: text/html; charset=iso-8859-1\r\n";
include_once("modules/$module_name/templates/$emailtemplate/t_5.php");
mail($adminmail, $subject, $emailbody, $from);
OpenTable();
echo "<br><center>"._NQ_TNKSFORINFO."<br><br><b>"._NQ_PLEASEREDIRECTWAIT."</b><br><br></center>";
CloseTable();
echo "<meta http-equiv='Refresh' content='3'; URL='http://$nukeurl/modules/$module_name/modules.php?name=$module_name'>";
include('footer.php');
?>
Return current item: Nukequiz