Location: PHPKode > projects > OpenDomains > admin/login.php
<?
$logined="false";
	if($_POST['txtlogin']) {
  		$login=$_POST['txtlogin'];
  		$pass=$_POST['txtpass'];
  		if(($login==$config[admin][user])and($pass==$config[admin][pass])) {
  			$logined="true";
  			session_register("txtlogin");
  			$_SESSION['txtlogin']=md5($login."*".$pass);
  			}
	}
	if($_SESSION['txtlogin']) {
   			if($_SESSION['txtlogin']==md5($config[admin][user]."*".$config[admin][pass]))
   				$logined="true";
	}
	if($_GET['logout']) {
   			$logined="false";
   			$_SESSION['txtlogin']="";
   			session_unregister("txtlogin");
	}
?>
Return current item: OpenDomains