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


PHP html_error函数代码示例

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


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

示例1: Download

 public function Download($link)
 {
     $page = $this->GetPage($link);
     is_present($page, "File Not Found", "File Not Found");
     is_present($page, "maintenance mode", "This server is in maintenance mode. Retry in a few minute.");
     $id = cut_str($page, 'name="id" value="', '"');
     $FileName = cut_str($page, 'name="fname" value="', '"');
     $post = array();
     $post['op'] = "download1";
     $post['usr_login'] = "";
     $post['id'] = $id;
     $post['fname'] = $FileName;
     $post['referer'] = $link;
     $post['method_free'] = "Free Download";
     $page = $this->GetPage($link, 0, $post, $link);
     $rand = cut_str($page, 'name="rand" value="', '"');
     unset($post);
     $post['op'] = "download2";
     $post['id'] = $id;
     $post['rand'] = $rand;
     $post['referer'] = $link;
     $post['method_free'] = "Free Download";
     $post['method_premium'] = "";
     $post['down_script'] = "1";
     $page = $this->GetPage($link, 0, $post, $link);
     if (!preg_match('/Location: (.*)/i', $page, $dl)) {
         html_error("Error: Download link not found!");
     }
     $Url = parse_url($dl[1]);
     if (!$FileName) {
         $FileName = basename($Url['path']);
     }
     $this->RedirectDownload($dl[1], $FileName, 0, 0, $link);
     exit;
 }
开发者ID:SheppeR,项目名称:rapidleech,代码行数:35,代码来源:uploadbaz_com.php

示例2: DownloadPremium

 private function DownloadPremium($link)
 {
     global $premium_acc;
     $page = $this->GetPage("https://id.megaplus.vn/login?service=http%3A%2F%2Fshare.vnn.vn%2Fmegavnnplus.php%3Fservice%3Dlogin");
     $Cookies = GetCookies($page);
     $lt = cut_str($page, 'name="lt" value="', '"');
     $post = array();
     $post["username"] = $_REQUEST["premium_user"] ? trim($_REQUEST["premium_user"]) : $premium_acc["megashare_vn"]["user"];
     $post["password"] = $_REQUEST["premium_pass"] ? trim($_REQUEST["premium_pass"]) : $premium_acc["megashare_vn"]["pass"];
     $post["lt"] = $lt;
     $post["_eventId"] = "submit";
     $post["submit"] = "%C3%90%C4%82NG+NH%E1%BA%ACP+";
     $page = $this->GetPage("https://id.megaplus.vn/login?service=http%3A%2F%2Fshare.vnn.vn%2Fmegavnnplus.php%3Fservice%3Dlogin", $Cookies, $post);
     $Cookies .= "; " . GetCookies($page);
     if (!preg_match("#Location: (.*)#i", $page, $tlink)) {
         html_error("Error 1x01: Plugin is out of date");
     }
     $page = $this->GetPage(trim($tlink[1]), $Cookies);
     $tmp = explode(";", GetCookies($page));
     $Cookies .= "; " . $tmp[1];
     $page = $this->GetPage($link, $Cookies, 0, $link);
     if (!preg_match("#location: (.*)#i", $page, $tlink)) {
         html_error("Error 1x02: Plugin is out of date");
     }
     $page = $this->GetPage(trim($tlink[1]), $Cookies, 0, $link);
     if (!preg_match('#http://.+8080[^"]+#', $page, $dlink)) {
         html_error("Error 1x03: Plugin is out of date");
     }
     $Url = parse_url($dlink[0]);
     $FileName = basename($Url['path']);
     $this->RedirectDownload($dlink[0], $FileName, $Cookies);
     exit;
 }
开发者ID:laiello,项目名称:rapidleech36b,代码行数:33,代码来源:megashare_vn.php

