"Fossies" - the Fresh Open Source Software Archive

Member "impresscms-1.4.2/htdocs/footer.php" (24 Dec 2020, 5336 Bytes) of package /linux/www/impresscms-1.4.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "footer.php" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes reports: 1.4.2_rc_vs_1.4.2 or 1.4.1_vs_1.4.2.

    1 <?php
    2 // $Id: footer.php 12313 2013-09-15 21:14:35Z skenow $
    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 
   28 /**
   29  *
   30  * @copyright   http://www.xoops.org/ The XOOPS Project
   31  * @copyright   XOOPS_copyrights.txt
   32  * @copyright   http://www.impresscms.org/ The ImpressCMS Project
   33  * @license     http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License (GPL)
   34  * @package     core
   35  * @since       XOOPS
   36  * @author      phppp
   37  * @author      Sina Asghari (aka stranger) <pesian_stranger@users.sourceforge.net>
   38  * @version     $Id: footer.php 12313 2013-09-15 21:14:35Z skenow $
   39  *
   40  */
   41 
   42 defined('ICMS_ROOT_PATH') || die('ICMS root path not defined');
   43 
   44 if (defined("XOOPS_FOOTER_INCLUDED")) exit();
   45 
   46 global $xoopsOption, $icmsConfigMetaFooter, $xoopsTpl, $icmsModule;
   47 
   48 /** Set the constant XOOPS_FOOTER_INCLUDED to 1 - this file has been included */
   49 define("XOOPS_FOOTER_INCLUDED", 1);
   50 
   51 $_SESSION['ad_sess_regen'] = FALSE;
   52 if (isset($_SESSION['sess_regen']) && $_SESSION['sess_regen']) {
   53     icms::$session->sessionOpen(TRUE);
   54     $_SESSION['sess_regen'] = FALSE;
   55 } else {
   56     icms::$session->sessionOpen();
   57 }
   58 
   59 // ################# Preload Trigger beforeFooter ##############
   60 icms::$preload->triggerEvent('beforeFooter');
   61 
   62 icms::$logger->stopTime('Module display');
   63 if (isset($xoopsOption['theme_use_smarty']) && $xoopsOption['theme_use_smarty'] == 0) {
   64     // the old way
   65     $footer = htmlspecialchars($icmsConfigMetaFooter['footer']) . '<br /><div style="text-align:center">' . _LOCAL_FOOTER . '</div>';
   66     $google_analytics = $icmsConfigMetaFooter['google_analytics'];
   67 
   68     if (isset($xoopsOption['template_main'])) {
   69         $xoopsTpl->caching = 0;
   70         $xoopsTpl->display('db:' . $xoopsOption['template_main']);
   71     }
   72     if (!isset($xoopsOption['show_rblock'])) {$xoopsOption['show_rblock'] = 0;}
   73     //themefooter($xoopsOption['show_rblock'], $footer, $google_analytics);
   74     xoops_footer();
   75 } else {
   76     // RMV-NOTIFY
   77     if (is_object($icmsModule) && $icmsModule->getVar('hasnotification') == 1 && is_object(icms::$user)) {
   78         /** Require the notifications area */
   79         require_once 'include/notification_select.php';
   80     }
   81     /** @todo Notifications include/require clarification in footer.php - if this is included here, why does it need to be required above? */
   82     /** Include the notifications area */
   83     include_once ICMS_ROOT_PATH . '/include/notification_select.php';
   84 
   85     if (!headers_sent()) {
   86         header('Content-Type:text/html; charset=' . _CHARSET);
   87         header('Expires:' . gmdate("D, d M Y H:i:s T", strtotime("yesterday")) );
   88         header('Cache-Control: private, no-cache');
   89         header('Pragma: no-cache');
   90         header("X-Frame-Options: SAMEORIGIN");
   91     }
   92     /*
   93      global $icmsConfig;
   94      if (!$icmsConfig['theme_fromfile']) {
   95         session_write_close();
   96         icms::$xoopsDB->close();
   97         }
   98         */
   99     //@internal: using global $xoTheme dereferences the variable in old versions, this does not
  100     if (!isset($xoTheme)) {$xoTheme =& $GLOBALS['xoTheme'];}
  101     if (isset($xoopsOption['template_main']) && $xoopsOption['template_main'] != $xoTheme->contentTemplate) {
  102         trigger_error("xoopsOption[template_main] should be defined before including header.php", E_USER_WARNING);
  103         if (FALSE === strpos($xoopsOption['template_main'], ':')) {
  104             $xoTheme->contentTemplate = 'db:' . $xoopsOption['template_main'];
  105         } else {
  106             $xoTheme->contentTemplate = $xoopsOption['template_main'];
  107         }
  108     }
  109     /* check if the module is cached and retrieve it, otherwise, render the page */
  110     if (!$xoTheme->checkCache()) {
  111         $xoTheme->render();
  112     }
  113 }
  114 icms::$logger->stopTime();