$url = parse_url($up[1]);
    $page = geturl($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), "http://filesflash.com/", $cookie, 0, 0, $_GET["proxy"], $pauth);
    if (!preg_match('#action="([^"]+)"#', $page, $act)) {
        html_error('Cannot get url upload.', 0);
    }
    if (!preg_match('#name="refcode"[\\r|\\n|\\s]+value="([^\\"]+)"#', $page, $usu)) {
        html_error('Cannot get reference user.', 0);
    }
    $code = id();
    //$ref = explode('userid=', $cookie);
    $post['refcode'] = $usu[1];
    $post['tag'] = '';
    $post['tags'] = '';
    $post['linkcode'] = '';
    $url = parse_url($act[1] . $code);
    $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 'http://filesflash.com/', $cookie, $post, $lfile, $lname, 'uploadfile');
    ?>
				<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
    is_page($upfiles);
    preg_match('#"_top">([^><]+)<#', $upfiles, $dll);
    if (!empty($dll[1])) {
        $download_link = $dll[1];
    } else {
        html_error('Didn\'t find downloadlink!');
    }
    preg_match('#del/([^/"]+)"#', $upfiles, $del);
    if (!empty($del[1])) {
        $delete_link = 'http://filesflash.com/del/' . $del[1];
    } else {
        html_error('Didn\'t find deletelink!');
Example #2
0
         // $data['group_id'] = 1234567890; // ID of the community. (Positive Number)
         break;
 }
 $upsrv = vk_doApiReq($data);
 if (!empty($upsrv['error'])) {
     if ($upsrv['error'] == '204') {
         html_error('Your account is banned for uploading.');
     }
     html_error("{$data['method']} Error: [{$upsrv['error']['error_code']}] {$upsrv['error']['error_msg']}");
 }
 $post = array();
 $up_url = $upsrv['response']['upload_url'];
 // 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'] . ($url['query'] ? '?' . $url['query'] : ''), '', '', $post, $lfile, $lname, $type == 'video' ? 'video_file' : 'file', '', $_GET['proxy'], $pauth, 0, $url['scheme']);
 // Upload Finished
 echo "<script type='text/javascript'>document.getElementById('progressblock').style.display='none';</script>\n";
 is_page($upfiles);
 $upres = Get_Reply($upfiles);
 if (!empty($upres['error'])) {
     if (is_array($upres['error'])) {
         html_error("Upload {$type} Error: [{$upres['error']['error_code']}] " . $upres['error']['error_msg']);
     } else {
         if ($type == 'doc' && $upres['error'] == 'unknown error' && in_array($fExt, array('zip', 'zipx', 'rar', 'rar5', 'tar', 'gz', '7z', 'cab'))) {
             html_error("Upload {$type} Error: Possible Forbidden File Type Inside Compressed File.");
         } else {
             html_error("Upload {$type} Error: " . $upres['error']);
         }
     }
 }
<script>document.getElementById('login').style.display='none';</script>
<div id=info width=100% align=center>Retrieve upload ID</div>
<?php 
    if (!preg_match('%javascript:beginUpload\\(\'(.{32})\'\\);return%', $page, $sid)) {
        html_error('Upload ID not found');
    }
    if (!preg_match('%<input type="hidden" name="control" value="(.+)">%', $page, $control)) {
        html_error('Upload control-ID not found');
    }
    $url = parse_url('http://sharex.xpg.com.br/cgi-bin/upload.cgi?sid=' . $sid[1] . '&maxsize=314572800');
    ?>
<script>document.getElementById('info').style.display='none';</script>
<?php 
    $post = array();
    $post['control'] = $control[1];
    $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 0, $cookies, $post, $lfile, $lname, "file");
    ?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
    is_page($upfiles);
    if (!($dpage = cut_str($upfiles, "<script>window.top.location = '", "';</script>"))) {
        html_error('Couldn\'t find the upload links');
    }
    $Url = parse_url($dpage);
    $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 0, $cookies, 0, 0, $_GET["proxy"], $pauth);
    is_page($page);
    preg_match('%(http://sharex\\.xpg\\.com\\.br/files/\\d+/.+\\..+)"%U', $page, $glink);
    preg_match('%(http://sharex\\.xpg\\.com\\.br/files/\\d+/\\d+[^\\.])"%U', $page, $dlink);
    $download_link = $glink[1];
    $delete_link = $dlink[1];
}
Example #4
0
<?php 
$url = "http://www.sharehoster.de";
$Url = parse_url($url);
$page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 0, 0, 0, 0, $_GET["proxy"], $pauth);
is_page($page);
$uid = $i = 0;
while ($i < 32) {
    $i++;
}
$uid += floor(rand() * 16) . "16";
$upfrom = "upload01.sharehoster.de";
$post["Upload"] = "Submit Query";
?>
<script>document.getElementById('info').style.display='none';</script>
<?php 
$url = parse_url('http://' . $upfrom . '/upload.php?redirect=yes&X-Progress-ID=' . $uid);
$upfiles = upfile($url["host"], defport($url), $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 'http://' . $upfrom . '/', 0, $post, $lfile, $lname, "userfile");
?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
is_page($upfiles);
preg_match_all('/Set-Cookie: (.*);/U', $page, $temp);
$cookie = $temp[1];
$cookies = implode(';', $cookie);
$locat = trim(cut_str($upfiles, 'Location:', "\n"));
$Url = parse_url($locat);
$page = geturl($Url["host"], defport($Url), $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 'http://www.sharehoster.de/', $cookies, 0, 0, $_GET["proxy"], $pauth);
is_page($page);
$download_link = 'http://www.sharehoster.de/dl/' . cut_str($page, "filelist[0]['id'] = '", "'");
$delete_link = 'http://www.sharehoster.de/del/' . cut_str($page, "filelist[0]['id'] = '", "'") . "/" . cut_str($page, "filelist[0]['ident'] = '", "'");
// Made by Baking 16/10/2009 07:48
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $Url);
    curl_setopt($ch, CURLOPT_HEADER, 1);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $lfile);
    curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0');
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*\/*;q=0.8', 'Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3', 'Accept-Encoding: gzip, deflate', 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'Connection: keep-alive', 'Content-Type: application/x-www-form-urlencoded'));
    curl_setopt($ch, CURLOPT_REFERER, 'http://www.hellshare.com/');
    curl_setopt($ch, CURLOPT_COOKIE, $cookies);
    $data = curl_exec($ch);
    curl_close($ch);
    */
    $url = parse_url($action_path);
    $fpost["this_file_num"] = "0";
    $fpost["embedded_upload_results"] = "1";
    $fpost["upload_file_folder_0"] = "0";
    $fpost["updealer_id_0"] = "";
    $fpost["rau"] = "www.hellshare.com";
    $fpost["description_0"] = "";
    $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), "http://www.hellshare.com/", 0, $fpost, $lfile, $lname, "upfile_0");
    preg_match('#http:\\/\\/www\\.hellshare\\.com\\/uu_finished_pro\\.php\\?rnd_id=([A-Za-z0-9]+)\\&tmp_sid=([0-9]+)\\/([a-z0-9]+)#', $upfiles, $infolink);
    $Url = parse_url('http://www.hellshare.com/hs_upload_process_pro.php?tmp_sid=' . $infolink[2] . '/' . $infolink[3] . '');
    $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), "http://www.hellshare.com/", $cookies, 0, 0, $_GET["proxy"], $pauth);
    preg_match('#target="_top">(http:\\/\\/download\\.hellshare\\.com\\/.+)<\\/a>#', $page, $dllink);
    ?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
    $download_link = $dllink[1];
}
        return $ret;
    }
    $UID = strtoupper(base_convert(time() . rndStr(3, true), 10, 16)) . '_' . rndStr(40);
    $post = array();
    $post['MAX_FILE_SIZE'] = cut_str($page, 'name="MAX_FILE_SIZE" value="', '"');
    $post['owner'] = cut_str($page, 'name="owner" type="hidden" value="', '"');
    $post['pin'] = cut_str($page, 'name="pin" type="hidden" value="', '"');
    $post['base'] = cut_str($page, 'name="base" type="hidden" value="', '"');
    $post['host'] = cut_str($page, 'name="host" type="hidden" value="', '"');
    $up_url = "http://{$up[1]}/marker={$UID}";
    textarea($up_url, 0, 0, 1);
    ?>
