Location: PHPKode > scripts > CrawlProtect > crawlprotect/content/index.php
<?php
//----------------------------------------------------------------------
//  CrawlProtect 2.0.0
//----------------------------------------------------------------------
// Protect your website from hackers
//----------------------------------------------------------------------
// Author: Jean-Denis Brun
//----------------------------------------------------------------------
// Website: www.crawlprotect.com
//----------------------------------------------------------------------
// That script is distributed under GNU GPL license
//----------------------------------------------------------------------
// file: content/index.php
//----------------------------------------------------------------------
//  Last update: 20/06/2010
//----------------------------------------------------------------------
if (!defined('IN_CRAWLPROTECT'))
	{
	echo"<h1>Hacking attempt !!!!</h1>";
	exit();
	}
if (isset($_SERVER['SCRIPT_FILENAME']) && !empty($_SERVER['SCRIPT_FILENAME']))
	{
	$_SESSION['path'] = dirname( $_SERVER['SCRIPT_FILENAME'] );
	}
elseif (isset($_SERVER['DOCUMENT_ROOT']) && !empty($_SERVER['DOCUMENT_ROOT']) && isset($_SERVER['PHP_SELF']) && !empty($_SERVER['PHP_SELF']))
	{
	$_SESSION['path'] = dirname($_SERVER['DOCUMENT_ROOT'].$_SERVER['PHP_SELF']);
	}
else
	{
	$_SESSION['path'] = '..';
	}
if(isset($_SESSION['login2']) && $_SESSION['login2']=='ok')
	{
	$validuser=1;
	}
//variables init------------------------------------
$indexlist=array();
$dirlist=array();
$headerlist=array();
$footerlist=array();
$configlist=array();
$errorchangelogin=0;
$noattack=0;
//get variables-----------------------------------------
if(isset($_POST['userlogin']))
	{
	$userlogin = $_POST['userlogin'];
	}
else
	{
	$userlogin = '';
	}
if(isset($_POST['userpass']))
	{
	$userpass = $_POST['userpass'];
	}
else
	{
	$userpass = '';
	}
if(isset($_POST['login']))
	{
	$login = $_POST['login'];
	}
else
	{
	$login = '';
	}
if(isset($_POST['password1']))
	{
	$password1 = $_POST['password1'];
	}
else
	{
	$password1 = '';
	}
if(isset($_POST['password2']))
	{
	$password2 = $_POST['password2'];
	}
else
	{
	$password2 = '';
	}

if(isset($_POST['password3']))
	{	
	$password3 = $_POST['password3'];
	}
else
	{
	$password3 = '';
	}
if(isset($_POST['validlogin']))
	{
	$validlogin = (int)$_POST['validlogin'];
	}
else
	{
	$validlogin= 0;
	}
if(isset($_POST['changelang']))
	{
	$changelang = $_POST['changelang'];
	}
else
	{
	$changelang = '';
	}
if(isset($_POST['datedisplay']))
	{	
	$datedisplay = $_POST['datedisplay'];
	}
else
	{
	$datedisplay = 1;
	}
if(isset($_POST['refresh']))
	{
	$refresh = $_POST['refresh'];
	}
else
	{
	$refresh = 'no';
	}
if(isset($_POST['checkrelease']))
	{
	$checkrelease = $_POST['checkrelease'];
	}
else
	{
	$checkrelease = 'no';
	}

//logout---------------------------------------------------------------
if(isset($_POST['logout']))
	{	
	$logout = $_POST['logout'];
	}
else
	{
	$logout = '';
	}
if($logout=='ok')
	{
	$validuser=0;
	session_destroy();
	}
//change login---------------------------------------------------------
if(isset($_POST['changelogin']))
	{
	$changelogin = $_POST['changelogin'];
	}
else
	{
	$changelogin = '';
	}
if($changelogin=='ok')
	{
	changelogin($type);
	}
//language file-----------------------------------------------------------
getlanguage($type);
include ("".$languageuse."");
//login-------------------------------------------------------------------------------
login($type); 
//refresh
refresh($type);
//check if CrawlProtect 1.8.1 htaccess file is in place
if(!isset($_SESSION['verif']))
	{
	if(file_exists('../.htaccess') )
		{
		if(function_exists('fopen'))
			{
			$file = fopen("../.htaccess", "r");
			$existingfile = fread($file, filesize("../.htaccess"));
			fclose($file);
			if(preg_match("/CrawlProtect-2-0-0/i", $existingfile))
				{
				$_SESSION['verif']='ok';
				}
			else
				{
				$_SESSION['verif']='nook';
				}
			}
		else
			{
			$_SESSION['verif']='notpossible';
			}
		}
	else
		{
		$_SESSION['verif']='nook';
		}
	}