示例3: Download

 public function Download($link)
 {
     $page = $this->GetPage($link);
     if (preg_match('/(\\d+)<\\/span> seconds/', $page, $wait)) {
         $this->CountDown($wait[1]);
     }
     $free = 'http://yunfile.com' . cut_str($page, '<a id="downpage_link" href="', '"');
     $page = $this->GetPage($free, 0, 0, $link);
     $cookie = GetCookies($page);
     if (!preg_match('/setCookie\\("(v\\w+)", "(\\w+)"/', $page, $ca)) {
         html_error('Additional Cookie not found!');
     }
     $cookie = $cookie . "; {$ca['1']}={$ca['2']}";
     $form = cut_str($page, '<form class="tform" ', '</form>');
     $dlink = cut_str($form, 'action="', '" method="post"');
     $filename = basename(parse_url($dlink, PHP_URL_PATH));
     if (!preg_match_all('/<input type="hidden" name="([^"]+)" value="([^"]+)" \\/>/', $form, $match)) {
         html_error('Error : Post Data not found!');
     }
     $match = array_combine($match[1], $match[2]);
     $post = array();
     foreach ($match as $key => $value) {
         $post[$key] = $value;
     }
     $this->RedirectDownload($dlink, $filename, $cookie, $post, $link);
     exit;
 }
开发者ID:laiello,项目名称:rapidleech36b,代码行数:27,代码来源:yunfile_com.php

示例4: DownloadFree

 private function DownloadFree($link)
 {
     global $Referer;
     if ($_GET["step"] == "1") {
         $post = array();
         $post["op"] = $_GET["op"];
         $post["id"] = $_GET["id"];
         $post["rand"] = $_GET["rand"];
         $post["referer"] = $_GET["referer"];
         $post["method_free"] = $_GET["method_free"];
         $post["method_premium"] = $_GET["method_premium"];
         $post["code"] = $_GET["code"];
         $post["down_script"] = $_GET["down_script"];
     } else {
         // error
         html_error("Kindly execute catpcha step then this step come.", 0);
     }
     $page = $this->GetPage($link, 0, $post, $Referer);
     preg_match('/Location: (.*)/', $page, $newredir);
     $FileName = "";
     $Href = trim($newredir[1]);
     $Url = parse_url($Href);
     $FileName = !$FileName ? basename($Url["path"]) : $FileName;
     //$this->RedirectDownload($Href,$FileName,$cookie, 0,$Referer);
     $this->RedirectDownload($Href, $FileName, 0, 0, $Referer);
     exit;
 }
开发者ID:sayedharounokpay,项目名称:LikesPlanet,代码行数:27,代码来源:evilshare_com.php

示例5: 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

示例6: Download

 public function Download($link)
 {
     if (!preg_match('@://(?:[^/]+\\.)?tune\\.pk/video/(\\d+)@i', $link, $vid)) {
         html_error('Video ID not found. Check url.');
     }
     $page = $this->GetPage('http://tune.pk/video/' . $vid[1] . '/');
     is_present($page, 'Video does not exist');
     is_present($page, '404 Page not found');
     if (!preg_match('@var \\s*video_title\\s*=\\s*\'([^\']+)\';@i', $page, $title)) {
         html_error('Video title not found.');
     }
     $title = str_replace(str_split('<>:"/\\|?*\'@#+~{}[]^'), '_', html_entity_decode(trim($title[1]), ENT_QUOTES));
     if (stripos($page, 'watch_video_hd_button') !== false && preg_match('@var \\s*hq_video_file\\s*=\\s*\'(http://[^\']+)\'@i', $page, $dl)) {
         $title .= '_HQ';
     } elseif (!preg_match('@var \\s*normal_video_file\\s*=\\s*\'(http://[^\']+)\'@i', $page, $dl)) {
         html_error('Download link not found.');
     }
     $dllink = $dl[1];
     $ext = strrchr($dllink, '.');
     if (empty($ext)) {
         $ext = '.flv';
     }
     $fname = $title . $ext;
     $this->RedirectDownload($dllink, $fname);
 }
