From e0140672f1fb7c79e47aadad6fbee57e7262b1a2 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 5 Feb 2017 21:58:04 -0500 Subject: Purge old content --- examples/class/framework.class.php | 67 -------------------------------------- 1 file changed, 67 deletions(-) (limited to 'examples/class/framework.class.php') diff --git a/examples/class/framework.class.php b/examples/class/framework.class.php index 802c821..0461da7 100644 --- a/examples/class/framework.class.php +++ b/examples/class/framework.class.php @@ -1,30 +1,7 @@ type == "user") - return $user; - - $this->setCurrentUser(); - } - - return false; - } - - /* - * Get the IP address the client held when the current session began - */ - function getOriginIP() - { - return $_SESSION['userip']; - } - - /* - * Set the current logged in user - */ - function setCurrentUser($user = null) - { - if ($user != null && isset($user->guid)) - { - $_SESSION['userguid'] = $user->guid; - $_SESSION['userip'] = $_SERVER['REMOTE_ADDR']; - } - - else - { - unset($_SESSION['userguid']); - unset($_SESSION['userip']); - } - } - /* * Get or create the app's database connection object (this is a singleton object and dependent on system-level config) */ -- cgit v1.2.3