= $sbmanage_class)) { sql_query("DELETE FROM shoutbox WHERE id=".mysql_real_escape_string($_GET['del'])); } } } $where=$_GET["type"]; $refresh = ($CURUSER['sbrefresh'] ? $CURUSER['sbrefresh'] : 120) ?> " type="text/css"> onload="" onload="hbquota()" > parent.document.forms['shbox'].shbox_text.value='';"; } } $limit = ($CURUSER['sbnum'] ? $CURUSER['sbnum'] : 70); if ($where == "helpbox") { $sql = "SELECT * FROM shoutbox WHERE type='hb' ORDER BY date DESC LIMIT ".$limit; } elseif ($CURUSER['hidehb'] == 'yes' || $showhelpbox_main != 'yes'){ $sql = "SELECT * FROM shoutbox WHERE type='sb' ORDER BY date DESC LIMIT ".$limit; } elseif ($CURUSER){ $sql = "SELECT * FROM shoutbox ORDER BY date DESC LIMIT ".$limit; } else { die("

".$lang_shoutbox['std_access_denied']."

"."

".$lang_shoutbox['std_access_denied_note']."

"); } $res = sql_query($sql) or sqlerr(__FILE__, __LINE__); if (mysql_num_rows($res) == 0) print("\n"); else { print("\n"); while ($arr = mysql_fetch_assoc($res)) { if (get_user_class() >= $sbmanage_class) { $del="[".$lang_shoutbox['text_del']."]"; } if ($arr["userid"]) { $username = get_username($arr["userid"],false,true,true,true,false,false,"",true); if ($_GET["type"] != 'helpbox' && $arr["type"] == 'hb') $username .= $lang_shoutbox['text_to_guest']; } else $username = $lang_shoutbox['text_guest']; if ($CURUSER['timetype'] != 'timealive') $time = strftime("%m.%d %H:%M",$arr["date"]); else $time = get_elapsed_time($arr["date"]).$lang_shoutbox['text_ago']; print("\n"); } print("
[".$time."] ". $del ." ". $username." " . format_comment($arr["text"],true,false,true,true,600,true,false)."
"); } ?>