$ppost['text'] = $message; $ppost['options'] = $poptions; // Edited notice $ppost['edited'] = $edited; $ppost['editdate'] = ctime(); $chks = array(); if ($nosmilies) { $chks[0] = "checked"; } if ($nohtml) { $chks[1] = "checked"; } if ($isadmin) { $ip = $post['ip']; } print "\n\t\t\t\t\t<body onload=window.document.REPLIER.message.focus()>\n\t\t\t\t\t{$tccellh}>Post preview\n\t\t\t\t\t{$tblend}{$tblstart}\n\t\t\t\t\t" . threadpost($ppost, 1) . "\n\t\t\t\t\t{$tblend}<br>{$tblstart}\n\t\t\t\t\t{$tccellh} width=150> </td>{$tccellh} colspan=2> <tr>\n\t\t\t\t\t{$tccell1}><b>Header:</td>\t {$tccell2l} width=800px valign=top>{$txta}=head ROWS=8 COLS={$numcols} style=\"width: 100%; max-width: 800px; resize:vertical;\">" . htmlspecialchars($head) . "</textarea>\n\t\t\t\t\t{$tccell2l} width=* rowspan=3>" . moodlist($moodid) . "</td><tr>\n\t\t\t\t\t{$tccell1}><b>Post:</td>\t\t {$tccell2l} width=800px valign=top>{$txta}=message ROWS=12 COLS={$numcols} style=\"width: 100%; max-width: 800px; resize:vertical;\">" . htmlspecialchars($message) . "</textarea><tr>\n\t\t\t\t\t{$tccell1}><b>Signature:</td>\t {$tccell2l} width=800px valign=top>{$txta}=sign ROWS=8 COLS={$numcols} style=\"width: 100%; max-width: 800px; resize:vertical;\">" . htmlspecialchars($sign) . "</textarea><tr>\n\t\t\t\t\t{$tccell1}> </td>{$tccell2l} colspan=2>\n\t\t\t\t\t{$inph}=action VALUE=editpost>\n\t\t\t\t\t{$inph}=id VALUE={$id}>\n\t\t\t\t\t{$inps}=submit VALUE=\"Edit post\">\n\t\t\t\t\t{$inps}=preview VALUE=\"Preview post\"></td>\n\t\t\t\t\t<tr>{$tccell1}><b>Options:</b></td>{$tccell2l} colspan=2>\n\t\t\t\t\t{$inpc}=\"nosmilies\" id=\"nosmilies\" value=\"1\" {$chks['0']}><label for=\"nosmilies\">Disable Smilies</label> -\n\t\t\t\t\t{$inpc}=\"nohtml\" id=\"nohtml\" value=\"1\" {$chks['1']}><label for=\"nohtml\">Disable HTML</label></td></tr>\n\t\t\t\t\t</FORM>\n\t\t\t\t\t{$tblend}{$fonttag}<a href=index.php>{$boardname}</a> - <a href=forum.php?id={$forum['id']}>" . $forum[title] . "</a> - {$thread['title']}\n\t\t\t\t"; } } else { print "\n\t\t\t{$tccell1}>You are not allowed to edit this post.<br>\n\t\t\t" . redirect("thread.php?id={$threadid}", "the thread", 0); } print $tblend; } elseif ($action == 'noob') { die; /*if ($loguser['powerlevel'] >= 1) { mysql_query("UPDATE `posts` SET `noob` = '1' - `noob` WHERE `id` = '$id'"); print " $tblstart$tccell1>Post n00bed!<br> ".redirect("thread.php?pid=$id&r=1#$id",'the post',0).'</table></table>'; }*/ } elseif ($action == 'delete') { if (!$_POST['reallydelete']) {
} loadtlayout(); $user['headtext'] = $user['postheader']; $user['signtext'] = $user['signature']; $user['text'] = "Sample text. [quote=fhqwhgads]A sample quote, with a <a href=about:blank>link</a>, for testing your layout.[/quote]This is how your post will appear."; $user['uid'] = $_GET['id']; $user['date'] = ctime(); // so that layouts show up regardless of setting (for obvious reasons) $loguser['viewsig'] = 1; // shop/rpg such $shops = $sql->query('SELECT * FROM itemcateg ORDER BY corder'); $eq = $sql->fetchq("SELECT * FROM users_rpg WHERE uid={$id}"); $itemids = array_unique(array($eq['eq1'], $eq['eq2'], $eq['eq3'], $eq['eq4'], $eq['eq5'], $eq['eq6'], $eq['eq7'])); $itemids = implode(',', $itemids); $eqitems = $sql->query("SELECT * FROM items WHERE id IN ({$itemids})"); while ($item = $sql->fetch($eqitems)) { $items[$item['id']] = $item; } while ($shop = $sql->fetch($shops)) { $shoplist .= "\r\n\t\t\t<tr>\r\n\t\t\t{$tccell1s}>{$shop['name']}</td>\r\n\t\t\t{$tccell2s} width=100%>" . $items[$eq['eq' . $shop['id']]]['name'] . " </td>\r\n\t\t"; } /* extra munging for whatever reason */ $user['email'] = urlencode($user['email']); // AKA if ($user['aka'] && $user['aka'] != $user['name']) { $aka = "{$tccell1l} width=150><b>Also known as</td>\t\t\t{$tccell2l}>{$user['aka']}<tr>"; } else { $aka = ''; } print "\r\n\t{$header}\r\n\t<div>{$fonttag} Profile for <b>{$minipic}<span style='color:#{$namecolor}'>{$user['name']}</span></b></div>\r\n<table cellpadding=0 cellspacing=0 border=0>\r\n<td width=100% valign=top>\r\n{$tblstart}\r\n\t{$tccellh} colspan=2><center>General information<tr>\r\n\t<!-- {$tccell1l} width=150><b>Username</td>\t\t\t{$tccell2l}>{$user['name']}<tr> -->\r\n\t{$aka}\r\n\t{$tccell1l} width=150><b>Total posts</td>\t\t\t{$tccell2l}>{$user['posts']} ({$postavg} per day) {$projdate}<br>{$bar}<tr>\r\n\t{$tccell1l} width=150><b>Total threads</td>\t\t{$tccell2l}>{$threadsposted}<tr>\r\n\t{$tccell1l} width=150><b>EXP</td>\t\t\t\t\t{$tccell2l}>{$expstatus}<tr>\r\n" . (false ? "\t{$tccell1l} width=150><b>User rating</td>\t\t\t{$tccell2l}>{$ratingstatus}<tr>" : "") . "\r\n\t{$tccell1l} width=150><b>Registered on</td>\t\t{$tccell2l}>" . @date($dateformat, $user[regdate] + $tzoff) . " (" . floor((ctime() - $user[regdate]) / 86400) . " days ago)<tr>\r\n\t{$tccell1l} width=150><b>Last post</td>\t\t\t{$tccell2l}>{$lastpostdate}{$lastpostlink}<tr>\r\n\t{$tccell1l} width=150><b>Last activity</td>\t\t{$tccell2l}>" . date($dateformat, $user[lastactivity] + $tzoff) . "{$lastip}<tr>\r\n{$tblend}\r\n<br>{$tblstart}\r\n\t{$tccellh} colspan=2><center>Contact information<tr>\r\n\t{$tccell1l} width=150><b>Email address</td>\t\t{$tccell2l}><a href='mailto:{$user['email']}'>{$user['email']}</a> <tr>\r\n\t{$tccell1l} width=150><b>Homepage</td>\t\t\t{$tccell2l}><a href='{$user['homepageurl']}'>{$homepagename}</a> <tr>\r\n\t{$tccell1l} width=150><b>ICQ number</td>\t\t\t{$tccell2l}>{$user['icq']} {$icqicon} <tr>\r\n\t{$tccell1l} width=150><b>AIM screen name</td>\t\t{$tccell2l}><a href='aim:goim?screenname={$aim}'>{$user['aim']}</a> <tr>\r\n{$tblend}\r\n<br>{$tblstart}\r\n\t{$tccellh} colspan=2><center>User settings<tr>\r\n\t{$tccell1l} width=150><b>Timezone offset</td>\t\t{$tccell2l}>{$tzoffset} hours from the server, {$tzoffrel} hours from you (current time: {$tzdate})<tr>\r\n\t{$tccell1l} width=150><b>Items per page</td>\t\t{$tccell2l}>" . $user['threadsperpage'] . " threads, " . $user['postsperpage'] . " posts<tr>\r\n\t{$tccell1l} width=150><b>Color scheme</td>\t\t{$tccell2l}>" . $schname . "<tr>\r\n{$tblend}\r\n</td><td> </td><td valign=top>\r\n{$tblstart}\r\n\t{$tccellh}><center>RPG status<tr>\r\n\t{$tccell1l}><img src='status.php?u={$id}'>\r\n{$tblend}\r\n<br>{$tblstart}\r\n\t{$tccellh} colspan=2><center>Equipped Items<tr>\r\n\t{$shoplist}\r\n{$tblend}\r\n</td></table>\r\n<br>{$tblstart}\r\n\t{$tccellh} colspan=2><center>Personal information<tr>\r\n\t{$tccell1l} width=150><b>Real name</td>\t\t\t{$tccell2l}>{$user['realname']} <tr>\r\n\t{$tccell1l} width=150><b>Location</td>\t\t\t{$tccell2l}>{$user['location']} <tr>\r\n\t{$tccell1l} width=150><b>Birthday</td>\t\t\t{$tccell2l}>{$birthday} {$age} <tr>\r\n\t{$tccell1l} width=150><b>User bio</td>\t\t\t{$tccell2l}>" . dofilters(doreplace2(doreplace($user['bio'], $user['posts'], (ctime() - $user['regdate']) / 86400, $user['name']))) . " <tr>\r\n{$tblend}\r\n<br>{$tblstart}\r\n\t{$tccellh} colspan=2><center>Sample post<tr>\r\n\t" . threadpost($user, 1) . "\r\n{$tblend}\r\n<br>{$tblstart}\r\n\t{$tccellhs} colspan=2><center>Options<tr>\r\n\t{$tccell2s} colspan=2>\r\n\t<a href=thread.php?user={$id}>Show posts</a> | \r\n\t<a href=forum.php?user={$id}>View threads by this user</a>\r\n\t{$sendpmsg}\r\n {$ratelink}\r\n {$moodavatar}\r\n <tr>\r\n\t{$tccell2s} colspan=2>\r\n\t<a href=postsbyuser.php?id={$id}>List posts by this user</a> |\r\n\t<a href=postsbytime.php?id={$id}>Posts by time of day</a> |\r\n\t<a href=postsbythread.php?id={$id}>Posts by thread</a> | \r\n\t<a href=postsbyforum.php?id={$id}>Posts by forum</td>{$sneek}\r\n\t{$tblend}{$footer}\r\n "; printtimedif($startingtime);
$ppost['headtext'] = $rhead; $ppost['signtext'] = $rsign; } $ppost['text'] = $message; $ppost['options'] = filter_int($nosmilies) . "|" . filter_int($nohtml); if ($isadmin) { $ip = $userip; } $chks = array("", "", ""); if ($nosmilies) { $chks[0] = "checked"; } if ($nolayout) { $chks[1] = "checked"; } if ($nohtml) { $chks[2] = "checked"; } print "{$header}\n\t\t\t\t<body onload=window.document.REPLIER.message.focus()>\n\t\t\t\t{$tccellh}>Post preview\n\t\t\t\t{$tblend}{$tblstart}\n\t\t\t\t" . threadpost($ppost, 1) . "\n\t\t\t\t{$tblend}<br>{$tblstart}\n\t\t\t\t<FORM ACTION=newreply.php NAME=REPLIER METHOD=POST>\n\t\t\t\t{$tccellh} width=150> </td>{$tccellh} colspan=2> <tr>\n\t\t\t\t{$tccell1}><b>Reply:</td>\n\t\t\t\t{$tccell2l} width=800px valign=top>{$txta}=message ROWS=21 COLS={$numcols} style=\"width: 100%; max-width: 800px; resize:vertical;\">" . htmlspecialchars($message, ENT_QUOTES) . "</TEXTAREA></td>\n\t\t\t\t{$tccell2l} width=*>" . moodlist($moodid) . "</td><tr>\n\t\t\t\t{$tccell1}> </td>{$tccell2l} colspan=2>\n\t\t\t\t{$inps}=submit VALUE=\"Submit reply\">\n\t\t\t\t{$inps}=preview VALUE=\"Preview reply\"></td>\n\t\t\t\t{$inph}=username VALUE=\"" . htmlspecialchars($username) . "\">\n\t\t\t\t{$inph}=password VALUE=\"" . htmlspecialchars($password) . "\">\n\t\t\t\t{$inph}=valid value=\"" . md5($_SERVER['REMOTE_ADDR'] . $id . "sillysaltstring") . "\">\n\t\t\t\t{$inph}=action VALUE=postreply>\n\t\t\t\t{$inph}=id VALUE={$id}>\n\t\t\t\t<tr>{$tccell1}><b>Options:</b></td>{$tccell2l} colspan=2>\n\t\t\t\t{$inpc}=\"nosmilies\" id=\"nosmilies\" value=\"1\" {$chks['0']}><label for=\"nosmilies\">Disable Smilies</label> -\n\t\t\t\t{$inpc}=\"nolayout\" id=\"nolayout\" value=\"1\" {$chks['1']}><label for=\"nolayout\">Disable Layout</label> -\n\t\t\t\t{$inpc}=\"nohtml\" id=\"nohtml\" value=\"1\" {$chks['2']}><label for=\"nohtml\">Disable HTML</label></td></tr>\n\t\t\t\t{$modoptions}\n\t\t\t\t{$tblend}\n\t\t\t\t</FORM>\n\t\t\t\t{$tblstart}{$postlist}{$tblend}\n\t\t\t\t</td></FORM>\n\t\t\t\t"; } } else { print "{$header}{$tccell1}>Couldn't enter the post. {$error}<br>" . redirect("thread.php?id={$id}", $thread['title'], 0); } } if ($thread['closed']) { print "\n\t\t{$tccell1}>Sorry, but this thread is closed, and no more replies can be posted in it.\n\t\t<br>" . redirect("thread.php?id={$id}", $thread['title'], 0); } elseif ($banned and $log) { print "\n\t\t{$tccell1}>Sorry, but you are banned from the board, and can not post.\n\t\t<br>" . redirect("thread.php?id={$id}", $thread['title'], 0); } print $footer; printtimedif($startingtime);
} $user = $sql->fetchq("SELECT * FROM users WHERE id={$msg['userfrom']}"); $windowtitle = "{$boardname} -- Private Messages: {$msg['title']}"; require_once 'lib/layout.php'; $top = "<table width=100%><td align=left>{$fonttag}<a href=index.php>{$boardname}</a> - <a href=private.php>{$pmlinktext}</a> - {$msg['title']}</table>"; if ($msg['userto'] == $loguserid) { $sql->query("UPDATE pmsgs SET msgread=1 WHERE id={$id}"); } loadtlayout(); $post = $user; $post['uid'] = $user['id']; $post['date'] = $msg['date']; $post['headid'] = $msg['headid']; $post['signid'] = $msg['signid']; $post['text'] = $msg['text']; $post['tagval'] = $msg['tagval']; if ($loguser['viewsig'] == 2) { $post['headtext'] = $user['postheader']; $post['signtext'] = $user['signature']; } else { $post['headtext'] = $msg['headtext']; $post['signtext'] = $msg['signtext']; } if ($msg['userto'] == $loguserid) { $quote = "<a href=sendprivate.php?id={$id}>Reply</a>"; } if ($isadmin) { $ip = ($quote ? ' | ' : '') . "IP: <a href=ipsearch.php?ip={$msg['ip']}>{$msg['ip']}</a>"; } print $header . $top . $tblstart . threadpost($post, 1) . $tblend . $top . $footer; printtimedif($startingtime);
//$ppost['signtext']=$rsign; if ($nolayout) { $ppost['headtext'] = ""; $ppost['signtext'] = ""; } else { $ppost['headtext'] = $rhead; $ppost['signtext'] = $rsign; } $ppost['moodid'] = $_POST['moodid']; $ppost['text'] = stripslashes($message); $ppost['options'] = $_POST['nosmilies'] . "|" . $_POST['nohtml']; if ($isadmin) { $ip = $userip; } $threadtype = $poll ? 'poll' : 'thread'; print "\n\t\t\t\t\t<body onload=window.document.REPLIER.message.focus()>\n\t\t\t\t\t{$tccellh}>" . ($poll ? 'Poll' : 'Thread') . " preview\n\t\t\t\t\t{$tblend}{$tblstart}\n\t\t\t\t\t{$pollpreview}\n\t\t\t\t\t{$tccell2l}>{$posticon1} <b>" . stripslashes($subject) . "</b>\n\t\t\t\t\t{$tblend}{$tblstart}\n\t\t\t\t\t" . threadpost($ppost, 1) . "\n\t\t\t\t\t{$tblend}<br>{$tblstart}\n\t\t\t\t\t<FORM ACTION=newthread.php NAME=REPLIER METHOD=POST>\n\t\t\t\t\t{$tccellh} width=150> </td>{$tccellh} colspan=2> <tr>\n\t\t\t\t\t{$inph}=username VALUE=\"" . htmlspecialchars($username) . "\">\n\t\t\t\t\t{$inph}=password VALUE=\"" . htmlspecialchars($password) . "\">\n\t\t\t\t\t{$form}\n\t\t\t\t\t</td></FORM>\n\t\t\t\t\t{$tblend}\n\t\t\t\t"; } } else { $reason = "You haven't entered your username and password correctly."; if (!$limithit) { $reason = "You are trying to post too rapidly."; } if (!$message) { $reason = "You haven't entered a message."; } if (!$subject) { $reason = "You haven't entered a subject."; } if (!$authorized) { $reason = "You aren't allowed to post in this forum."; }
} $edit .= ($quote || $edit ? ' | ' : '') . "<a href=editpost.php?id={$post['id']}&action=delete>Delete</a>"; } if ($isadmin) { $ip = " | IP: <a href=ipsearch.php?ip={$post['ip']}>{$post['ip']}</a>"; } $pforum = null; $pthread = null; if (!$id) { // Enable caching for these $pthread = $sql->fetchq("SELECT id,title,forum FROM threads WHERE id={$post['thread']}", MYSQL_BOTH, true); $pforum = $sql->fetchq("SELECT minpower FROM forums WHERE id=" . intval($pthread[forum]), MYSQL_BOTH, true); } $post['act'] = filter_int($act[$post['user']]); if (!$pforum || $pforum['minpower'] <= $power) { $postlist .= threadpost($post, $bg, $pthread); } else { $postlist .= "<table class=\"table\" cellspacing=0>\r\n\t\t\t\t\t<tr><td class='tbl font tdbg{$bg}' align=center><small><i>\r\n\t\t\t\t\t(post in restricted forum)\r\n\t\t\t\t\t</i></small></td></tr>\r\n\t\t\t\t</table>"; } } $query = preg_replace("'page=(\\d*)'si", '', '?' . getenv("QUERY_STRING")); $query = preg_replace("'pid=(\\d*)'si", "id={$id}", $query); $query = preg_replace("'&{2,}'si", "&", $query); if ($query && substr($query, -1) != "&") { $query .= "&"; } if (!$page) { $page = 0; } $pageend = (int) ($thread['replies'] / $ppp); $pagelinks = "Pages:";
} else { $signid = 0; } mysql_query("UPDATE announcements SET title='{$subject}', text='{$message}', headtext='{$head}', signtext='{$sign}', edited='{$edited}', editdate='" . ctime() . "',headid={$headid},signid={$signid} WHERE id={$id}"); $annclist = "\r\n\t {$tccell1}>Thank you, " . $loguser[name] . ", for editing the announcement.<br>\r\n\t " . redirect("announcement.php?f={$f}", "go to the announcements", 0); } else { loadtlayout(); $annc = mysql_fetch_array(mysql_query("SELECT * FROM announcements WHERE id={$id}")); $ppost = mysql_fetch_array(mysql_query("SELECT * FROM users WHERE id={$annc['user']}")); $subject = stripslashes($subject); $message = stripslashes($message); $head = stripslashes($head); $sign = stripslashes($sign); $ppost['uid'] = $annc[user]; $ppost['date'] = $annc[date]; $ppost['tagval'] = $annc[tagval]; $ppost['headtext'] = $head; $ppost['signtext'] = $sign; $ppost['text'] = "<center><b>{$subject}</b></center><hr>{$message}"; $ppost['edited'] = $edited; $ppost['editdate'] = ctime(); if ($isadmin) { $ip = $annc['ip']; } $annclist = "\r\n\t\t<body onload=window.document.REPLIER.message.focus()>\r\n\t\t{$tccellh}>Announcement preview\r\n\t\t{$tblend}{$tblstart}\r\n\t\t" . threadpost($ppost, 1) . "\r\n\t\t{$tblend}<br>{$tblstart}\r\n\t\t<FORM ACTION=announcement.php NAME=REPLIER METHOD=POST>\r\n\t\t{$tccellh} width=150> </td>{$tccellh}> <tr>\r\n\t\t{$tccell1}><b>Announcement title:</b></td>{$tccell2l}>{$inpt}=subject VALUE=\"{$subject}\" SIZE=70 MAXLENGTH=100><tr>\r\n\t\t{$tccell1}><b>Header:</td>\t {$tccell2l}>{$txta}=head ROWS=4 COLS={$numcols}>{$head}</TEXTAREA><tr>\r\n\t\t{$tccell1}><b>Announcement:</td> {$tccell2l}>{$txta}=message ROWS=6 COLS={$numcols}>{$message}</TEXTAREA><tr>\r\n\t\t{$tccell1}><b>Signature:</td>\t {$tccell2l}>{$txta}=sign ROWS=4 COLS={$numcols}>{$sign}</TEXTAREA><tr>\r\n\t\t{$tccell1}> </td>{$tccell2l}>\r\n\t\t{$inps}=submit VALUE=\"Edit announcement\">\r\n\t\t{$inps}=preview VALUE=\"Preview announcement\">\r\n\t\t{$inph}=action VALUE=editannc>\r\n\t\t{$inph}=id VALUE={$id}>\r\n\t\t{$inph}=f VALUE={$f}>\r\n\t\t</td></FORM>\r\n\t "; } } $postnew = "<a href=announcement.php?action=new&f={$f}>Post new announcement</a>"; } print "{$header}\r\n\t<table width=100%><td align=left>{$fonttag}<a href=index.php>{$boardname}</a> - Announcements</td><td align=right>{$smallfont}{$postnew}</table>\r\n\t{$pagelinks}{$tblstart}{$annclist}{$tblend}{$pagelinks}{$footer}\r\n "; printtimedif($startingtime);
$signid = getpostlayoutid($sign); $sql->query("INSERT INTO pmsgs (id,userto,userfrom,date,ip,msgread,headid,signid) VALUES (NULL,{$userid},{$loguserid},{$currenttime},'{$userip}',0,{$headid},{$signid})"); $sql->query("INSERT INTO pmsgs_text (pid,title,text,tagval) VALUES (" . mysql_insert_id() . ",'{$subject}','{$message}','{$tagval}')"); print "{$tccell1}>Private message to {$username} sent successfully!\n\t\t\t\t\t<br>" . redirect('private.php', 'your private message box', 0) . $tblend; } else { loadtlayout(); $ppost = $loguser; $message = stripslashes($message); $username = stripslashes($username); $subject = stripslashes($subject); $ppost['uid'] = $loguserid; $ppost['date'] = $currenttime; $ppost['headtext'] = $rhead; $ppost['signtext'] = $rsign; $ppost['text'] = $message; if ($isadmin) { $ip = $userip; } print "\n\t\t\t\t\t<body onload=window.document.REPLIER.message.focus()>\n\t\t\t\t\t{$tccellh}>Message preview\n\t\t\t\t\t{$tblend}{$tblstart}\n\t\t\t\t\t{$pollpreview}\n\t\t\t\t\t{$tccell2l}><b>" . stripslashes($subject) . "</b>\n\t\t\t\t\t{$tblend}{$tblstart}\n\t\t\t\t\t" . threadpost($ppost, 1) . "\n\t\t\t\t\t{$tblend}<br>{$tblstart}\n\t\t\t\t\t<FORM ACTION=sendprivate.php NAME=REPLIER METHOD=POST>\n\t\t\t\t\t{$tccellh} width=150> </td>{$tccellh}> <tr>\n\t\t\t\t\t{$tccell1}><b>Subject:</td>\t {$tccell2l}>{$inpt}=subject value=\"{$subject}\" size=60 maxlength=100><tr>\n\t\t\t\t\t{$tccell1}><b>Message:</td>\n\t\t\t\t\t{$tccell2l}>{$txta}=message ROWS=10 COLS={$numcols}>{$message}</TEXTAREA><tr>\n\t\t\t\t\t{$tccell1}> </td>{$tccell2l}>\n\t\t\t\t\t{$inph}=username VALUE=\"" . htmlspecialchars($username) . "\">\n\t\t\t\t\t{$inph}=action VALUE=sendmsg>\n\t\t\t\t\t{$inps}=submit VALUE=\"Send message\">\n\t\t\t\t\t{$inps}=preview VALUE='Preview message'>\n\t\t\t\t\t</td></FORM>\n\t\t\t\t"; } } } /*if($action=='delete' and $msg[userto]==$loguserid){ mysql_query("DELETE FROM pmsgs WHERE id=$id"); mysql_query("DELETE FROM pmsgs_text WHERE pid=$id"); print " $tccell1>Thank you, $loguser[name], for deleting the message. <br>".redirect('private.php','return to the private message box',0).$tblend; } */ print $footer; printtimedif($startingtime);