Mercurial > hg > fapweb
comparison msession.inc.php @ 84:1f34037a7cae
Set some default parameters.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 18 Oct 2013 09:05:21 +0300 |
parents | 70c0b21f0781 |
children | 70bf38b071dd |
comparison
equal
deleted
inserted
replaced
83:4d32e870dda7 | 84:1f34037a7cae |
---|---|
123 return FALSE; | 123 return FALSE; |
124 } | 124 } |
125 } | 125 } |
126 | 126 |
127 | 127 |
128 function stAdmSessionAuth($silent) | 128 function stAdmSessionAuth($silent = FALSE) |
129 { | 129 { |
130 if (@session_start() === TRUE && | 130 if (@session_start() === TRUE && |
131 stGetSpecSessionItem(SESS_ADMIN, "key", FALSE) == stGetSetting("admPassword")) | 131 stGetSpecSessionItem(SESS_ADMIN, "key", FALSE) == stGetSetting("admPassword")) |
132 { | 132 { |
133 if (!$silent) stDebug("AUTH admin session OK."); | 133 if (!$silent) stDebug("AUTH admin session OK."); |
139 return FALSE; | 139 return FALSE; |
140 } | 140 } |
141 } | 141 } |
142 | 142 |
143 | 143 |
144 function stUserSessionAuth($silent) | 144 function stUserSessionAuth($silent = FALSE) |
145 { | 145 { |
146 if (@session_start() === TRUE && | 146 if (@session_start() === TRUE && |
147 stGetSpecSessionItem(SESS_USER, "key", FALSE) !== FALSE) | 147 stGetSpecSessionItem(SESS_USER, "key", FALSE) !== FALSE) |
148 { | 148 { |
149 if (!$silent) stDebug("AUTH user session OK."); | 149 if (!$silent) stDebug("AUTH user session OK."); |