Location: PHPKode > scripts > PHP Hosting Directory > phphost_directoryv2/include/login.php
<?

if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
	setcookie ("logged", "");
	$count = mysql_result(@mysql_query("SELECT COUNT(*) FROM `hsl_host` WHERE `username`='".$vars['username']."' AND pwd='".$vars['pwd']."'"), 0, 0);
	if ($count != 0)
	{
		setcookie ("logged", $vars['username']);
	}
}

java_redirect($config['base_url']."profile");

?>
Return current item: PHP Hosting Directory