login}'"); if(! check_login()) { header("Location: login.php"); exit; } include("_include-gevangenis.php"); $data2 = mysql_query("SELECT * FROM `[users]` WHERE `login`='{$_SESSION['login']}'"); $data = mysql_fetch_object($data2); if($data->sms >= 1){ print <<
Je mag niet meer smsen.
ENDHTML; exit; } /* ------------------------- */ ?> \n"; if($_GET['p'] == "msg" && $data->clanlevel >= 8) { if(isset($_POST['bekijk'])) { $bericht = $_POST['message']; ; $bericht = nl2br($bericht); $bericht = str_replace("[b]", "",$bericht); $bericht = str_replace("[/b]", "",$bericht); $bericht = str_replace("[i]", "",$bericht); $bericht = str_replace("[/i]", "",$bericht); $bericht = str_replace("[u]", "",$bericht); $bericht = eregi_replace("\\[color=([^\\[]*)\\]([^\\[]*)\\[/color\\]","\\2",$bericht); $bericht = preg_replace('/(http:\/\/\S+)/','$1',$bericht); $bericht = preg_replace('/\n/',"
\n",$bericht); $bericht = str_replace(":ban", "", $bericht); $bericht = str_replace(":(", "", $bericht); $bericht = str_replace(";)", "", $bericht); $bericht = str_replace(":frown", "", $bericht); $bericht = str_replace(":lol:", "", $bericht); $bericht = str_replace("8)", "", $bericht); $bericht = str_replace(":!:", "", $bericht); $bericht = str_replace(":?:", "", $bericht); $bericht = str_replace(":o", "", $bericht); $bericht = str_replace(":arrow:", "", $bericht); $bericht = str_replace("8|", "", $bericht); $bericht = str_replace(":mad:", "", $bericht); $bericht = str_replace(":twisted:", "", $bericht); $bericht = str_replace(":@", "", $bericht); $bericht = str_replace(":|", "", $bericht); $bericht = str_replace(":tup:", "", $bericht); $bericht = str_replace(":tdn:", "", $bericht); $bericht = str_replace("(n)", "", $bericht); $bericht = str_replace("(y)", "", $bericht); $bericht = str_replace(":evil:", "", $bericht); $bericht = str_replace(":censored:", "", $bericht); $bericht = str_replace(":redface:", "", $bericht); $bericht = str_replace(":$", "", $bericht); $bericht = str_replace(":rolleyes:", "", $bericht); $bericht = str_replace(":'(", "\"Cry\"", $bericht); $bericht = str_replace(":bloos", "", $bericht); $bericht = str_replace(":coool", "", $bericht); $bericht = str_replace(":confused", "", $bericht); $bericht = str_replace(":flipa", "", $bericht); $bericht = str_replace(":frown", "", $bericht); $bericht = str_replace(":1frown:", "", $bericht); $bericht = str_replace(":dead", "", $bericht); $bericht = str_replace(":disagree", "", $bericht); $bericht = str_replace(":duh", "", $bericht); $bericht = str_replace(":hmmz", "", $bericht); $bericht = str_replace(":slotje", "", $bericht); $bericht = str_replace(":nooo", "", $bericht); $bericht = str_replace(":puh2", "", $bericht); $bericht = str_replace(":shiny", "", $bericht); $bericht = str_replace(":smile", "", $bericht); $bericht = str_replace(":thumbsup", "", $bericht); $bericht = str_replace(":twisted:", "", $bericht); $bericht = str_replace(":wink", "", $bericht); $bericht = str_replace(":yes", "", $bericht); $bericht = str_replace(":tup:", "", $bericht); $bericht = str_replace(":tdn:", "", $bericht); $bericht = str_replace("(n)", "", $bericht); $bericht = str_replace("(y)", "", $bericht); $bericht= str_replace(":evil:", "", $bericht); $bericht = str_replace(":censored:", "", $bericht); $bericht = str_replace("war-age.org", "**", $bericht); $bericht = str_replace("http://bullet-star.net", "**", $bericht); $bericht = str_replace("kanker", "**", $bericht); $bericht = str_replace("je moeder", "**", $bericht); $bericht = str_replace("tyfus", "**", $bericht); $bericht = str_replace("eikel", "**", $bericht); $bericht = str_replace("homo", "**", $bericht); $bericht = str_replace("klootzak", "**", $bericht); $bericht = str_replace(":redface:", "", $bericht); $bericht = str_replace(":$", "", $bericht); $bericht = str_replace(":rolleyes:", "", $bericht); $bericht = str_replace(":sadley", "", $bericht); $bericht = str_replace(":janew:", "", $bericht); print <<
Clan Message
Van: {$data->clan} ({$data->login})
Onderwerp: {$_POST['subject']}
ENDHTML; } if(isset($_POST['submit'])) { $_POST['subject'] = preg_replace('/\n"; exit; } if( $_POST['leaders'] ){ $dbres = mysql_query("SELECT `login` FROM `[users]` WHERE `clanlevel`=8 AND `clan`='{$data->clan}'"); while($member = mysql_fetch_object($dbres)) { mysql_query("INSERT INTO `[messages]`(`time`,`from`,`to`,`subject`,`message`) VALUES(NOW(),'$data->clan ($data->login)','".$member->login."','{$_POST['subject']}','{$_POST['message']}')"); } } if( $_POST['generalen'] ){ $dbres = mysql_query("SELECT `login` FROM `[users]` WHERE `clanlevel`=7 AND `clan`='{$data->clan}'"); while($member = mysql_fetch_object($dbres)) { mysql_query("INSERT INTO `[messages]`(`time`,`from`,`to`,`subject`,`message`) VALUES(NOW(),'$data->clan ($data->login)','".$member->login."','{$_POST['subject']}','{$_POST['message']}')"); } } if( $_POST['managers'] ){ $dbres = mysql_query("SELECT `login` FROM `[users]` WHERE `clanlevel`=6 AND `clan`='{$data->clan}'"); while($member = mysql_fetch_object($dbres)) { mysql_query("INSERT INTO `[messages]`(`time`,`from`,`to`,`subject`,`message`) VALUES(NOW(),'$data->clan ($data->login)','".$member->login."','{$_POST['subject']}','{$_POST['message']}')"); } } if( $_POST['recruiters'] ){ $dbres = mysql_query("SELECT `login` FROM `[users]` WHERE `clanlevel`=2 AND `clan`='{$data->clan}'"); while($member = mysql_fetch_object($dbres)) { mysql_query("INSERT INTO `[messages]`(`time`,`from`,`to`,`subject`,`message`) VALUES(NOW(),'$data->clan ($data->login)','".$member->login."','{$_POST['subject']}','{$_POST['message']}')"); } } if( $_POST['members'] ){ $dbres = mysql_query("SELECT `login` FROM `[users]` WHERE `clanlevel`=8 AND `clan`='{$data->clan}'"); while($member = mysql_fetch_object($dbres)) { mysql_query("INSERT INTO `[messages]`(`time`,`from`,`to`,`subject`,`message`) VALUES(NOW(),'$data->clan ($data->login)','".$member->login."','{$_POST['subject']}','{$_POST['message']}')"); } } $dbres = mysql_query("SELECT `login` FROM `[users]` WHERE `clanlevel`=9 AND `clan`='{$data->clan}'"); while($member = mysql_fetch_object($dbres)) { mysql_query("INSERT INTO `[messages]`(`time`,`from`,`to`,`subject`,`message`) VALUES(NOW(),'$data->clan ($data->login)','".$member->login."','{$_POST['subject']}','{$_POST['message']}')"); } print " \n"; } } print <<
$bericht
Je moet wel een bericht in vullen
Bericht verstuurd
Voor wie is het bericht?
Leaders:
Generalen:
Managers:
Recruiters:
Members:
ENDHTML; $data = mysql_fetch_object($dbres); /* ------------------------- */ ?>
Onderwerp:
Bericht: