Esempio n. 1
0
function foot()
{
    themefooter();
    if (!isset($GLOBALS['xanthia_theme']) && pnModLoad('Header_Footer', 'user', true)) {
        pnModFunc('Header_Footer', 'user', 'render');
    }
}
Esempio n. 2
0
function foot()
{
    global $index, $pnconfig, $pndebug, $dbg, $debug_sqlcalls, $dbg_starttime;
    // modification .71 multisites mouzaia
    /* it should not be necessary here, since config.php is in a table.
        if (!isset($index)) {
    	include(WHERE_IS_PERSO."config.php");
        }
    */
    themefooter();
    /**
     * DebugXHTML will place a link at the bottom of all pages which directs
     * the page to w3.org's validator server.  This will allow all
     * module developers and theme writers to check their code for XHTML
     * compliance.  Transitional XHTML is hard-coded till the next major
     * release.
     */
    $debugxhtml = -1;
    if (pnConfigGetVar('supportxhtml')) {
        if ($debugxhtml) {
            xhtml_display_test();
        }
    }
    // show time to render
    $mtime = explode(" ", microtime());
    $dbg_endtime = $mtime[1] + $mtime[0];
    $dbg_totaltime = $dbg_endtime - $dbg_starttime;
    //printf("<center><font class=\"pn-sub\">Page created in %f seconds.</font></center>", $dbg_totaltime);
    if ($pndebug['debug']) {
        $dbg->v($dbg_totaltime, "Page created in (seconds)");
        $dbg->v($debug_sqlcalls, "Number of SQL Calls");
    }
    echo "</body>\n</html>";
}
Esempio n. 3
0
function foot()
{
    global $prefix, $user_prefix, $db, $index, $user, $cookie, $storynum, $user, $cookie, $Default_Theme, $foot1, $foot2, $foot3, $foot4, $home, $module, $name;
    if ($home == 1) {
        blocks(Down);
    }
    if ($module == 1 and file_exists("modules/{$name}/copyright.php")) {
        $cpname = ereg_replace("_", " ", $name);
        echo "<div align=\"right\"><a href=\"javascript:openwindow()\">{$cpname} &copy;</a></div>";
    }
    if ($module == 1 and file_exists("modules/{$name}/admin/panel.php")) {
        echo "<br>";
        OpenTable();
        include "modules/{$name}/admin/panel.php";
        CloseTable();
    }
    themefooter();
    echo "</body>\n" . "</html>";
    die;
}
Esempio n. 4
0
function foot()
{
    global $prefix, $user_prefix, $db, $index, $user, $cookie, $storynum, $user, $cookie, $Default_Theme, $foot1, $foot2, $foot3, $foot4, $home, $name, $admin, $commercial_license;
    if (defined('HOME_FILE')) {
        blocks("Down");
    }
    if (basename($_SERVER['PHP_SELF']) != "index.php" and defined('MODULE_FILE') and file_exists("modules/{$name}/copyright.php") && $commercial_license != 1) {
        $cpname = str_replace("_", " ", $name);
        echo "<div align=\"right\"><a href=\"javascript:openwindow()\">{$cpname} &copy;</a></div>";
    }
    if (basename($_SERVER['PHP_SELF']) != "index.php" and defined('MODULE_FILE') and file_exists("modules/{$name}/admin/panel.php") && is_admin($admin)) {
        echo "<br>";
        OpenTable();
        include "modules/{$name}/admin/panel.php";
        CloseTable();
    }
    themefooter();
    if (file_exists("includes/custom_files/custom_footer.php")) {
        include_secure("includes/custom_files/custom_footer.php");
    }
    echo "</body>\n</html>";
    ob_end_flush();
    die;
}
Esempio n. 5
0
$xoopsPreload->triggerEvent('core.footer.start');
if (!defined("XOOPS_FOOTER_INCLUDED")) {
    define("XOOPS_FOOTER_INCLUDED", 1);
    $xoopsLogger =& XoopsLogger::getInstance();
    $xoopsLogger->stopTime('Module display');
    if ($xoopsOption['theme_use_smarty'] == 0) {
        // the old way
        $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>';
        if (isset($xoopsOption['template_main'])) {
            $xoopsTpl->caching = 0;
            $xoopsTpl->display('db:' . $xoopsOption['template_main']);
        }
        if (!isset($xoopsOption['show_rblock'])) {
            $xoopsOption['show_rblock'] = 0;
        }
        themefooter($xoopsOption['show_rblock'], $footer);
        xoops_footer();
    } else {
        // RMV-NOTIFY
        include_once $GLOBALS['xoops']->path('include/notification_select.php');
        if (!headers_sent()) {
            header('Content-Type:text/html; charset=' . _CHARSET);
            header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
            //header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
            header('Cache-Control: private, no-cache');
            header('Pragma: no-cache');
        }
        //@internal: using global $xoTheme dereferences the variable in old versions, this does not
        if (!isset($xoTheme)) {
            $xoTheme =& $GLOBALS['xoTheme'];
        }
Esempio n. 6
0
        $new_total_time = $end_time - START_TIME - $db_log->time;
        $foot1 .= sprintf(_PAGEFOOTER, round($total_time, 4) . '|' . round($new_total_time, 4), $db->num_queries . '|' . $db_log->num_queries, round($db->time, 4) . '|' . round($db_log->time, 4));
        // only works if your PHP is compiled with the --enable-memory-limit configuration option
        if (function_exists('memory_get_usage') && $start_mem > 0) {
            $total_mem = memory_get_usage() - $start_mem;
            $foot1 .= '<br />Memory Usage: ' . ($total_mem >= 1048576 ? round(round($total_mem / 1048576 * 100) / 100, 2) . ' MB' : ($total_mem >= 1024 ? round(round($total_mem / 1024 * 100) / 100, 2) . ' KB' : $total_mem . ' Bytes'));
        }
        $foot1 .= '<br />';
    }
    // MS-Analysis Entry
    //	  require( "modules/MS_Analysis/mstrack.php" );
    $foot1 = '<div style="text-align:center;">' . $foot1 . '
	Interactive software released under <a href="http://dragonflycms.org/GNUGPL.html" target="_blank" title="GNU Public License Agreement">GNU GPL</a>,
	<a href="' . URL::index('credits') . '">Code Credits</a>,
	<a href="' . URL::index('privacy_policy') . '">Privacy Policy</a></div>';
    if (is_admin() || NEXOS_DEBUG) {
        $GLOBALS['cpgtpl']->assign_var('S_DEBUG_SQL', NEXOS_DEBUG || $GLOBALS['MAIN_CFG']['debug']['database'] ? $GLOBALS['cpgdebugger']->get_report('sql') : false);
        $GLOBALS['cpgtpl']->assign_var('S_DEBUG_PHP', $GLOBALS['cpgdebugger']->get_report('php'));
    }
    return $foot1;
}
global $db, $SESS, $cpgtpl, $Blocks;
$Blocks->display('d');
themefooter();
//	$cpgtpl->assign_vars(array('S_FOOTER' => footmsg()));
//	$cpgtpl->set_filenames(array('footer' => 'footer.html'));
//	$cpgtpl->display('footer');
$cpgtpl->__destruct();
$SESS->write_close();
$db->sql_close();
exit;