Results 1 to 1 of 1
Hybrid View
-
15th Apr 2011, 09:40 AM #1OPMember
[Help] Fix PHP function
This function based on old uploaded.to..need fix for the new version (uploaded.to updated their website recently)
PHP Code:function updebrid($lien)
{
$lien = trim($lien);
$ar = array('email' => $GLOBALS['upuser'], 'password' => $GLOBALS['uppass']);
$get = upboss('POST', 'uploaded.to', 80, '/login', $ar);
if(preg_match('#auth=[a-z0-9]+;#', $get, $cap))
{
if(preg_match('#(http://)?(www\.)?ul\.to(/[a-z0-9]+)#', $lien, $path))
{
$get2 = upboss('GET', 'uploaded.to', 80, '/file'.$path[3], null, $cap[0]);
if(preg_match('#Location:(.+)#', $get2, $fin))
{
return array(trim($fin[1]), $cap[0]);
}
elseif(strstr($get2, 'name="download_form"'))
{
$get3 = upboss('GET', 'uploaded.to', 80, '/file'.$path[3].'/?redirect', null, $cap[0]);
if(preg_match('#Location:(.+)#', $get3, $fin))
{
return array(trim($fin[1]), $cap[0]);
}
return 0;
}
return 0;
}
}
return 0;
}
m1rr0z Reviewed by m1rr0z on . [Help] Fix PHP function This function based on old uploaded.to..need fix for the new version (uploaded.to updated their website recently) function updebrid($lien) { $lien = trim($lien); $ar = array('email' => $GLOBALS, 'password' => $GLOBALS); $get = upboss('POST', 'uploaded.to', 80, '/login', $ar); if(preg_match('#auth=+;#', $get, $cap)) { if(preg_match('#(http://)?(www\.)?ul\.to(/+)#', $lien, $path)) Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
function backlink help
By Chris2k in forum Web Development AreaReplies: 13Last Post: 26th Apr 2012, 09:43 PM -
time ago function
By Chris2k in forum Web Development AreaReplies: 2Last Post: 21st Jan 2012, 05:58 AM -
[PHP] }else{ Function 3 parts
By viruz99 in forum Web Application/Script SupportReplies: 4Last Post: 17th Jan 2012, 01:33 AM -
Need faster function - help :(
By Porsche_maniak in forum Web Development AreaReplies: 7Last Post: 11th Dec 2010, 07:54 PM -
PHP Function (Link_Maker)
By litewarez in forum Webmaster ResourcesReplies: 0Last Post: 2nd Dec 2008, 01:28 AM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...