| \n Login to zippyshare.com \n";
$cookie = array('ziplocale' => 'en');
if (!empty($_REQUEST['up_login']) && !empty($_REQUEST['up_pass'])) {
$post = array();
$post['login'] = $_REQUEST['up_login'];
$post['pass'] = $_REQUEST['up_pass'];
$post['remember'] = 'on';
$page = geturl($domain, 443, '/services/login', $referer, $cookie, $post, 0, $_GET['proxy'], $pauth, 0, 'https');is_page($page);
is_present($page, '?invalid=1', 'Login failed: User/Password incorrect.');
$cookie = GetCookiesArr($page, $cookie);
if (empty($cookie['zipname']) && empty($cookie['ziphash'])) html_error('Error: Login cookies not found.');
$login = true;
} else {
echo "Retrive upload ID \n";
$page = geturl($domain, 443, '/', $referer, $cookie, 0, 0, $_GET['proxy'], $pauth, 0, 'https');is_page($page);
if (!preg_match('@(?<=//|\')www\d+(?=\.zippyshare\.com/upload|\';)@i', $page, $up)) html_error('Error: Cannot find upload server.');
$post = array();
$post['name'] = $lname;
if ($login) {
$post['zipname'] = $cookie['zipname'];
$post['ziphash'] = $cookie['ziphash'];
}
$post['embPlayerValues'] = (!empty($cookie['embed-player-values']) ? $cookie['embed-player-values'] : 'false');
if (!empty($_REQUEST['up_private'])) $post['private'] = 'true';
else $post['notprivate'] = 'true';
$up_url = sprintf('https://%s.zippyshare.com/upload', $up[0]);
// Uploading
echo "\n";
$url = parse_url($up_url);
$upfiles = upfile($url['host'], defport($url), $url['path'].(!empty($url['query']) ? '?'.$url['query'] : ''), $referer, $cookie, $post, $lfile, $lname, 'Filedata', '', $_GET['proxy'], $pauth, 0, $url['scheme']);
// Upload Finished
echo "\n";
is_page($upfiles);
if (preg_match('@https?://www\d*\.zippyshare\.com/v/\w+/file\.html@i', $upfiles, $link)) $download_link = $link[0];
else html_error('Download link not found.');
}
//[17-5-2013] Written by Th3-822.
//[28-9-2014] Added private upload option. - Th3-822
//[11-1-2015] Fixed upload & Link regexp. (Happy new year) - Th3-822
//[24-6-2018] Switched to https & small changes. - Th3-822 |