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;

Anyone?
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