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'];
10 $user_id = $HTTP_COOKIE_VARS['ck_config'];