<script type="text/javascript">document.getElementById('info').style.display='none';</script>
<?php 
    $url = parse_url($up_url);
    $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 'http://letitbit.net/', $cookie, $post, $lfile, $lname, "file0");
    ?>
<script type="text/javascript">document.getElementById('progressblock').style.display='none';</script>
<?php 
    is_page($upfiles);
    $page = geturl("letitbit.net", 80, "/acupl_proxy.php?srv={$up[1]}&uid={$UID}", 'http://letitbit.net/', $cookie, 0, 0, $_GET["proxy"], $pauth);
    is_page($page);
    if (!preg_match('@"post_result":\\s*"(http://[^\\"]+)"@i', $page, $rd)) {
        html_error("Error: Redirect not found.", 0);
    }
    $url = parse_url($rd[1]);
    $page = geturl($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 'http://letitbit.net/', $cookie, 0, 0, $_GET["proxy"], $pauth);
    is_page($page);
    if (preg_match('@https?://[^/|\\"|\'|<|\\r|\\n]+/download/[^\\"|\'|<|\\r|\\n]+@i', $page, $lnk)) {
        $download_link = $lnk[0];
        if (preg_match('@https?://[^/|\\"|\'|<|\\r|\\n]+/download/delete[^\\"|\'|<|\\r|\\n]+@i', $page, $dlnk)) {
    if (!($xfss = cut_str($page, 'name="sess_id" value="', '"'))) {
        html_error("Error: Cannot find session value.", 0);
    }
    $post['upload_type'] = "file";
    $post['sess_id'] = $xfss;
    $post['srv_tmp_url'] = urlencode(cut_str($page, 'name="srv_tmp_url" value="', '"'));
    $post['link_rcpt'] = "";
    $post['link_pass'] = "";
    $post['tos'] = 1;
    $post['submit_btn'] = " Upload! ";
    $up_url = $up[1] . "?upload_id={$uid}&js_on=1&utype=" . cut_str($page, "var utype='", "'") . "&upload_type=file";
    ?>
<script type="text/javascript">document.getElementById('info').style.display='none';</script>
<?php 
    $url = parse_url($up_url);
    $upfiles = upfile($url["host"], 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 'http://hostingbulk.com/', $cookie, $post, $lfile, $lname, "file_0");
    ?>
<script type="text/javascript">document.getElementById('progressblock').style.display='none';</script>
<?php 
    is_page($upfiles);
    $post = array();
    $post['op'] = "upload_result";
    $post['fn'] = cut_str($upfiles, "'fn'>", "<");
    $post['st'] = "OK";
    $page = geturl("hostingbulk.com", 80, "/", $up_url, $cookie, $post, 0, $_GET["proxy"], $pauth);
    is_page($page);
    if (preg_match('@(https?://(?:www\\.)?hostingbulk\\.com/\\w+)(\\.html)?\\?killcode=\\w+@i', $page, $lnk)) {
        $download_link = $lnk[1];
        $delete_link = $lnk[0];
    } else {
        html_error("Download link not found.", 0);
        $post[''] = '';
        $Url = parse_url("http://bayfiles.com/ajax_login");
        $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), "http://bayfiles.com/\r\nX-Requested-With: XMLHttpRequest", 0, $post, 0, $_GET["proxy"], $pauth);
        is_page($page);
        $cookie = GetCookies($page);
        is_notpresent($page, '{"reload":true}', "Login Failed");
    } else {
        echo "<b><center>Login not found or empty, using non member upload.</center></b>\n";
    }
    ?>
                <script type='text/javascript'>document.getElementById('login').style.display='none';</script>
                <div id='info' width='100%' align='center'>Retrive upload ID</div>
                <?php 
    $Url = parse_url("http://bayfiles.com/ajax_upload?_=" . microtime(true));
    $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), "http://bayfiles.com/\r\nX-Requested-With: XMLHttpRequest", $cookie, 0, 0, $_GET["proxy"], $pauth);
    is_page($page);
    $upload_url = str_replace("\\", "", cut_str($page, '"upload_url":"', '"'));
    $url = parse_url($upload_url);
    ?>
                <script type='text/javascript'>document.getElementById('info').style.display='none';</script>
                <?php 
    $upagent = "Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20100101 Firefox/6.0";
    $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), "http://bayfiles.com/", $cookie, 0, $lfile, $lname, "file", "", $_GET["proxy"], $pauth, $upagent);
    ?>
                <script type='text/javascript'>document.getElementById('progressblock').style.display='none';</script>
                <?php 
    is_page($upfiles);
    $download_link = str_replace("\\", "", cut_str($upfiles, '"downloadUrl":"', '"'));
    $delete_link = str_replace("\\", "", cut_str($upfiles, '"deleteUrl":"', '"'));
}
//by vdhdevil
    }
    if (!preg_match('#name="sess_id"[\\r|\\n|\\s]+value="([^"]+)"#', $page, $sid)) {
        html_error('Cannot get session id.', 0);
    }
    if (!preg_match('#name="srv_tmp_url"[\\r|\\n|\\s]+value="([^"]+)"#', $page, $tmp)) {
        html_error('Cannot get tmp url.', 0);
    }
    $uid = uid();
    $url = parse_url($up[1] . $uid . '&js_on=1&utype=' . $utype[1] . '&upload_type=file');
    $post["upload_type"] = "file";
    $post["sess_id"] = $sid[1];
    $post["srv_tmp_url"] = $tmp[1];
    $post["link_rcpt"] = '';
    $post["link_pass"] = '';
    $post['tos'] = '1';
    $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), "http://grupload.com/?op=registration", $cookie, $post, $lfile, $lname, "file_0");
    ?>

