From e0327c4f0fee78645023e9fa1d7bb898f92f2e62 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Tue, 25 Feb 2020 13:36:50 +0100 Subject: [PATCH] removed a few reminders to myself --- enforce_ip.template | 12 ------------ my_brain_clipboard | 34 ---------------------------------- 2 files changed, 46 deletions(-) delete mode 100644 enforce_ip.template delete mode 100644 my_brain_clipboard diff --git a/enforce_ip.template b/enforce_ip.template deleted file mode 100644 index 796490f..0000000 --- a/enforce_ip.template +++ /dev/null @@ -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(); -} - diff --git a/my_brain_clipboard b/my_brain_clipboard deleted file mode 100644 index ad1e44a..0000000 --- a/my_brain_clipboard +++ /dev/null @@ -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