1
0
Fork 0

adapt to real environment

git-svn-id: file:///home/www/usr01/svn/gnuviechadmin/gnuviech.info/gnuviechadmin/trunk@33 a67ec6bc-e5d5-0310-a910-815c51eb3124
This commit is contained in:
Jan Dittberner 2004-05-10 19:46:56 +00:00
parent 2641ac4f10
commit f6ca9aa8a1
5 changed files with 23 additions and 19 deletions

View file

@ -10,7 +10,7 @@ $query = "SELECT * FROM sysuser WHERE name='$username' AND md5pass='$password'";
//echo $query;
$result = db_query($dbh, $query) or die("query failed");
if (pg_num_rows($result) == 0) {
if (db_num_rows($result) == 0) {
$logged_in = false;
authenticate();
echo $_SERVER['PHP_AUTH_USER'];
@ -18,7 +18,7 @@ if (pg_num_rows($result) == 0) {
} else {
$logged_in = true;
session_start();
$row=pg_fetch_array($result);
$row=db_fetch_array($result);
$_SESSION["userid"]=$row["id"];
}
@ -42,4 +42,4 @@ if (! $logged_in) {
</div>
<?php
include("commonfoot.php");
?>
?>