includes/template.php
changeset 202 c9fd175289aa
parent 195 3daa715e0f69
child 205 62ee6685ad18
equal deleted inserted replaced
201:c26308d81882 202:c9fd175289aa
   796     }
   796     }
   797     if ( !$simple && $session->sw_timed_out )
   797     if ( !$simple && $session->sw_timed_out )
   798     {
   798     {
   799       $login_link = makeUrlNS('Special', 'Login/' . $paths->fullpage, 'level=' . $session->user_level, true);
   799       $login_link = makeUrlNS('Special', 'Login/' . $paths->fullpage, 'level=' . $session->user_level, true);
   800       echo '<div class="usermessage">';
   800       echo '<div class="usermessage">';
   801       echo '<b>Your administrative session has timed out.</b> <a href="' . $login_link . '">Log in again</a>';
   801       echo '<b>Your administrative session has timed out.</b> <a href="' . $login_link . '" onclick="ajaxPromptAdminAuth(function(k){ ENANO_SID = k; window.location = append_sid(makeUrl(title)); }, ' . $session->user_level . '); return false;">Log in again</a>';
   802       echo '</div>';
   802       echo '</div>';
   803     }
   803     }
   804     if ( $this->site_disabled && $session->user_level >= USER_LEVEL_ADMIN && ( $paths->page != $paths->nslist['Special'] . 'Administration' ) )
   804     if ( $this->site_disabled && $session->user_level >= USER_LEVEL_ADMIN && ( $paths->page != $paths->nslist['Special'] . 'Administration' ) )
   805     {
   805     {
   806       $admin_link = makeUrlNS('Special', 'Administration', 'module=' . $paths->nslist['Admin'] . 'GeneralConfig', true);
   806       $admin_link = makeUrlNS('Special', 'Administration', 'module=' . $paths->nslist['Admin'] . 'GeneralConfig', true);