Location: PHPKode > projects > Nukequiz > html/modules/Nukequiz/public/NQPInviteFriend.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 "<br><center><font class='title'>"._NQ_EMAILAFRIEND."&nbsp;:&nbsp;$logname</font><br>";
echo "<br>"._NQ_EFRIENDDETAIL."<br><br><b>"._NQ_EFRIENDEMAIL."</b><br><br>";
echo "<form method='post' action='modules.php?name=$module_name'>";
echo "<input type='hidden' name='op' value='sendfriend'>";
$result = $db->sql_query("SELECT * FROM ".$prefix."_nquiz_scoreboard WHERE username='$user' ORDER BY date DESC LIMIT 0,1");
list($sbid, $ip, $starttime, $endtime, $username, $email, $qid, $score, $perc, $qcorrect, $qwrong, $ttime, $date) = $db->sql_fetchrow($result);
echo "<input type='hidden' name='femail' value='$email'>";
echo "<input type='hidden' name='fip' value='$ip'>";
echo "<input type='hidden' name='flogname' value='$username'>";
echo "<input type='hidden' name='fdate' value='$date'>";
echo "<input type='hidden' name='fqid' value='$qid'>";
echo "<input type='hidden' name='fperc' value='$perc'>";
echo "<input type='text' name='fmail' value='$friendsemail' size='55' maxlength='55'><br><br>";
echo "<input type='submit' onClick=\"this.disabled=true;submit()\" value='"._NQ_SEND."'</form><br>"._GOBACK."</center><br><br>";
CloseTable();
include('footer.php');
?>
Return current item: Nukequiz