login}'"); ?> level >= -1) { if($_GET['p'] == "inbox") { print << ENDHTML; print " \n"; } else if($_GET['p'] == "saved") { print << ENDHTML; print " \n"; } else if($_GET['p'] == "outbox") { print << ENDHTML; print " \n"; } else if($_GET['p'] == "read" && is_numeric($_GET['id'])) { $dbres = mysql_query("SELECT *,DATE_FORMAT(`time`,'%d-%m-%Y %H:%i') AS `time` FROM `[messages]` WHERE `id`='{$_GET['id']}' AND (`to`='{$data->login}' OR `from`='{$data->login}')"); if($message = mysql_fetch_object($dbres)) { if($message->to == $data->login) mysql_query("UPDATE `[messages]` SET `read`=1 WHERE `id`='{$_GET['id']}'"); $message->message = preg_replace('/(http:\/\/\S+)/','$1',$message->message); $message->message = preg_replace('/\n/',"
\n",$message->message); $message->message = str_replace(":P", "",$message->message); $message->message = str_replace(":p", "",$message->message); $message->message = str_replace(":)","",$message->message); $message->message = str_replace(":D","",$message->message); $message->message = str_replace("*D","",$message->message); $message->message = str_replace(":^","",$message->message); $message->message = str_replace(":w","",$message->message); $message->message = str_replace("_o_","",$message->message); $message->message = str_replace(":+)","",$message->message); $message->message = str_replace(":(","",$message->message); $message->message = str_replace(":?","",$message->message); $message->message = str_replace(":|","",$message->message); $message->message = str_replace(":'(","",$message->message); $message->message = str_replace("8-7","",$message->message); $message->message = str_replace(":=","",$message->message); $message->message = str_replace(";)","",$message->message); $message->message = str_replace(":+","",$message->message); $message->message = str_replace("o)","",$message->message); $message->message = str_replace(":o","",$message->message); $message->message = str_replace(":s","",$message->message); $message->message = preg_replace('/:icon_sad/',"",$message->message); $message->message = preg_replace('/:smile/',"",$message->message); $message->message = preg_replace('/:razz/',"",$message->message); $message->message = preg_replace('/:bier/',"",$message->message); $message->message = preg_replace('/:mad/',"",$message->message); $message->message = preg_replace('/:twisted/',"",$message->message); $message->message = preg_replace('/:mrgreen/',"",$message->message); $message->message = preg_replace('/:exclaim/',"",$message->message); $message->message = preg_replace('/:question/',"",$message->message); $message->message = preg_replace('/:exclaim/',"",$message->message); $message->message = preg_replace('/:eek/',"",$message->message); $message->message = preg_replace('/:cool/',"",$message->message); $message->message = preg_replace('/:redface/',"",$message->message); $message->message = preg_replace('/:surprised/',"",$message->message); $message->message = preg_replace('/kut/', "**",$message->message); $message->message = preg_replace('/kloten/', "**",$message->message); $message->message = preg_replace('/pik/', "**",$message->message); $message->message = preg_replace('/penis/', "**",$message->message); $message->message = preg_replace('/vagina/', "**",$message->message); $message->message = preg_replace('/lul/', "**",$message->message); $message->message = preg_replace('/kanker/', "**",$message->message); $message->message = preg_replace('/cancer/', "**",$message->message); $message->message = preg_replace('/leier/', "**",$message->message); $message->message = preg_replace('/fuck/', "**",$message->message); $message->message = preg_replace('/neuk/', "**",$message->message); $message->message = preg_replace('/anaal/', "**",$message->message); $message->message = preg_replace('/gangsta-world/', "**",$message->message); $message->message = preg_replace('/bootleggers/', "**",$message->message); $message->message = preg_replace('/mobstar/', "**",$message->message); $message->message = preg_replace('/omerta/', "**",$message->message); $message->message = preg_replace('/bullet/', "**",$message->message); $message->message = preg_replace('/star/', "**",$message->message); $message->message = preg_replace('/streetgun/', "**",$message->message); $message->message = preg_replace('/belikeme/', "**",$message->message); $message->message = preg_replace('/fady/', "**",$message->message); $message->message = preg_replace('/war/', "**",$message->message); $message->message = preg_replace('/game/', "**",$message->message); $message->message = preg_replace('/crime/', "**",$message->message); $message->message = preg_replace('/jood/', "**",$message->message); $message->message = preg_replace('/kanker/', "**",$message->message); $message->message = preg_replace('/xoti/', "**",$message->message); $message->message = preg_replace('/xwar/', "**",$message->message); $message->message = preg_replace('/fire/', "**",$message->message); $message->message = preg_replace('/master/', "**",$message->message); $message->message = preg_replace('/terror/', "**",$message->message); $message->message = preg_replace('/kriminals/', "**",$message->message); $message->message = preg_replace('/inal/', "**",$message->message); $message->message = preg_replace('/bulletstar/', "**",$message->message); $message->message = preg_replace('/w w w . c r i m i n a l s g am e . c o m/', "**",$message->message); $message->message = preg_replace('/b u l l e t s t a r /', "**",$message->message); $message->message = preg_replace('/MAFFIA WAR/', "**",$message->message); $message->message = preg_replace('/MAFFIAWAR/', "**",$message->message); $message->message = preg_replace('/maffiawar.nl/', "**",$message->message); $message->message = preg_replace('/criminalsgame.nl/', "**",$message->message); $message->message = preg_replace('/criminals.tk/', "**",$message->message); $message->message = preg_replace('/owncrime/', "**",$message->message); $message->message = preg_replace('/yourcrime/', "**",$message->message); $message->message = preg_replace('/.nl/', "**",$message->message); $message->message = preg_replace('/.net/', "**",$message->message); $message->message = preg_replace('/.com/', "**",$message->message); $message->message = preg_replace('/.eu/', "**",$message->message); $message->message = preg_replace('/xtreme/', "**",$message->message); $message->message = preg_replace('/crime/', "**",$message->message); $message->message = preg_replace('/criminalsgame/', "**",$message->message); $message->message = preg_replace('/criminalsweb/', "**",$message->message); $message->message = preg_replace('/terrorcrime.com/', "**",$message->message); $message->message = preg_replace('/warcity/', "**",$message->message); $message->message = preg_replace('/wartown/', "**",$message->message); $message->message = preg_replace('/maffiaway/', "**",$message->message); $message->message = preg_replace('/w a r o f m o n e y/', "**",$message->message); $message->message = preg_replace('/WAROFMONEY/', "**",$message->message); $message->message = preg_replace('/warofmoney/', "**",$message->message); $message->message = preg_replace('/lycos/', "**",$message->message); $message->message = preg_replace('/LYCOS/', "**",$message->message); $message->message = preg_replace('/kneus/', "**",$message->message); $message->message = preg_replace('/crime/', "**",$message->message); $message->message = preg_replace('/streetgun/', "**",$message->message); $message->message = preg_replace('/crimespel/', "**",$message->message); $message->message = preg_replace('/.cc/', "**",$message->message); $message->message = preg_replace("/\[b\](.+?)\[\/b\]/is",'\1', $message->message); //vette text $message->message = preg_replace("/\[i\](.+?)\[\/i\]/is",'\1', $message->message); //schuine text $message->message = preg_replace("/\[u\](.+?)\[\/u\]/is",'\1', $message->message); //underlined $message->message = preg_replace("#\[s\](.*?)\[/s\]#si", "\\1", $message->message); // doorstreepte tekst $dbres = mysql_query("SELECT *,UNIX_TIMESTAMP(`online`) AS `time`,DATE_FORMAT(`online`,'%d-%m-%Y %H:%i') AS `online` FROM `[users]` WHERE `login`='{$message->from}' AND `activated`=1"); if($profiel = mysql_fetch_object($dbres)); print <<
Inbox
 - Inbox
 - Outbox
 - Opgeslagen Berichten
 - Blocklist
 - Nieuw Bericht
\n"; print " \n"; $dbres = mysql_query("SELECT *,DATE_FORMAT(`time`,'%d-%m-%Y %H:%i') AS `time` FROM `[messages]` WHERE `to`='{$data->login}' AND `read`=0 AND `inbox`=1 ORDER BY `time` DESC"); while($message = mysql_fetch_object($dbres)) { if(preg_match('/^\s*$/',$message->subject)) $message->subject = "(Geen)"; print " \n"; } $dbres = mysql_query("SELECT *,DATE_FORMAT(`time`,'%d-%m-%Y %H:%i') AS `time` FROM `[messages]` WHERE `to`='{$data->login}' AND `read`=1 AND `inbox`=1 ORDER BY `time` DESC"); while($message = mysql_fetch_object($dbres)) { if(preg_match('/^\s*$/',$message->subject)) $message->subject = "(Geen)"; print " \n"; } print "
Van: Onderwerp: Datum:
id}\"> from}\">{$message->from} id}\">{$message->subject} {$message->time}
id}\"> from}\">{$message->from} id}\">{$message->subject} {$message->time}
Opgeslagen Berichten
 - Inbox
 - Outbox
 - Opgeslagen Berichten
 - Blocklist
 - Nieuw Bericht
