Location: PHPKode > projects > Terra-Terra, A Virtual Operating System > terra-terra.0.0.5/workareas/Guests/TTlogin.php
<?php
/****m*
 * NAME
 *  TTlogin.php --- Workarea of the TT Guests application
 *
 * DESCRIPTION
 *  Login box for authorized users
 *
 * AUTHOR
 *  Oscar van Eijk, Oveas Functionality Provider
 *
 * COPYRIGHT
 *  (c) 2003-2005 by Oscar van Eijk/Oveas Functionality Provider 
 ***/
/*
 * This module is part of Terra-Terra, the Virtual Operating System
 * http://terra-terra.com
 * ------------------------------------------------------------------------
 * This library is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License,
 * or any later version.
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Lesser General Public License for more details.
 * You should have received a copy of the GNU Lesser General Public License
 * along with this library; if not, write to the Free Software Foundation,
 * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 * ------------------------------------------------------------------------
 * $Id: TTlogin.php,v 1.2 2005/07/19 18:17:40 tt_oscar Exp $ 
 */

if (!defined ('TT_MASTER_PROCESS')) {
	if (function_exists ('version_compare')) {
		$__TTroot = $_COOKIE['TTroot'];
	} else {
		$__TTroot = $HTTP_COOKIE_VARS['TTroot'];
	}
	require_once ($__TTroot . '/kernel/TTinit.pinc');
}
echo (TT_header());
?>
<form action="<?php echo ($TT['tt_env']['homepage']); ?>" method="POST">
<?php echo (TT_setkey ('P')); ?>
<table>
<tr>
<td><?php echo ($TT_workspace->get_prompt('USERNM')); ?>:</td>
<td><input type="text" name="TT_username" size="12" maxlength="12" /></td>
</tr>
<tr>
<td><?php echo ($TT_workspace->get_prompt('PASSWD')); ?>:</td>
<td><input type="password" name="TT_password" size="12" maxlength="12" /></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="TTlogin" value="<?php echo ($TT_workspace->get_prompt('LOGIN')); ?>"></td>
</tr>
<tr>
<td colspan="2" align="center"><a href="Javascript:PopUp('TTpwdreset');"><?php echo ($TT_workspace->get_prompt('FORGOTPWD')); ?></a></td>
</tr>
</table>
</form>
<?php
echo (TT_footer());
?>
Return current item: Terra-Terra, A Virtual Operating System