XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
footer.php
Go to the documentation of this file.
1 <?php
19 defined('XOOPS_ROOT_PATH') or die('Restricted access');
20 
21 $xoopsPreload =& XoopsPreload::getInstance();
22 $xoopsPreload->triggerEvent('core.footer.start');
23 
24 if (! defined("XOOPS_FOOTER_INCLUDED")) {
25  define("XOOPS_FOOTER_INCLUDED", 1);
26 
28  $xoopsLogger->stopTime('Module display');
29 
30  if ($xoopsOption['theme_use_smarty'] == 0) {
31  // the old way
32  $footer = htmlspecialchars($xoopsConfigMetaFooter['footer']) . '<br /><div class="txtcenter small">Powered by XOOPS &copy; <a href="http://xoops.sourceforge.net" rel="external" title="The XOOPS Project">The XOOPS Project</a></div>';
33  if (isset($xoopsOption['template_main'])) {
34  $xoopsTpl->caching = 0;
35  $xoopsTpl->display('db:' . $xoopsOption['template_main']);
36  }
37  if (!isset($xoopsOption['show_rblock'])) {
38  $xoopsOption['show_rblock'] = 0;
39  }
40  themefooter($xoopsOption['show_rblock'], $footer);
41  xoops_footer();
42  } else {
43  // RMV-NOTIFY
44  include_once $GLOBALS['xoops']->path('include/notification_select.php');
45  if (! headers_sent()) {
46  header('Content-Type:text/html; charset=' . _CHARSET);
47  header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
48  //header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
49  header('Cache-Control: private, no-cache');
50  header('Pragma: no-cache');
51  }
52 
53  //@internal: using global $xoTheme dereferences the variable in old versions, this does not
54  if (!isset($xoTheme)) {
55  $xoTheme =& $GLOBALS['xoTheme'];
56  }
57 
58  if (isset($xoopsOption['template_main']) && $xoopsOption['template_main'] != $xoTheme->contentTemplate) {
59  trigger_error("xoopsOption[template_main] should be defined before including header.php", E_USER_WARNING);
60  if (false === strpos($xoopsOption['template_main'], ':')) {
61  $xoTheme->contentTemplate = 'db:' . $xoopsOption['template_main'];
62  } else {
63  $xoTheme->contentTemplate = $xoopsOption['template_main'];
64  }
65  }
66 
67  $xoTheme->render();
68  }
69  $xoopsLogger->stopTime();
70 }
71 
72 $xoopsPreload->triggerEvent('core.footer.end');
73 ?>