diff --git a/editpost.php b/editpost.php index 1e4303a..5ae7069 100644 --- a/editpost.php +++ b/editpost.php @@ -75,7 +75,7 @@ $inpc=\"nosmilies\" id=\"nosmilies\" value=\"1\" $chks[0]> - $inpc=\"nohtml\" id=\"nohtml\" value=\"1\" $chks[1]> - $tblend$fonttag$boardname - ".$forum[title]." - $thread[title] + $tblend$fonttag$boardname - ".$forum['title']." - $thread[title] "; } elseif (!$action) { @@ -183,7 +183,7 @@ ".redirect("thread.php?pid=$id&r=1#$id",'the post',0).''; }*/ } - + elseif ($action=='delete'){ if (!$_POST['reallydelete']) $txt = "Are you sure you want to DELETE this post?

$inps=reallydelete value='Delete post'>$inph=action value='delete'>$inph=id value='$id'>
- Cancel"; @@ -208,4 +208,4 @@ print $footer; printtimedif($startingtime); -?> \ No newline at end of file +?> diff --git a/newthread.php b/newthread.php index 383c8bb..74156b4 100644 --- a/newthread.php +++ b/newthread.php @@ -31,7 +31,7 @@ if ($forum['nopolls'] && $poll) { print "$header
- $tblstart + $tblstart $tccell1> A for effort, but F for still failing. @@ -117,7 +117,7 @@ $inpc=\"nohtml\" id=\"nohtml\" value=\"1\"$nohtmlchk> "); - if(!$_POST[action] or $_POST[paction]) { + if(!$_POST['action'] or $_POST['paction']) { print " $fonttag$boardname - ".$forum[title]."
@@ -125,7 +125,7 @@ "; if($log and $forums[$id][minpowerthread]>$power) { print "$tccell1>Sorry, but you are not allowed to post"; - if($banned) print ", because you are banned from this board.
".redirect("forum.php?id=$id",'return to the forum',0); + if($banned) print ", because you are banned from this board.
".redirect("forum.php?id=$id",'return to the forum',0); else print ' in this restricted forum.
'.redirect('index.php','return to the board',0); } else { @@ -163,7 +163,7 @@ $fonttag$boardname - ".$forum[title]." ".replytoolbar(4); } - if($_POST[action]=='postthread' and !$_POST[paction]) { + if($_POST['action']=='postthread' and !$_POST['paction']) { print "
$tblstart"; if ($log && !$password) $userid = $loguserid; @@ -171,25 +171,14 @@ $userid = checkuser($username,$password); $user=$sql->fetchq("SELECT * FROM users WHERE id=$userid"); - if($user[powerlevel]<0) $userid=-1; + if($user['powerlevel']<0) $userid=-1; // can't be posting too fast now - $limithit = $user[lastposttime] < (ctime()-30); + $limithit = $user['lastposttime'] < (ctime()-30); // can they post in this forum? - $authorized = $user[powerlevel] >= $forum[minpowerthread]; + $authorized = $user['powerlevel'] >= $forum['minpowerthread']; // does the forum exist? - $forumexists = $forum[title]; - - // --- - // lol i'm eminem - if (strpos($message , '[Verse ') !== FALSE) { - $authorized = false; - @$sql->query("INSERT INTO `ipbans` SET `ip` = '". $_SERVER['REMOTE_ADDR'] ."', `date` = '". ctime() ."', `reason` = 'Listen to some good music for a change.'"); - if ($_COOKIE['loguserid'] > 0) - @$sql->query("UPDATE `users` SET `powerlevel` = '-2' WHERE `id` = {$_COOKIE['loguserid']}"); - xk_ircsend("1|". xk(7) ."Auto-banned another Eminem wannabe with IP ". xk(8) . $_SERVER['REMOTE_ADDR'] . xk(7) ."."); - } - // --- + $forumexists = $forum['title']; if($userid!=-1 && $subject && $message && $forumexists && $authorized && $limithit) { $msg=$message; @@ -203,8 +192,8 @@ $sign = "$sign"; } - $numposts = $user[posts] + 1; - $numdays = (ctime()-$user[regdate])/86400; + $numposts = $user['posts'] + 1; + $numdays = (ctime()-$user['regdate'])/86400; $tags = array(); $msg = doreplace($msg, $numposts, $numdays, $username, $tags); $rsign = doreplace($sign, $numposts, $numdays, $username); @@ -273,7 +262,7 @@ } else { if($posticon) $posticon1=""; - + if($poll) { for($c=1;$chtext[$c];$c++) { $chtext[$c]=stripslashes($chtext[$c]); @@ -344,7 +333,7 @@ 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."; - + print " $tccell1>Couldn't post the thread. $reason
".redirect("forum.php?id=$id", $forum[title], 2).$tblend;