Revision 1511
Added by Dietmar about 13 years ago
class.wb.php | ||
---|---|---|
235 | 235 |
|
236 | 236 |
// Get the current users id |
237 | 237 |
function get_user_id() { |
238 |
return $_SESSION['USER_ID'];
|
|
238 |
return $this->get_session('USER_ID');
|
|
239 | 239 |
} |
240 | 240 |
|
241 | 241 |
// Get the current users group id |
242 | 242 |
function get_group_id() { |
243 |
return $_SESSION['GROUP_ID'];
|
|
243 |
return $this->get_session('GROUP_ID');
|
|
244 | 244 |
} |
245 | 245 |
|
246 | 246 |
// Get the current users group ids |
247 | 247 |
function get_groups_id() { |
248 |
return explode(",", $_SESSION['GROUPS_ID']);
|
|
248 |
return explode(",", $this->get_session('GROUPS_ID'));
|
|
249 | 249 |
} |
250 | 250 |
|
251 | 251 |
// Get the current users group name |
252 | 252 |
function get_group_name() { |
253 |
return implode(",", $_SESSION['GROUP_NAME']);
|
|
253 |
return implode(",", $this->get_session('GROUP_NAME'));
|
|
254 | 254 |
} |
255 | 255 |
|
256 | 256 |
// Get the current users group name |
257 | 257 |
function get_groups_name() { |
258 |
return $_SESSION['GROUP_NAME'];
|
|
258 |
return $this->get_session('GROUP_NAME');
|
|
259 | 259 |
} |
260 | 260 |
|
261 | 261 |
// Get the current users username |
262 | 262 |
function get_username() { |
263 |
return $_SESSION['USERNAME'];
|
|
263 |
return $this->get_session('USERNAME');
|
|
264 | 264 |
} |
265 | 265 |
|
266 | 266 |
// Get the current users display name |
267 | 267 |
function get_display_name() { |
268 |
return ($_SESSION['DISPLAY_NAME']);
|
|
268 |
return $this->get_session('DISPLAY_NAME');
|
|
269 | 269 |
} |
270 | 270 |
|
271 | 271 |
// Get the current users email address |
272 | 272 |
function get_email() { |
273 |
return $_SESSION['EMAIL'];
|
|
273 |
return $this->get_session('EMAIL');
|
|
274 | 274 |
} |
275 | 275 |
|
276 | 276 |
// Get the current users home folder |
277 | 277 |
function get_home_folder() { |
278 |
return $_SESSION['HOME_FOLDER'];
|
|
278 |
return $this->get_session('HOME_FOLDER');
|
|
279 | 279 |
} |
280 | 280 |
|
281 | 281 |
// Get the current users timezone |
Also available in: Unified diff
fixed strict notice warning in class.wb
change editor for intropage to editarea
add missing slash in themes