More error cleanup

This commit is contained in:
Xkeeper
2015-08-13 23:20:30 -07:00
parent 5d8d4e8b3a
commit b4e9133f5f
3 changed files with 7 additions and 6 deletions

View File

@@ -40,7 +40,7 @@
$post['text']=doreplace2($post['text'], $post['options']);
// if (strpos($post['text'], "http://hyperhacker.no-ip.org/b/smilies/lolface.png") || strpos($post['text'], "images/smilies/roflx.gif")) $post['text'] = "<img src=images/smilies/roflx.gif><br><br><small>(Excessive post content hidden)</small>";
if ($post['editdate']) {
if (filter_int($post['editdate'])) {
$post['edited'] = " (last edited by {$post['edited']} at ".date($dateformat,$post['editdate']+$tzoff).")";
}
@@ -80,12 +80,12 @@
}
if($loguser['viewsig']!=2){
if($headid=$post['headid']) {
if($headid=filter_int($post['headid'])) {
// just in case
if($postl[$headid] === NULL) $postl[$headid]=$sql->resultq("SELECT text FROM postlayouts WHERE id=$headid");
$post['headtext']=$postl[$headid];
}
if($signid=$post['signid']) {
if($signid=filter_int($post['signid'])) {
// just in case
if($postl[$signid] === NULL) $postl[$signid]=$sql->resultq("SELECT text FROM postlayouts WHERE id=$signid");
$post['signtext']=$postl[$signid];