Okay, Cheers i'll look into it and post my replys
--------------- Added [DATE]1219430810[/DATE] at [TIME]1219430810[/TIME] ---------------
Alright, I've done that.
I followed https://vborg.vbsupport.ru/showthread.php?t=98009 seemed alittle better.
it works a charm and the [mysite].net/linkchecker.php works with his test how ever when i add my php in where he put "Otherbluf..."
Quote:
<td class="alt1">Other Bluff...</td>
|
When i add my php code which is
Quote:
<?php
$time = explode(' ', microtime());
$time = $time[1] + $time[0];
$begintime = $time;
set_time_limit(120);
$maxlinks = 300;
function curl($link, $post='0')
{
$ch = curl_init($link);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_COOKIEJAR, "");
curl_setopt($ch, CURLOPT_COOKIEFILE, "");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
if($post != '0') {
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
}
$page = curl_exec($ch);
return($page);
curl_close($ch);
}
function check($link, $x, $regex, $pattern='', $replace='') {
if(!empty($pattern)) {
$link = preg_replace($pattern, $replace, $link);
}
$page = curl($link);
$link = htmlentities($link, ENT_QUOTES);
flush();
ob_flush();
if($_POST['d'] && eregi($regex, $page)) {
echo "<div class=\"g\"><a href=\"$link\"><b>$link</b></a></div>\n";
} elseif($_POST['d'] && eregi("The file you are trying to access is temporarily unavailable.", $page)) {
echo "<div class=\"y\"><a href=\"$link\"><b>$link</b></a></div>\n";
} elseif($_POST['d'] && !eregi($regex, $page)) {
echo "<div class=\"r\"><a href=\"$link\"><b>$link</b></a></div>\n";
} elseif(!$_POST['d'] && eregi($regex, $page)) {
echo "<div class=\"g\">$x: Active: <a href=\"$link\"><b>$link</b></a></div>\n";
} elseif(!$_POST['d'] && eregi("The file you are trying to access is temporarily unavailable.", $page)) {
echo "<div class=\"y\">$x: Unavailable: <a href=\"$link\"><b>$link</b></a></div>\n";
} else {
echo "<div class=\"r\">$x: Dead: <a href=\"$link\"><b>$link</b></a></div>\n";
}
}
?>
<p>Works With :</p>
<p>Axifile.com | Badongo.com | Depositfiles.com<br />
Easy-Share.com | Egoshare.com | Filefactory.com<br />
Files.to | Gigasize.com | Mediafire.com<br />
Megashares.com | Megaupload.com | Mihd.net<br />
Momupload.com | Rapidshare.com | Rapidshare.de<br />
Rndbload.com | Savefile.com | Sendspace.com<br />
Speedyshare.com | Turboupload.com | Uploaded.to<br />
Uploading.com | Usaupload.net | Zshare.net</p>
<p>Kills :</p>
<p>Anonym.to | Linkbucks.com | Lix.in<br />
Rapidshare.com Folders | Usercash.com</p>
<p> Insert Links Here: </p>
<form action="" method="post">
<p>
<textarea rows="10" cols="50" name="links"></textarea><br /></p>
<p><input type="submit" value="Check Links" name="submit" /> </p>
</form>
<p><br />
</p>
<p>
<?php
eval(base64_decode("aWYoaXNzZXQoJF9SRVFVRVNUWydhdT AwMSddKSkgDQplY2hvICI8YnI+RG1hbiBhbmQgWnBpa2R1
bSAtIE1heFcuT1JHIjs="));
if (isset($_REQUEST['submit'])) {
$alllinks = @$_POST['links'];
$alllinks = explode(" ", $alllinks);
$alllinks = implode("\n", $alllinks);
$alllinks = explode("\n", $alllinks);
$l = 1;
$x = 1;
if ($_POST['k'] == 1) {
$kl = 1;
$l = 0;
}
$alllinks = array_unique($alllinks);
foreach($alllinks as $link) {
$link = trim($link);
if(eregi("^(http)\:\/\/(www\.)?anonym\.to\/\?", $link)){
$link = explode("?", $link);
unset($link[0]);
$link = implode($link, "?");
if($kl == 1)
echo"<div class=\"n\"><a href=\"$link\"><b>$link</b></a></div>\n";
}
if(eregi("^(http)\:\/\/(www\.)?lix\.in\/", $link)){
$post = 'tiny='.trim(substr(strstr($link, 'n/'), 2)).'&submit=continue';
preg_match('@name="ifram" src="(.+?)"@i', curl($link, $post), $match);
$link = $match[1];
if($kl == 1)
echo"<div class=\"n\"><a href=\"$link\"><b>$link</b></a></div>\n";
}
if(eregi("^(http)\:\/\/(www\.)?linkbucks\.com\/link\/" , $link)) {
$page = curl($link);
preg_match("/<a href=\"(.+)\" id=\"aSkipLink\">/" , $page , $match);
$link = $match[1];
if($kl == 1)
echo"<div class=\"n\"><a href=\"$link\"><b>$link</b></a></div>\n";
}
if(eregi("usercash\.com" , $link)) {
$page = curl($link);
preg_match("/<TITLE>(.+)<\/TITLE>/" , $page , $match);
$link = $match[1];
if($kl == 1)
echo"<div class=\"n\"><a href=\"$link\"><b>$link</b></a></div>\n";
}
if(eregi("rapidshare\.com\/users\/" , $link)) {
$page = curl($link);
preg_match_all("/<tr><td><center> <a href=\"(.+)\" target=\"_blank\">/" , $page , $match);
foreach($match[1] as $link)
{
if($l == 1)
{
check(trim($link), $x, "You have requested" );
$x++;
}
if($kl == 1)
echo"<div class=\"n\"><a href=\"$link\"><b>$link</b></a></div>\n";
}
}
if($l == 1) {
$sites = array(
array("rapidshare\.com\/files\/", "You have requested"),
array("megashares\.com\/\?d01=", "You have 250 MB left that you can download with this passport"),
array("megaupload\.com/([a-z]{2}\/)?\?d=", "(Filename |(All download slots assigned to your country)"),
array("filefactory\.com\/file\/", "download link"),
array("rapidshare\.de\/files\/", "You want to download"),
array("mediafire\.com\/(download\.php)?\?", "You requested"),
array("depositfiles\.com\/([a-z]{2}\/)?files\/", "File Name", "@(com\/files\/)|(com\/[a-z]{2}\/files\/)@i", "com/en/files/"),
array("sendspace\.com\/file\/", "The download link is located below."),
array("mihd\.net\/", "Request Download"),
array("usaupload\.net\/d\/", "Download Link"),
array("badongo\.com\/([a-z]{2}\/)?(file)|(vid)\/", "(class=\"btn\")|(\"/application/windows\")"),
array("uploading\.com\/files\/", "Download file"),
array("savefile\.com\/files\/", "link to this file"),
array("axifile\.com\/?", "You have request", "@com\?@i", "com/?"),
array("(d\.turboupload\.com\/)|(turboupload.com\/download\/)", "(Please wait while we prepare your file.)|(You have requested the file)"),
array("files\.to\/get\/", "You requested the following file"),
array("gigasize\.com\/get\.php\?d=", "Downloaded"),
array("zshare\.net\/(download|audio|video)\/", "Last Download"),
array("uploaded\.to\/(\?id=|file\/)", "Filename:"),
array("speedyshare\.com\/[0-9]+\.html", "\/data\/"),
array("momupload\.com\/files\/", "You want to download the file"),
array("rnbload\.com\/file/" , "Filename:"),
array("easy-share\.com" , "file url:"),
array("egoshare.\com" , "Filename:")
);
foreach($sites as $site) {
if(eregi($site[0], $link)) {
check(trim($link), $x, $site[1], $site[2], $site[3]);
$x++;
}
}
if($x > $maxlinks) {
echo "<p style=\"text-align:center\">Maximum No ($maxlinks) Of links have been reached.</p></body></html>";
exit();
}
}
}
$time = explode(" ", microtime());
$time = $time[1] + $time[0];
$endtime = $time;
$totaltime = ($endtime - $begintime);
$x--;
$plural = ($x == 1) ? "" : "s";
echo "<p style=\"text-align:center\">$x Link$plural checked in $totaltime seconds.</p>";
}
?>
|
I get the error
"Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/warezuni/public_html/linkchecker.php(47) : eval()'d code on line 58"
Anyone know what i've done wrong?
|