diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2008-11-19 17:27:03 -0500 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2008-11-19 17:27:03 -0500 |
commit | 24503e3abe705acde2df159aeae61be0d009f92e (patch) | |
tree | 8debbd53dcd0db2f5934c5e2af4e697e3787781d /includes/session.php | |
download | fourisland-24503e3abe705acde2df159aeae61be0d009f92e.tar.gz fourisland-24503e3abe705acde2df159aeae61be0d009f92e.tar.bz2 fourisland-24503e3abe705acde2df159aeae61be0d009f92e.zip |
Imported sources
Diffstat (limited to 'includes/session.php')
-rw-r--r-- | includes/session.php | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/includes/session.php b/includes/session.php new file mode 100644 index 0000000..ff47e12 --- /dev/null +++ b/includes/session.php | |||
@@ -0,0 +1,61 @@ | |||
1 | <?php | ||
2 | /* | ||
3 | 444444444 | ||
4 | 4::::::::4 | ||
5 | 4:::::::::4 | ||
6 | 4::::44::::4 | ||
7 | 4::::4 4::::4 Four Island | ||
8 | 4::::4 4::::4 | ||
9 | 4::::4 4::::4 Written and maintained by Starla Insigna | ||
10 | 4::::444444::::444 | ||
11 | 4::::::::::::::::4 includes/session.php | ||
12 | 4444444444:::::444 | ||
13 | 4::::4 Please do not use, reproduce or steal the | ||
14 | 4::::4 contents of this file without explicit | ||
15 | 4::::4 permission from Hatkirby. | ||
16 | 44::::::44 | ||
17 | 4::::::::4 | ||
18 | 4444444444 | ||
19 | */ | ||
20 | |||
21 | if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);} | ||
22 | |||
23 | require('headerproc.php'); | ||
24 | |||
25 | session_start(); | ||
26 | |||
27 | function sess_exists($name) | ||
28 | { | ||
29 | return(isset($_SESSION[$name])); | ||
30 | } | ||
31 | |||
32 | function sess_set($name,$value) | ||
33 | { | ||
34 | $_SESSION[$name] = $value; | ||
35 | } | ||
36 | |||
37 | function sess_get($name) | ||
38 | { | ||
39 | return $_SESSION[$name]; | ||
40 | } | ||
41 | |||
42 | |||
43 | function sess_getifset($name) | ||
44 | { | ||
45 | if (sess_exists($name)) | ||
46 | { | ||
47 | return sess_get($name); | ||
48 | } else { | ||
49 | return false; | ||
50 | } | ||
51 | } | ||
52 | |||
53 | function sess_delete($name) | ||
54 | { | ||
55 | if (sess_exists($name)) | ||
56 | { | ||
57 | unset($_SESSION[$name]); | ||
58 | } | ||
59 | } | ||
60 | |||
61 | ?> | ||