mirror of
https://github.com/Xkeeper0/jul.git
synced 2025-05-19 08:40:21 -07:00
More error cleanup
This commit is contained in:
parent
5d8d4e8b3a
commit
b4e9133f5f
@ -1070,6 +1070,7 @@ function moodlist($sel = 0, $return = false) {
|
|||||||
if ($return) return $a;
|
if ($return) return $a;
|
||||||
|
|
||||||
$c[$sel] = " checked";
|
$c[$sel] = " checked";
|
||||||
|
$ret = "";
|
||||||
|
|
||||||
if ($log && $loguser['moodurl'])
|
if ($log && $loguser['moodurl'])
|
||||||
$ret = '
|
$ret = '
|
||||||
@ -1093,8 +1094,8 @@ function moodlist($sel = 0, $return = false) {
|
|||||||
|
|
||||||
foreach($a as $num => $name) {
|
foreach($a as $num => $name) {
|
||||||
$jsclick = (($log && $loguser['moodurl']) ? "onclick='avatarpreview($loguserid,$num)'" : "");
|
$jsclick = (($log && $loguser['moodurl']) ? "onclick='avatarpreview($loguserid,$num)'" : "");
|
||||||
$ret .= "<input type='radio' name='moodid' value='$num'". $c[$num] ." id='mood$num' tabindex='". (9000 + $num) ."' style=\"height: 12px;\" $jsclick>
|
$ret .= "<input type='radio' name='moodid' value='$num'". filter_string($c[$num]) ." id='mood$num' tabindex='". (9000 + $num) ."' style=\"height: 12px;\" $jsclick>
|
||||||
<label for='mood$num' ". $c[$sel] ." style=\"font-size: 12px;\"> $num: $name</label><br>\r\n";
|
<label for='mood$num' ". filter_string($c[$sel]) ." style=\"font-size: 12px;\"> $num: $name</label><br>\r\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$sel || !$log || !$loguser['moodurl'])
|
if (!$sel || !$log || !$loguser['moodurl'])
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
$post['text']=doreplace2($post['text'], $post['options']);
|
$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 (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).")";
|
$post['edited'] = " (last edited by {$post['edited']} at ".date($dateformat,$post['editdate']+$tzoff).")";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -80,12 +80,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($loguser['viewsig']!=2){
|
if($loguser['viewsig']!=2){
|
||||||
if($headid=$post['headid']) {
|
if($headid=filter_int($post['headid'])) {
|
||||||
// just in case
|
// just in case
|
||||||
if($postl[$headid] === NULL) $postl[$headid]=$sql->resultq("SELECT text FROM postlayouts WHERE id=$headid");
|
if($postl[$headid] === NULL) $postl[$headid]=$sql->resultq("SELECT text FROM postlayouts WHERE id=$headid");
|
||||||
$post['headtext']=$postl[$headid];
|
$post['headtext']=$postl[$headid];
|
||||||
}
|
}
|
||||||
if($signid=$post['signid']) {
|
if($signid=filter_int($post['signid'])) {
|
||||||
// just in case
|
// just in case
|
||||||
if($postl[$signid] === NULL) $postl[$signid]=$sql->resultq("SELECT text FROM postlayouts WHERE id=$signid");
|
if($postl[$signid] === NULL) $postl[$signid]=$sql->resultq("SELECT text FROM postlayouts WHERE id=$signid");
|
||||||
$post['signtext']=$postl[$signid];
|
$post['signtext']=$postl[$signid];
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$reinf=syndrome($post['act']);
|
$reinf=syndrome(filter_int($post['act']));
|
||||||
|
|
||||||
if ($post['lastposttime']) {
|
if ($post['lastposttime']) {
|
||||||
$sincelastpost = 'Since last post: '.timeunits(ctime()-$post['lastposttime']);
|
$sincelastpost = 'Since last post: '.timeunits(ctime()-$post['lastposttime']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user