- modules/fotolab updated imagej to current version & some cod fixes to make it work
[care2x.git] / Care2007 / include / inc_get_user_id.php
blob8abdb3e011f6039d877e2bf2353d1a237bbabfca
1 <?php
2 /* Get the current user id depending on currently logged user */
3 if($HTTP_SESSION_VARS['sess_level2_logged'] && $HTTP_SESSION_VARS['sess_level2_user_id']) {
4 $user_id = $HTTP_SESSION_VARS['sess_level2_user_id'];
5 } elseif ($HTTP_SESSION_VARS['sess_level1_logged'] && $HTTP_SESSION_VARS['sess_level1_user_id']) {
6 $user_id = $HTTP_SESSION_VARS['sess_level2_user_id'];
7 } elseif ($HTTP_SESSION_VARS['sess_user_id']) {
8 $user_id = $HTTP_SESSION_VARS['sess_user_id'];
9 } else {
10 $user_id = $HTTP_COOKIE_VARS['ck_config'];