开发者ID:sayedharounokpay,项目名称:LikesPlanet,代码行数:25,代码来源:tune_pk.php

示例7: Download

 public function Download($link)
 {
     $page = $this->GetPage($link, 'lang=english');
     is_present($page, "<h2>File Not Found</h2>", 'Video not found or it was deleted.');
     is_present($page, "Video is not encoded yet.", 'Video is not encoded yet. Please wait some minutes.');
     is_present($page, "The file you were looking for could not be found");
     $page2 = cut_str($page, '<form name="F1" method="POST"', '</form>');
     //Cutting page
     if (!preg_match('@name="id" value="([^"]+)"@i', $page2, $id)) {
         html_error("Video ID not found.");
     }
     $page = $this->GetPage("http://movzap.com/xml/{$id[1]}.xml", 'lang=english');
     if (!preg_match('@<title><!\\[CDATA\\[([^\\[|\\]]+)\\]\\]></title>@i', $page, $title)) {
         html_error("Video Title not found.");
     }
     $page = $this->GetPage("http://movzap.com/xml2/{$id[1]}.xml", 'lang=english');
     if (!preg_match('@<hd\\.file><!\\[CDATA\\[([^\\[|\\]]+)\\]\\]></hd\\.file>@i', $page, $encrypted)) {
         if (!preg_match('@<file><!\\[CDATA\\[([^\\[|\\]]+)\\]\\]></file>@i', $page, $encrypted)) {
             html_error("Encrypted link not found.");
         }
     }
     $down = $this->decryptme(substr($encrypted[1], 0, -6)) or $down = $this->decryptme($encrypted[1]);
     if ($down === false) {
         html_error("Cannot decrypt download link");
     }
     if (!preg_match('@\\.[^\\.]+$@i', basename($down), $ext)) {
         $ext = array('.mp4');
     }
     $badchars = '<>:"/\\|?*\'@#+~{}[]^';
     $fname = str_replace(str_split($badchars), "_", trim($title[1])) . $ext[0];
     $this->RedirectDownload($down . "?start=0", $fname, 0, 0, 0, $fname);
 }
开发者ID:SheppeR,项目名称:rapidleech,代码行数:32,代码来源:movzap_com.php

示例8: Download

 public function Download($link)
 {
     $cookie = array('langfil' => 'en');
     $page = $this->GetPage($link, $cookie);
     $cookie = GetCookiesArr($page, $cookie);
     // check redirect
     $rdc = 0;
     while (($redir = $this->ChkRedir($page)) && $rdc < 5) {
         $page = $this->GetPage($redir, $cookie);
         $cookie = GetCookiesArr($page, $cookie);
         $rdc++;
     }
     is_present($page, 'The video you have requested is not available');
     if (!preg_match('/mediaid:\'([^\']+)\'/', $page, $mid)) {
         html_error('Error[Media id not found!]');
     }
     $page = $this->GetPage("http://en.vidivodo.com/player/getxml?mediaid={$mid[1]}&publisherid=vidivodo&type=", $cookie, 0, 'http://en.vidivodo.com/swf/player/MediaPlayer.swf');
     $cookie = GetCookiesArr($page, $cookie);
     if (!preg_match('/https?:\\/\\/ss\\d+\\.vidivodo\\.com(:\\d+)?\\/vidivodo\\/vidservers\\/[^\\r\\n\\]]+/i', $page, $dl)) {
         html_error('Error[Download link not found!]');
     }
     $dlink = trim($dl[0]);
     $filename = basename(parse_url($dlink, PHP_URL_PATH));
     $this->RedirectDownload($dlink, $filename, $cookie);
 }
开发者ID:laiello,项目名称:rapidleech36b,代码行数:25,代码来源:vidivodo_com.php

