\n";
}
}
if(isset($_REQUEST['debug']))
{
if($debug == 1)
{
if(isset($_REQUEST['phpinfo']))
{
phpinfo();
}
else
{
if (!extension_loaded("curl") )
{
echo 'Warning : cURL is not enabled. This will cause the LC to work unexceptedly. Please load activate cURL extension (http://www.php.net/cURL) or for a quick fix set $fgc as 1 in line 17. ';
}
else
{
echo 'Success : cURL is enabled ';
}
if(PHP_VERSION < 5 )
{
echo 'Warning : You are running an outdated version of PHP, please update to atleast PHP 5 ';
}
if(ini_get('safe_mode') == 1 )
{
echo 'Warning : Safe Mode is on, this script will not run properly due to it';
}
$verpage = file_get_contents('http://khailtamasha.com/lc/lv.html');
preg_match("/(.*)<\/version>/" , $verpage , $match);
if($match[1] == $lcver)
{
echo 'Success : You got the latest version ';
}
elseif($match[1] > $lcver)
{
echo 'Warning : You are running an outdated version, please update to latest version ';
}
else
{
echo 'Impossible thing just happened ';
}
echo 'Click here to see your phpinfo';
}
}
else
{
echo "Please change the debug mode to 1";
}
exit();
}
?>
Khailtamasha Link Checker