removed a few reminders to myself
parent
03da2b9d0e
commit
e0327c4f0f
|
@ -1,12 +0,0 @@
|
||||||
if ($_SESSION['user_ip']!=$_SERVER['REMOTE_ADDR']){
|
|
||||||
// force logout
|
|
||||||
$_SESSION = array();
|
|
||||||
if (ini_get("session.use_cookies")) {
|
|
||||||
$params = session_get_cookie_params();
|
|
||||||
setcookie(session_name(), '', time() - 42000, $params["path"], $params["domain"], $params["secure"], $params["httponly"]);
|
|
||||||
}
|
|
||||||
session_destroy();
|
|
||||||
header("Location: https://lostcave.ddnss.de/common/threadr/login/?error=session");
|
|
||||||
die();
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,34 +0,0 @@
|
||||||
username
|
|
||||||
email
|
|
||||||
password
|
|
||||||
password_confirm
|
|
||||||
|
|
||||||
|
|
||||||
TABLE `web`.`profiles`
|
|
||||||
( `id` SMALLINT NOT NULL ,
|
|
||||||
`email` VARCHAR(100) NOT NULL ,
|
|
||||||
`real_name` VARCHAR(40) NULL ,
|
|
||||||
`status` VARCHAR(200) NULL ,
|
|
||||||
`about` VARCHAR(2000) NULL
|
|
||||||
) ENGINE = InnoDB;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Todo:
|
|
||||||
|
|
||||||
if logged in
|
|
||||||
home is userhome
|
|
||||||
else
|
|
||||||
home is home
|
|
||||||
|
|
||||||
if logged in
|
|
||||||
login is logout
|
|
||||||
else
|
|
||||||
login is login
|
|
||||||
|
|
||||||
|
|
||||||
navbar = %NAVBAR% and highlighted field gets selected by a variable
|
|
||||||
|
|
||||||
save everything in a db instead of a session cookie - or encrypt session cookie data
|
|
||||||
|
|
||||||
logout user after signing up a new one
|
|
Loading…
Reference in New Issue