示例9: Login

 private function Login($link)
 {
     global $premium_acc;
     $pA = !empty($_REQUEST['premium_user']) && !empty($_REQUEST['premium_pass']) ? true : false;
     $user = $pA ? $_REQUEST['premium_user'] : $premium_acc['ultramegabit_com']['user'];
     $pass = $pA ? $_REQUEST['premium_pass'] : $premium_acc['ultramegabit_com']['pass'];
     if (empty($user) || empty($pass)) {
         html_error('Login Failed: User or Password is empty. Please check login data.');
     }
     $purl = 'http://ultramegabit.com/';
     $post = array();
     $post['csrf_token'] = cut_str($this->page, 'name="csrf_token" value="', '"');
     $post['submit'] = 'Login';
     $post['return_url'] = urlencode($purl . 'user/details');
     $post['username'] = urlencode($user);
     $post['password'] = urlencode($pass);
     $page = $this->GetPage($purl . 'login', $this->cookie, $post, $purl);
     is_present($page, 'Invalid username or password', 'Login failed: User/Password incorrect.');
     is_notpresent($page, "\r\nContent-Length: 0\r\n", 'Login failed.');
     $this->cookie = GetCookiesArr($page);
     $page = $this->GetPage($purl . 'user/details', $this->cookie, 0, $purl . 'login');
     $this->page = $this->GetPage($link, $this->cookie);
     if (stripos($page, '"Premium Member"') === false) {
         $this->changeMesg(lang(300) . '<br /><b>Account isn\'t premium</b><br />Using it as member.');
         return $this->FreeDL($link, true);
     } else {
         return $this->PremiumDL($link);
     }
 }
开发者ID:sayedharounokpay,项目名称:LikesPlanet,代码行数:29,代码来源:ultramegabit_com.php

示例10: login

 private function login()
 {
     global $premium_acc;
     $url = 'http://www.slingfile.com/';
     $page = $this->GetPage($url . 'login');
     $this->cookie = GetCookiesArr($page);
     $pA = $_REQUEST["premium_user"] && $_REQUEST["premium_pass"] ? true : false;
     $user = $pA ? $_REQUEST["premium_user"] : $premium_acc["slingfile_com"]["user"];
     $pass = $pA ? $_REQUEST["premium_pass"] : $premium_acc["slingfile_com"]["pass"];
     if (empty($user) || empty($pass)) {
         html_error("Login Failed: Email or Password is empty. Please check login data.", 0);
     }
     $post = array();
     $post['f_user'] = $user;
     $post['f_password'] = $pass;
     $post['f_keepMeLoggedIn'] = '1';
     $post['submit'] = urlencode('Login &raquo;');
     $page = $this->GetPage($url . 'login', $this->cookie, $post, $url . 'login');
     $cookie = GetCookiesArr($page, $this->cookie);
     if (!array_key_exists('cookielogin', $cookie)) {
         html_error('Invalid account');
     }
     $page = $this->GetPage($url . 'dashboard', $cookie);
     is_notpresent($page, '<span>Premium</span>', 'Account is not premium!');
     return $cookie;
 }
开发者ID:SheppeR,项目名称:rapidleech,代码行数:26,代码来源:slingfile_com.php

示例11: Login

 private function Login($auth = false)
 {
     global $premium_acc;
     if (!$auth) {
         if (!empty($_REQUEST["premium_user"]) && !empty($_REQUEST["premium_pass"])) {
             $user = $_REQUEST["premium_user"];
             $pass = $_REQUEST["premium_pass"];
         } else {
             $user = $premium_acc["real-debrid_com"]['user'];
             $pass = $premium_acc["real-debrid_com"]['pass'];
         }
         if (empty($user) || empty($pass)) {
             html_error("Username or password is empty, you need to insert your login detail!");
         }
         $page = $this->GetPage($this->posturl . "ajax/login.php?user=" . urlencode($user) . "&pass=" . urlencode($pass) . "", "lang=en", 0, $this->posturl . "\r\nX-Requested-With: XMLHttpRequest");
         $cookie = GetCookies($page) . "; lang=en";
         is_present($page, 'Your login informations are incorrect !');
     } elseif (strlen($auth) == 114) {
         $cookie = "auth={$auth}; lang=en";
     } else {
         html_error("[Cookie] Invalid cookie (" . strlen($auth) . " != 114).");
     }
     //check account
     $page = $this->GetPage($this->posturl . "account", $cookie, 0, $this->posturl);
     is_present($page, "<h3>403 - Forbidden</h3>", "Account invalid!");
     is_present($page, 'A dedicated server has been detected and your account will not be Premium on this IP address.');
     is_present($page, '<strong>Free</strong>', 'Account Free, login not validated!');
     return $cookie;
 }
