diff -r 9bcc185dc151 -r 85f91037cd4f includes/template.php
--- a/includes/template.php Tue Jan 29 17:29:08 2008 -0500
+++ b/includes/template.php Tue Jan 29 23:15:44 2008 -0500
@@ -833,49 +833,16 @@
if ( $this->site_disabled && $session->user_level >= USER_LEVEL_ADMIN && ( $paths->page != $paths->nslist['Special'] . 'Administration' ) )
{
$admin_link = makeUrlNS('Special', 'Administration', 'module=' . $paths->nslist['Admin'] . 'GeneralConfig', true);
- echo '
The site is currently disabled and thus is only accessible to administrators.
- You can re-enable the site through the
administration panel.
+ echo '
' . $lang->get('page_sitedisabled_admin_msg_title') . '
+ ' . $lang->get('page_sitedisabled_admin_msg_body', array('admin_link' => $admin_link)) . '
';
}
}
function footer($simple = false)
{
- global $db, $session, $paths, $template, $plugins; // Common objects
- if ( !$this->no_headers )
- {
-
- if(!defined('ENANO_HEADERS_SENT'))
- $this->header();
-
- global $_starttime;
- if(isset($_GET['sqldbg']) && $session->get_permissions('mod_misc'))
- {
- echo '
Query list as requested on URI
';
- echo htmlspecialchars($db->sql_backtrace());
- echo '
';
- }
-
- $f = microtime_float();
- $f = $f - $_starttime;
- $f = round($f, 4);
- $dbg = 'Time: '.$f.'s | Queries: '.$db->num_queries;
- $t = ( $simple ) ? $this->process_template('simple-footer.tpl') : $this->process_template('footer.tpl');
- $t = str_replace('[[Stats]]', $dbg, $t);
- $t = str_replace('[[NumQueries]]', (string)$db->num_queries, $t);
- $t = str_replace('[[GenTime]]', (string)$f, $t);
-
- if ( defined('ENANO_DEBUG') )
- $t = str_replace('