game/mail.php

173 lines
6.1 KiB
PHP
Raw Normal View History

2022-06-06 21:30:34 +00:00
<?
function GetRealIp(){
if (!empty($_SERVER['HTTP_CLIENT_IP']))
return $_SERVER['HTTP_CLIENT_IP'];
else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
return $_SERVER['HTTP_X_FORWARDED_FOR'];
return $_SERVER['REMOTE_ADDR'];
}
define('IP',GetRealIp());
include('_incl_data/__config.php');
define('GAME',true);
include('_incl_data/class/__db_connect.php');
include('_incl_data/class/__users.php');
if( isset($_GET['list']) && $_GET['list'] == 2015 ) {
$mail = array();
$yes = array();
$sp = mysql_query('SELECT * FROM `aaa_send_count`');
while( $pl = mysql_fetch_array($sp) ) {
if(!isset($yes[$pl['mail']])) {
$yes[$pl['mail']] = true;
$mail[] = $pl['mail'];
}
}
$mail[] = 'support@new-combats.com';
$sp = mysql_query('SELECT * FROM `users` WHERE `real` > 0');
while( $pl = mysql_fetch_array($sp) ) {
if(!isset($yes[$pl['mail']])) {
$yes[$pl['mail']] = true;
$mail[] = $pl['mail'];
}
}
$mail[] = 'support@new-combats.com';
$sp = mysql_query('SELECT * FROM `users_kill`');
while( $pl = mysql_fetch_array($sp) ) {
if(!isset($yes[$pl['mail']])) {
$yes[$pl['mail']] = true;
$mail[] = $pl['mail'];
}
}
$sp = mysql_query('SELECT * FROM `beta_testers`');
while( $pl = mysql_fetch_array($sp) ) {
if(!isset($yes[$pl['mail']])) {
$yes[$pl['mail']] = true;
$mail[] = $pl['mail'];
}
}
$sp = mysql_query('SELECT * FROM `users_rbk`');
while( $pl = mysql_fetch_array($sp) ) {
if(!isset($yes[$pl['email']])) {
$yes[$pl['email']] = true;
$mail[] = $pl['email'];
}
}
$e = explode(',','mails');
$i = 0;
while( $i < count($e) ) {
if(!isset($yes[$e[$i]])) {
$yes[$yes[$e[$i]]] = true;
$mail[] = $e[$i];
}
$i++;
}
$i = 0;
while( $i < count($mail) ) {
echo $mail[$i] . '<br>';
$i++;
}
}
$keymd5 = '$<24><><EFBFBD><EFBFBD>$<24><><EFBFBD><EFBFBD>$';
if(isset($_GET['count'])) {
if( md5($keymd5.'+'.$_GET['count']) == $_GET['sd4'] ) {
$mail = mysql_fetch_array(mysql_query('SELECT * FROM `aaa_send_count` WHERE `mail` = "'.mysql_real_escape_string($_GET['count']).'" LIMIT 1'));
if(isset($mail['id'])) {
mysql_query('UPDATE `aaa_send_count` SET `time` = "'.time().'",`ip` = "'.mysql_real_escape_string(IP).'" WHERE `id` = "'.$mail['id'].'" LIMIT 1');
}else{
mysql_query('INSERT INTO `aaa_send_count` (`mail`,`time`,`ip`) VALUES (
"'.mysql_real_escape_string($_GET['count']).'","'.time().'","'.mysql_real_escape_string(IP).'"
)');
}
echo '[SD4]';
}else{
echo '[ERROR_SD4_KEY]';
}
die('[IMG]');
}elseif(isset($_GET['uncancel'])) {
$mail = mysql_fetch_array(mysql_query('SELECT * FROM `aaa_send_count` WHERE `mail` = "'.mysql_real_escape_string($_GET['uncancel']).'" LIMIT 1'));
if(isset($mail['id'])) {
mysql_query('UPDATE `aaa_send_count` SET `cancel` = "0",`time` = "'.time().'",`ip` = "'.mysql_real_escape_string(IP).'" WHERE `id` = "'.$mail['id'].'" LIMIT 1');
echo '<27><>.<2E><><EFBFBD><EFBFBD><EFBFBD> <b>'.htmlspecialchars($_GET['uncancel']).'</b> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!';
}else{
echo '<27><>.<2E><><EFBFBD><EFBFBD><EFBFBD> <b>'.htmlspecialchars($_GET['uncancel']).'</b> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD>.';
}
die();
}elseif(isset($_GET['cancel'])) {
if( md5($keymd5.'+'.$_GET['cancel']) == $_GET['sd4'] ) {
$mail = mysql_fetch_array(mysql_query('SELECT * FROM `aaa_send_count` WHERE `mail` = "'.mysql_real_escape_string($_GET['cancel']).'" LIMIT 1'));
if(isset($mail['id'])) {
if($mail['cancel'] > 0) {
echo '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <b>'.date('d.m.Y H:i:s',$mail['cancel']).'</b>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>? <a href="https://new-combats.com/mail.php?uncancel='.$mail['mail'].'"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD></a></b>';
}else{
mysql_query('UPDATE `aaa_send_count` SET `cancel` = "'.time().'",`time` = "'.time().'",`ip` = "'.mysql_real_escape_string(IP).'" WHERE `id` = "'.$mail['id'].'" LIMIT 1');
echo '<27><>.<2E><><EFBFBD><EFBFBD><EFBFBD> <b>'.htmlspecialchars($_GET['cancel']).'</b> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!';
}
}else{
echo '<27><>.<2E><><EFBFBD><EFBFBD><EFBFBD> <b>'.htmlspecialchars($_GET['cancel']).'</b> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.';
}
}else{
echo '<27><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>.<2E>. SD4 <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><>.<2E><><EFBFBD><EFBFBD><EFBFBD> <b>'.htmlspecialchars($_GET['cancel']).'.</b>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> support@new-combats.com';
}
die();
}
if(isset($_GET['send6102'])) {
// specify your email below and that's all ;)
$message = '<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!';
// ***************************************
function sendmail($mail,$login) {
global $message, $keymd5;
//
$md5mail = md5($keymd5.'+'.$mail);
$message = str_replace('{mail}',$mail,$message);
$message = str_replace('{login}',$login,$message);
$message = str_replace('{md5mail}',$md5mail,$message);
//
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=windows-1251\r\n";
$headers .= "From: support@new-combats.com\r\n";
//
$to = $mail;
//
$subject = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>';
$message = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> e-mail <20><><EFBFBD> <b>'.$mail['name'].'</b>.<br><br><3E> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
//
if (mail($to, $subject, $message, $headers) == true) {
//return true;
echo '[Yes]';
}else{
//return false;
echo '[No]';
}
}
$mail = mysql_fetch_array(mysql_query('SELECT * FROM `users_rbk` WHERE `email` != "" AND `send` != 3 AND `email` NOT LIKE "%@1%" LIMIT 1'));
$x = mysql_fetch_array(mysql_query('SELECT COUNT(*) FROM `users_rbk` WHERE `email` != "" AND `send` != 3 AND `email` NOT LIKE "%@1%" LIMIT 1'));
$x = 0+$x[0];
if(isset($mail['email'])) {
//$mail['email'] = 'difree@gmail.com';
sendmail($mail['email'],$mail['login']);
mysql_query('UPDATE `users_rbk` SET `send` = 3 WHERE `email` = "'.$mail['email'].'"');
echo '['.$mail['email'].']<hr><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> e-mail <20><><EFBFBD> <b>'.$mail['name'].'</b>.<br><br><3E> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><hr>';
echo '[+]<script>setTimeout("top.location = top.location",1000);</script>';
}else{
echo '[-]';
echo '['.$mail['email'].']';
/*echo '[-]<script>setTimeout("top.location = top.location",100);</script>';*/
}
die('<br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.$x);
if( $k > 0 ) {
echo '<script>setTimeout(\'location.href="mail.php?send=1&i='.$j.'";\',1500);</script>';
}
echo '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.$k.' / 100 <20><><EFBFBD><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.(count($mails)-$k).'.<br><a href="mail.php?send=1&i='.$j.'"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 50 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!</a>';
}
?>