echo "<b><center>Login not found or empty, using non member upload.</center></b>\n";
     if ($fsize > 209715200) {
         html_error('File is too big for anon upload');
     }
     // 200 Mib
 }
 // Retrive upload ID
 echo "<script type='text/javascript'>document.getElementById('login').style.display='none';</script>\n<div id='info' width='100%' align='center'>Retrive upload ID</div>\n";
 if (!$login) {
     $page = geturl($domain, 80, '/', $referer, $cookie, 0, 0, $_GET['proxy'], $pauth);
     is_page($page);
 }
 if (!preg_match('@<embed[\\s\\t\\r\\n][^<>]*[\\s\\t\\r\\n]flashvars[\\s\\t]*=[\\s\\t]*"([^\\"\\r\\n<>]+)"@i', $page, $fvars)) {
     html_error('Error: Cannot find upload data.', 0);
 }
 $fvars = FormToArr($fvars[1]);
 if (empty($fvars['urlSite'])) {
     html_error('Error: Upload URL not found.');
 }
 $post = array();
 $post['Filename'] = $lname;
 if ($login) {
     if (empty($fvars['userId'])) {
         html_error('Error: UserID not found.');
     }
     $post['user_id'] = $fvars['userId'];
 }
 $post['id'] = empty($fvars['fileId']) ? 'null' : $fvars['fileId'];
 $post['stype'] = empty($fvars['stype']) ? 'null' : $fvars['stype'];
 $post['apptype'] = $fvars['apptype'];
 $post['Upload'] = 'Submit Query';
Example #2
0
     $login = false;
 }
 // Retrive upload ID
 echo "<script type='text/javascript'>document.getElementById('login').style.display='none';</script>\n<div id='info' width='100%' align='center'>Preparing upload</div>\n";
 if (!$GetUpUrlFromApi) {
     $page = geturl('uploadhero.co', 80, '/', '', 0, 0, 0, $_GET['proxy'], $pauth);
     is_page($page);
 }
 if (!preg_match('@https?://(?:[a-zA-Z\\d\\-]+\\.)*uploadhero\\.com?/upload/upload\\.php[^\\r\\n\\s\\t<>\\"\']*@i', $page, $up)) {
     html_error('Error: Cannot find upload URL.', 0);
 }
 if ($login) {
     if (!preg_match('@<params>[\\r\\n\\s\\t]*([^<>\\r\\n\\s\\t]+)[\\r\\n\\s\\t]*</params>@i', $body, $pars)) {
         html_error('Upload params not found.');
     }
     $post = FormToArr($pars[1] . '&');
 } else {
     $post = array();
 }
 $up_url = $up[0];
 // Uploading
 echo "<script type='text/javascript'>document.getElementById('info').style.display='none';</script>\n";
 $url = parse_url($up_url);
 $upfiles = upfile($url['host'], defport($url), $url['path'] . (!empty($url['query']) ? '?' . $url['query'] : ''), '', 0, $post, $lfile, $lname, 'Filedata', '', $_GET['proxy'], $pauth);
 // Upload Finished
 echo "<script type='text/javascript'>document.getElementById('progressblock').style.display='none';</script>\n";
 is_page($upfiles);
 is_present($upfiles, "\r\n\r\nupload_error", 'Your upload has failed.');
 $body = trim(substr($upfiles, strpos($upfiles, "\r\n\r\n") + 4));
 if (!$login) {
     $finds = array('%20', '%27', '%C3%A9', '%C3%A8', '%E2%82%AC', '%25', '%26');