+ $modoptions
+ $tblend
+
+ $tblstart$postlist$tblend
+
+
+ $fonttag$boardname - $forum[title] - $thread[title]";
} elseif(!$_POST['action']) {
- print $header;
- print "$tccell1>You are not allowed to post in this thread.
- ".redirect("index.php", 'return to the index page', 0)."";
+ print $header;
+ print "$tccell1>You are not allowed to post in this thread.
+ ".redirect("index.php", 'return to the index page', 0)."";
}
- if($_POST['action']=='postreply' && !($banned && $log) && $id>0) {
+ if ($_POST['action'] == 'postreply' && !($banned && $log) && $id > 0) {
if ($log && !$password)
$userid = $loguserid;
else
$userid = checkuser($username,$password);
- $error='';
- if($userid==-1)
- $error="Either you didn't enter an existing username, or you haven't entered the right password for the username.";
- else{
- $user=@$sql->fetchq("SELECT * FROM users WHERE id=$userid");
- if($thread['closed'])
- $error='The thread is closed and no more replies can be posted.';
- if($user['powerlevel']<$forum['minpowerreply'])
- $error='Replying in this forum is restricted, and you are not allowed to post in this forum.';
- if(!$message)
- $error="You didn't enter anything in the post.";
+ $error='';
+
+ if ($userid == -1) {
+ $error = "Either you didn't enter an existing username, or you haven't entered the right password for the username.";
+ } else {
+ $user = @$sql->fetchq("SELECT * FROM users WHERE id='$userid'");
+ if ($thread['closed'])
+ $error = 'The thread is closed and no more replies can be posted.';
+ if ($user['powerlevel']<$forum['minpowerreply'])
+ $error = 'Replying in this forum is restricted, and you are not allowed to post in this forum.';
+ if (!$message)
+ $error = "You didn't enter anything in the post.";
+ }
+
+ if (!$error) {
+
+ $sign = $user['signature'];
+ $head = $user['postheader'];
+ // @TODO: Remove this code
+ if($user['postbg']) $head="