コード例 #1
0
ファイル: index.php プロジェクト: KuBe-zz/hamsterpaj
     $output .= '<h1>Bevakade trådar</h1>' . "\n";
     $output .= discussion_forum_thread_list($_SESSION['forum']['subscriptions']);
     foreach ($_SESSION['forum']['categories'] as $category) {
         if ($category['subscribing'] == 1) {
             $subscribing_categories[] = $category['category_id'];
         }
     }
     if (count($subscribing_categories) > 0) {
         $output .= '<h1 style="margin-top: 20px;">Kategorier du prenumererar på</h1>' . "\n";
         $viewers_userlevel = login_checklogin() ? $_SESSION['login']['userlevel'] : 0;
         $categories = discussion_forum_categories_fetch(array('id' => $subscribing_categories, 'max_levels' => 0, 'viewers_userlevel' => $viewers_userlevel));
         $output .= discussion_forum_categories_list($categories);
     }
     break;
 case 'view_notices':
     discussion_forum_reload_all();
     $ui_options['menu_path'][] = 'notices';
     $ui_options['title'] = 'Bevakade trådar - Hamsterpaj.net';
     $output .= discussion_forum_locator(array('page' => 'notices'));
     $output .= discussion_forum_list_notices();
     $output .= '<h1>Bevakade trådar</h1>' . "\n";
     $options['notice_listing'] = true;
     $output .= discussion_forum_thread_list($_SESSION['forum']['subscriptions'], $options);
     foreach ($_SESSION['forum']['categories'] as $category) {
         if ($category['subscribing'] == 1) {
             $subscribing_categories[] = $category['category_id'];
         }
     }
     if (count($subscribing_categories) > 0) {
         $output .= '<h1 style="margin-top: 20px;">Kategorier du prenumererar på</h1>' . "\n";
         $viewers_userlevel = login_checklogin() ? $_SESSION['login']['userlevel'] : 0;
コード例 #2
0
ファイル: login.lib.php プロジェクト: Rambutan/hamsterpaj
function cache_update_all()
{
    cache_update_bookmarks();
    cache_update_lastaction();
    cache_update_groups();
    cache_update_forum_notices();
    if ($_SESSION['login']['userlevel'] == 3 || $_SESSION['login']['userlevel'] == 4) {
        cache_update_forum_reported();
    }
    discussion_forum_reload_all();
    cache_update_photo_comments();
}