Ejemplo n.º 1
0
**********************************************************************************/
if (!defined('SMF')) {
    die('Hacking attempt...');
}
global $settings, $db_prefix, $boardurl, $context;
global $smcFunc, $sourcedir;
//Ultimate Portal use SMF Cache data... UP it's the best, only "UP", can create this feature
if (!empty($ultimateportalSettings['up_reduce_site_overload'])) {
    if (cache_get_data('bk_menu', 1800) === NULL) {
        LoadMainLinks();
        cache_put_data('bk_menu', $context['main-links'], 1800);
    } else {
        $context['main-links'] = cache_get_data('bk_menu', 1800);
    }
} else {
    LoadMainLinks();
}
echo '
	<table border="0" width="100%" cellpadding="5" cellspacing="1">';
foreach ($context['main-links'] as $main_link) {
    //Is Active?
    if ($main_link['active']) {
        echo '
			<tr>
				<td class="' . !empty($main_link['class']) . '" align="left">
					' . $main_link['icon'] . '&nbsp;
					<a href="' . $main_link['url'] . '">
						<span>' . $main_link['title'] . '</span>
					</a>
				</td>
			</tr>';
function ShowPortalMenuSettings()
{
    global $context, $txt, $sourcedir;
    require_once $sourcedir . '/Subs-UltimatePortal.php';
    //Load the Main links from BD
    LoadMainLinks();
    $context['sub_template'] = 'preferences_main_links';
    $context['page_title'] = $txt['ultport_admin_portal_menu_title'] . ' - ' . $txt['ultport_preferences_title'];
}