• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP is_notpresent函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: Download

 public function Download($link)
 {
     global $premium_acc, $Referer;
     $page = $this->GetPage($link);
     is_present($page, "Removed", "The file has been removed or has been expired!");
     if (stristr($page, 'class="handlinkblocked"')) {
         $pass = $_REQUEST["premium_pass"] ? $_REQUEST["premium_pass"] : $premium_acc["fileflyer_com"]["pass"];
         if (empty($pass)) {
             html_error("This link required premium account!");
         }
         if (!preg_match('/<form name="form1" method="post" action="(.*)"/U', $page, $pre)) {
             html_error('Error: Premium link not found?');
         }
         $link = $pre[1];
         $post = array();
         $post['__EVENTTARGET'] = "";
         $post['__EVENTARGUMENT'] = "";
         $post['__VIEWSTATE'] = urlencode(cut_str($page, 'id="__VIEWSTATE" value="', '"'));
         $post['__EVENTVALIDATION'] = urlencode(cut_str($page, 'id="__EVENTVALIDATION" value="', '"'));
         $post['SMSButton'] = "Go";
         $post['Password'] = $pass;
         $post['TextBox1'] = "";
         $page = $this->GetPage($link, 0, $post, $Referer);
         is_notpresent($page, "Access enabled", "Invalid premium codes");
     }
     $cookie = GetCookies($page);
     if (!preg_match('@http:\\/\\/.+fileflyer\\.com\\/d\\/[^"]+@', $page, $dl)) {
         html_error('Error: Download link not found, plugin need to be updated!');
     }
     $dlink = trim($dl[0]);
     $filename = parse_url($dlink);
     $FileName = basename($filename['path']);
     $this->RedirectDownload($dlink, $FileName, $cookie, 0, $Referer);
     exit;
 }
开发者ID:sayedharounokpay,项目名称:LikesPlanet,代码行数:35,代码来源:fileflyer_com.php


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


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


示例4: DownloadPremium

 private function DownloadPremium($link)
 {
     global $premium_acc, $pauth, $Referer;
     // Getting file name
     $page = $this->GetPage($link, 0, 0, 0, $pauth);
     is_present($page, 'File was deleted');
     is_present($page, 'File not found');
     $FileName = trim(cut_str($page, "<title>Download ", ","));
     // Getting file name end
     // login
     $login = "http://www.easy-share.com/accounts/login";
     $post["login"] = $_REQUEST["premium_user"] ? $_REQUEST["premium_user"] : $premium_acc["easyshare"]["user"];
     $post["password"] = $_REQUEST["premium_pass"] ? $_REQUEST["premium_pass"] : $premium_acc["easyshare"]["pass"];
     $post["remember"] = "1";
     $page = $this->GetPage($login, 0, $post, "http://www.easy-share.com/", $pauth);
     $cook = GetCookies($page);
     // end login
     is_notpresent($cook, "PREMIUM", "Login failed<br>Wrong login/password?");
     $page = $this->GetPage($link, $cook, 0, 0, $pauth);
     is_present($page, 'File was deleted');
     is_present($page, 'File not found');
     if (!isset($FileName) || $FileName == "") {
         $Url = parse_url($link);
         $FileName = !$FileName ? basename($Url["path"]) : $FileName;
     }
     preg_match('/Location:.+?\\r/i', $page, $loca);
     $redir = rtrim($loca[0]);
     preg_match('/http:.+/i', $redir, $loca);
     $Href = trim($loca[0]);
     $cookie = $cook . "; " . $this->BiscottiDiKaox($page);
     $this->RedirectDownload($Href, $FileName, $cookie, 0, $Referer, 0, $pauth);
     exit;
 }
开发者ID:mewtutorial,项目名称:rapidleech-ultimate,代码行数:33,代码来源:easy_share_com.php


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


