00001 <?
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 include_once ("ac_common.php");
00024
00025
00026 include_once ("postgres.php");
00027 include_once("debug.php");
00028
00029
00030 if ( isset ($_POST["p_user"] ) ) {
00031 echo_debug('login.php',__LINE__,"user is set");
00032 $g_user=$_POST["p_user"];
00033 $g_pass=$_POST["p_pass"];
00034 $_SESSION['g_user']=$g_user;
00035 $_SESSION['g_pass']=$g_pass;
00036
00037
00038
00039 $rep=DbConnect();
00040 include_once ("class_user.php");
00041 $User=new cl_user($rep);
00042 $User->Check();
00043
00044 echo "<META HTTP-EQUIV=\"REFRESH\" content=\"0;url=user_login.php?PHPSESSID=" . $_REQUEST["PHPSESSID"] . "\">";
00045
00046 } else
00047 {
00048 $rep=DbConnect();
00049 include_once ("class_user.php");
00050 $User=new cl_user($rep);
00051 $User->Check();
00052
00053 echo "<META HTTP-EQUIV=\"REFRESH\" content=\"0;url=user_login.php?PHPSESSID=" . $_REQUEST["PHPSESSID"] . "\">";
00054
00055 }
00056 html_page_stop();
00057 ?>