From: x99bachelart Date: Wed, 3 Sep 2003 11:12:09 +0000 (+0000) Subject: profile variables X-Git-Tag: 1.8~444 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=0fbea43797b6ccd2914c5218653c604e2ef994d8;p=banana.git profile variables --- 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; +} +?>