<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
    is_page($upfiles);
    preg_match_all("#>([^><]+)<#", $upfiles, $dl);
    if ($dl[1][1] != 'OK') {
        html_error('Erro in upload');
    }
    $post['fn'] = $dl[1][0];
    $post['st'] = 'OK';
    $post['op'] = 'upload_result';
    $page = geturl("grupload.com", 80, "/", 0, $cookie, $post, 0, $_GET["proxy"]);
    if (!empty($dl[1][0])) {
        $download_link = 'http://grupload.com/' . $dl[1][0] . '/' . $lname;
Example #10
0
 //其中..与/开头都是不允许的
 if (!ereg("^[0-9a-z_/]+\$", $dir) || ereg("^/", $dir)) {
     $dir = "other";
 }
 $updir = '';
 $path = "{$updir}/{$dir}";
 $array[name] = is_array($fileData) ? $_FILES[fileData][name] : $fileData_name;
 require_once ROOT_PATH . "inc/class.chinese.php";
 $cnvert = new Chinese("UTF8", "GB2312", $array[name], ROOT_PATH . "./inc/gbkcode/");
 $array[name] = $cnvert->ConvertIT();
 $array[path] = $webdb[updir] . "/" . $path;
 $array[size] = is_array($fileData) ? $_FILES[fileData][size] : $fileData_size;
 //$array[updateTable]=1;	//统计用户上传的文件占用空间大小
 $lfjuid = $userdb[uid];
 //处理上传的文件名标志
 $filename = upfile(is_array($fileData) ? $_FILES[fileData][tmp_name] : $fileData, $array);
 $newfile = "{$webdb['www_url']}/{$webdb['updir']}/{$dir}/{$filename}";
 //插入数据,关闭层
 echo '<html>';
 echo '<head>';
 echo '<title>Insert Image</title>';
 echo '<meta http-equiv="content-type" content="text/html; charset=gb2312">';
 echo '</head>';
 echo '<body>';
 if (!$_GET[Ctype]) {
     echo "<SCRIPT LANGUAGE=\"JavaScript\">parent.KindInsertImage('{$newfile}','{$imgWidth}','{$imgHeight}','{$imgBorder}','{$imgTitle}','{$imgAlign}','{$imgHspace}','{$imgVspace}')</SCRIPT>";
 } else {
     echo "<SCRIPT LANGUAGE=\"JavaScript\">parent.KindInsertImageP8FLV('{$newfile}','{$imgWidth}','{$imgHeight}','{$_GET['Ctype']}')</SCRIPT>";
 }
 echo '</body>';
 echo '</html>';
Example #11
0
 $post['sess_id'] = cut_str($page, 'name="sess_id" value="', '"');
 $post['srv_tmp_url'] = cut_str($page, 'name="srv_tmp_url" value="', '"');
 $post['link_rcpt'] = '';
 $post['link_pass'] = '';
 $post['file_0_descr'] = 'Uploaded by Rapidleech.';
 $post['file_0_public'] = '1';
 $post['tos'] = '1';
 $post['submit_btn'] = ' Upload! ';
 $up_url = $up[1] . "?upload_id={$uid}&js_on=1";
 if (!$IsXfsFree) {
     $up_url .= '&utype=' . cut_str($page, "var utype='", "'") . '&upload_type=file';
 }
 // 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'] : ''), $referer, $cookie, $post, $lfile, $lname, 'file_0', '', $_GET['proxy'], $pauth);
 // Upload Finished
 echo "<script type='text/javascript'>document.getElementById('progressblock').style.display='none';</script>\n";
 is_page($upfiles);
 if (!$IsXfsFree) {
     $post = array();
     $post['op'] = 'upload_result';
     if (!preg_match('@name=[\'\\"]fn[\'\\"](?:(?:[\\s\\t]*>)|(?:[\\s\\t]*value=[\'\\"]))([^\'\\"<>]+)@i', $upfiles, $fn)) {
         html_error('Error: fn value not found.');
     }
     $post['fn'] = trim($fn[1]);
     $post['st'] = 'OK';
 } else {
     $page = cut_str($upfiles, '<Form name=\'F1\'', '</Form>');
     if (!preg_match_all('@<textarea [^<>]*name=\'([^\']+)\'[^<>]*>([^>]*)</textarea>@i', $page, $textareas)) {
         html_error('Error: upload_result data not found.');
        html_error('Cannot get form action.', 0);
    }
    if (!preg_match('#name="sess_id"[\\r|\\n|\\s]+value="([^"]+)"#', $page, $sid)) {
        html_error('Cannot get form session id.', 0);
    }
    if (!preg_match('#name="srv_tmp_url"[\\r|\\n|\\s]+value="([^"]+)"#', $page, $srv)) {
        html_error('Cannot get form srv url.', 0);
    }
    $url = parse_url($act[1]);
    $post["upload_type"] = 'file';
    $post['sess_id'] = $sid[1];
    $post['srv_tmp_url'] = $srv[1];
    $post['link_rcpt'] = '';
    $post['link_pass'] = '';
    $post['tos'] = '1';
    $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), "http://www.ok2upload.com/", $cookie, $post, $lfile, $lname, "file_1");
    ?>
					<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
    is_page($upfiles);
    preg_match("#[\r|\n|\\s]+Location:[\r|\n|\\s]+([^[:space:]]+)#", $upfiles, $dlink);
    $link = split('[&=]', $dlink[1]);
    if (!empty($link[2])) {
        $download_link = 'http://www.ok2upload.com/' . $link[2];
    } else {
        html_error("Didn't find download link!");
    }
    $url = parse_url($dlink[1]);
    $page = geturl($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), "http://www.ok2upload.com/", $cookie, 0, 0, $_GET["proxy"], $pauth);
    preg_match('#\\?killcode=([0-9a-zA-Z]+)#', $page, $dele);
    if (!empty($dele[1])) {
Example #13
0
 } else {
     html_error("Login Failed: Email or Password are empty. Please check login data.", 0);
 }
 // 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";
 $page = geturl("www.2shared.com", 80, "/", $referer, $cookie, 0, 0, $_GET["proxy"], $pauth);
 is_page($page);
 if (!preg_match('@action="(https?://[^/|\\"|\\<|\\>]+/[^\\"|\\<|\\>]+)"@i', $page, $up)) {
     html_error('Error: Cannot find upload server.', 0);
 }
 $post = array('mainDC' => cut_str($page, 'name="mainDC" value="', '"'));
 $up_url = $up[1];
 // Uploading
 echo "<script type='text/javascript'>document.getElementById('info').style.display='none';</script>\n";
 $url = parse_url($up_url);
 $upfiles = upfile($url["host"], 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), $referer, $cookie, $post, $lfile, $lname, 'fff', '', $_GET["proxy"], $pauth);
 // Upload Finished
 echo "<script type='text/javascript'>document.getElementById('progressblock').style.display='none';</script>";
 is_page($upfiles);
 if (stripos($upfiles, 'Your upload has successfully completed') === false) {
     html_error('Error at upload', 0);
 }
 $page = geturl("www.2shared.com", 80, "/uploadComplete.jsp?" . $url["query"], $referer, $cookie, 0, 0, $_GET["proxy"], $pauth);
 is_page($page);
 if (preg_match('@action="(https?://[^/|\\"|\\<|\\>]+/[^\\"|\\<|\\>]+)"[^\\<|\\>]*name="downloadForm@i', $page, $lnk)) {
     $download_link = $lnk[1];
     if (preg_match('@action="(https?://[^/|\\"|\\<|\\>]+/[^\\"|\\<|\\>]+)"[^\\<|\\>]*name="adminForm@i', $page, $admlnk)) {
         $adm_link = $admlnk[1];
     }
 } else {
     html_error("Download link not found.", 0);
Example #14
0
$ref = 'http://www.fast-load.net/';
$page = geturl("www.fast-load.net", 80, "/", "", 0, 0, 0, "");
is_page($page);
//            $cook = trim(cut_str($page,"Cookie:",";"));
$ifurl = cut_str($page, '<iframe', '</iframe>');
$ifurl = cut_str($ifurl, 'src="', '"');
if (!$ifurl) {
    html_error('Error get iframe url');
}
$Url = parse_url($ifurl);
$page = geturl($Url["host"], defport($Url), $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 0, 0, 0, 0, $_GET["proxy"], $pauth);
is_page($page);
$servid = cut_str($page, 'name="serverid" value="', '"');
$post['user'] = '';
$post['password'] = '';
$post['ref'] = '';
$post['serverid'] = $servid ? $servid : '21';
?>
	<script>document.getElementById('info').style.display='none';</script>
<?php 
$upfiles = upfile($Url["host"], defport($Url), "/upload.php", "", 0, $post, $lfile, $lname, "gfile");
?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
is_page($upfiles);
//            is_notpresent($upfiles,"ok","Error Upload File!".$upfiles);
$tmp = cut_str($upfiles, "Download", true);
$download_link = cut_str($tmp, 'value="', '"');
$tmp = cut_str($tmp, "Delete", true);
$delete_link = cut_str($tmp, 'value="', '"');
// sert 19.07.2008
Example #15
0
<?php 
$url = "http://www.shragle.com/";
$Url = parse_url($url);
$page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 0, 0, 0, 0, $_GET["proxy"], $pauth);
is_page($page);
$up = cut_str($page, 'name="upload" action="', '"');
$maxsize = cut_str($page, 'name="MAX_FILE_SIZE" value="', '"');
$uid = cut_str($page, 'name="UPLOAD_IDENTIFIER" value="', '"');
$fpost["MAX_FILE_SIZE"] = $maxsize;
$fpost['UPLOAD_IDENTIFIER'] = $uid;
$fpost["description"] = "";
$fpost['recipient'] = "";
$fpost['sender'] = "";
$fpost['x'] = mt_rand(1, 100);
$fpost['y'] = mt_rand(1, 50);
?>
<script>document.getElementById('info').style.display='none';</script>
<?php 
$url = parse_url($up);
$upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), $up, 0, $fpost, $lfile, $lname, "file_1");
?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
is_page($upfiles);
$id = cut_str($upfiles, 'name="files" value="', '"');
$upost['files'] = $id;
$page = geturl("www.shragle.com", 80, "/", "http://www.shragle.com/", 0, $upost, 0, "");
is_page($page);
$download_link = cut_str($upfiles, 'Link: <a href="', '"');
$delete_link = cut_str($upfiles, 'sch-Link: <a href="', '"');
// Made by Baking 26/09/2009 13:44
 } else {
     $post['uploadFileCategory'] = 'video';
 }
 $post['passProtectUpload'] = !empty($_REQUEST['up_lpassword']) ? $_REQUEST['up_lpassword'] : "";
 $post['emailAddress'] = "";
 $post['checkTOS'] = "";
 $post['searchable'] = $_REQUEST['up_searchable'] == "yes" ? "yes" : "no";
 $post['downloadProgressURL'] = urlencode(cut_str($page, 'name="downloadProgressURL" value="', '"'));
 if (!preg_match("@init\\('[^']+','([^']+)','(\\w+)','(\\w+)','(\\d+)','(\\d+)'[^\\)]+\\)@i", $page, $ud)) {
     html_error("Upload Query not found.", 0);
 }
 $up_loc = "http://www.megashares.com/{$ud[1]}.php?tmp_sid={$ud[2]}&ups_sid={$ud[3]}&uld={$ud[4]}&uloc={$ud[5]}";
 // Uploading
 echo "<script type='text/javascript'>document.getElementById('info').style.display='none';</script>\n";
 $url = parse_url($up_loc);
 $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), "http://www.megashares.com/", $cookie, $post, $lfile, $lname, "upfile_0");
 // Upload Finished
 echo "<script type='text/javascript'>document.getElementById('progressblock').style.display='none';</script>";
 is_page($upfiles);
 if (!preg_match('@\\.location = "https?://([^\\.|/]+\\.)?megashares\\.com(/upostproc\\.php\\?fid=\\d+)"@i', $upfiles, $redir)) {
     html_error("Redirect not found.", 0);
 }
 $page = geturl($redir[1] . "megashares.com", 80, $redir[2], 0, $cookie);
 is_page($page);
 if (!preg_match('@http://\\w+.megashares.com/dl/\\w+/[^<|"|\']+@i', $page, $dl)) {
     html_error("Download link not found.", 0);
 }
 $download_link = $dl[0];
 if (preg_match('@http://\\w+.megashares.com/\\?dl=\\w+@i', $page, $dlt)) {
     $delete_link = $dlt[0];
 }
    $cookie = $temp[1];
    $cookies = implode(';', $cookie);
    ?>
