http://teleseil.pl/sygna.png
Kod:
<?php $post_data['username'] = '*****';//user name here $post_data['password'] = '*****';//password here foreach ( $post_data as $key => $value) { $post_items[] = $key . '=' . $value; } $curl_connection = curl_init('https://secure.xfire.com/login/index.php'); curl_setopt($curl_connection, CURLOPT_CONNECTTIMEOUT, 30); curl_setopt($curl_connection, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)"); curl_setopt($curl_connection, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl_connection, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl_connection, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl_connection, CURLOPT_POSTFIELDS, $post_string); $result = curl_exec($curl_connection); curl_close($curl_connection); $ch = curl_init('http://www.xfire.com/edit_settings/profile/'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_USERAGENT,"Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7"); $site2 = curl_exec($ch); preg_match_all("|<td class=\"est_edit_profile_games_rows_totalcol\">(.*)</td>|Usi", $site2, $godziny); $obrazek=imagecreatefromjpeg('obrazek.jpg'); $kolor=ImageColorAllocate($obrazek,255, 255, 255); //ImageTTFText($obrazek,11,0,10,20,$kolor,'CORBEL.ttf','Czas gry: '.$godziny[1][34].''); ImageString($obrazek, 6, 5, 10, "Czas gry: ".$godziny[1][34]."", $kolor); ImageJpeg($obrazek,NULL,100); ImageDestroy($obrazek); ?>