开发者ID:laiello,项目名称:rapidleech36b,代码行数:29,代码来源:real_debrid_com.php

示例12: Download

 public function Download($link)
 {
     $page = $this->GetPage($link);
     is_present($page, "This file no longer exists", 'Video not found or it was deleted.');
     is_present($page, "The file is being transfered", 'Video is temporarily unavailable.');
     if ($stepkey = cut_str($page, '"stepkey" value="', '"')) {
         $post = array('stepkey' => $stepkey, 'submit' => 'submit');
         $cookie = GetCookiesArr($page);
         $page = $this->GetPage($link, $cookie, $post);
     }
     if (!preg_match('@<h4>\\s*([^"<>]+)\\s*</h4>@i', $page, $fname)) {
         html_error('Error: Video title not found.');
     }
     if (!preg_match('@flashvars.domain="([^"]+)";\\s+flashvars.file="([^"]+)";\\s+flashvars.filekey=(?:"([^"]+)"|([\\$_A-Za-z][\\$\\w]*))@', $page, $matches)) {
         html_error('Error: Download link not found.');
     }
     if (empty($matches[3])) {
         if (!preg_match('@var\\s+' . $matches[4] . '\\s*=\\s*"([^"]+)"\\s*;@i', $page, $fkey)) {
             html_error('FileKey not Found.');
         }
         $matches[3] = $fkey[1];
     }
     $url = $matches[1] . '/api/player.api.php?user=undefined&codes=1&file=' . $matches[2] . '&pass=undefined&key=' . urlencode($matches[3]);
     $page2 = $this->GetPage($url);
     if (!preg_match('@url=(http://[^&]+)@', $page2, $downl)) {
         html_error('Error: Download link not found.');
     }
     if (!preg_match('@\\.[^\\.]+$@i', basename($downl[1]), $ext)) {
         $ext = array('.flv');
     }
     $fname = preg_replace('@\\.(mp4|flv|mkv|webm|wmv|(m2)?ts|rm(vb)?|mpe?g?|vob|avi|[23]gp)$@i', '', str_replace(array("\\", "/", ":", "*", "?", "\"", "<", ">", "|"), "_", html_entity_decode(trim($fname[1])))) . $ext[0];
     $this->RedirectDownload($downl[1], $fname, 0, 0, 0, $fname);
 }
开发者ID:Transcodes,项目名称:rapidleech,代码行数:33,代码来源:nowvideo_sx.php