//login ok, display info-------------------------------------------------------------------------
if(isset($validuser) && $validuser==1)
	{
	$_SESSION['loginok']=1;
	getdatas($type);
	//start the caching if fopen exist
	if($languageuse=='language/english.php')
		{
		$lang='english';
		}
	else
		{
		$lang='french';
		}
	$cachename=$lang.$graph;
	if($checkrelease==1 )
		{
		unset($_SESSION[$cachename]);
		//clear the cache folder
		$dir = dir('./cache/');
		if(function_exists('chmod'))
			{
			chmod('./cache/', 0755);
			}
		while (false !== $entry = $dir->read())
			{
			// Skip pointers
			if ($entry == '.' || $entry == '..')
			{
			continue;
			}
			unlink("./cache/$entry");
			}
		}
	if(function_exists('fopen'))
		{
		cache($cachename);
		}
	$datatransfert= unserialize($countryserialize);
	//CrawlProtect new release check
	if(!isset($_SESSION['nofile']) && $checkrelease=='ok')
		{
		if(function_exists('fopen') && ini_get('allow_url_fopen')==1)
			{
			$nofile=0;
			$file = fopen("http://www.crawlprotect.net/releasefile/release.txt","r");
			}
		else
			{
			$nofile=1;
			}
		if ($nofile==0 && $file)
			{
			$release='';
			while (!feof($file))
				{
				$data = fgets($file,1024);
				$release=$release.$data;
				}
			fclose($file);
			if($release=="")
				{
				//file empty
				$nofile=1;
				}
			else
				{
				//test to know is the crawlprotect release is up to date.
				if($release==$crawlprotect)
					{
					$yourrelease='ok';
					}
				else
					{
					$yourrelease='nook';
					}
				}
			$_SESSION['nofile']=0;
			$_SESSION['yourrelease']=$yourrelease;
			}
		else
			{
			$nofile=1;
			$_SESSION['nofile']=1;
			$_SESSION['yourrelease']=0;
			}
		}
	}
