[ Index ]
 

Code source de XOOPS 2.0.17.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/htdocs/ -> footer.php (source)

   1  <?php
   2  // $Id: footer.php 1074 2007-10-11 15:21:11Z phppp $

   3  //  ------------------------------------------------------------------------ //

   4  //                XOOPS - PHP Content Management System                      //

   5  //                    Copyright (c) 2000 XOOPS.org                           //

   6  //                       <http://www.xoops.org/>                             //

   7  //  ------------------------------------------------------------------------ //

   8  //  This program is free software; you can redistribute it and/or modify     //

   9  //  it under the terms of the GNU General Public License as published by     //

  10  //  the Free Software Foundation; either version 2 of the License, or        //

  11  //  (at your option) any later version.                                      //

  12  //                                                                           //

  13  //  You may not change or alter any portion of this comment or credits       //

  14  //  of supporting developers from this source code or any supporting         //

  15  //  source code which is considered copyrighted (c) material of the          //

  16  //  original comment or credit authors.                                      //

  17  //                                                                           //

  18  //  This program is distributed in the hope that it will be useful,          //

  19  //  but WITHOUT ANY WARRANTY; without even the implied warranty of           //

  20  //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //

  21  //  GNU General Public License for more details.                             //

  22  //                                                                           //

  23  //  You should have received a copy of the GNU General Public License        //

  24  //  along with this program; if not, write to the Free Software              //

  25  //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //

  26  //  ------------------------------------------------------------------------ //

  27  if (!defined("XOOPS_ROOT_PATH")) {
  28      die("XOOPS root path not defined");
  29  }
  30  if ( !defined("XOOPS_FOOTER_INCLUDED") ) {
  31      define("XOOPS_FOOTER_INCLUDED",1);
  32  
  33      $xoopsLogger->stopTime( 'Module display' );
  34      if ($xoopsOption['theme_use_smarty'] == 0) {
  35          // the old way

  36          $footer = htmlspecialchars( $xoopsConfigMetaFooter['footer'] ) . '<br /><div style="text-align:center">Powered by XOOPS &copy; <a href="http://xoops.sourceforge.net/" target="_blank">The XOOPS Project</a></div>';
  37          if (isset($xoopsOption['template_main'])) {
  38              $xoopsTpl->xoops_setCaching(0);
  39              $xoopsTpl->display('db:'.$xoopsOption['template_main']);
  40          }
  41          if (!isset($xoopsOption['show_rblock'])) {
  42              $xoopsOption['show_rblock'] = 0;
  43          }
  44          themefooter($xoopsOption['show_rblock'], $footer);
  45          xoops_footer();
  46      } else {
  47          // RMV-NOTIFY

  48          include_once  XOOPS_ROOT_PATH . '/include/notification_select.php';
  49          
  50          if (!headers_sent()) {
  51              header('Content-Type:text/html; charset='._CHARSET);
  52              header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
  53              //header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');

  54              header('Cache-Control: private, no-cache');
  55              header('Pragma: no-cache');
  56          }
  57          /*

  58          global $xoopsDB, $xoopsConfig;

  59          if ( !$xoopsConfig['theme_fromfile'] ) {

  60              session_write_close();

  61              $xoopsDB->close();

  62          }

  63          */
  64          //@internal: using global $xoTheme dereferences the variable in old versions, this does not

  65          if ( !isset( $xoTheme ) )    $xoTheme =& $GLOBALS['xoTheme'];
  66  
  67          if ( isset( $xoopsOption['template_main'] ) && $xoopsOption['template_main'] != $xoTheme->contentTemplate ) {
  68              trigger_error( "xoopsOption[template_main] should be defined before including header.php", E_USER_WARNING );
  69              if ( false === strpos( $xoopsOption['template_main'], ':' ) ) {
  70                  $xoTheme->contentTemplate = 'db:' . $xoopsOption['template_main'];
  71              } else {
  72                  $xoTheme->contentTemplate = $xoopsOption['template_main'];
  73              }
  74          }
  75          $xoTheme->render();
  76      }
  77      $xoopsLogger->stopTime();
  78  }
  79  ?>


Généré le : Sun Nov 25 11:44:32 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics