http://www.phphq.net :- Copyright (c) 2004 All Rights Reserved :- :- This script is freeware. Permission is granted to copy and distribute this :- program so long as it is not modified in any way and no fees are exchanged. :- All copyright text must remain visible and unmodified. //================================================================================ * Description //================================================================================ :- phShoutBox is a simple, yet full featured shoutbox. It has bb code, automatic url and email phrasing, ip banning, your own :- word filters, display direction, clickable smilies, and most things other shoutbox's have, minus all the junk. //================================================================================ */ if (isset($HTTP_GET_VARS["email"])) $usremail=strip_tags(trim($HTTP_GET_VARS["email"])); if (isset($HTTP_GET_VARS["pass"])) $usrpass=strip_tags(trim($HTTP_GET_VARS["pass"])); require("config.php"); include("../func.php"); $conn=db_connect(); function phrase($sbshout) { global $phsb; $sbshout=str_replace(":)", ">",$sbshout); $sbshout=str_replace(";)", ">",$sbshout); $sbshout=str_replace(":(", ">",$sbshout); $sbshout=str_replace(":o", ">",$sbshout); $sbshout=str_replace(":D", ">",$sbshout); $sbshout=str_replace(":P", ">",$sbshout); $sbshout=str_replace("B)", ">",$sbshout); $sbshout=str_replace(":s1:", ">",$sbshout); $sbshout=str_replace(":s7:", ">",$sbshout); $sbshout=str_replace(":s6:", ">",$sbshout); $sbshout=str_replace(":s14:", ">",$sbshout); $sbshout=str_replace(":s5:", ">",$sbshout); $sbshout=str_replace(":s17:", ">",$sbshout); $sbshout=str_replace(":s18:", ">",$sbshout); $sbshout=str_replace(":s21:", ">",$sbshout); $sbshout=str_replace(":s3:", ">",$sbshout); $sbshout=str_replace(":s23:", ">",$sbshout); $sbshout=str_replace(":s28:", ">",$sbshout); $sbshout=str_replace(":s29:", ">",$sbshout); $sbshout=str_replace(":s31:", ">",$sbshout); $sbshout=str_replace(":s16:", ">",$sbshout); $sbshout=str_replace(":s26:", ">",$sbshout); $sbshout=str_replace(":s27:", ">",$sbshout); $sbshout=str_replace(":s30:", ">",$sbshout); $sbshout=str_replace(":s9:", ">",$sbshout); $sbshout=str_replace(":s20:", ">",$sbshout); $sbshout=str_replace(":s4:", ">",$sbshout); $sbshout=str_replace(":s2:", ">",$sbshout); $sbshout=str_replace(":s8:", ">",$sbshout); $sbshout=str_replace(":s10:", ">",$sbshout); $sbshout=str_replace(":s11:", ">",$sbshout); $sbshout=str_replace(":s12:", ">",$sbshout); $sbshout=str_replace(":s13:", ">",$sbshout); $sbshout=str_replace(":s15:", ">",$sbshout); $sbshout=str_replace(":s22:", ">",$sbshout); $sbshout=str_replace(":s24:", ">",$sbshout); $sbshout=str_replace(":s25:", ">",$sbshout); $sbshout=str_replace(":s32:", ">",$sbshout); $sbshout=str_replace(":s19:", ">",$sbshout); $sbshout=str_replace(":s33:", ">",$sbshout); $sbshout=str_replace(":s34:", ">",$sbshout); $sbshout=str_replace(":s35:", ">",$sbshout); $sbshout=str_replace(":s36:", ">",$sbshout); $sbshout=str_replace(":s37:", ">",$sbshout); $sbshout=str_replace(":s38:", ">",$sbshout); $sbshout=str_replace(":s39:", ">",$sbshout); $sbshout=str_replace(":s40:", ">",$sbshout); $sbshout=str_replace(":s41:", ">",$sbshout); $sbshout=str_replace(":s42:", ">",$sbshout); $sbshout=str_replace(":s43:", ">",$sbshout); $sbshout=str_replace(":s44:", ">",$sbshout); $sbshout=str_replace(":s45:", ">",$sbshout); $sbshout=str_replace(":s46:", ">",$sbshout); $sbshout=str_replace(":s47:", ">",$sbshout); $sbshout=str_replace(":s48:", ">",$sbshout); $sbshout=str_replace(":s49:", ">",$sbshout); $sbshout=str_replace(":s50:", ">",$sbshout); $sbshout=str_replace(":s51:", ">",$sbshout); $sbshout=str_replace(":s52:", ">",$sbshout); $sbshout=str_replace(":s53:", ">",$sbshout); $sbshout=str_replace(":s54:", ">",$sbshout); $sbshout=str_replace(":s55:", ">",$sbshout); $sbshout=str_replace(":s56:", ">",$sbshout); $sbshout=str_replace(":s57:", ">",$sbshout); $sbshout=str_replace(":s58:", ">",$sbshout); $sbshout=str_replace(":s59:", ">",$sbshout); $sbshout=str_replace(":s60:", ">",$sbshout); $sbshout=str_replace(":s61:", ">",$sbshout); $sbshout=str_replace(":s62:", ">",$sbshout); $sbshout=str_replace(":s63:", ">",$sbshout); $sbshout=str_replace(":s64:", ">",$sbshout); $sbshout=str_replace(":s65:", ">",$sbshout); $sbshout=str_replace(":s66:", ">",$sbshout); $sbshout=str_replace(":s67:", ">",$sbshout); $sbshout=str_replace(":s68:", ">",$sbshout); $sbshout=str_replace(":s69:", ">",$sbshout); $sbshout=str_replace(":s70:", ">",$sbshout); $sbshout=str_replace(":s71:", ">",$sbshout); $sbshout=str_replace(":s72:", ">",$sbshout); $sbshout=str_replace(":s73:", ">",$sbshout); $sbshout=str_replace(":s74:", ">",$sbshout); $sbshout=str_replace(":s75:", ">",$sbshout); $sbshout=str_replace(":s76:", ">",$sbshout); $sbshout=str_replace(":s77:", ">",$sbshout); $sbshout=str_replace(":s78:", ">",$sbshout); $sbshout=str_replace(":s79:", ">",$sbshout); $sbshout=str_replace(":s80:", ">",$sbshout); $sbshout=str_replace(":s81:", ">",$sbshout); $sbshout=str_replace(":s82:", ">",$sbshout); $sbshout=str_replace(":s83:", ">",$sbshout); $sbshout=str_replace(":s84:", ">",$sbshout); $sbshout=str_replace(":s85:", ">",$sbshout); $sbshout=str_replace(":s86:", ">",$sbshout); $sbshout=str_replace(":s87:", ">",$sbshout); $sbshout=str_replace(":s88:", ">",$sbshout); $sbshout=str_replace(":s89:", ">",$sbshout); $sbshout=str_replace(":s90:", ">",$sbshout); $sbshout=str_replace(":s91:", ">",$sbshout); $sbshout=str_replace(":s92:", ">",$sbshout); $sbshout=str_replace(":s93:", ">",$sbshout); $sbshout=str_replace(":s94:", ">",$sbshout); $sbshout=str_replace(":s95:", ">",$sbshout); $sbshout=str_replace(":s96:", ">",$sbshout); $sbshout=str_replace(":s97:", ">",$sbshout); $sbshout=str_replace(":s98:", ">",$sbshout); $sbshout=str_replace(":s99:", ">",$sbshout); $sbshout=str_replace(":s100:", ">",$sbshout); $sbshout=str_replace(":s101:", ">",$sbshout); $sbshout=str_replace(":s102:", ">",$sbshout); $sbshout=str_replace(":s103:", ">",$sbshout); $sbshout=str_replace(":s104:", ">",$sbshout); $sbshout=str_replace(":s105:", ">",$sbshout); $sbshout=str_replace(":s106:", ">",$sbshout); $sbshout=str_replace(":s107:", ">",$sbshout); $sbshout=str_replace(":s108:", ">",$sbshout); $sbshout=str_replace(":s109:", ">",$sbshout); $sbshout=str_replace(":s110:", ">",$sbshout); $sbshout=str_replace(":s111:", ">",$sbshout); /* $sbshout=str_replace(":)", "",$sbshout); $sbshout=str_replace(":(", "",$sbshout); $sbshout=str_replace(";)", "",$sbshout); $sbshout=str_replace(":|", "",$sbshout); $sbshout=str_replace(":@", "",$sbshout); $sbshout=str_replace(":D", "",$sbshout); $sbshout=str_replace(":p", "",$sbshout); $sbshout=str_replace(":eek:", "",$sbshout); $sbshout=str_replace(":rolleyes:", "",$sbshout); $sbshout=str_replace(":confused:", "",$sbshout); $sbshout=str_replace(":laugh:", "",$sbshout); $sbshout=str_replace(":cool:", "",$sbshout); */ $sbshout=str_replace("[b]", "", "$sbshout"); $sbshout=str_replace("[/b]", "", "$sbshout"); $sbshout=str_replace("[i]", "", "$sbshout"); $sbshout=str_replace("[/i]", "", "$sbshout"); $sbshout=str_replace("[u]", "", "$sbshout"); $sbshout=str_replace("[/u]", "", "$sbshout"); $sbshout=str_replace("[move]", "", "$sbshout"); $sbshout=str_replace("[/move]", "", "$sbshout"); $sbshout=str_replace("javascript:", "javascript :", "$sbshout"); $sbshout=str_replace("vbscript:", "vbscript :", "$sbshout"); $sbshout=str_replace("about:", "about :", "$sbshout"); // $sbshout=eregi_replace("(^|[>[:space:]\n])([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])([<[:space:]\n]|$)","\\1\\2://\\3\\4\\5", $sbshout); // $sbshout=eregi_replace( "(([a-z0-9_]|\-|\.)+@([^[:space:]]*)([[:alnum:]-]))", "\\1", $sbshout); $sbshout=eregi_replace("(^|[>[:space:]\n])([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])([<[:space:]\n]|$)","\\1 link\\5", $sbshout); $sbshout=eregi_replace( "(([a-z0-9_]|\-|\.)+@([^[:space:]]*)([[:alnum:]-]))", "e-mail", $sbshout); return($sbshout); } function filter($sbshout) { global $phsb; $filters=mysql_query("SELECT * FROM $phsb[pre]_filter"); while($filter=mysqli_fetch_array($filters)) { htmlspecialchars(stripslashes(extract($filter))); $sbshout=eregi_replace($find,$replacewith,$sbshout); } return($sbshout); } If ($_POST['doshout']) { extract($_POST, EXTR_SKIP); $sbemail=strip_tags(trim($sbemail)); $sbpass=strip_tags(trim($sbpass)); $sbshout=strip_tags(trim($sbshout)); If (empty($sbshout) || $sbshout=="Your Message") { $error="1"; $error_text .= "Type A Message!
"; } /* If(empty($sbname) || $sbname=="Your Name / Nick") { $error="1"; $error_text .= "Type Your name!
"; } If ($sburl!=="Website URL" && $sburl) { If (empty($sburl) || !preg_match('#^http+://#si', $sburl)) { $error="1"; $error_text .= "Invalid Website"; } } If ($sburl=="Website URL") { $sbiurl = ""; } Else { $sbiurl = "$sburl"; } */ $sql="select * from players where ban!=1 and email='".$sbemail."' and md5(pass)='".$sbpass."'"; $result = mysqli_query($conn, $sql); if (mysqli_num_rows($result)) {//logged $logged_user=mysqli_fetch_array($result); If ($error=="1") { $show_errors = "$error_text"; } Else { mysql_query("INSERT INTO $phsb[pre]_shout VALUES('NULL', '".$logged_user["name"]."', '".$logged_user["id"]."', '".$sbshout."', '".$now."', '".$_SERVER[REMOTE_ADDR]."')"); } $usremail=$logged_user["email"]; $usrpass=$logged_user["pass"]; /* setcookie("ssbname",$sbname,time()+108000); If($sburl){setcookie("ssburl",$sburl,time()+108000);} */ header("Location: $_SERVER[PHP_SELF]?cmd=$phsb[cmd]&email=$usremail&pass=".md5($usrpass)); exit(); } } Echo("\n"); Echo("NFSU2:WR ShoutBox\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); ########## H E L P ########## If ($phsb[cmd]=="extras") { Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); /* Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); */ Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); Echo(""); Echo(""); Echo(" border=0>"); Echo(""); /* Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); */ Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); /* Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); */ Echo("
ShoutBox Smiles:
:)
:)
;)
:(
:o
:D
:P
B)
:s1:
:s7:
:s6:
:s14:
:s5:
:s17:
:s18:
:s21:
:s3:
:s23:
:s28:
:s29:
:s31:
:s16:
:s26:
:s27:
:s30:
:s9:
:s20:
:s4:
:s2:
:s8:
:s10:
:s11:
:s12:
:s13:
:s15:
:s22:
:s24:
:s25:
:s32:
:s19:
:s33:
:s34:
:s35:
:s36:
:s37:
:s38:
:s39:
:s40:
:s41:
:s42:
:s43:
:s44:
:s45:
:s46:
:s47:
:s48:
:s49:
:s50:
:s51:
:s52:
:s53:
:s54:
:s55:
:s56:
:s57:
:s58:
:s59:
:s60:
:s61:
:s62:
:s63:
:s64:
:s65:
:s66:
:s67:
:s68:
:s69:
:s70:
:s71:
:s72:
:s73:
:s74:
:s75:
:s76:
:s77:
:s78:
:s79:
:s80:
:s81:
:s82:
:s83:
:s84:
:s85:
:s86:
:s87:
:s88:
:s89:
:s90:
:s91:
:s92:
:s93:
:s94:
:s95:
:s96:
:s97:
:s98:
:s99:
:s100:
:s101:
:s102:
:s103:
:s104:
:s105:
:s106:
:s107:
:s108:
:s109:
:s110:
:s111:
:(
;)
:|
:@
:D
:p
:eek:
:rolleyes:
:confused:
:laugh:
:cool:
ShoutBox Codes:
[b]Bold[/b]
[i]Italics[/i]
[u]Underline[/u]
[move]Move[/move]
Close Window
Powered By: phShoutBox $phsb[ver]
\n"); ########## V I E W S H O U T S ########## } Else { Echo("\n"); $total_shouts=mysqli_num_rows(mysql_query("SELECT * FROM $phsb[pre]_shout")); $total=$total_shouts-$phsb[max]; If ($phsb[direction]) { $all="DESC"; If ($total_shouts < $phsb[max]) { $extra="DESC"; } Else { $extra="DESC LIMIT 0,$phsb[max]"; } } Else { $all="ASC"; If($total_shouts < $phsb[max]) { $extra="ASC"; } Else { $extra="ASC LIMIT $total,$phsb[max]"; } } If($phsb[cmd]=="all") { $shouts=mysql_query("SELECT * FROM $phsb[pre]_shout ORDER BY sbid $all"); } Else { //$shouts=mysql_query("SELECT * FROM $phsb[pre]_shout ORDER BY sbid $extra"); $period = time()-60*60*24*3; $shouts=mysql_query("SELECT * FROM $phsb[pre]_shout where sbdate>".$period." ORDER BY sbid"); if (mysqli_num_rows($shouts)<$phsb[max]) $shouts=mysql_query("SELECT * FROM $phsb[pre]_shout ORDER BY sbid $extra"); } while($shout=mysqli_fetch_array($shouts)) { extract($shout); $sbdate=date("d M H:i", $sbdate); $sbbg=($i++ & 1) ? "$phsb[th]" : "$phsb[tb]"; $sbshout=htmlspecialchars($sbshout); $findurl=explode(" ",$sbshout); for($words=0; $words$sbname"; /* If (eregi("^http://", $sburl)) { $sbname="$sbname"; } */ Echo("\n"); Echo("\n"); Echo("\n"); } Echo("$show_errors"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("\n"); Echo("
$sbname, $sbdate:
   $sbshout
\n"); $sql="select * from players where ban!=1 and email='".$usremail."' and md5(pass)='".$usrpass."'"; $result = mysqli_query($conn, $sql); if (mysqli_num_rows($result)) {//logged $logged_user=mysqli_fetch_array($result); Echo(""); Echo(""); echo "
"; // Echo("
\n"); // Echo("
\n"); Echo("

\n"); If ($phsb[cmd]=="all") { Echo("Smiles | Refresh | Show Recent\n"); } Else { Echo("Smiles | Refresh | Show All\n"); } } else {//not logged echo "
Login in your Personal Menu to Post."; } Echo("
"); } Echo("\n"); Echo("\n"); ?>