- $modoptions
- $tblend
-
- $tblstart$postlist$tblend
-
-
- $fonttag$boardname - $forum[title] - $thread[title]
- ".replytoolbar(4);
- } 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)."";
- }
-
-
- if($_POST[action]=='postreply' && !($banned && $log) && $id>0) {
- if ($log && !$password)
- $userid = $loguserid;
- else
- $userid = checkuser($username,$password);
-
-/*
- if (stripos($message, "i hate metal man!!") !== false) {
- xk_ircsend("1|". xk(4) ."NO BONUS!". xk() ." Seems that ". xk(11) ."'$username'". xk() ." is another rereg, so I've banned his account (". xk(11) ."$userid". xk() .") and IP (". xk(11) ."$userip". xk() .").");
- $sql -> query("UPDATE `users` SET `power` = '-1', `title` = 'Get out.' WHERE `id` = '$userid'");
- $sql -> query("INSERT INTO `ipbans` SET `ip` = '". $_SERVER['REMOTE_ADDR'] ."', `date` = '". ctime() ."', `reason` = 'NO BONUS'");
- die("Winners don't do drugs!");
- }
-*/
-
- $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[lastposter]==$userid && $user[powerlevel]<=2)
-// $error='You already have the last reply in this thread.';
- 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){
- activitycheck($userid);
- $sign=$user[signature];
- $head=$user[postheader];
- if($user[postbg]) $head="