本文整理汇总了PHP中is_notpresent函数的典型用法代码示例。如果您正苦于以下问题:PHP is_notpresent函数的具体用法?PHP is_notpresent怎么用?PHP is_notpresent使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了is_notpresent函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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);
}
}
示例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 »');
$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;
}
示例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;
}
示例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);
}
}
示例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);
}
}
示例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);
}
示例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`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;
}
示例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();
}
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}
示例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;
}