yms/yms.php
changeset 8 be4a5f24bb29
parent 6 c1b4f69c187e
child 9 d58bafde2a92
equal deleted inserted replaced
7:3db638306413 8:be4a5f24bb29
     5   global $db, $session, $paths, $template, $plugins; // Common objects
     5   global $db, $session, $paths, $template, $plugins; // Common objects
     6   global $lang;
     6   global $lang;
     7   global $output;
     7   global $output;
     8   global $yms_client_id;
     8   global $yms_client_id;
     9   
     9   
    10   $yms_client_id = $session->user_id;
    10   $yms_client_id = ($force_cid = getConfig('yms_force_client_id', 0)) > 0 ? intval($force_cid) : $session->user_id;
    11   
    11   
    12   // Require re-auth?
    12   // Require re-auth?
    13   if ( $session->auth_level < USER_LEVEL_CHPREF && getConfig('yms_require_reauth', 1) == 1 )
    13   if ( $session->auth_level < USER_LEVEL_CHPREF && getConfig('yms_require_reauth', 1) == 1 )
    14   {
    14   {
    15     redirect(makeUrlNS('Special', "Login/$paths->fullpage", 'level=' . USER_LEVEL_CHPREF), '', '', 0);
    15     redirect(makeUrlNS('Special', "Login/$paths->fullpage", 'level=' . USER_LEVEL_CHPREF), '', '', 0);