mirror of
https://github.com/Xkeeper0/jul.git
synced 2025-08-01 12:41:59 -07:00
More error cleanup
This commit is contained in:
@@ -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];
|
||||
|
Reference in New Issue
Block a user