Example #1
0
 /**
  * Output the footer HTML and call the close() function to perform final clean-ups. If $DB and $User
  * are available then the script has ended successfully, and some statistics around outputted.
  */
 public static function footer()
 {
     global $DB;
     print '<div id="footer">';
     if (is_object($DB)) {
         print self::footerStats();
         print '<br /><br />';
         print self::footerCopyright();
         print '<br />' . l_t('Times are <strong id="UTCOffset">UTC+0:00</strong>');
         print Config::customFooter();
         if (Config::$debug) {
             print self::footerDebugData();
         }
         print self::footerScripts();
     } else {
         // $DB isn't available, something went wrong
         print self::footerCopyright();
     }
     print '</div></body></html>';
     close();
 }