PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
forgun
Forum Commoner
Posts: 61 Joined: Wed Jan 29, 2003 6:05 am
Contact:
Post
by forgun » Tue Jul 01, 2003 4:36 am
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
twigletmac
Her Royal Site Adminness
Posts: 5371 Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK
Post
by twigletmac » Tue Jul 01, 2003 5:18 am
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
forgun
Forum Commoner
Posts: 61 Joined: Wed Jan 29, 2003 6:05 am
Contact:
Post
by forgun » Tue Jul 01, 2003 5:28 am
nothing happens that is the prob i shold do
a login chack
a very new poprson