\n"; print " \n"; $dbres = mysql_query("SELECT *,DATE_FORMAT(`time`,'%d-%m-%Y %H:%i') AS `time` FROM `[messages]` WHERE `to`='{$data->login}' AND `inbox`=1 AND `saved`=1 ORDER BY `time` DESC"); while($message = mysql_fetch_object($dbres)) { if(preg_match('/^\s*$/',$message->subject)) $message->subject = "(Geen)"; print " \n"; } print "
Van: Onderwerp: Datum:
id}\"> from}\">{$message->from} id}\">{$message->subject} {$message->time}
Outbox
 - Inbox
 - Outbox
 - Opgeslagen Berichten
 - Blocklist
 - Nieuw Bericht
\n"; print " \n"; $dbres = mysql_query("SELECT *,DATE_FORMAT(`time`,'%d-%m-%Y %H:%i') AS `time` FROM `[messages]` WHERE `from`='{$data->login}' AND `outbox`=1 ORDER BY `time` DESC"); while($message = mysql_fetch_object($dbres)) { if(preg_match('/^\s*$/',$message->subject)) $message->subject = "(Geen)"; if($message->read == 1) print " \n"; else print " \n"; } print "
Naar: Onderwerp: Datum:
id}\"> to}\">{$message->to} id}\">{$message->subject} {$message->time}
id}\"> to}\">{$message->to} id}\">{$message->subject} {$message->time}
zomgwtf?
 - Inbox
 - Outbox
 - Opgeslagen Berichten
 - Blocklist
 - Nieuw Bericht
