Results 1 to 10 of 24
Threaded View
-
9th Nov 2011, 05:53 PM #12Respected Developer
feeling lazy SplitIce?
here you go, just wrote now for you guys
PHP Code:<?php
/**
* written by mRAza
* 11-09-2011
*
*
* Usage: $link = upFilepost($user,$password,$cookie,$file);
**/
function upFilepost($user,$password,$cookie,$file){
$agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4)Gecko/20030624 Netscape/7.1 (ax)";
$post = 'email='.$user.'&password='.$password;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://filepost.com/general/login_form/");
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$post);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_REFERER, "http://filepost.com/");
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
$result = curl_exec($ch);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://filepost.com/files/upload/");
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_REFERER, "http://filepost.com/");
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
$result = curl_exec($ch);
preg_match("#upload_url: '(.*)'#",$result,$upURL);
$upURL = $upURL[1];
preg_match("#SID: '(.*)'#",$result,$SID);
$SID = $SID[1];
$post = array();
$post['file']="@$file";
$post['SID']=$SID;
$post['Filename']= basename($file);
$post['Upload']="Submit Query";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $upURL);
curl_setopt($ch, CURLOPT_USERAGENT, 'Shockwave Flash');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$post);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
$result = curl_exec($ch);
preg_match("#answer\":\"(.*)\"#",$result,$answer);
$answer = $answer[1];
if ($answer ){
$url = 'http://filepost.com/files/done/'.$answer.'/?JsHttpRequest';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_REFERER, "http://filepost.com/");
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
$result = curl_exec($ch);
curl_close($ch);
preg_match("#id=\"down_link\" class=\"inp_text\" value=\"(.*)\"#",$result,$link);
if($link) {
return $link[1];
}
}
return false;
}
?>Bots Development | Web Development | Wordpress Customization | PSD Conversion
Life has many twists and turns in it, you have to take what you are given and use it for the best.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Help] PHP Curl Uploader to RapidShare Problem
By heppinnz in forum Web Development AreaReplies: 2Last Post: 29th Nov 2011, 06:28 AM -
PHP CURL LulzImg Uploader
By heppinnz in forum Web Development AreaReplies: 2Last Post: 2nd Sep 2011, 03:43 PM -
Catalyst Uploader v1.0. ONE CLICK FULL FEATURED UPLOADER
By becoolufull in forum File Host DiscussionReplies: 1Last Post: 27th Oct 2010, 02:16 PM -
[Hiring] Paid Uploader - MagikalMusic.com - Uploader for Music Albums
By Young Star-G in forum Completed TransactionsReplies: 10Last Post: 18th Oct 2010, 07:43 PM -
fileserver error uploader file & image uploader
By logitec100 in forum Webmaster ResourcesReplies: 0Last Post: 16th Sep 2010, 10:05 PM
themaCreator - create posts from...
Version 3.53 released. Open older version (or...