From 0fbea43797b6ccd2914c5218653c604e2ef994d8 Mon Sep 17 00:00:00 2001 From: x99bachelart Date: Wed, 3 Sep 2003 11:12:09 +0000 Subject: [PATCH] profile variables --- install.d/profile.inc.php | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 install.d/profile.inc.php diff --git a/install.d/profile.inc.php b/install.d/profile.inc.php new file mode 100644 index 0000000..3d2cf41 --- /dev/null +++ b/install.d/profile.inc.php @@ -0,0 +1,34 @@ +from == $_SESSION['name']." <".$_SESSION['mail'].">"); +} + +/** getprofile : sets profile variables + * @return ARRAY associative array. Keys are 'name' (name), 'sig' (signature), 'org' + * (organization), 'display' (display threads with new posts only or all threads), + * 'lastnews' (timestamp for empasizing new posts) + */ + +function getprofile() { + $array['name'] = $_SESSION['name']." <" + .htmlentities($_SESSION['mail']).">"; + $array['sig'] = $_SESSION['sig']; + $array['org'] = $_SESSION['org']; + $array['display'] = $_SESSION['displaytype']; + $array['lastnews'] = time()-86400; + return $array; +} +?> -- 2.1.4