ENDHTML; if($message->from != $data->login) print " "; else print " "; print "\n"; } } else if($_GET['p'] == "del") { if(isset($_GET['id'])) $_POST['id'] = $_GET['id']; foreach($_POST['id'] as $msgid) { $dbres = mysql_query("SELECT `outbox`,`inbox`,`from`,`to` FROM `[messages]` WHERE `id`='$msgid' AND (`from`='{$data->login}' OR `to`='{$data->login}')"); if($message = mysql_fetch_object($dbres)) { if($message->from == $data->login) mysql_query("UPDATE `[messages]` SET `outbox`=0 WHERE `id`='$msgid'"); else mysql_query("UPDATE `[messages]` SET `inbox`=0 WHERE `id`='$msgid'"); } } print << ENDHTML; } else if($_GET['p'] == "block") { print << ENDHTML; if(isset($_POST['update_list'])) { $newlist = ""; if(isset($_POST['blocklist'])) { foreach($_POST['blocklist'] as $blocked) { if($info = mysql_fetch_object(mysql_query("SELECT `login` FROM `[users]` WHERE `login`='{$blocked}'"))) { $newlist = preg_replace("/,{$info->login},/i",'',$newlist); $newlist .= ",{$info->login},"; } } } mysql_query("UPDATE `[users]` SET `blocklist`='$newlist' WHERE `login`='{$data->login}'"); print " "; $blocklist = $newlist; } else { $dbres = mysql_query("SELECT `blocklist` FROM `[users]` WHERE `login`='{$data->login}'"); $blocklist = mysql_fetch_object($dbres); $blocklist = $blocklist->blocklist; } if(isset($_GET['add'])) { $dbres = mysql_query("SELECT `login` FROM `[users]` WHERE `login`='{$_GET['add']}'"); if($sender = mysql_fetch_object($dbres)) { $blocklist = preg_replace("/,{$sender->login},/i",'',$blocklist); $blocklist .= ",{$sender->login},"; mysql_query("UPDATE `[users]` SET `blocklist`='$blocklist' WHERE `login`='{$data->login}'"); print " \n"; } } print <<\n"; } else if($_GET['p'] == "new") { print << ENDHTML; if(isset($_POST['to'],$_POST['message'])) { if(strtolower($_POST['to']) != strtolower($data->login)) { $dbres = mysql_query("SELECT `login` FROM `[users]` WHERE `login`='{$_POST['to']}'"); $info = mysql_fetch_object($dbres); if($info == false) print " \n"; else if($info->Mobieltje == -1111111111111111) print " \n"; else { $_POST['subject'] = preg_replace('/login}','{$recp->login}','{$_POST['subject']}','{$_POST['message']}')"); echo ""; exit; } } } else print " \n"; } $_REQUEST['message'] = stripslashes($_REQUEST['message']); print <<
Van: {$message->from} Datum: {$message->time} Onderwerp: {$message->subject}
{$message->message}
from}\">
Block
from}&subject=". urlencode("Re: {$message->subject}") ."\">
Antwoord
id}\">
Delete
Inbox
 - Inbox
 - Outbox
 - Opgeslagen Berichten
 - Blocklist
 - Nieuw Bericht
Bericht(en) verwijderd
Blocklist
 - Inbox
 - Outbox
 - Opgeslagen Berichten
 - Blocklist
 - Nieuw Bericht
De block list is geupdate
{$sender->login} is geblokt
\n \n \n

Altijd opslaan wanneer je iemand hebt geblockt/unblockt
Nieuw Bericht
 - Inbox
 - Outbox
 - Opgeslagen Berichten
 - Blocklist
 - Nieuw Bericht
:) ;) :D *D :^ :w _o_ :+) :( :? :| 8-7 := o) :+ :o
'{$_POST['to']}' bestaat niet
{$info->login} heeft geen mobiel
Verzonden
Je kan geen bericht naar jezelf sturen
ENDHTML; } else { print << ENDHTML; } } else print " \n"; /* ------------------------- */ ?>
Naar:
Onderwerp:
Bericht:

ENDHTML; if($data->clanlevel > 0) print " Clan link\n"; print <<
Berichten
 - Inbox
 - Outbox
 - Opgeslagen Berichten
 - Blocklist
 - Nieuw Bericht
Je moet een mobiel hebben om berichten te kunnen versturen/ontvangen