//display=====================================================================================================================
echo"<div align=\"center\"><br>\n";
echo"<p><b>". $_SERVER["HTTP_HOST"] ."</b> ".$language['is_protected_by_CrawlProtect']."</p>\n";
if(isset($validuser) && $validuser==1)
	{
	echo"<div align=\"right\" style=\"display:block; position:absolute; top:10px; right:10px; \">\n";
	echo"<table><tr><td>\n";
	echo"<form action=\"index.php\" method=\"POST\">\n";
	echo "<input type=\"hidden\" name ='refresh' value='ok'>\n";
	echo "<input type=\"hidden\" name ='navig' value='0'>\n";
	echo"<input type='image'  src='images/refresh.png' class='refresh'>\n";
	echo"</form>&nbsp;\n";
	echo"</td><td>\n";
	$text=$language['fileandfolders'];
	echo"<form action=\"index.php\" method=\"POST\">\n";
	echo "<input type=\"hidden\" name ='navig' value='2'>\n";
	echo"<input name='ok' type='submit'  value='$text' size='20' >\n";
	echo"</form>&nbsp;\n";
	echo"</td><td>\n";
	$text=$language['admin'];
	echo"<form action=\"index.php\" method=\"POST\">\n";
	echo "<input type=\"hidden\" name ='navig' value='1'>\n";
	echo"<input name='ok' type='submit'  value='$text' size='20' >\n";
	echo"</form>&nbsp;\n";
	echo"</td><td>\n";
	$text=$language['logout'];
	echo"<form action=\"index.php\" method=\"POST\">\n";
	echo "<input type=\"hidden\" name ='logout' value='ok'>\n";
	echo "<input type=\"hidden\" name ='navig' value='0'>\n";
	echo"<input name='ok' type='submit'  value='$text' size='20' >\n";
	echo"</form>&nbsp;\n";
	echo"</td></tr></table>\n";
	echo"</div>\n";
	echo"<table width=\"100%\"><tr><td width=\"50%\" valign=\"top\" align=\"center\">\n";
	if($injection+$badbot+$shell > 0)
		{
		echo"<h2>".$language['CrawlProtect_has_blocked']."</h2>\n";
		echo"<table style=\"font-size:14px;\"><tr><td align=\"right\">\n";
		echo numbdisp($injection)."</td><td align=\"left\">".$language['Code_SQL_injection']."\n";
		echo"</td></tr><tr><td align=\"right\">\n";
		echo numbdisp($badbot)."</td><td align=\"left\">".$language['badbots']."\n";
		echo"</td></tr><tr><td align=\"right\">\n";
		echo numbdisp($shell)."</td><td align=\"left\">".$language['shell']."\n";
		echo"</td></tr><tr><td align=\"right\">\n";
		echo numbdisp($spam)."</td><td align=\"left\">".$language['spam']."\n";
		echo"</td></tr></table>\n";
		if(count($datatransfert)>0)
			{
			if($graph==1)
				{
				//case graph
				echo"<h2>".$language['coming_from']."</h2>\n";
				echo"<img src=\"./graphs/origine-graph.php\" alt=\"Origin\" width=\"450px\" height=\"200px\"/>\n";
				echo"<div class=\"smalltext\">".$language['maxmind']."<a href='http://maxmind.com'>http://maxmind.com</a></div>\n";
				}
			else
				{
				//case list
				$datatransfert= unserialize($countryserialize);
				arsort($datatransfert);
				$totvalues=array_sum( $datatransfert);  
				$i=0;
				$total=0;
				foreach ($datatransfert as $key => $value)
					{
					if($i<7)
						{
						$values[$key]=$value;
						$total=$total+$value;
						}
					$i++;
					}
				if($total<$totvalues)
					{
					$values['Others']= $totvalues-$total;
					}
				echo"<h2>".$language['coming_from']."</h2>\n";
				echo"<table style=\"font-size:14px;\">\n";
				foreach($values as  $key => $value)
					{
					if($key=='')
						{
						$key='???';
						}
					echo"<tr><td>\n";
					echo $key;
					echo"&nbsp;&nbsp;</td><td>\n";
					echo numbdisp2(($value/$totvalues)*100);
					 echo"%</td></tr>\n";
					}
				echo"</table><br>\n";
				echo"<div class=\"smalltext\">".$language['maxmind']."<a href='http://maxmind.com'>http://maxmind.com</a></div>\n";
				}
			//ip
			echo"<h2>".$language['ip_used']."</h2>";
			//get  values
			$listip= unserialize($listipserialize);
			arsort($listip);
			//check IP already blocked
			badip($type);
			echo"<form action=\"index.php\" method=\"POST\">";
			echo "<input type=\"hidden\" name ='navig' value='3'>\n";
			echo "<input type=\"hidden\" name =\"addiptoblock\" value=\"1\">\n";
			echo"<div class='listip'><table width='340px' style='font-size:13px;'><tr><td align='right'>";
			foreach ($listip as $key => $value)
				{
				$i=(4-strlen($value))*2;
				$j=(16-strlen($key))*2;
				$value2=str_repeat("&nbsp;",$i).$value;
				$key2=$key.str_repeat("&nbsp;",$j);
				if(!in_array($key,$listbadip))
					{
					echo $key2."&nbsp;==>".$value2."&nbsp;&nbsp;&nbsp;".$language['attempts']."<input type=\"checkbox\" name=\"".ip2long($key)."\" value=\"1\">&nbsp;<a href=\"http://www.whois-search.com/whois/".$key."\" target=\"blank\"><img src='images/information.png'></a><br>\n";
					}
				else
					{
					echo "<span class='red'>".$key2."&nbsp;==>".$value2."&nbsp;&nbsp;&nbsp;".$language['attempts']."&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"http://www.whois-search.com/whois/".$key."\" target=\"blank\"><img src='images/information.png'></a></span><br>\n";
					}
				}
			echo"</td></tr></table></div>";
			echo"<br><input name='ok' type='submit'  value='".$language['blockip']."' size='20' >";
			echo"</form>\n";
			}
		}
	else
		{
		echo"<br><br><h2>".$language['no_attack']."</h2>\n";
		$noattack=1;
		echo "<br><br><div style=\"border: 1px solid #000; padding:10px; width:300px;\"><p style=\"font-size:12px; \">".$language['help_crawlprotect']."</p>";
		if($languageuse=='language/french.php')
			{
			echo"<form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">\n";
			echo"<input type=\"hidden\" name=\"cmd\" value=\"_s-xclick\">\n";
			echo"<input type=\"hidden\" name=\"hosted_button_id\" value=\"10304523\">\n";
			echo"<input type=\"image\" src=\"https://www.paypal.com/fr_FR/FR/i/btn/btn_donate_LG.gif\" border=\"0\" name=\"submit\" alt=\"PayPal - la solution de paiement en ligne la plus simple et la plus sécurisée !\">\n";
			echo"<img alt=\"\" border=\"0\" src=\"https://www.paypal.com/fr_FR/i/scr/pixel.gif\" width=\"1\" height=\"1\">\n";
			echo"</form>\n";
			}
		else
			{
			echo"<form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">\n";
			echo"<input type=\"hidden\" name=\"cmd\" value=\"_s-xclick\">\n";
			echo"<input type=\"hidden\" name=\"hosted_button_id\" value=\"10304614\">\n";
			echo"<input type=\"image\" src=\"https://www.paypal.com/en_GB/i/btn/btn_donate_LG.gif\" border=\"0\" name=\"submit\" alt=\"PayPal - The safer, easier way to pay online.\">\n";
			echo"<img alt=\"\" border=\"0\" src=\"https://www.paypal.com/fr_FR/i/scr/pixel.gif\" width=\"1\" height=\"1\">\n";
			echo"</form>\n";
			}
		echo"<div align=\"right\"><p style=\"font-size:12px; font-style:italic;\">\n";
		echo $language['thanks'];
		echo"</p></div></div><br><br><br>\n";
		}
	echo"</td><td valign=\"top\" align=\"center\">\n";
	if($noattack==1)
		{
		echo "<br><br>";
		}
	echo"<h2>".$language['message']."</h2>\n";
	if($checkrelease!='ok' && !isset($_SESSION['yourrelease']))
		{
		$text=$language['checkrelease'];
		echo"<form action=\"index.php\" method=\"POST\">";
		echo "<input type=\"hidden\" name ='navig' value='0'>";
		echo "<input type=\"hidden\" name ='refresh' value='ok'>";
		echo "<input type=\"hidden\" name ='checkrelease' value='ok'>";	
		echo"<input name='ok' type='submit' class='widebutton' value='$text' size='20' >";
		echo"</form>";
		}
	else
		{
		if($_SESSION['nofile']==0 && $_SESSION['yourrelease']=='ok')
			{
			echo"<p >".$language['releaseok']."</p>\n";
			}
		elseif($_SESSION['nofile']==0 && $_SESSION['yourrelease']=='nook')
			{
			echo"<p class=\"red\">".$language['releasenook']."</p>\n";
			}
		}
	if($_SESSION['verif']=='ok')
		{
		echo"<p>".$language['verifok']."</p>\n";
		}
	elseif($_SESSION['verif']=='nook')
		{
		echo"<p class=\"red\">".$language['verifnook']."</p>\n";
		}
	elseif($_SESSION['verif']=='notpossible')
		{
		echo"<p>".$language['verifnotpossible']."</p>\n";
		}
	if($noattack==0)
		{
		echo "<div style=\"border: 1px solid #000; padding:10px; width:300px;\"><p style=\"font-size:12px; \">".$language['help_crawlprotect']."</p>";
		if($languageuse=='language/french.php')
			{
			echo"<form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">\n";
			echo"<input type=\"hidden\" name=\"cmd\" value=\"_s-xclick\">\n";
			echo"<input type=\"hidden\" name=\"hosted_button_id\" value=\"10304523\">\n";
			echo"<input type=\"image\" src=\"https://www.paypal.com/fr_FR/FR/i/btn/btn_donate_LG.gif\" border=\"0\" name=\"submit\" alt=\"PayPal - la solution de paiement en ligne la plus simple et la plus sécurisée !\">\n";
			echo"<img alt=\"\" border=\"0\" src=\"https://www.paypal.com/fr_FR/i/scr/pixel.gif\" width=\"1\" height=\"1\">\n";
			echo"</form>\n";
			}
		else
			{
			echo"<form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">\n";
			echo"<input type=\"hidden\" name=\"cmd\" value=\"_s-xclick\">\n";
			echo"<input type=\"hidden\" name=\"hosted_button_id\" value=\"10304614\">\n";
			echo"<input type=\"image\" src=\"https://www.paypal.com/en_GB/i/btn/btn_donate_LG.gif\" border=\"0\" name=\"submit\" alt=\"PayPal - The safer, easier way to pay online.\">\n";
			echo"<img alt=\"\" border=\"0\" src=\"https://www.paypal.com/fr_FR/i/scr/pixel.gif\" width=\"1\" height=\"1\">\n";
			echo"</form>\n";
			}
		echo"<div align=\"right\"><p style=\"font-size:12px; font-style:italic;\">\n";
		echo $language['thanks'];
		echo"</p></div></div>\n";
		}
	echo"<br><br>\n";
	echo"</td></tr></table>\n";
	echo"</td></tr></table><br><br>\n";
	if($logrecording =='ok' && $injection+$badbot+$shell > 0)
		{
		echo"<h2>".$language['log-recording']."</h2><br>";
		echo"<table width='950px'>";
		echo"<tr><td width='150px'><h3>".$language['date']."</h3></td><td width='600px'><h3>".$language['why']."</h3></td><td width='100px'><h3>IP</h3></td><td width='100px'><h3>".$language['country']."</h3></td></tr></table>";
		echo"<div class='logs'><table width='950px' style=\"font-size:11px; \">";
		echo"<tr class='noshow'><td width='150px'>&nbsp;</td><td width='600px'>&nbsp;</td><td width='100px'>&nbsp;</td><td width='100px'>&nbsp;</td></tr>";
		displaylog($type);
		echo"</table></div><br><br>";
		}
	}