示例6: FreeDL

 private function FreeDL($link)
 {
     if (!empty($_POST['step']) && $_POST['step'] == 1) {
         if (empty($_POST['captcha'])) {
             html_error('You didn\'t enter the image verification code.');
         }
         $this->cookie = !empty($_POST['cookie']) ? StrToCookies(decrypt(urldecode($_POST['cookie']))) : array();
         $this->cookie['lang'] = 'english';
         $post = array('recaptcha_challenge_field' => $_POST['challenge'], 'recaptcha_response_field' => $_POST['captcha']);
         $post['op'] = $_POST['T8']['op'];
         $post['id'] = $_POST['T8']['id'];
         $post['rand'] = $_POST['T8']['rand'];
         $post['referer'] = '';
         $post['method_free'] = $_POST['T8']['method_free'];
         $post['down_script'] = 1;
         $page = $this->GetPage($link, $this->cookie, $post);
         is_present($page, '>Skipped countdown', 'Error: Skipped countdown?.');
         is_present($page, '>Wrong captcha<', 'Error: Wrong Captcha Entered.');
         if (preg_match('@You can download files up to \\d+ [KMG]b only.@i', $page, $err)) {
             html_error('Error: ' . $err[0]);
         }
         if (!preg_match('@https?://[^/\\r\\n\\:]+(?:\\:\\d+)?/(?:(?:files)|(?:dl?))/[^\'\\"\\t<>\\r\\n]+@i', $page, $dlink)) {
             html_error('Error: Download link not found.');
         }
         $FileName = urldecode(basename(parse_url($dlink[0], PHP_URL_PATH)));
         $this->RedirectDownload($dlink[0], $FileName);
     } else {
         $page2 = cut_str($this->page, 'Form method="POST" action=', '</form>');
         //Cutting page
         $post = array();
         $post['op'] = cut_str($page2, 'name="op" value="', '"');
         $post['usr_login'] = empty($this->cookie['xfss']) ? '' : $this->cookie['xfss'];
         $post['id'] = cut_str($page2, 'name="id" value="', '"');
         $post['fname'] = cut_str($page2, 'name="fname" value="', '"');
         $post['referer'] = '';
         $post['method_free'] = urlencode(html_entity_decode(cut_str($page2, 'name="method_free" value="', '"')));
         $page = $this->GetPage($link, $this->cookie, $post);
         if (preg_match('@You have to wait (?:\\d+ \\w+,\\s)?\\d+ \\w+ till next download@', $page, $err)) {
             html_error('Error: ' . $err[0]);
         }
         $page2 = cut_str($page, '<form name="F1" method="POST"', '</form>');
         //Cutting page
         if (!preg_match('@https?://(?:[^/]+\\.)?(?:(?:google\\.com/recaptcha/api)|(?:recaptcha\\.net))/(?:(?:challenge)|(?:noscript))\\?k=([\\w\\.\\-]+)@i', $page, $pid)) {
             html_error('Error: reCAPTCHA not found.');
         }
         if (!preg_match('@<div id="countdown_str"[^>]*>[^<>]+<p>[^<>]*<h2[^>]*>(\\d+)</h2>[^<>]+</p>[^<>]+</div>@i', $page2, $count)) {
             html_error('Countdown not found.');
         }
         $this->CountDown($count[1]);
         $data = $this->DefaultParamArr($link, empty($this->cookie['xfss']) ? 0 : encrypt(CookiesToStr($this->cookie)));
         $data['T8[op]'] = cut_str($page2, 'name="op" value="', '"');
         is_notpresent($data['T8[op]'], 'download', 'Error parsing download post data (2).');
         $data['T8[id]'] = cut_str($page2, 'name="id" value="', '"');
         $data['T8[rand]'] = cut_str($page2, 'name="rand" value="', '"');
         $data['T8[method_free]'] = urlencode(html_entity_decode(cut_str($page2, 'name="method_free" value="', '"')));
         $data['step'] = 1;
         $this->DL_reCaptcha($pid[1], $data);
     }
 }
开发者ID:SheppeR,项目名称:rapidleech,代码行数:59,代码来源:ddlstorage_com.php


