Location: PHPKode > projects > Netautor Professional > netautor/napro4/home/login2.php
<?php
/* +----------------------------------------------------------------------+
   | Netautor Professional Application Server                             |
   +----------------------------------------------------------------------+
   | Copyright (C) 1998-2005 digiconcept GmbH. <www.digiconcept.net>      |
   +----------------------------------------------------------------------+
   | This file is subject to license, that is bundled with this package   |
   | in the file LICENSE.TXT, and is available at through the             |
   | world-wide-web at http://www.netautor.com/license/                   |
   |                                                                      |
   | If you did not receive a copy of the license and are unable to       |
   | obtain it through the world-wide-web, please send a note to          |
   | hide@address.com so we can mail you a copy.                      |
   +----------------------------------------------------------------------+
   | Authors: Stefan Rottensteiner <hide@address.com>    |
   |          Marek  Kadziela      <hide@address.com>	      |
   |          Gregor Wollner                                              |
   |          Christian Unger                                             |
   |          Helli  Kleinhans  									      |
   +----------------------------------------------------------------------+*/

	/**
	 * The small login-popup
	 *
	 * @author Helmut Kleinhans
	 * @version $Revision: 1.10 $
	 */

	require_once('../include/init.inc');
	if( (!empty($login_x) || !empty($login)) && !empty($user_name) && !empty($user_pass))
	{
		$temp_user = new users($sql_world);
		$temp_user->users_set('',$user_name,$user_pass);

		if($temp_user->users_init())
		{
			$USER = $temp_user;
			if(empty($goback))	$goback = $USER->get_feature_value('initial_doc');
?><html>
	<head>
		<title>digiconcept/netautor/login</title>
	</head>
<body bgcolor="White">
	<script language="JavaScript" type="text/javascript">
	<!--
	if(window.opener.top.getFrameByName && window.opener.top.getFrameByName('menu') != null)
	{
		window.opener.top.getFrameByName('menu').Go2();
	}
	else
	{
		window.opener.document.location.reload();
	}
	window.close();													
	//-->
	</script>
</body>
</html>
<?php exit();
		}
		else
		{
			$message=$GLOBALS['LOCALE']->dgettext('system','login_unknown');
			include('login2.msk');
		}
	}
	else
	{
		if (!empty($login_x) || !empty($login)) $message=$GLOBALS['LOCALE']->dgettext('system','login_unknown');
		include ('login2.msk');
	}
?>
Return current item: Netautor Professional