elseif((!file_exists('include/config.php') && $type=='file') OR ($logindb=='0' && $type=='mysql') )
	{
	//valid form
	if($validlogin==1)
		{
		if($login=='' OR $password2=='' OR $password3=='' OR $password2 != $password3)
			{
			echo"<p style='color:#ff0000;'>".$language['login_no_ok']."</p>";
			echo"<div class=\"form\">\n";
			echo"<form action=\"index.php\" method=\"POST\" >\n";
			echo "<input type=\"hidden\" name ='navig' value='0'>\n";
			echo "<input type=\"hidden\" name ='validlogin' value='0'>\n";
			echo "<input type=\"hidden\" name ='login' value='$login'>\n";
			echo "<input type=\"hidden\" name ='password2' value='$password2'>\n";
			echo "<input type=\"hidden\" name ='password3' value='$password3'>\n";
			echo"<input name='ok' type='submit'  value='".$language['backtotheform']."' size='20'>\n";
			echo"</form>\n";
			echo"<br></div>\n";
			}
		elseif(valid_password($password2))
			{
			createlogin($type);
			}
		else
			{
			echo"<p style='color:#ff0000;'>".$language['password_no_ok']."</p>";
			echo"<div class=\"form\">\n";
			echo"<form action=\"index.php\" method=\"POST\" >\n";
			echo "<input type=\"hidden\" name ='navig' value='0'>\n";
			echo "<input type=\"hidden\" name ='validlogin' value='0'>\n";
			echo "<input type=\"hidden\" name ='login' value='$login'>\n";
			echo "<input type=\"hidden\" name ='password2' value=''>\n";
			echo "<input type=\"hidden\" name ='password3' value=''>\n";
			echo"<input name='ok' type='submit'  value='".$language['backtotheform']."' size='20'>\n";
			echo"</form>\n";
			echo"<br></div>\n";
			}
		}
	//form
	else
		{
		if(!isset($_POST['langinstall']) && !file_exists('data/language.php') && $langdb!='language/french.php' && $langdb!='language/english.php')
			{
			echo"<h1>".$language['install']."</h1>\n"; 
			echo"<h2>Language choice  /  Choix de la langue</h2>\n";
			echo"<form action=\"index.php\" method=\"POST\" ><br>\n";
			echo "<input type=\"hidden\" name ='navig' value='0'>\n";
			echo"<input type=\"radio\" name=\"langinstall\" value=\"2\" >English&nbsp;&nbsp;\n";
			echo"<input type=\"radio\" name=\"langinstall\" value=\"1\">Français&nbsp;&nbsp;\n";
			echo"<br><br><input name='ok' type='submit'  value='OK' size='20' >\n";
			echo"</p></form>&nbsp;\n";
			}
		else	
			{
			createlang($type);
			echo"<h1>".$language['install']."</h1>\n";
			echo"<h2>".$language['user_setup']."</h2>\n";
			echo"<p><".$language['passwordrules']."</p>\n";
			//data collect form
			echo"<div class=\"form\">\n";
			echo"<form action=\"index.php\" method=\"POST\" >\n";
			echo "<input type=\"hidden\" name ='navig' value='0'>\n";
			echo "<input type=\"hidden\" name ='validlogin' value='1'>\n";
			echo"<table class=\"centrer\">\n";
			echo"<tr>\n";
			echo"<td><p>".$language['login']."</p></td>\n";
			echo"<td><input name='login'  value='$login' type='text' maxlength='20' size='50'/></td>\n";
			echo"</tr>\n";
			echo"<tr>\n";
			echo"<td><p>".$language['password']."</p></td>\n";
			echo"<td><input name='password2' value='$password2' type='password' size='50'/></td>\n";
			echo"</tr>\n";
			echo"<tr>\n";
			echo"<td colspan=\"2\"><p>\n";
			echo $language['valid_password']."\n";
			echo"</p></td>\n";
			echo"</tr>\n";
			echo"<tr>\n";
			echo"<td><p>".$language['password']."</p></td>\n";
			echo"<td><input name='password3' value='$password3' type='password' size='50'/></td>\n";
			echo"</tr>\n";
			echo"<tr>\n";
			echo"<td colspan=\"2\">\n";
			echo"<br>\n";
			echo"<input name='ok' type='submit'  value=' OK ' size='20'>\n";
			echo"</td>\n";
			echo"</tr>\n";
			echo"</table>\n";
			echo"</form></div><br>\n";
			}
		}
	}