示例13: DownloadPremium

 public function DownloadPremium($link, $user, $pass)
 {
     $rootURL = 'http://www.uploadstation.com/';
     if (!preg_match('#http://(?:www\\.)?uploadstation.com/file/(.+)#i', $link)) {
         html_error("Invalid URL");
     } else {
         $login = array('loginFormSubmit' => 'Login', 'loginUserName' => $user, 'loginUserPassword' => $pass, 'autoLogin' => 'on');
         $page = $this->getPage("{$rootURL}login.php", 0, $login);
         $cookie = GetCookies($page);
         is_notpresent($cookie, "Cookie=", "Login error. Cookie not found.");
         $page = $this->GetPage("{$rootURL}dashboard.php", $cookie, 0, $rootURL);
         is_present($page, "acctype_free", "Error:Not Premium [0]");
         is_notpresent($page, "Expiry date: ", "Error:Not Premium [1]");
         $page = $this->GetPage($link, $cookie, array('download' => 'premium'));
         if (stristr($page, "HTTP/1.1 200 OK")) {
             $page = $this->GetPage($this->link, $cookie, array('download' => 'premium'));
         }
         if (preg_match('/Location: (http:\\/\\/d\\d+.uploadstation.com[^\\r\\n]+)/i', $page, $tmpDownload)) {
             $download_link = $tmpDownload[1];
         } else {
             is_present($page, "You are not able to download", "Error:Not Premium [2]");
         }
         $downloadElements = parse_url($download_link);
         $filename = urldecode(basename($downloadElements["path"]));
         $this->RedirectDownload($download_link, $filename, $cookie);
     }
 }
开发者ID:laiello,项目名称:rapidleech36b,代码行数:27,代码来源:uploadstation_com.php

示例14: Download

 public function Download($link)
 {
     $cookie = 'lang=english';
     $page = $this->GetPage($link, $cookie);
     is_present($page, 'The file you were looking for could not be found, sorry for any inconvenience.');
     $form = cut_str($page, '<form method="POST" action=\'\'>', '</form>');
     if (!preg_match_all('/type="hidden" name="([^"]+)" value="([^"]+)?"/', $form, $one) || !preg_match_all('/type="submit" name="(\\w+_free)" .* value="([^"]+)"/', $form, $two)) {
         html_error('Error[Form Post Data 1 not found!]');
     }
     $match = array_merge(array_combine($one[1], $one[2]), array_combine($two[1], $two[2]));
     $post = array();
     foreach ($match as $key => $value) {
         $post[$key] = $value;
     }
     $page = $this->GetPage($link, $cookie, $post, $link);
     $form = cut_str($page, '<Form name="F1" method="POST" action=""', '</Form>');
     if (!preg_match_all('/type="hidden" name="([^"]+)" value="([^"]+)?"/', $form, $match)) {
         html_error('Error[Post Data 2 not found!]');
     }
     $match = array_combine($match[1], $match[2]);
     $post = array();
     foreach ($match as $key => $value) {
         $post[$key] = $value;
     }
     $page = $this->GetPage($link, $cookie, $post, $link);
     if (!preg_match('/Location: (https?:\\/\\/[^\\r\\n]+)/i', $page, $dl)) {
         html_error('Error[Download Link not found!]');
     }
     $dlink = trim($dl[1]);
     $filename = basename(parse_url($dlink, PHP_URL_PATH));
     $this->RedirectDownload($dlink, $filename, $cookie);
 }
开发者ID:laiello,项目名称:rapidleech36b,代码行数:32,代码来源:filenuke_com.php

示例15: DownloadFree

 private function DownloadFree($link)
 {
     $post = array();
     $post['op'] = "download2";
     $post['id'] = $_POST['id'];
     $post['rand'] = $_POST['rand'];
     $post['referer'] = urldecode($_POST['referer']);
     $post['method_free'] = "Free Download";
     $post['method_premium'] = "";
     $post['code'] = $_POST['captcha'];
     $post['down_script'] = "1";
     $link = $_POST['link'];
     $page = $this->GetPage($link, 0, $post, $link);
     if (strpos($page, "Wrong captcha")) {
         return $this->Retrieve($link);
     }
     if (!stristr($page, "Location:")) {
         html_error("Sorry, download link couldn't be found. Contact the author n give the link which u have this error!");
     }
     $dlink = trim(cut_str($page, "Location: ", "\n"));
     $Url = parse_url($dlink);
     $FileName = basename($Url['path']);
     $this->RedirectDownload($dlink, $FileName, 0, 0, $link);
     exit;
 }
开发者ID:laiello,项目名称:rapidleech36b,代码行数:25,代码来源:filezup_com.php


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