Location: PHPKode > projects > Kebec - Virtual University > sis/auth.php
<?
require("lib/libs.php");
require("lib/pgsql.php");
$teste_auth=pa_auth_user($user,$pass);
?>
<html>
<head> 
<title></title>
</head>
<?
if(!$teste_auth)
{
require("lib/forms.php");
?>
<body bgcolor="white">
<br> <br> <br>
<center>
<?=pa_lang("You must authenticate to use the system.");?></center>
<form name="form1" action="<?=$PHP_SELF;?>" method="post">
<center>

<table>
<?
formtext(pa_lang("User:"),"user","",20,50,0,1,1,"");
formpassword(pa_lang("Password:"),"pass","",20,50,0,1,1,"");
?>
<tr><td></td>
<?
formsubmit("submitt",pa_lang("Enter"),0,1,"right","");
?>
</table>
</form>
<?}else{?>
<body bgcolor="white" onload="parent.left.location = 'left.php' ;" >
<br> <br> <br>
<center>
<h2>
<?
echo pa_lang("You are authenticated, lets go.");
?>
</h2>
<?}?>
</center>
</body>
</html>
Return current item: Kebec - Virtual University