- <?
- $url="http://www.fileflyer.com/view/1F38RIEIWJKOCp";
- $file=@file($url);
- $count=count($file);
- for($i='0';$i<$count;$i++)
- {
- if (strstr($file[$i],"lockedbtn")){
- $main=$file[$i]; $flag=1;break;
- }
- }
- if ($flag==1){
- $reffer = "http://www.fileflyer.com";
- $agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4)Gecko/20030624 Netscape/7.1 (ax)";
- $posturl="http://www.fileflyer.com/view/1F38RIEIWJKOCp";
- $postcontent = array();
- $postcontent['Password']='******';
- $postcontent['SMSButton']='Go';
- $ch = curl_init();
- curl_setopt($ch,CURLOPT_URL,$posturl);
- curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,2);
- curl_setopt($ch,CURLOPT_POST,1);
- curl_setopt($ch,CURLOPT_POSTFIELDS,$postcontent);
- curl_setopt($ch,CURLOPT_USERAGENT, $agent);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($ch, CURLOPT_REFERER, $reffer);
- $result=curl_exec($ch);
- curl_close($ch);
- echo $result;
- }
- ?>