<script>document.getElementById('login').style.display='none';</script>
<div id=info width=100% align=center>Retrive upload ID</div>
<?php 
    $ref = 'http://www.cinshare.com/upload/local';
    $Url = parse_url($ref);
    $page = geturl($Url["host"], defport($Url), $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 'http://www.cinshare.com/', $cookies, 0, 0, $_GET["proxy"], $pauth);
    is_page($page);
    $rndid = cut_str($page, 'var fid = genRandId(', ')');
    $uid = cut_str($page, '<input id="uid" type="hidden" value="', '"');
    $ID = GRC();
    $servup = cut_str($page, "var curServer = '", "'");
    $post['Filename'] = $lname;
    $post['Upload'] = 'Submit Query';
    $url = parse_url($servup . "/upload/process/" . $ID . "/" . $uid);
    $upagent = "Shockwave Flash";
    $upfiles = upfile($url["host"], defport($url), $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 0, 0, $post, $lfile, $lname, "Filedata", 0, $upagent);
    is_page($upfiles);
    ?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
    $Url = parse_url('http://www.cinshare.com/upload/getLinks/' . $ID);
    $page = geturl($Url["host"], defport($Url), $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 'http://www.cinshare.com/', 0, 0, 0, $_GET["proxy"], $pauth);
    $ddl = cut_str($page, 'value="http://www.cinshare.com/videos/watch/', '"');
    $download_link = "http://www.cinshare.com/videos/watch/" . $ddl;
    $delete_link = "http://www.cinshare.com/files/delete/" . $ID;
}
// Made by Baking 30/07/2009 16:55
// Fixed by Baking 09/11/2009 12:42
        html_error("Error: Cannot find session value.", 0);
    }
    $post['upload_type'] = "file";
    $post['sess_id'] = $xfss;
    $post['srv_tmp_url'] = cut_str($page, 'name="srv_tmp_url" value="', '"');
    $post['ut'] = "file";
    $post['link_rcpt'] = "";
    $post['link_pass'] = "";
    $post['tos'] = 1;
    $post['submit_btn'] = "  ";
    $up_url = "{$up[1]}/?upload_id={$uid}&js_on=1&utype=reg&upload_type=file";
    ?>
<script type="text/javascript">document.getElementById('info').style.display='none';</script>
<?php 
    $url = parse_url($up_url);
    $upfiles = upfile($url["host"], defport($url), $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), "http://filedino.com/", $cookie, $post, $lfile, $lname, "file_0");
    ?>
<script type="text/javascript">document.getElementById('progressblock').style.display='none';</script>
<?php 
    is_page($upfiles);
    $post = array();
    $post['op'] = "upload_result";
    $post['fn'] = cut_str($upfiles, " name='fn'>", "<");
    $post['st'] = "OK";
    $page = geturl("www.filedino.com", 80, "/", $up_url, $cookie, $post, 0, $_GET["proxy"], $pauth);
    is_page($page);
    if (preg_match('@(http://(www\\.)?filedino\\.com/\\w+)\\?killcode=\\w+@i', $page, $lnk)) {
        $download_link = $lnk[1];
        $delete_link = $lnk[0];
    } else {
        html_error("Download link not found.", 0);
Example #19
0
<div id=info width=100% align=center>Retrive upload ID</div>
<?php 
$page = geturl("flyupload.com", 80, "/", "", 0, 0, 0, "");
is_page($page);
$cookie = GetCookies($page);
preg_match('/UPLOAD_IDENTIFIER.*value="(.*?)"/i', $page, $id);
preg_match('/form.*action="(.*?)"/', $page, $uplink);
$action_url = $uplink[1];
$url = parse_url($action_url);
$post['prefix'] = 'flyupload';
$post['UPLOAD_IDENTIFIER'] = $id[1];
$post['subbutton'] = 'Share';
$post['agreetos'] = 'on';
?>
<script>document.getElementById('info').style.display='none';</script>

<table width=600 align=center>
</td></tr>
<tr><td align=center>
<?php 
$upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 'http://flyupload.com/', $cookie, $post, $lfile, $lname, "file");
is_page($upfiles);
?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
preg_match('/Location: *(.*)/', $upfiles, $redir);
$Href = $redir[1];
$Url = parse_url($Href);
$page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 'http://flyupload.com/', $cookie, 0, 0, $_GET["proxy"], $pauth);
preg_match('/URL:.*value="(.*?)"/i', $page, $dllink);
$download_link = $dllink[1];
Example #20
0
    $post = array('filename' => $lname);
    $page = geturl('open.ge.tt', 80, '/1/files/' . urlencode($share['sharename']) . '/create?accesstoken=' . urlencode($userInfo['accesstoken']) . '&t=' . jstime(), $referer, $cookie, json_encode($post), 0, $_GET['proxy'], $pauth);
    is_page($page);
    $file = json2array($page, 'Create File Error');
    if (empty($file['getturl'])) {
        html_error('Download link not found.');
    }
    if (empty($file['upload']['posturl'])) {
        html_error('Upload URL not Found.');
    }
    // posturl		puturl
    // Uploading
    echo "<script type='text/javascript'>document.getElementById('info').style.display='none';</script>\n";
    $url = parse_url($file['upload']['posturl']);
    // .'&nounce='.exports_uuid()
    $upfiles = upfile($url['host'], defport($url), $url['path'] . (!empty($url['query']) ? '?' . $url['query'] : ''), $file['getturl'], $cookie, array(), $lfile, $lname, 'blob', '', $_GET['proxy'], $pauth, 0, $url['scheme']);
    //$upfiles = putfile($url['host'], defport($url), $url['path'].(!empty($url['query']) ? '?'.$url['query'] : ''), $file['getturl'], $cookie, $lfile, $lname, $_GET['proxy'], $pauth, 0, $url['scheme']);
    // Upload Finished
    echo "<script type='text/javascript'>document.getElementById('progressblock').style.display='none';</script>\n";
    is_page($upfiles);
    if (stripos($upfiles, 'computer says yes') === false) {
        textarea($upfiles);
        html_error('Unknown Upload Error.');
    }
    $download_link = $file['getturl'];
}
function json2array($content, $errorPrefix = 'Error')
{
    if (!function_exists('json_decode')) {
        html_error('Error: Please enable JSON in php.');
    }
    }
    ?>
<script>document.getElementById('info').style.display='none';</script>
<div id=info width=100% align=center>Retrive upload ID</div>
<?php 
    $time = str_replace('.', '', microtime(true) * 1000);
    $url = 'http://minus.com/api/CreateGallery_Web/?d=' . (strlen($time) > 13 ? substr($time, 0, -1) : $time);
    $Url = parse_url($url);
    $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), "http://minus.com/", $cookies, 0, 0, $_GET["proxy"], $pauth);
    $cookie = GetCookies($page);
    if (!preg_match('#"editor_id": "([^"]+)"#', $page, $id)) {
        html_error('Cannot get url action upload.', 0);
    }
    $dl = $id[1];
    $url = parse_url('http://minus.com/api/UploadItem_Web/?editor_id=' . $id[1] . '&key=-&filename=' . $lname);
    $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), "http://minus.com/", $cookie, 0, $lfile, $lname, "file");
    ?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
    is_page($upfiles);
    preg_match('#HTTP\\/1\\.1 (\\w*)#', $upfiles, $status);
    preg_match('#"filesize": "([^"]+)"#', $upfiles, $size);
    if ($status[1] == 403 || $status[1] == 404) {
        html_error('Error in upload [Update plugin]');
    }
    if ($size[1] == '0 bytes' || $size[1] == '0') {
        html_error('Error in upload');
    }
    $download_link = 'http://minus.com/m' . $dl;
}
//working by SD-88 07.04.2012
Example #22
0
    // echo (" <div> Upload_url : $Upload_url </div>");
    $cookie_up = cut_str($page, "var USER_COOKIE = '", "';");
    if (!$Upload_url) {
        html_error($Upload_url, 0);
    }
    ?>
<script>document.getElementById('info').style.display='none';</script>
<?php 
    $url = parse_url($Upload_url);
    //$url= parse_url("http://up.u.115.com/upload");
    $fpost = array();
    $fpost['Filename'] = $lname;
    $fpost['cookie'] = $cookie_up;
    $fpost['aid'] = '1';
    $agent = 'Shockwave Flash';
    $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), "http://u.115.com/?ct=index&ac=my", $cookie, $fpost, $lfile, $lname, "Filedata");
    ?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
    //,"pick_code":"e65lenbo","ico":"
    $pickcode = cut_str($upfiles, '"pick_code":"', '","ico"');
    //echo (" <div> pickcode : $pickcode </div>");
    //echo (" <div> upfiles : $upfiles  </div>");
    if (!$pickcode) {
        html_error("Finished, Go to your account to see Download-URL.", 0);
    } else {
        echo " <div> Note: You required login before you can see it. </div>";
        $download_link = "http://u.115.com/file/{$pickcode}";
    }
    // echo (" <div> Mark </div>");
}
Example #23
0
    $post = array();
    $post['Filename'] = $lname;
    $post['PHPSESSID'] = cut_str($page, '"PHPSESSID" : "', '"');
    if (in_array($_REQUEST['up_thumbsize'], $tsizes)) {
        $post['thumbsize'] = $_REQUEST['up_thumbsize'];
    } else {
        $post['thumbsize'] = 180;
    }
    $post['Upload'] = 'Submit Query';
    if ($_REQUEST['up_rB'] == 'NSFW') {
        $up_loc = 'uploadadult.php';
    } else {
        $up_loc = 'upload.php';
    }
    $up_loc = "http://imagehaven.net/{$up_loc}";
    ?>
