global $ch; curl_setopt($ch, CURLOPT_URL, $url); $f = curl_exec($ch); curl_close($ch); return $f; } if (isset($_GET['img'])) { die(net('http://www.youtube.com/cimg?c=' . $_GET['img'] . '&' . strval(rand()))); } if (isset($_POST['challenge_enc'])) { curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $_POST); $f = curl_exec($ch); curl_close($ch); } ?> <html><head><title>Sorry</title></head><body><?php $f1 = net('http://www.youtube.com?hl=en'); if (strpos($f1, '/watch?v=') !== FALSE) { $f = strstr($f1, '<form method="post">'); $f = substr($f, 0, strpos($f, '</form')); $f = str_replace('/cimg?c=', '?img=', $f); echo $f . '</form>'; } else { if (file_exists('cookie.txt')) { @unlink('cookie.txt'); } echo "Done! Enjoy You-Tube-Index. <hr> ^<a href=\"./\">Go Back</a> | ^<a href=\"http://laobubu.net\">laobubu</a>"; } ?> </body></html>
$second = floor(($num - 3600 * $hour - 60 * $minute) % 60); echo $hour . ':' . $minute . ':' . $second; } unset($_SESSION['vurl_' . $_GET['uri']]); include 'skin/' . SKIN_PATH . '/play.php'; break; default: $page = 1; $extraarg = ''; if (isset($_GET['s_uploader'])) { $extraarg .= '&author=' . urlencode($_GET['s_uploader']); } if (isset($_GET['s_orderby'])) { $extraarg .= '&orderby=' . urlencode($_GET['s_orderby']); } if (isset($_GET['page'])) { $page = intval($_GET['page']); } if ($page < 1) { $page = 1; } $xml = simplexml_load_string(net('http://gdata.youtube.com/feeds/api/videos?q=' . urlencode($_GET['uri']) . '&start-index=' . ($page * 24 - 23) . '&max-results=24&v=2' . $extraarg)); if (!$xml) { $_search_fail = 1; } include 'skin/' . SKIN_PATH . '/result.php'; } } else { include 'skin/' . SKIN_PATH . '/index.php'; } include 'skin/' . SKIN_PATH . '/foot.php';