fix unquoted array keys in newthread.php (re: #68)

This commit is contained in:
Xkeeper 2020-11-18 11:21:34 -08:00
parent 50f201148d
commit 289750112c
No known key found for this signature in database
GPG Key ID: 397C04773ABE4045

View File

@ -117,11 +117,11 @@
"); ");
if(!$_POST['action'] or $_POST['paction']) { if(!$_POST['action'] or $_POST['paction']) {
print " print "
$fonttag<a href=index.php>$boardname</a> - <a href=forum.php?id=$forumid>".$forum[title]."</a> $fonttag<a href=index.php>$boardname</a> - <a href=forum.php?id=$forumid>".$forum['title']."</a>
<form action=newthread.php name=replier method=post autocomplete=\"off\"> <form action=newthread.php name=replier method=post autocomplete=\"off\">
$tblstart $tblstart
"; ";
if($log and $forums[$id][minpowerthread]>$power) { if($log and $forums[$id]['minpowerthread']>$power) {
print "$tccell1>Sorry, but you are not allowed to post"; print "$tccell1>Sorry, but you are not allowed to post";
if($banned) print ", because you are banned from this board.<br>".redirect("forum.php?id=$id",'return to the forum',0); if($banned) print ", because you are banned from this board.<br>".redirect("forum.php?id=$id",'return to the forum',0);
else print ' in this restricted forum.<br>'.redirect('index.php','return to the board',0); else print ' in this restricted forum.<br>'.redirect('index.php','return to the board',0);
@ -158,7 +158,7 @@
</table> </table>
</table> </table>
</form> </form>
$fonttag<a href=index.php>$boardname</a> - <a href=forum.php?id=$forumid>".$forum[title]."</a> $fonttag<a href=index.php>$boardname</a> - <a href=forum.php?id=$forumid>".$forum['title']."</a>
".replytoolbar(4); ".replytoolbar(4);
} }
if($_POST['action']=='postthread' and !$_POST['paction']) { if($_POST['action']=='postthread' and !$_POST['paction']) {