elseif($type=='mysql-no-configconnect')
	{
	echo"<table width='700px'><tr><td align='center'>";
	echo"<img src=\"images/hacker.jpg\" width=\"200px\" height=\"200px\" border=\"0\">";
	echo"</td></tr><tr><td>";
	echo"<h2>English</h2>";
	echo"<p>To be compatible with your hosting, CrawlProtect need to use a MySQL database, so please complete the configconnect.php file with your MySQL connection informations and then restart the installation process (the file is in the include folder of your CrawlProtect).</p><br><br><br>";
	echo"</td></tr><tr><td>";
	echo"<h2>Français</h2>";
	echo"<p>Pour être compatible avec votre hébergement, CrawlProtect a besoin d'utiliser une base de données MySQL, veuillez donc complèter le fichier configconnect.php avec vos données de connexion MySQL et ensuite relancez le processus d'installation (le fichier se trouve dans le répertoire include de votre dossier CrawlProtect).</p>";
	echo"</td></tr></table><br><br>";
	}
else
	{
	echo"<h1>".$language['restrited_access']."</h1>\n";
	echo"<h2>".$language['enter_login']."</h2>\n";
	echo"<div class=\"form\">\n";
	if($errorchangelogin==1)
		{
		echo"<p class='red'>".$language['error-change-login']."</p>\n";
		}
	echo"<form action=\"index.php\" method=\"POST\" name=\"login\" >\n";
	echo"<table align=\"left\" width=\"400px\">\n";
	echo"<input type=\"hidden\" name ='navig' value='0'>\n";
	echo"<tr><td >".$language['login']."&nbsp;<input name='userlogin' value=\"\"  type='text' maxlength='20' size='20'/></td></tr>\n";
	echo"<tr><td></td></tr>\n";
	echo"<tr><td>".$language['password']."&nbsp;<input name='userpass'  value=\"\" type='password' maxlength='20' size='20'/></td</tr>\n";
	echo"<tr><td><input name='ok' type='submit'  value='OK' size='20'></td></tr>\n";
	echo"</table></form>\n";
	echo"<script type=\"text/javascript\"> document.forms[\"login\"].elements[\"userlogin\"].focus()</script>\n";
	echo"<br><br><br><br><br><br><br>\n";
	echo"</div>\n";
	}
//close the cache function 
if(function_exists('fopen'))
	{
	close();
	}
?>
Return current item: CrawlProtect