Page 1 of 1

i have prob with a cod on login

Posted: Tue Jul 01, 2003 4:36 am
by forgun
hi i have a prob i have a chack login functions :

Code: Select all

<?php
if (!$_SESSION||trim($_SESSION['proc_v1_user'])||$_SESSION['proc_v1_login']==0) {
header("location: http://www.maslul.org/sivan/admin/index.php?loc=login");
}
}
function checkuser() {
$this->condb();
if ($this->condb()!=true) {
if ($this->pass == $this->auth['pass']) {
session_register("proc_v1_user");
$user = $this->user;
$_SESSION['proc_v1_user'] = $user;
session_register("proc_v1_login");
$login = '1'; #0=off - 1=on
$_SESSION['proc_v1_login'] = $login;
header("Location: index.php?loc=main");
}
else {
$this->msg = "PassWord/User are not correct"; }
}
}
?>
here the code that is on the index.php that active to functions:

Code: Select all

<?php
include_once('./includes/auths.inc.php');
$set = new loginsys();
$set->is_login();
?>
the prob i dont know how any more what to do all i try to do dont work how i can fix this
plz help me

Posted: Tue Jul 01, 2003 5:18 am
by twigletmac
Do you get any error messages? What happens/does not happen that shouldn't/should? You need to elaborate to allow us to help you.

Mac

Posted: Tue Jul 01, 2003 5:28 am
by forgun
nothing happens that is the prob i shold do
a login chack
a very new poprson