$audl_sect = false; $buflinks = $_POST['url']; if (getParam('|_curl', $buflinks) == 'on') { $fgc = 0; // use cURL mode ON } //locate section if (getParam('|_section', $buflinks) == 'audl') { $audl_sect = true; } if (!$audl_sect) { $lnk_timer = new timer(); $lnk_timer->timer(); } $valLink = getParam('|_url', $buflinks); $buflinks = urlcleaner(utf8_strrev(base64_decode($valLink))); $alllinks = array(); $alllinks = explode(" ", $buflinks); $alllinks = implode(";", $buflinks); $alllinks = explode(";", trim($buflinks)); //$alllinks = implode("\n", $buflinks); $l = 1; $x = 1; //$alllinks = array_unique($alllinks); //removes duplicates if (!count($alllinks)) { die('<p><br /><span style="color:red; background-color:#fec; padding:3px; border:2px solid #FFaa00"><b>Not LINK</b></span><br />'); } echo "<result>"; foreach ($alllinks as $link) { if (empty($link)) { continue;
} // T-8: Check this. } $Url = parse_url($LINK); $Url['path'] = empty($Url['path']) ? '/' : str_replace('%2F', '/', rawurlencode(rawurldecode($Url['path']))); $LINK = rebuild_url($Url); if (empty($_GET['referer'])) { $Referer = $Url; // Remove login from Referer unset($Referer['user'], $Referer['pass']); $Referer = rebuild_url($Referer); } else { $Referer = trim(rawurldecode($_GET['referer'])); } if ($Url['scheme'] != 'http' && $Url['scheme'] != 'https' && $Url['scheme'] != 'ftp') { $LINK = urlcleaner(utf8_strrev(base64_decode($LINK))); $Url = parse_url($LINK); if ($Url['scheme'] != 'http' && $Url['scheme'] != 'https' && $Url['scheme'] != 'ftp') { html_error($L->say['url_unknown']); } } if (empty($Url['user']) xor empty($Url['pass'])) { unset($Url['user'], $Url['pass']); $LINK = rebuild_url($Url); } if (isset($_GET['user_pass']) && $_GET['user_pass'] == 'on' && !empty($_GET['iuser']) && !empty($_GET['ipass'])) { $Url['user'] = $_GET['iuser']; $Url['pass'] = $_GET['ipass']; // Rebuild url $LINK = rebuild_url($Url); }
$getlinks = array_values($getlinks); if (!count($getlinks) || htmlentities(trim($_POST["links"])) == "") { echo '<script type="text/javascript">function gotoback(){au=d.location.href; au=au.substring(0, au.indexOf("?")); d.location.href=au;}</script>'; die('<br/><br/><span style="color:red; background-color:#fec; padding:3px; border:2px solid #FFaa00"><b>' . $L->say['not_link'] . '</b></span><br />' . '<script type="text/javascript">setTimeout("gotoback()", 1500);</script>'); } if ($options['audl'] > 0) { // if there's a limitation in audl link submission if (count($getlinks) > $options['audl']) { echo '<script type="text/javascript">function dopostback(){d.backpost.submit();}</script><form action="' . basename($PHP_SELF) . '" name="backpost" id="backpost" method="post"><div style="display:none;"><textarea name="bufferlink" id="bufferlink">' . $_POST["links"] . '</textarea></div></form>'; die('<span style="color:red; background-color:#fec; padding:3px; border:2px solid #FFaa00"><b>' . $L->sprintf($L->say['reach_lim_audl'], $options['audl']) . '</b></span><br/><br/><a href="javascript:;" onclick="dopostback()"><b>[ ' . $L->say['back_main'] . ' ]</b></a>' . "\r\n" . '</body></html>'); } } $start_link = $options["index_file"] . '?'; for ($i = 0; $i < count($getlinks); $i++) { $sLnk = $getlinks[$i]; $getlinks[$i] = urlcleaner($getlinks[$i]); } if (isset($_REQUEST["useproxy"]) && $_REQUEST["useproxy"] && (!$_REQUEST["proxy"] || !strstr($_REQUEST["proxy"], ":"))) { die('<span style="color:red; background-color:#fec; padding:3px; border:2px solid #FFaa00"><b>' . $L->say['wrong_proxy'] . '</b></span><br />'); } else { if (isset($_REQUEST["useproxy"]) && $_REQUEST["useproxy"] == "on") { $start_link .= '&proxy=' . $_REQUEST["proxy"]; $start_link .= '&proxyuser='******'&proxypass='******'cookieuse'])) { $start_link .= '&cookie=' . urlencode($_POST['cookie']); } if (isset($_POST['ytube_mp4'])) { $start_link .= '&ytube_mp4=' . urlencode($_POST['ytube_mp4']) . '&yt_fmt=' . urlencode($_POST['yt_fmt']);