8) { exit; } /* ------------------------- */ ?> = 8) { print " \n"; if(isset($_POST['message'])) { $dbres = mysql_query("SELECT * FROM `[temp]` WHERE `id`='{$_POST['id']}' AND `code`='{$_POST['code']}' AND `area`='message'"); if(($check = mysql_fetch_object($dbres)) && $check->IP == $clientIP) { $dbres = mysql_query("SELECT `login` FROM `[users]` WHERE `clan`='{$data['clan']}'"); while($member = mysql_fetch_object($dbres)) { $_POST['subject'] = preg_replace('/login}','{$_POST['subject']}','{$_POST['message']} [center]---- clan bericht door: $data['login'] ----[/center]')"); mysql_query("DELETE FROM `[temp]` WHERE `id`='{$_POST['id']}' AND `code`='{$_POST['code']}' AND `area`='message'"); } } print " \n"; } $code = rand(100000,999999); mysql_query("INSERT INTO `[temp]`(login,IP,code,area,time) values('{$data['login']}','$clientIP','$code','message',NOW())"); $id = mysql_insert_id(); print <<
Clan Message
Bericht verzonden
ENDHTML; } /* ------------------------- */ ?>
Van: * $data['clan'] *
Onderwerp:
Bericht: