当前位置: 首页>>代码示例>>PHP>>正文


PHP insert_timer函数代码示例

本文整理汇总了PHP中insert_timer函数的典型用法代码示例。如果您正苦于以下问题:PHP insert_timer函数的具体用法?PHP insert_timer怎么用?PHP insert_timer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了insert_timer函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: DownloadFree

 private function DownloadFree($link)
 {
     global $pauth;
     $Referer = $link;
     $page = $this->GetPage($link, 0, 0, 0, $pauth);
     $cookies = $this->biscottiDiKaox($page);
     is_present($page, 'File was deleted');
     is_present($page, 'File not found');
     is_present($page, 'You have downloaded over 150MB during last hour.');
     $FileName = trim(cut_str($page, "<title>Download ", ","));
     $div = trim(cut_str($page, '<div id="block-captcha">', "</div>"));
     $count = trim(cut_str($div, "w='", "'"));
     insert_timer($count, "Waiting link timelock");
     if ($src = trim(cut_str($page, "u='", "'"))) {
         $Url = parse_url($link);
         $Href = "http://" . $Url["host"] . $src;
         $page = $this->GetPage($Href, $cookies, 0, $Referer, $pauth);
     }
     $Href = trim(cut_str($page, 'post" action="', '"'));
     $id = trim(cut_str($page, '"id" value="', '"'));
     $post = array();
     $post["captcha"] = "";
     $post["id"] = $id;
     $this->RedirectDownload($Href, $FileName, $cookies, $post, $Referer, 0, $pauth);
     exit;
 }
开发者ID:mewtutorial,项目名称:rapidleech-ultimate,代码行数:26,代码来源:easy_share_com.php

示例2: Download

 public function Download($link)
 {
     $page = $this->GetPage($link);
     is_present($page, "This file couldn't be found!", "This file doesn't exit or has been deleted.");
     $post = array();
     $post['free_download'] = "1";
     $post['free_download1.x'] = rand(0, 83);
     $post['free_download1.y'] = rand(0, 20);
     $post['free_download1'] = "1";
     $page = $this->GetPage($link, 0, $post, $link);
     preg_match('/<div id="time2wait" style="display:inline;">(\\d+)<\\/div>/', $page, $wait);
     $countdown = $wait[1];
     insert_timer($countdown, "Download is being prepared.", "", true);
     $ticket = cut_str($page, 'id="ticket" value="', '"');
     unset($post);
     $post['ticket'] = $ticket;
     $post['x'] = rand(0, 78);
     $post['y'] = rand(0, 19);
     if (!preg_match('/form method="post" action="(.*)"/', $page, $dl)) {
         html_error("Error, Download link not found bla...bla...bla...he3x");
     }
     $dlink = trim($dl[1]);
     $Url = parse_url($dlink);
     $FileName = basename($Url['path']);
     $this->RedirectDownload($dlink, $FileName, 0, $post, $link);
     exit;
 }
开发者ID:laiello,项目名称:rapidleech36b,代码行数:27,代码来源:kickload_com.php

示例3: Free

 private function Free($link)
 {
     $page = $this->GetPage($link);
     $cookie = 'lang=english';
     is_present($page, '<b>File Not Found</b>');
     is_present($page, 'This file downloading are located on server maintenance. Please try again after few hours.');
     $form = cut_str($page, "<Form method=\"POST\" action='", '</form>');
     if (!preg_match_all('#input type="hidden" name="([^"]+)" value="([^"]+)"#', $form, $preg)) {
         html_error('Cannot get data in post');
     }
     $post = array_combine($preg[1], $preg[2]);
     $post['method_free'] = 'Free Download';
     $page = $this->GetPage($link, $cookie, $post, $link);
     if (preg_match('#You have to wait (\\d+) minutes#', $page, $minutes)) {
         $wait1 = $minutes[1] * 60;
     }
     if (preg_match('#(\\d+) seconds till next download#', $page, $seconds)) {
         $wait = $wait1 + $seconds[1];
         unset($post);
         $post['link'] = urlencode($link);
         $post['stop'] = '1';
         $this->JSCountDown($wait, $post, 'You did more than a download in a short time');
         exit;
     }
     if (preg_match('#<p class="err">([^<>]+)</p>#', $page, $error)) {
         html_error($error[1]);
     }
     if (!preg_match('#">(\\d+)</span> seconds</span>#', $page, $time)) {
         html_error('Cannot get wait time');
     }
     insert_timer($time[1]);
     $form = cut_str($page, '<Form name="F1" method="POST"', "</form>");
     unset($post);
     if (!preg_match_all('#input type="hidden" name="([^"]+)" value="([^"]+)"#', $form, $preg)) {
         html_error('Cannot get data in post');
     }
     $post = array_combine($preg[1], $preg[2]);
     $cap = cut_str($page, 'Enter code below:</b></td></tr>', '</table>');
     if (!preg_match_all("@padding-left:(\\d+)px;padding-top:(\\d+)px;'>([^<>]+)@", $cap, $parametro)) {
         html_error('Cannot get data of Captcha');
     }
     $code = array_combine($parametro[1], $parametro[3]);
     ksort($code);
     foreach ($code as $valor) {
         $captcha .= $this->decode_utf8_number($valor);
     }
     $post['code'] = $captcha;
     $page = $this->GetPage($link, $cookie, $post, $link);
     if (!preg_match("#(.*)http*s*://.+/files/[^\r|\n|\\s|'|\"]+#", $page, $dl)) {
         html_error('Cannot get Download Link');
     }
     $dlink = trim(str_replace($dl[1], '', $dl[0]));
     $filename = basename(parse_url($dlink, PHP_URL_PATH));
     $this->RedirectDownload($dlink, $filename);
     exit;
 }
开发者ID:laiello,项目名称:rapidleech36b,代码行数:56,代码来源:uplly_com.php

示例4: DownloadFree

 private function DownloadFree($link)
 {
     global $Referer;
     $Referer = $link;
     $page = $this->GetPage($link);
     $fileID = trim(cut_str($page, 'file_id" value="', '"'));
     $code = trim(cut_str($page, 'code" value="', '"'));
     $action = trim(cut_str($page, 'action" value="', '"'));
     $Href_1 = trim(cut_str($page, 'form action="http://uploading.com/files', '"'));
     $Href_1 = "http://uploading.com/files" . $Href_1;
     $cookie = GetCookies($page);
     $temp = cut_str($page, '<div class="c_1', '</div>');
     $FileName = trim(cut_str($temp, '<h2>', '</h2>'));
     is_present($page, "Sorry, the file requested by you does not exist on our servers.");
     is_present($page, "We are sorry, the file was removed either by its owner or due to the complaint received");
     if (stristr($page, "Sorry, you can download only one file per")) {
         $minutes = trim(cut_str($page, "Sorry, you can download only one file per ", " minutes."));
         if ($minutes) {
             html_error("Download limit exceeded. Sorry, you can download only one file per <font color=black><span id='waitTime'>{$minutes}</span></font> minutes.Please try again later or acquire a premium membership.", 0);
         } else {
             html_error("Download limit exceeded. Please try again later or acquire a premium membership.", 0);
         }
     }
     $post = array();
     $post["action"] = $action;
     $post["file_id"] = $fileID;
     $post["code"] = $code;
     $page = $this->GetPage($Href_1, $cookie, $post, $Referer);
     is_present($page, "Requested file not found");
     preg_match_all('/start_timer\\((\\d+)\\)/i', $page, $tm);
     $count = trim($tm[1][0]);
     insert_timer($count, "Waiting link timelock", "", true);
     $tid = str_replace(".", "12", microtime(true));
     $sUrl = "http://uploading.com/files/get/?JsHttpRequest=" . $tid . "-xml";
     $code = trim(cut_str($page, 'code: "', '",'));
     unset($post);
     $post["file_id"] = $fileID;
     $post["code"] = $code;
     $post["action"] = "get_link";
     $post["pass"] = "";
     $page = $this->GetPage($sUrl, $cookie, $post, $Referer);
     //$dUrl=str_replace("\\","",cut_str($page,'answer": { "link": "','"'));
     $dUrl = str_replace("\\", "", cut_str($page, 'link": "', '"'));
     if ($dUrl == "") {
         html_error("Download url error , Please wait for some minute and reattempt", 0);
     }
     $this->RedirectDownload($dUrl, $FileName, $cookie, 0, $Referer);
     exit;
 }
开发者ID:mewtutorial,项目名称:rapidleech-ultimate,代码行数:49,代码来源:uploading_com.php

示例5: Retrieve

 private function Retrieve($link)
 {
     global $options;
     $page = $this->GetPage($link);
     is_present($page, "Error - File not available", "Error - File not available");
     if (preg_match('#<span id="blocktimecounter">(\\d+) seconds#', $page, $wait)) {
         //html_error("Please wait " . $wait[1] . " seconds to start the download");
         insert_timer($wait[1]);
     }
     $Cookies = GetCookies($page);
     if (!preg_match('#var ajaxdl = "(.*)"#', $page, $temp)) {
         html_error("Error 0x01- Plugin is out of date", 0);
     }
     if (!preg_match('#(http.*files-ajax.*)"#', $page, $UrlPost)) {
         html_error("Error 0x02- Plugin is out of date", 0);
     }
     $ajaxdl = $temp[1];
     $post = array();
     $post["request"] = "generateID";
     $post["ajaxid"] = $ajaxdl;
     $page = $this->GetPage(trim($UrlPost[1]), $Cookies, $post, $link);
     if (preg_match("#(\\d+)</span> seconds#", $page, $wait)) {
         insert_timer($wait[1]);
     } else {
         insert_timer(60);
     }
     $page = $this->GetPage("http://www.google.com/recaptcha/api/challenge?k=6LdtjrwSAAAAACepq37DE6GDMp1TxvdbW5ui0rdE");
     $ch = cut_str($page, "challenge : '", "'");
     $img = "http://www.google.com/recaptcha/api/image?c=" . $ch;
     $page = $this->GetPage($img);
     $headerend = strpos($page, "\r\n\r\n");
     $pass_img = substr($page, $headerend + 4);
     write_file($options['download_dir'] . "bitshare_captcha.jpg", $pass_img);
     $randnum = rand(10000, 100000);
     $img_data = explode("\r\n\r\n", $page);
     $header_img = $img_data[0];
     $data = array();
     $data["request"] = "validateCaptcha";
     $data["ajaxid"] = $ajaxdl;
     $data["recaptcha_challenge_field"] = $ch;
     $data['link'] = urlencode($link);
     $data['step'] = '1';
     $data['cookie'] = urlencode($Cookies);
     $data['urlpost'] = urlencode(trim($UrlPost[1]));
     $this->EnterCaptcha($options['download_dir'] . "bitshare_captcha.jpg", $data, 20);
     exit;
 }
开发者ID:mewtutorial,项目名称:rapidleech-ultimate,代码行数:47,代码来源:bitshare_com.php

示例6: EnterCaptchaCode

 private function EnterCaptchaCode($link)
 {
     global $nn, $PHP_SELF, $pauth;
     $page = $this->GetPage($link);
     //is_present ( $page, "Due to a violation of our terms of use, the file has been removed from the server." );
     $cookie = "";
     preg_match_all("/Set-Cookie: ([^;]+;)/", $page, $cook);
     $arraySize = count($cook);
     for ($i = 0; $i < $arraySize; $i++) {
         $cookie = $cookie . array_shift($cook[1]);
     }
     $count = trim(cut_str($page, '<span id="countdown">', '</span>'));
     $op = trim(cut_str($page, '<input type="hidden" name="op" value="', '"'));
     $id = trim(cut_str($page, '<input type="hidden" name="id" value="', '"'));
     $rand = trim(cut_str($page, '<input type="hidden" name="rand" value="', '"'));
     $referer = trim(cut_str($page, '<input type="hidden" name="referer" value="', '"'));
     $method_free = trim(cut_str($page, '<input type="hidden" name="method_free" value="', '"'));
     $method_premium = trim(cut_str($page, '<input type="hidden" name="method_premium" value="', '"'));
     $down_script = trim(cut_str($page, '<input type="hidden" name="down_script" value="', '"'));
     $captchaImage = trim(cut_str($page, '<img src="http://evilshare.com/captchas/', '">'));
     $captcha_access_url = "http://evilshare.com/captchas/" . $captchaImage;
     insert_timer($count, "Waiting link timelock");
     print "<form name=\"dl\" action=\"{$PHP_SELF}\" method=\"post\">\n";
     print "<input type=\"hidden\" name=\"link\" value=\"" . urlencode($link) . "\">\n";
     print "<input type=\"hidden\" name=\"op\" value=\"" . urlencode($op) . "\">\n";
     print "<input type=\"hidden\" name=\"id\" value=\"" . urlencode($id) . "\">\n";
     print "<input type=\"hidden\" name=\"rand\" value=\"" . urlencode($rand) . "\">\n";
     print "<input type=\"hidden\" name=\"referer\" value=\"" . urlencode($referer) . "\">\n";
     print "<input type=\"hidden\" name=\"method_free\" value=\"" . urlencode($method_free) . "\">\n";
     print "<input type=\"hidden\" name=\"method_premium\" value=\"" . urlencode($method_premium) . "\">\n";
     print "<input type=\"hidden\" name=\"down_script\" value=\"" . urlencode($down_script) . "\">\n";
     print "<input type=\"hidden\" name=\"step\" value=\"1\">\n";
     print "<input type=\"hidden\" name=\"comment\" id=\"comment\" value=\"" . $_GET["comment"] . "\">\n";
     print "<input type=\"hidden\" name=\"email\" id=\"email\" value=\"" . $_GET["email"] . "\">\n";
     print "<input type=\"hidden\" name=\"partSize\" id=\"partSize\" value=\"" . $_GET["partSize"] . "\">\n";
     print "<input type=\"hidden\" name=\"method\" id=\"method\" value=\"" . $_GET["method"] . "\">\n";
     print "<input type=\"hidden\" name=\"proxy\" id=\"proxy\" value=\"" . $_GET["proxy"] . "\">\n";
     print "<input type=\"hidden\" name=\"proxyuser\" id=\"proxyuser\" value=\"" . $_GET["proxyuser"] . "\">\n";
     print "<input type=\"hidden\" name=\"proxypass\" id=\"proxypass\" value=\"" . $_GET["proxypass"] . "\">\n";
     print "<input type=\"hidden\" name=\"path\" id=\"path\" value=\"" . $_GET["path"] . "\">\n";
     print "<h4>" . lang(301) . " <img src=\"{$captcha_access_url}\" > " . lang(302) . ": ";
     print "<input type=\"text\" name=\"code\" size=\"4\">&nbsp;&nbsp;";
     print "<input type=\"submit\" onclick=\"return check()\" value=\"" . lang(303) . "\"></h4>\n";
     print "<script language=\"JavaScript\">" . $nn . "function check() {" . $nn . "var imagecode=document.dl.code.value;" . $nn . 'if (imagecode == "") { window.alert("You didn\'t enter the image verification code"); return false; }' . $nn . 'else { return true; }' . $nn . '}' . $nn . '</script>' . $nn;
     print "</form>\n</body>\n</html>";
 }
开发者ID:sayedharounokpay,项目名称:LikesPlanet,代码行数:46,代码来源:evilshare_com.php

示例7: DownloadFree

 private function DownloadFree($link)
 {
     global $nn, $PHP_SELF, $pauth;
     $LINK = str_replace("https", "http", $LINK);
     $page = $this->GetPage($link);
     is_page($page);
     preg_match('/action="([^\\"]*)"/i', $page, $redir);
     $Href = trim($redir[1]);
     $random_furk = cut_str($page, '<input type="hidden" name="rand" value="', '" />');
     $countd = cut_str($page, '<input class="button-large" type="submit" value="Free Download (wait ', 's)"');
     insert_timer($countd, "Waiting link timelock");
     $post = array();
     $post["rand"] = $random_furk;
     $Url = parse_url($Href);
     $FileName = !$FileName ? basename($Url["path"]) : $FileName;
     $this->RedirectDownload($Href, $FileName, 0, $post);
     exit;
 }
开发者ID:mewtutorial,项目名称:rapidleech-ultimate,代码行数:18,代码来源:furk_net.php

示例8: DownloadLink

 private function DownloadLink($link, $cookie = 0)
 {
     global $Referer;
     $id = substr($link, 13, 6);
     $getlink = "http://x7.to/james/ticket/dl/{$id}";
     $post = array();
     $page = $this->GetPage($getlink, $cookie, $post, $Referer);
     if (!$cookie) {
         $cookie = GetCookies($page);
     }
     $badJson = trim(cut_str($page, '{', '}'));
     $badJson = "{" . $badJson . "}";
     $raj = $this->convertToJson($badJson);
     $json = str_replace("'", "\"", $raj);
     $jsarray = json_decode($json, true);
     if (!$jsarray) {
         html_error("Cannot decode Json string!", 0);
     }
     if ($jsarray['err'] == "limit-dl" || $jsarray['err'] == "limit-parallel") {
         //html_error("Download limit exceeded.",0 );
         html_error(lang(111), 0);
     } else {
         if ($jsarray['err']) {
             html_error($jsarray['err'], 0);
         } else {
             if ($jsarray['type'] == "download") {
                 $Url = parse_url($jsarray['url']);
                 $downloadId = basename($Url['path']);
                 if ($jsarray['url'] == "" || $downloadId == "dl") {
                     html_error("File not found. Kindly check the link", 0);
                 } else {
                     $count = $jsarray['wait'];
                     if ($count > 0) {
                         insert_timer($count, "Waiting link timelock", "", true);
                     }
                 }
             }
         }
     }
     $Href = trim($jsarray['url']);
     $FileName = $id;
     $this->RedirectDownload($Href, $FileName, $cookie);
     exit;
 }
开发者ID:mewtutorial,项目名称:rapidleech-ultimate,代码行数:44,代码来源:x7_to.php

示例9: DownloadFree

 private function DownloadFree($link)
 {
     $post = array();
     $post['dl_free'] = "1";
     $post['captcha'] = $_POST['captchaid'];
     $post['recaptcha_challenge_field'] = $_POST['recaptcha_challenge_field'];
     $post['recaptcha_response_field'] = $_POST['captcha'];
     //$dl=$_POST['dl'];
     $Cookies = $_POST['Cookies'];
     $page = $this->GetPage($_POST['checkcaptchaurl'], $Cookies, $post, $referer);
     preg_match("#[\r\n](\\w{5,})[\r\n]#", $page, $tmp);
     if ($tmp[1] == "0") {
         html_error("Wrong captcha");
     }
     $dl = base64_decode($tmp[1]);
     insert_timer(30);
     $this->RedirectDownload($dl, "share-online", $Cookies, 0, $link);
     exit;
 }
开发者ID:SheppeR,项目名称:rapidleech,代码行数:19,代码来源:share_online_biz.php

示例10: DownloadFree

 private function DownloadFree($link)
 {
     $page = $this->GetPage($link);
     is_present($page, "El archivo que que buscas no existe o ha sido eliminado.", "El archivo que que buscas no existe o ha sido eliminado.");
     $Cookies = GetCookies($page);
     insert_timer(18);
     if (!preg_match('#http:\\/\\/.*\\/get\\/[^\'"]+#', $page, $getlink)) {
         html_error("Error 0x01: Plugin is out of date");
     }
     $page = $this->GetPage($getlink[0], $Cookies, 0, $link);
     $post = array();
     $post['task'] = "download";
     $post['submit.x'] = "114";
     $post['submit.y'] = "33";
     $Url = parse_url($getlink[0]);
     $FileName = basename($Url['path']);
     $this->RedirectDownload($getlink[0], $FileName, $Cookies, $post, $getlink[0]);
     exit;
 }
开发者ID:laiello,项目名称:rapidleech36b,代码行数:19,代码来源:profitupload_com.php

示例11: DownloadFree

 private function DownloadFree($link)
 {
     global $options;
     $page = $this->GetPage($link);
     $file_id = cut_str($page, 'name="file_id" value="', '"');
     is_present($page, "Vui lòng chờ lượt download kế tiếp ", "Vui lòng chờ lượt download kế tiếp ");
     $Cookies = GetCookies($page);
     $post = array();
     $post['link_file_pwd_dl'] = "";
     $post['action'] = "download_file";
     $post['file_id'] = $file_id;
     $page = $this->GetPage($link, $Cookies, $post, $link);
     is_notpresent($page, "var count = 30;", "Error 0x01: Plugin is out of date");
     insert_timer(30);
     if (!preg_match("#http://\\w+.\\w+.\\w+/download/[^/]+/[^']+#", $page, $dlink)) {
         html_error("Error 0x10: Plugin is out of date");
     }
     $this->RedirectDownload($dlink[0], "fshare_vn", $Cookies, 0, $link);
     exit;
 }
开发者ID:SheppeR,项目名称:rapidleech,代码行数:20,代码来源:fshare_vn.php

示例12: DownloadFree

 private function DownloadFree($link)
 {
     $post = array();
     $post['op'] = "login";
     $post['redirect'] = $link;
     $post['login'] = "dvdriprl";
     $post['password'] = "220687";
     $page = $this->GetPage("http://muchshare.net/login.html", 0, $post, $link);
     $Cookies = GetCookies($page);
     $page = $this->GetPage($link, $Cookies, 0, $link);
     if (preg_match("#You have to wait \\d+ seconds till next download#", $page, $message)) {
         html_error($message, 0);
     }
     if (!preg_match("#.*>(\\d+)<#", $page, $count)) {
         html_error("Error: Get Count Time Error");
     }
     insert_timer($count[1]);
     $id = cut_str($page, 'name="id" value="', '"');
     $rand = cut_str($page, 'name="rand" value="', '"');
     $textfield = cut_str($page, 'name="textfield" onclick="this.select()" value="', '"');
     unset($post);
     $post["op"] = "download2";
     $post["id"] = $id;
     $post["rand"] = $rand;
     $post["referer"] = $link;
     $post["method_free"] = "";
     $post["method_premium"] = "";
     $post["down_script"] = "1";
     $post["textfield"] = $link;
     $post["textfield"] = $textfield;
     $page = $this->GetPage($link, $Cookies, $post, $link);
     if (!preg_match("#Location: (.*)#", $page, $temp)) {
         html_error("Error: Download link not found");
     }
     $dlink = trim($temp[1]);
     $Url = parse_url($dlink);
     $FileName = basename($Url["path"]);
     $this->RedirectDownload($dlink, $FileName, $Cookies, 0, $link);
     exit;
 }
开发者ID:laiello,项目名称:rapidleech36b,代码行数:40,代码来源:muchshare_net.php

示例13: DownloadLink

 private function DownloadLink($link, $cookie = 0)
 {
     global $Referer;
     preg_match('%/get/(.+?)/%', $link, $id);
     $id = $id[1];
     $getlink = "http://www.storage.to/getlink/{$id}/";
     $page = $this->GetPage($getlink, $cookie);
     preg_match('/Object\\((.+?)\\)/', $page, $json);
     if (!$json[1]) {
         html_error("No Json string returned! Seems downloading system has changed. This plugin need to update.", 0);
     }
     $json = str_replace("'", "\"", $json[1]);
     $jsarray = json_decode($json, true);
     if (!$jsarray) {
         html_error("Cannot decode Json string!", 0);
     }
     if ($jsarray['state'] == "failed" && $jsarray['linkid'] == "") {
         html_error("File not found. Kindly check the link", 0);
     } else {
         if ($jsarray['state'] == "failed") {
             html_error("The download failed. Please try again later", 0);
         } else {
             if ($jsarray['state'] == "wait") {
                 html_error("Please wait. Free users may only download a few files per hour.");
             } else {
                 if ($jsarray['state'] == "ok") {
                     $count = $jsarray['countdown'];
                     if ($count > 0) {
                         insert_timer($count, "Waiting link timelock", "", true);
                     }
                 }
             }
         }
     }
     $Href = $jsarray['link'];
     $FileName = basename($Href);
     $this->RedirectDownload($Href, $FileName, $cookie, 0, $Referer);
     exit;
 }
开发者ID:mewtutorial,项目名称:rapidleech-ultimate,代码行数:39,代码来源:storage_to.php

示例14: Download

 public function Download($link)
 {
     $page = $this->GetPage($link);
     is_present($page, "The file you are requesting to download is not available", "The file you are requesting to download is not available");
     $Cookies = GetCookies($page);
     insert_timer(6);
     $phpsessid = explode('=', $Cookies);
     $id = explode('=', $link);
     $post = array();
     $post["PHPSESSID"] = $phpsessid[1];
     $post["turingno"] = "0";
     $post["id"] = $id[1];
     $post["DownloadNow"] = "Download File";
     $page = $this->GetPage($link, $Cookies, $post, $link);
     if (!preg_match("#href='(/file.php.*)'>#", $page, $temp)) {
         html_error("Error: Download Link Not Found");
     }
     preg_match("#addthis_title  = '(.*)'#", $page, $FileName);
     $dlink = "http://www.uploadmb.com" . $temp[1];
     $this->RedirectDownload($dlink, $FileName[1], $Cookies, 0, $link, $FileName[1]);
     exit;
 }
开发者ID:laiello,项目名称:rapidleech36b,代码行数:22,代码来源:uploadmb_com.php

示例15: DownloadFree

    private function DownloadFree($link)
    {
        global $Referer;
        if ($_GET["password"]) {
        } else {
            $post = array();
        }
        $post["filepassword"] = $_POST['password'];
        $page = $this->GetPage($link, $this->cookie, $post, $Referer);
        if (stristr($page, 'password protected')) {
            ?>
	                <form method="post">
                        <div>The file Megaupload you're trying to download is password protected. Please enter the password to proceed.</div> 
		        <input type="hidden" name="link" value="<?php 
            echo $link;
            ?>
" />
		        <input type="text" name="password" id="password"/><input type="submit" value="Proceed" />
	                </form>
                        <?php 
            exit;
        }
        is_present($page, "The file you are trying to access is temporarily unavailable");
        if (!stristr($page, "id=\"captchaform")) {
            $countDown = trim(cut_str($page, "count=", ";"));
            $countDown = !is_numeric($countDown) ? 26 : $countDown;
            $Href = cut_str($page, 'downloadlink"><a href="', '"');
            $Url = parse_url(html_entity_decode($Href, ENT_QUOTES, 'UTF-8'));
            if (!is_array($Url)) {
                html_error("Download link not found", 0);
            }
            insert_timer($countDown, "The file is being prepared.", "", true);
            $FileName = basename($Url["path"]);
            $this->RedirectDownload($Href, $FileName, $this->cookie);
            exit;
        }
    }
开发者ID:mewtutorial,项目名称:rapidleech-ultimate,代码行数:37,代码来源:megaupload_com.php


注:本文中的insert_timer函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。