<script type='text/javascript'>document.getElementById('info').style.display='none';</script>
<?php 
    $url = parse_url($up_loc);
    $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 0, $cookie, $post, $lfile, $lname, "Filedata", '', 0, 0, "Shockwave Flash");
    ?>
<script type='text/javascript'>document.getElementById('progressblock').style.display='none';</script>
<?php 
    is_page($upfiles);
    if (!preg_match('/((?:img|a)\\d+\\.imagehaven\\.net)\\|([^\\r|\\n]+)/i', $upfiles, $ul)) {
        html_error("Download link not found.", 0);
    }
    echo "\n<table width='100%' border='0'>\n<tr><td width='100' nowrap='nowrap' align='right'>Thumbnail Link:<td width='80%'><input value='http://{$ul[1]}/img/thumbs/{$ul[2]}' class='upstyles-dllink' readonly='readonly' /></tr>\n</table>\n";
    $download_link = "http://{$ul[1]}/img.php?id={$ul[2]}";
}
//[15-6-2011]  Written by Th3-822.
Example #24
0
 $introduce = filtrate($introduce);
 $homepage = filtrate($homepage);
 if ($icon_type == 'new' && $postfile) {
     $array[name] = is_array($postfile) ? $_FILES[postfile][name] : $postfile_name;
     $filetype = strtolower(strrchr($array[name], "."));
     if ($filetype != '.gif' && $filetype != '.jpg') {
         showerr("头像只能是.gif或.jpg格式");
     }
     $array[path] = $webdb[updir] . "/icon";
     $array[size] = is_array($postfile) ? $_FILES[postfile][size] : $postfile_size;
     if ($array[size] + $lfjdb[usespace] > $webdb[totalSpace] * 1048576 + $groupdb[totalspace] * 1048576 + $lfjdb[totalspace]) {
         showerr("你的空间不足,上传失败,<A HREF='?uid={$lfjuid}'>点击查看你的空间容量信息</A>");
     }
     $array[updateTable] = 1;
     //统计用户上传的文件占用空间大小
     $filename = upfile(is_array($postfile) ? $_FILES[postfile][tmp_name] : $postfile, $array);
     $icon = "icon/{$lfjuid}" . strtolower(strrchr($filename, "."));
     @unlink(ROOT_PATH . "{$webdb['updir']}/{$icon}");
     rename(ROOT_PATH . "{$webdb['updir']}/icon/{$filename}", ROOT_PATH . "{$webdb['updir']}/{$icon}");
     $icon_array = getimagesize(ROOT_PATH . "{$webdb['updir']}/{$icon}");
     if ($icon_array[0] > 150 || $icon_array[1] > 150) {
         $icon_url = "{$webdb['www_url']}/{$webdb['updir']}/{$icon}";
     }
 }
 if ($icon) {
     $filetype = strtolower(strrchr($icon, "."));
     $icon = filtrate($icon);
     if ($filetype != '.gif' && $filetype != '.jpg') {
         showerr("头像只能是.gif或.jpg格式");
     }
 }
    ?>
<script>document.getElementById('login').style.display='none';</script>
<div id=info width=100% align=center>Retrive upload ID</div>
<?php 
    $nextsrv = 'http://rapidshare.com/cgi-bin/rsapi.cgi?sub=nextuploadserver_v1';
    if (!($rsrv = @file_get_contents($nextsrv))) {
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $nextsrv);
        curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        $rsrv = curl_exec($ch);
        curl_close($ch);
    }
    $url_action = "http://rs{$rsrv}.rapidshare.com/cgi-bin/upload.cgi";
    $post['login'] = $_REQUEST['my_login'];
    $post['password'] = $_REQUEST['my_pass'];
    $post['rsapi_v1'] = '1';
    ?>
