Using Default Login.
\n"; } if (!empty($_REQUEST['action']) && $_REQUEST['action'] == 'FORM') $continue_up = true; else { echo "\n"; echo "\r\n"; echo "\n"; echo "\n"; echo "\n
 User* 
 Password* 

Upload options *
  Set as Private Upload

*You can set it as default in ".basename(__FILE__)."
\n"; } if ($continue_up) { $not_done = false; $domain = 'zippyshare.com'; $referer = "https://$domain/"; // Login echo "\n
\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 "
Login not found or empty, using non member upload.
\n"; $login = false; } // Retrieve upload ID echo "\n
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