A
Anonymous
Guest
i have a prob i dont know why its not working at all here the code(its a class)
here the function that chack u up
here the index.php that active the function
why its not workin if some one knows
here the function that chack u up
Code:
session_start();
class start {
.
.
.
function is_login() {
$this->acts ();
$err = new main();
if ($_SESSION||$_SESSIOn['passed'] != true) {
$err->msg_die(6);
}
else {
return true;
}
}
}
Code:
include_once("./include/auth.inc.php");
$set = new start();
if (!$set->is_login()) {
$sid = $set->dt1['data']['sid'];
$uid = $set->dt1['user']['id'];
$title = $set->dt1['data']['title'];
header("http://" .$_SERVER['HTTP_HOST'] ."/msgger/index.php?act=main&uid=$uid&sid=$sid");
}
else {
$title = "Login System";
header("http://" .$_SERVER['HTTP_HOST'] ."/msgger/index.php?act=login");
}
if ($act == 'login'||$act!="") {
.
.
htmls tags
}
else {
html tags
}