<script>document.getElementById('info').style.display='none';</script>
<?php 
    $url = parse_url($url_action);
    $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 0, 0, $post, $lfile, $lname, "filecontent", "", $proxy, $pauth);
    ?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
    is_page($upfiles);
    preg_match('/File1\\.1=([^\\r|\\n]+)/i', $upfiles, $flink);
    preg_match('/File1\\.2=([^\\r|\\n]+)/i', $upfiles, $dlink);
    $download_link = trim($flink[1]);
    $delete_link = trim($dlink[1]);
}
Example #26
0
//			$post["flyupload"]='on';
$post["badongo"] = 'on';
$post["depositfiles"] = 'on';
$post["megaupload"] = 'on';
$post["sendspace"] = 'on';
$post["filefactory"] = 'on';
//			$post["zshare"]='on';
$post["netload"] = 'on';
//			$post["easyshare"]='on';
$post["loadto"] = 'on';
$post["rapidshare"] = 'on';
$post["mediafire"] = 'on';
$post["zippyshare"] = 'on';
$post["megashare"] = 'on';
$url = parse_url($ref . 'cgi/ubr_upload.pl?upload_id=' . $uid);
$upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), $ref, 0, $post, $lfile, $lname, "upfile_0");
?>
<script>document.getElementById('progressblock').style.display='none';</script>
<div id=final width=100% align=center>Get final code</div>
<?php 
is_page($upfiles);
$finish_url = trim(cut_str($upfiles, 'Location:', "\n"));
if (!$finish_url) {
    html_error('Error get location');
}
$Url = parse_url($finish_url);
$page = geturl($Url["host"], defport($Url), $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), $ref, 0, 0, 0, $_GET["proxy"], $pauth);
is_page($page);
$tmp = cut_str($page, 'link is: <a href="', '">');
if (!$tmp) {
    html_error('Error get finish url');
    ?>
        <script type='text/javascript'>document.getElementById('login').style.display='none';</script>
        <div id='info' width='100%' align='center'>Retrive upload ID</div>
        <?php 
    $Url = parse_url("http://upload.fshare.vn/");
    $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 0, $cookie, 0, 0, $_GET["proxy"], $pauth);
    is_page($page);
    $SESSID = cut_str($page, '"SESSID" : "', '"');
    unset($post);
    $post['Filename'] = $lname;
    $post['SESSID'] = $SESSID;
    $post['folderid'] = "-1";
    $post['desc'] = "Upload from rapidleech - Plugin make by vdhdevil";
    //please dont remove this line thanks
    $up_loc = "http://upload.fshare.vn/upload.php";
    ?>
        <script type='text/javascript'>document.getElementById('info').style.display='none';</script>
        <?php 
    $url = parse_url($up_loc);
    $upagent = "Shockwave Flash";
    $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 0, $cookie, $post, $lfile, $lname, "fileupload", "", $_GET["proxy"], $pauth, $upagent);
    ?>
        <script type='text/javascript'>document.getElementById('progressblock').style.display='none';</script>
        <?php 
    is_page($upfiles);
    if (!preg_match("#http://www.fshare.vn/file/[A-Z0-9]+/#", $upfiles, $dlink)) {
        html_error("Upload failed or Plugin is out of date");
    }
    $download_link = $dlink[0];
}
//by vdhdevil
Example #28
0
    $post['login'] = $_REQUEST['my_login'];
    $post['password'] = $_REQUEST['my_pass'];
    $post['op'] = 'login';
    $post['x'] = 34;
    $post['y'] = 10;
    $page = geturl("www.putshare.com", 80, "/", $ref, 0, $post, 0, "");
    $cookie1 = "login="******";") . "; ";
    $cookie1 .= "domain=.putshare.com" . "; ";
    $cookie1 .= "path=/" . "; ";
    $cookie1 .= "xfss=" . cut_str($page, 'Cookie: xfss=', ";") . "; ";
    $page = geturl("www.putshare.com", 80, "/", $ref, $cookie1, 0, 0, "");
    $tmp = cut_str($page, 'multipart/form-data" action="', '"');
    $action_url = $tmp . '/?X-Progress-ID=' . rand(100000000000, 999999999999);
    $url = parse_url($action_url);
    $post['upload_type'] = 'file';
    $post['submit_btn'] = ' Upload! ';
    $tmp2 = cut_str($page, 'name="sess_id" value="', '"');
    $post['sess_id'] = $tmp2;
    ?>
<script>document.getElementById('info').style.display='none';</script>
<?php 
    $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 'http://putshare.com/', $cookie1, $post, $lfile, $lname, "file_0");
    is_page($upfiles);
    ?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
    $tempsix = cut_str($upfiles, 'Location: http://putshare.com/?&', '=OK');
    $pepurl = "?&" . $tempsix . "=OK&op=upload_result";
    $page = geturl("www.putshare.com", 80, "/" . $pepurl, $ref, $cookie1, 0, 0, "");
    $download_link = "http://" . cut_str($page, 'onfocus="copy(this);" value="http://', '"');
}
Example #29
0
}
$uid += floor(rand() * 10);
$post['upload_type'] = 'file';
$post['sess_id'] = $xfss;
$post['file_0_descr'] = $_REQUEST['descript'];
$post['file_0_public'] = '1';
$post['link_rcpt'] = '';
$post['link_pass'] = '';
$post['tos'] = '1';
$post['submit_btn'] = ' Upload! ';
$uurl = $upfrm . '/cgi-bin/upload.cgi?upload_id=' . $uid . '&js_on=1&utype=anon&upload_type=file';
$url = parse_url($upfrm . '/cgi-bin/upload.cgi?upload_id=' . $uid . '&js_on=1&utype=anon&upload_type=file');
?>
<script>document.getElementById('info').style.display='none';</script>
<?php 
$upfiles = upfile($url["host"], defport($url), $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), $ref, $cookies, $post, $lfile, $lname, "file_0");
?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
$locat = cut_str($upfiles, 'rea name=\'fn\'>', '</textarea>');
unset($post);
$gpost['fn'] = "{$locat}";
$gpost['st'] = "OK";
$gpost['op'] = "upload_result";
$Url = parse_url($ref);
$page = geturl($Url["host"], defport($Url), $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), $uurl, $cookies, $gpost, 0, $_GET["proxy"], $pauth);
$ddl = cut_str($page, '<td><a href="', '"');
$del = cut_str($page, 'killcode=', '"');
$download_link = $ddl;
$delete_link = $ddl . '?killcode=' . $del;
// Made By CHRISTIAN™ 09/06/2010 09:40
Example #30
0
    if (!preg_match('@\'uploader\'[\\s\\t]*:[\\s\\t]*[\'|\\"](https?://www\\d+\\.zippyshare\\.com/[^\\r\\n\'\\"\\s\\t<>]+)[\'|\\"]@i', $page, $up)) {
        html_error('Error: Cannot find upload server.', 0);
    }
    $post = array();
    $post['Filename'] = $lname;
    $post['uploadify'] = 'true';
    $post['embPlayerValues'] = !empty($cookie['embed-player-values']) ? $cookie['embed-player-values'] : 'null';
    if ($login) {
        $post['zipname'] = $cookie['zipname'];
        $post['ziphash'] = $cookie['ziphash'];
    }
    if (!empty($_REQUEST['up_private'])) {
        $post['private'] = 'checked';
    }
    $post['Upload'] = 'Submit Query';
    $up_url = $up[1];
    // 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'] : ''), $referer, $cookie, $post, $lfile, $lname, 'Filedata', '', $_GET['proxy'], $pauth, 'Shockwave Flash');
    // Upload Finished
    echo "<script type='text/javascript'>document.getElementById('progressblock').style.display='none';</script>\n";
    is_page($upfiles);
    if (preg_match('@https?://www\\d*\\.zippyshare\\.com/v/\\d+/file\\.html@i', $upfiles, $link)) {
        $download_link = $link[0];
    } else {
        html_error('Download link not found.', 0);
    }
}
//[17-5-2013] Written by Th3-822.
//[28-9-2014] Added private upload option. - Th3-822