define('SE_PAGE_AJAX', TRUE); } if (!defined('SE_PAGE_AJAX')) { // UPDATE STATS TABLE update_stats("views"); // LOAD ADS $ads->load(); } // CREATE GLOBAL CSS STYLES VAR (USED FOR CUSTOM USER-DEFINED PROFILE/PLUGIN STYLES) $global_css = ""; SE_DEBUG ? $_benchmark->end('initialization') : NULL; SE_DEBUG ? $_benchmark->start('plugins') : NULL; // INCLUDE RELEVANT PLUGIN FILES // AND SET PLUGIN HEADER TEMPLATES $show_menu_user = FALSE; $global_plugins =& SECore::getPlugins(); foreach ($global_plugins as $plugin_type => $plugin_info) { $plugin_vars = array(); if (file_exists("header_{$plugin_info['plugin_type']}.php")) { include "header_{$plugin_info['plugin_type']}.php"; } // Set the hooks for each of the plugin templates if not using the new hooked template includes (backwards compatibility) if (empty($plugin_vars['uses_tpl_hooks'])) { if (file_exists(SE_ROOT . "/templates/header_{$plugin_info['plugin_type']}.tpl")) { $smarty->assign_hook('header', "header_{$plugin_info['plugin_type']}.tpl"); } if (file_exists(SE_ROOT . "/templates/footer_{$plugin_info['plugin_type']}.tpl")) { $smarty->assign_hook('footer', "footer_{$plugin_info['plugin_type']}.tpl"); } if (!empty($plugin_vars['menu_main'])) { $smarty->assign_hook('menu_main', $plugin_vars['menu_main']);