- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
$data = curl_init('http://'.$site.'/index/sub/');
curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($data, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($data, CURLOPT_POST, 1);
curl_setopt($data, CURLOPT_POSTFIELDS, $post);
curl_setopt($data, CURLOPT_HTTPHEADER, $headers);
curl_setopt($data, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($data, CURLOPT_CONNECTTIMEOUT,$timeout);
curl_setopt($data, CURLOPT_TIMEOUT,$timeout);
//curl_setopt($data, CURLOPT_COOKIEFILE, $cookie);
$data2 = curl_exec($data);
curl_close($data);
$return = iconv('utf-8','cp1251',$data2);
if (preg_match('/Неправильный логин или пароль/Ui',$return)) return FALSE; else return TRUE;
guest 28.05.2010 09:05 # +1
guest 28.05.2010 09:11 # −2
Lure Of Chaos 28.05.2010 09:17 # 0
guest 28.05.2010 10:52 # +3
Lure Of Chaos 28.05.2010 11:02 # 0
cheef 28.05.2010 16:56 # 0
turdman 28.05.2010 17:30 # 0
eval 28.05.2010 14:12 # +2
Dreyk 28.05.2010 16:35 # +5
eval 28.05.2010 17:59 # +1
Johnny 28.05.2010 20:45 # 0
guest 29.05.2010 11:41 # −2
guest 29.05.2010 11:44 # −2
guest 29.05.2010 12:51 # −2