예제 #1
0
    while ($r = db_fetch_row($q)) {
        $l .= $tpl->list_get('links', array(str_replace('{id}', $r[0], $lv), $r[1]));
    }
    $tpl->set_ar_out(array('MPL' => $MPL, 'site' => $was, 'links' => $l), 1);
}
// sitemap fuer module
// - fourm
// - news
// - wars
// - downloads
// - links (cats)
// - faqs
switch ($menu->get(1)) {
    default:
        $tpl = new tpl('sitemap');
        $tpl->out(0);
        break;
    case 'forum':
        show_sitemap("SELECT `id`,`name` FROM `prefix_topics` ORDER BY `id` ASC", '?forum-showposts-{id}', 'topics', $menu, '', 'Forum');
        break;
    case 'downloads':
        show_sitemap("SELECT `id`, concat(`name`,' ',`version`) as `x` FROM `prefix_downloads` WHERE `cat` >= 0 ORDER BY `id` ASC", '?downloads-show-{id}', 'downloads', $menu, '', 'Downloads');
        break;
    case 'links':
        show_sitemap("SELECT `id`,`name` FROM `prefix_linkcats` ORDER BY `id` ASC", '?links-{id}', 'links', $menu, '', 'Links');
        break;
    case 'news':
        show_sitemap("SELECT `news_id`,`news_title` FROM `prefix_news` ORDER BY `news_id` ASC", '?news-{id}', 'news', $menu, "WHERE `news_recht` >= " . $_SESSION['authright'], 'News');
        break;
}
$design->footer();
예제 #2
0
    while ($r = db_fetch_row($q)) {
        $l .= $tpl->list_get('links', array(str_replace('{id}', $r[0], $lv), $r[1]));
    }
    $tpl->set_ar_out(array('MPL' => $MPL, 'site' => $was, 'links' => $l), 1);
}
# sitemap fuer module
# - fourm
# - news
# - wars
# - downloads
# - links (cats)
# - faqs
switch ($menu->get(1)) {
    default:
        $tpl = new tpl('sitemap');
        $tpl->out(0);
        break;
    case 'forum':
        show_sitemap("SELECT id,name FROM prefix_topics ORDER BY id ASC", '?forum-showposts-{id}', 'topics', $menu, '', 'Forum');
        break;
    case 'downloads':
        show_sitemap("SELECT id, concat(name,' ',version) as x FROM prefix_downloads WHERE cat >= 0 ORDER BY id ASC", '?downloads-show-{id}', 'downloads', $menu, '', 'Downloads');
        break;
    case 'links':
        show_sitemap("SELECT id,name FROM prefix_linkcats ORDER BY id ASC", '?links-{id}', 'links', $menu, '', 'Links');
        break;
    case 'news':
        show_sitemap("SELECT news_id,news_title FROM prefix_news ORDER BY news_id ASC", '?news-{id}', 'news', $menu, "WHERE news_recht >= " . $_SESSION['authright'], 'News');
        break;
}
$design->footer();