示例7: Download

 public function Download($link)
 {
     $page = $this->GetPage($link);
     $cookie = GetCookies($page);
     is_notpresent($cookie, 'PHPSESSID', 'File not found!');
     if (!preg_match('/(\\d+)<\\/span> Seconds/', $page, $w)) {
         html_error('Error[Timer not found!]');
     }
     $this->CountDown($w[1]);
     $page = $this->GetPage($link, $cookie, array('Submit.x' => rand(0, 51), 'Submit.y' => rand(0, 13)), $link);
     if (!preg_match('/location: (http:\\/\\/[^\\r\\n]+)/i', $page, $dl)) {
         html_error('Error[Download link not found!]');
     }
     $dlink = trim($dl[1]);
     $this->RedirectDownload($dlink, "sharenow", $cookie, $link);
 }
开发者ID:sayedharounokpay,项目名称:LikesPlanet,代码行数:16,代码来源:share_now_net.php


示例8: Download

 public function Download($link)
 {
     if ($_REQUEST['step'] == 'Captcha') {
         $post['captcha_key'] = $_POST['captcha_key'];
         $post['captcha'] = $_POST['captcha'];
         $post['download'] = 'Download';
         $link = urldecode($_POST['link']);
         $cookie = urldecode($_POST['cookie']);
         $page = $this->GetPage($link, $cookie, $post, $link);
     } else {
         $page = $this->GetPage($link, array('lang' => 'us'));
         is_present($page, 'Attention! This file has been deleted from our server by user who uploaded it on the server.');
         is_notpresent($page, '<h1>Download file</h1>', 'Download file is not available for ur server area!');
         $cookie = GetCookiesArr($page, array('lang' => 'us'));
         if (!preg_match('/(\\d+)<\\/b> second/', $page, $wait)) {
             html_error('Error[Timer not found!]');
         }
         $this->CountDown($wait[1]);
         $time = time();
         $data = $this->DefaultParamArr($link, $cookie);
         $data['step'] = 'Captcha';
         $data['captcha_key'] = $time;
         // get the captcha
         $cap = $this->GetPage('http://gigapeta.com/img/captcha.gif?x=' . $time, $cookie);
         $capt_img = substr($cap, strpos($cap, "\r\n\r\n") + 4);
         $imgfile = DOWNLOAD_DIR . "gigapeta_captcha.gif";
         if (file_exists($imgfile)) {
             unlink($imgfile);
         }
         if (!write_file($imgfile, $capt_img)) {
             html_error("Error getting CAPTCHA image.");
         }
         $this->EnterCaptcha($imgfile, $data, 20);
         exit;
     }
     is_present($page, 'Entered figures don&#96;t coincide with the picture', 'You entered a wrong CAPTCHA code. Please try again.');
     if (!preg_match('/Location: (http:\\/\\/[a-z0-9]+\\.gigapeta\\.com\\/download[^|\\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, 0, $link);
     exit;
 }
开发者ID:SheppeR,项目名称:rapidleech,代码行数:44,代码来源:gigapeta_com.php


示例9: Download

 public function Download($link)
 {
     global $premium_acc;
     $this->link = str_ireplace(array('://putlocker.com/', '://sockshare.com/', '/mobile/file/'), array('://www.putlocker.com/', '://www.sockshare.com/', '/file/'), $link);
     $this->domain = parse_url($this->link, PHP_URL_HOST);
     $this->Getregexp = '@(https?://(?:[^/\\r\\n\\t\\s\'\\"<>]+\\.)?(?:putlocker|sockshare)\\.com)?/get_file\\.php\\?(?:(?:id)|(?:file)|(stream))=[^\\r\\n\\t\\s\'\\"<>]+@i';
     $this->DLregexp = '@Location: (https?://(?:(?:[^/\\r\\n]+/(?:(?:download)|(?:premium)))|(?:cdn\\.[^/\\r\\n]+))/[^\\r\\n]*)@i';
     $this->pA = empty($_REQUEST['premium_user']) || empty($_REQUEST['premium_pass']) ? false : true;
     if (empty($_REQUEST['step'])) {
         $this->page = $this->GetPage($this->link);
         is_present($this->page, '/?404', 'The requested file is not found');
         $this->cookie = GetCookiesArr($this->page);
     } else {
         $this->cookie = array();
     }
     $_REQUEST['cookieuse'] = isset($_REQUEST['cookieuse']) && $_REQUEST['cookieuse'] == 'on' && !empty($_REQUEST['cookie']) ? 'on' : false;
     if ($_REQUEST['cookieuse'] == 'on' && !empty($_POST['cookie_encrypted'])) {
         $_REQUEST['cookie'] = decrypt(urldecode($_REQUEST['cookie']));
         unset($_POST['cookie_encrypted']);
     }
     if ($_REQUEST['cookieuse'] == 'on' && preg_match('@auth[\\s\\t]*=[\\s\\t]*([\\w\\%\\-]+);?@i', $_REQUEST['cookie'], $c) || $_REQUEST['premium_acc'] == 'on' && !empty($premium_acc['putlocker_com']['cookie'])) {
         $cookie = empty($c[1]) ? urldecode($premium_acc['putlocker_com']['cookie']) : urldecode($c[1]);
         if (strpos($cookie, '%')) {
             $cookie = urldecode($cookie);
         }
         $this->cookie = array('auth' => urlencode($cookie));
         $page = $this->GetPage('http://' . $this->domain . '/', $this->cookie);
         is_notpresent($page, '>Sign Out</a>', 'Cookie Error: Invalid Cookie?.');
         is_present($page, '>( Free )<', 'Cookie Error: Account isn\'t premium');
         $this->cookie = GetCookiesArr($page, $this->cookie);
         return $this->PremiumDL(!empty($c[1]));
     } elseif ($_REQUEST['premium_acc'] == 'on' && ($this->pA || !empty($premium_acc['putlocker_com']['user']) && !empty($premium_acc['putlocker_com']['pass']))) {
         $user = $this->pA ? $_REQUEST['premium_user'] : $premium_acc['putlocker_com']['user'];
         $pass = $this->pA ? $_REQUEST['premium_pass'] : $premium_acc['putlocker_com']['pass'];
         if ($this->pA && !empty($_POST['pA_encrypted'])) {
             $user = decrypt(urldecode($user));
             $pass = decrypt(urldecode($pass));
             unset($_POST['pA_encrypted']);
         }
         return $this->CookieLogin($user, $pass);
     } else {
         return $this->FreeDL();
     }
 }
开发者ID:sayedharounokpay,项目名称:LikesPlanet,代码行数:44,代码来源:putlocker_com.php


示例10: login

 private function login()
 {
     global $premium_acc;
     $user = $_REQUEST["premium_user"] ? trim($_REQUEST["premium_user"]) : $premium_acc["nowvideo_eu"]["user"];
     $pass = $_REQUEST["premium_pass"] ? trim($_REQUEST["premium_pass"]) : $premium_acc["nowvideo_eu"]["pass"];
     if (empty($user) || empty($pass)) {
         html_error("Login failed, username or password is empty!");
     }
     $posturl = 'http://www.nowvideo.eu/';
     $post['user'] = $user;
     $post['pass'] = $pass;
     $post['register'] = 'Login';
     $page = $this->GetPage($posturl . 'login.php?return=', 0, $post, $posturl . 'login.php');
     $cookie = GetCookies($page);
     is_present($cookie, 'user=deleted', 'Error[Invalid login details]');
     $page = $this->GetPage($posturl . 'premium.php', $cookie);
     is_notpresent($page, 'Your premium membership expires on', 'Account isn\'t premium?');
     return $cookie;
 }
开发者ID:SheppeR,项目名称:rapidleech,代码行数:19,代码来源:nowvideo_eu.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: login

 private function login()
 {
     global $premium_acc;
     $user = $_REQUEST["premium_user"] ? trim($_REQUEST["premium_user"]) : $premium_acc["datafile_com"]["user"];
     $pass = $_REQUEST["premium_pass"] ? trim($_REQUEST["premium_pass"]) : $premium_acc["datafile_com"]["pass"];
     if (empty($user) || empty($pass)) {
         html_error("Login failed, username or password is empty!");
     }
     $post = array();
     $post['login'] = $user;
     $post['password'] = $pass;
     $post['remember_me'] = 0;
     $post['remember_me'] = 1;
     $post['btn'] = '';
     $page = $this->GetPage($this->posturl . '/login.html', $this->cookie, $post, $this->posturl . '/login.html');
     $cookie = GetCookiesArr($page, $this->cookie);
     is_present($page, 'Incorrect login or password!');
     //check account
     $page = $this->GetPage($this->posturl . '/profile.html', $cookie, 0, $this->posturl . '/index.html');
     is_notpresent($page, 'Premium Expires', 'Account isn\'t Premium?');
     return $cookie;
 }
开发者ID:sayedharounokpay,项目名称:LikesPlanet,代码行数:22,代码来源:datafile_com.php


示例13: login

 private function login()
 {
     global $premium_acc;
     $user = $_REQUEST["premium_user"] ? trim($_REQUEST["premium_user"]) : $premium_acc["upstore_net"]["user"];
     $password = $_REQUEST["premium_pass"] ? trim($_REQUEST["premium_pass"]) : $premium_acc["upstore_net"]["pass"];
     if (empty($user) || empty($password)) {
         html_error("Login failed, username or password is empty!");
     }
     $posturl = 'http://upstore.net/';
     $post = array();
     $post['url'] = urlencode($posturl);
     $post['email'] = $user;
     $post['password'] = $password;
     $post['send'] = 'Login';
     $page = $this->GetPage($posturl . 'account/login/', $this->cookie, $post, $posturl);
     is_present($page, 'Wrong email or password.');
     $cookie = GetCookiesArr($page, $this->cookie);
     //account check
     $page = $this->GetPage($posturl . 'account', $cookie, 0, $posturl);
     is_notpresent($page, 'premium till', 'Account isn\'t premium?');
     return $cookie;
 }
开发者ID:sayedharounokpay,项目名称:LikesPlanet,代码行数:22,代码来源:upstore_net.php


示例14: Login

 private function Login()
 {
     global $premium_acc;
     $site = 'http://www.sendspace.com';
     $post = array();
     $post['action'] = 'login';
     $post['submit'] = 'login';
     $post['target'] = '%252F';
     $post['action_type'] = 'login';
     $post['remember'] = '1';
     $post['username'] = urlencode($this->pA ? $_GET['premium_user'] : $premium_acc['sendspace_com']['user']);
     $post['password'] = urlencode($this->pA ? $_GET['premium_pass'] : $premium_acc['sendspace_com']['pass']);
     $post['remember'] = 'on';
     $page = $this->GetPage("{$site}/login.html", 0, $post, "{$site}/");
     is_present($page, 'check your username and password', 'Login Failed: Invalid User/Password.');
     $this->cookie = GetCookiesArr($page);
     if (empty($this->cookie['ssal'])) {
         html_error('Login Error: Cannot find "ssal" cookie.');
     }
     $page = $this->GetPage("{$site}/mysendspace/myindex.html", $this->cookie, 0, "{$site}/");
     is_notpresent($page, 'Your account needs to be renewed in', 'Login Failed: Account Isn\'t Premium.');
     $this->Premium();
 }
开发者ID:sayedharounokpay,项目名称:LikesPlanet,代码行数:23,代码来源:sendspace_com.php


示例15: Login

 private function Login($pA = false)
 {
     global $premium_acc;
     $user = $pA ? $_REQUEST["premium_user"] : $premium_acc["filejungle_com"]["user"];
     $pass = $pA ? $_REQUEST["premium_pass"] : $premium_acc["filejungle_com"]["pass"];
     if (empty($user) || empty($pass)) {
         html_error("Login Failed: Username or Password is empty!");
     }
     $posturl = "http://filejungle.com/";
     $post['autoLogin'] = 'on';
     $post['loginUserName'] = $user;
     $post['loginUserPassword'] = $pass;
     $post['loginFormSubmit'] = 'Login';
     $page = $this->GetPage($posturl . "login.php", 0, $post, $posturl);
     is_present($page, "The length of user name should be larger than or equal to 6");
     is_present($page, "Username doesn't exist.");
     is_present($page, "Wrong password.");
     $cookie = GetCookies($page);
     is_notpresent($cookie, "cookie=", "Login error. Problem with cookie cache?");
     $page = $this->GetPage($posturl . 'dashboard.php', $cookie, 0, $posturl);
     is_present($page, "FREE<span>", "Account Free! What do you expect from that?");
     return $cookie;
 }
开发者ID:sayedharounokpay,项目名称:LikesPlanet,代码行数:23,代码来源:filejungle_com.php


示例16: login

 private function login()
 {
     global $premium_acc;
     $user = $_REQUEST["premium_user"] ? trim($_REQUEST["premium_user"]) : $premium_acc["ex-load_com"]["user"];
     $pass = $_REQUEST["premium_pass"] ? trim($_REQUEST["premium_pass"]) : $premium_acc["ex-load_com"]["pass"];
     if (empty($user) || empty($pass)) {
         html_error("Login failed, username or password is empty!");
     }
     $posturl = 'http://ex-load.com/';
     $post = array();
     $post['op'] = 'login';
     $post['redirect'] = '';
     $post['login'] = $user;
     $post['password'] = $pass;
     $post['x'] = rand(11, 41);
     $post['y'] = rand(11, 23);
     $page = $this->GetPage($posturl, $this->cookie, $post, $posturl);
     is_present($page, 'Incorrect Login or Password');
     $cookie = GetCookiesArr($page, $this->cookie);
     //check account
     $page = $this->GetPage($posturl . '?op=my_account', $cookie, 0, $posturl);
     is_notpresent($page, 'Premium account expire', 'Account isn\'t Premium?');
     return $cookie;
 }
开发者ID:sayedharounokpay,项目名称:LikesPlanet,代码行数:24,代码来源:ex_load_com.php


示例17: DownloadPremium

 private function DownloadPremium($link)
 {
     global $premium_acc;
     $post = array();
     $post['httpref'] = "";
     $post['mymslogin_name'] = $_REQUEST["premium_user"] ? $_REQUEST["premium_user"] : $premium_acc["megashares_com"]["user"];
     $post['mymspassword'] = $_REQUEST["premium_pass"] ? $_REQUEST["premium_pass"] : $premium_acc["megashares_com"]["pass"];
     $post['myms_login'] = "Login";
     $page = $this->GetPage("http://d01.megashares.com/myms_login.php", 0, $post);
     $Cookies = GetCookies($page);
     is_notpresent($Cookies, "myms", "Login Failed");
     $page = $this->GetPage($link, $Cookies, 0, $link);
     if (preg_match("#Location: (.+)#", $page, $match)) {
         $page = $this->GetPage(trim($match[1]), $Cookies, 0, $link);
         $link = $match[1];
     }
     is_present($page, "Link was removed due to violation of our TOS", "Link is not invalid");
     $Cookies .= "; " . GetCookies($page);
     if (!preg_match('#http://webprod\\d+.\\w+.\\w+[^"]+#', $page, $dlink)) {
         html_error("Error: Plugin is out of date or Account is expired");
     }
     $this->RedirectDownload($dlink[0], "megashares", $Cookies, 0, $link);
     exit;
 }
开发者ID:SheppeR,项目名称:rapidleech,代码行数:24,代码来源:megashares_com.php


示例18: login

 private function login()
 {
     global $premium_acc;
     $user = $_REQUEST["premium_user"] ? trim($_REQUEST["premium_user"]) : $premium_acc["speedshare_eu"]["user"];
     $pass = $_REQUEST["premium_pass"] ? trim($_REQUEST["premium_pass"]) : $premium_acc["speedshare_eu"]["pass"];
     if (empty($user) || empty($pass)) {
         html_error("Login failed, username[{$user}] or password[{$pass}] is empty!");
     }
     $posturl = 'http://speedshare.eu/';
     $post = array();
     $post['op'] = 'login';
     $post['redirect'] = $posturl;
     $post['login'] = $user;
     $post['password'] = $pass;
     $post['x'] = rand(11, 45);
     $post['y'] = rand(1, 8);
     $page = $this->GetPage($posturl, $this->cookie, $post, $posturl . 'login.html');
     is_present($page, cut_str($page, "<b class='err'>", '</b>'));
     $cookie = GetCookiesArr($page, $this->cookie);
     //check account
     $page = $this->GetPage($posturl . '?op=my_account', $cookie, 0, $posturl);
     is_notpresent($page, '<TD>Premium account expire:</TD>', 'Account isn\'t premium?');
     return $cookie;
 }
开发者ID:laiello,项目名称:rapidleech36b,代码行数:24,代码来源:speedshare_eu.php


示例19: Login

 private function Login($user, $pass)
 {
     $purl = 'https://' . $this->domain . '/';
     $post = array();
     $post['mail'] = urlencode($user);
     $post['pass'] = urlencode($pass);
     $post['lt'] = 'on';
     $post['restrict'] = 'on';
     $post['valider'] = 'Send';
     $page = $this->GetPage($purl . 'login.pl', $this->cookie, $post, $purl);
     $this->cookie = GetCookiesArr($page, $this->cookie);
     is_present($page, 'Invalid email address');
     is_present($page, 'Invalid username or password', 'Login Failed: Email/Password incorrect.');
     $page = $this->GetPage($purl, $this->cookie, 0, $purl . 'login.pl');
     is_notpresent($page, 'logout.pl">Logout', 'Login Error.');
     if (stripos($page, 'https://img.1fichier.com/icons/etoile.png') === false) {
         $this->changeMesg(lang(300) . '<br /><b>Account isn\\\'t premium</b><br />Using it as member.');
         $this->page = $this->GetPage($this->link, $this->cookie);
         $this->cookie = GetCookiesArr($this->page, $this->cookie);
         return $this->FreeDL();
     }
     return $this->PremiumDL();
 }
开发者ID:Transcodes,项目名称:rapidleech,代码行数:23,代码来源:1fichier_com.php


示例20: FreeDL

 private function FreeDL()
 {
     $purl = 'http://' . $this->domain . '/';
     if (!empty($_POST['step']) && $_POST['step'] == 1) {
         if (empty($_POST['recaptcha_response_field'])) {
             html_error('You didn\'t enter the image verification code.');
         }
         $this->cookie = StrToCookies(decrypt(urldecode($_POST['cookie'])));
         if (empty($_POST['fid'])) {
             html_error('FileID not found after POST.');
         }
         $query = array('fid' => $_POST['fid'], 'challenge' => $_POST['recaptcha_challenge_field'], 'response' => $_POST['recaptcha_response_field']);
         $page = $this->GetPage($purl . 'get_file.php?' . http_build_query($query), $this->cookie);
         is_present($page, 'load_recaptcha()', 'Error: Wrong CAPTCHA entered.');
         if (!preg_match($this->DLregexp, $page, $dlink)) {
             html_error('Download link Not Found.');
         }
         $this->RedirectDownload($dlink[0], basename(urldecode(parse_url($dlink[0], PHP_URL_PATH))));
     } else {
         $page = $this->GetPage($this->link, $this->cookie, array('gateway_result' => '1'));
         is_present($page, 'This file does not exist', 'The requested file is not found');
         $this->cookie = GetCookiesArr($this->page, $this->cookie);
         if ($this->TryFreeDLTricks) {
             $this->Mesg = lang(300);
         }
         if (stripos($page, 'Connection limit has been exhausted for your IP address!') !== false) {
             if (preg_match('@<span class="html_download_api-limit_interval">[\\s\\t\\r\\n]*(\\d+)[\\s\\t\\r\\n]*</span>@i', $page, $limit)) {
                 $x = 0;
                 if ($this->TryFreeDLTricks && $limit[1] > 45) {
                     while ($x < 3) {
                         $page = $this->GetPage($purl . 'get_file.php?fd=clearlimit', $this->cookie);
                         if (($fd2 = cut_str($page, 'name="fd2" value="', '"')) == false) {
                             break;
                         }
                         insert_timer(30, 'Trying to reduce ip-limit waiting time.');
                         $page = $this->GetPage($purl . 'get_file.php?fd2=' . urlencode($fd2), $this->cookie);
                         $page = $this->GetPage($this->link, $this->cookie, array('gateway_result' => '1'));
                         if (!preg_match('@<span class="html_download_api-limit_interval">[\\s\\t\\r\\n]*(\\d+)[\\s\\t\\r\\n]*</span>@i', $page, $_limit)) {
                             $this->Mesg .= '<br /><br />Skipped the remaining ' . ($limit[1] - 30) . ' secs of ip-limit wait time.';
                             $this->changeMesg($this->Mesg);
                             $limit[1] = 0;
                             break;
                         }
                         $diff = $limit[1] - 30 - $_limit[1];
                         $limit[1] = $_limit[1];
                         $this->Mesg .= "<br /><br />Skipped {$diff} secs of ip-limit wait time.";
                         $this->changeMesg($this->Mesg);
                         if ($diff < 1) {
                             break;
                         }
                         // Error?
                         $x++;
                     }
                 }
                 if ($limit[1] > 0) {
                     return $this->JSCountdown($limit[1], $this->DefaultParamArr($this->link), 'Connection limit has been exhausted for your IP address');
                 }
             } else {
                 html_error('Connection limit has been exhausted for your IP address. Please try again later.');
             }
         }
         if (!preg_match('@var[\\s\\t]+fid[\\s\\t]*=[\\s\\t]*\'(\\w+)\'@i', $page, $fid)) {
             html_error('FileID not found.');
         }
         if (!preg_match('@Recaptcha\\.create[\\s\\t]*\\([\\s\\t]*[\'\\"]([\\w\\-]+)[\'\\"]@i', $page, $cpid)) {
             html_error('reCAPTCHA Not Found.');
         }
         if (!preg_match('@setTimeout\\(\'load_form\\(fid, msg\\)\',[\\s\\t]*(\\d+)([\\s\\t]*\\*[\\s\\t]*1000)?[\\s\\t]*\\);@i', $page, $cd)) {
             html_error('Countdown not found.');
         }
         $cd = empty($cd[2]) ? $cd[1] / 1000 : $cd[1];
         if ($cd > 0) {
             $this->CountDown($cd);
         }
         if ($this->TryFreeDLTricks) {
             $page = $this->GetPage($purl . 'get_file.php?fd2=' . urlencode($fid[1]), $this->cookie);
             if (preg_match($this->DLregexp, $page, $dlink)) {
                 return $this->RedirectDownload($dlink[0], basename(urldecode(parse_url($dlink[0], PHP_URL_PATH))));
             }
             $this->Mesg .= '<br /><br /><b>Cannot skip captcha.</b>';
             $this->changeMesg($this->Mesg);
         }
         $page = $this->GetPage($purl . 'get_file.php?fid=' . urlencode($fid[1]), $this->cookie);
         is_notpresent($page, 'load_recaptcha()', 'Error: Countdown skipped?.');
         $data = $this->DefaultParamArr($this->link, encrypt(CookiesToStr($this->cookie)));
         $data['step'] = '1';
         $data['fid'] = urlencode($fid[1]);
         $this->Show_reCaptcha($cpid[1], $data);
     }
 }
开发者ID:sayedharounokpay,项目名称:LikesPlanet,代码行数:90,代码来源:depositfiles_com.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP is_npc函数代码示例发布时间:2022-05-15
下一篇:
PHP is_not_null函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap