equal
deleted
inserted
replaced
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); |