+our $auth = SL::Auth->new();
+if (!$auth->session_tables_present()) {
+ _show_error('login/auth_db_unreachable');
+}
+$auth->expire_sessions();
+my $session_result = $auth->restore_session();
+
+require "bin/mozilla/common.pl";
+
+if (defined($main::latex) && !defined($main::latex_templates)) {
+ $main::latex_templates = $main::latex;
+ undef($main::latex);
+}
+
+# this prevents most of the tabindexes being created by CGI.
+# note: most. popup menus and selecttables will still have tabindexes
+# use common.pl's NTI function to get rid of those
+local $CGI::TABINDEX = 0;