// } // { meta tags $c .= '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />'; if ($PAGEDATA->keywords) { $c .= '<meta http-equiv="keywords" content="' . htmlspecialchars($PAGEDATA->keywords) . '" />'; } if ($PAGEDATA->description) { $c .= '<meta http-equiv="description" content="' . htmlspecialchars($PAGEDATA->description) . '"/>'; } if (isset($PAGEDATA->vars['google-site-verification']) && $PAGEDATA->vars['google-site-verification']) { $c .= '<meta name="google-site-verification" content="' . htmlspecialchars($PAGEDATA->vars['google-site-verification']) . '" />'; } // } // { favicon if (file_exists(USERBASE . '/f/skin_files/favicon.ico')) { $c .= '<link rel="shortcut icon" href="/f/skin_files/favicon.ico" />'; } // } $c .= plugin_trigger('building-metadata'); $smarty->assign('METADATA', $c); // } // { display the document ob_start(); if (strpos($template, '/') === false) { $template = THEME_DIR . '/' . THEME . '/h/' . $template . '.html'; } $t = $smarty->fetch($template); echo str_replace(array('WW_SCRIPTS_GO_HERE', 'WW_CSS_GOES_HERE', '</body>'), array(WW_getScripts(), WW_getCSS(), WW_getInlineScripts() . '</body>'), $t); header('X-page-generation: ' . (microtime(true) - $ww_startup) . 's'); ob_show_and_log('page', 'Content-type: text/html; Charset=utf-8'); // }
} // } // { plugin $PLUGINS = array(); $PLUGIN_TRIGGERS = array(); if (!isset($ignore_webme_plugins)) { foreach ($DBVARS['plugins'] as $pname) { if (strpos('/', $pname) !== false) { continue; } require SCRIPTBASE . 'ww.plugins/' . $pname . '/plugin.php'; if (isset($plugin['version']) && $plugin['version'] && (!isset($DBVARS[$pname . '|version']) || $DBVARS[$pname . '|version'] != $plugin['version'])) { $version = isset($DBVARS[$pname . '|version']) ? (int) $DBVARS[$pname . '|version'] : 0; require SCRIPTBASE . 'ww.plugins/' . $pname . '/upgrade.php'; header('Location: ' . $_SERVER['REQUEST_URI']); exit; } $PLUGINS[$pname] = $plugin; if (isset($plugin['triggers'])) { foreach ($plugin['triggers'] as $name => $fn) { if (!isset($PLUGIN_TRIGGERS[$name])) { $PLUGIN_TRIGGERS[$name] = array(); } $PLUGIN_TRIGGERS[$name][] = $fn; } } } } // } plugin_trigger('initialisation-completed');