removed a few reminders to myself

master
BodgeMaster 2020-02-25 13:36:50 +01:00
parent 03da2b9d0e
commit e0327c4f0f
2 changed files with 0 additions and 46 deletions

View File

@ -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();
}

View File

@ -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