i have prob with a cod on login
Posted: Tue Jul 01, 2003 4:36 am
hi i have a prob i have a chack login functions :
here the code that is on the index.php that active to functions:
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
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"; }
}
}
?>Code: Select all
<?php
include_once('./includes/auths.inc.php');
$set = new loginsys();
$set->is_login();
?>plz help me