| \n Login to $domain \n";
$cookie = array();
if (!empty($_REQUEST['up_login']) && !empty($_REQUEST['up_pass'])) {
if (!empty($_REQUEST['A_encrypted'])) {
$_REQUEST['up_login'] = decrypt(urldecode($_REQUEST['up_login']));
$_REQUEST['up_pass'] = decrypt(urldecode($_REQUEST['up_pass']));
unset($_REQUEST['A_encrypted']);
}
CookieLogin($_REQUEST['up_login'], $_REQUEST['up_pass']);
$login = true;
} else html_error('Login failed: User/Password empty.');
// Retrive upload ID
echo "\nRetrieving upload ID \n";
$page = geturl('up.fshare.vn', 80, '/index.php?keepThis=false&', $referer, $cookie, 0, 0, $_GET['proxy'], $pauth);is_page($page);
$cookie = GetCookiesArr($page, $cookie);
if (!preg_match('@upload_url\s*:\s*"((https?://(?:\w+\.)*fshare\.vn)?(/)?[^\s\'\"<>]+)",@i', $page, $up)) html_error('Error: Upload url not found.');
if (!preg_match('@\{"SESSID"\s*:\s*"(\w+)"@i', $page, $sid)) html_error('Error: Upload session not found.');
$post = array();
$post['Filename'] = $lname;
$post['folder_id'] = '-1';
$post['direct_link'] = $post['secure'] = 'null';
$post['desc'] = 'Uploaded with Rapidleech.';
$post['SESSID'] = $sid[1];
$post['Upload'] = 'Submit Query';
$up_url = (empty($up[2]) ? 'http://up.fshare.vn'.(empty($up[3]) ? '/' : '').$up[1] : $up[1]);
// Uploading
echo "\n";
$url = parse_url($up_url);
$upfiles = upfile($url['host'], defport($url), $url['path'].(!empty($url['query']) ? '?'.$url['query'] : ''), 0, 0, $post, $lfile, $lname, 'fileupload', '', 0, 0, 'Shockwave Flash', $url['scheme']);
// Upload Finished
echo "\n";
is_page($upfiles);
if (!preg_match('@https?://(?:www\.)?fshare\.vn/file/\w+/?@i', $upfiles, $lnk)) html_error('Download link not found.', 0);
$download_link = $lnk[0];
}
// Edited For upload.php usage.
function EnterCaptcha($captchaImg, $inputs, $captchaSize = '5') {
echo "\n\n |