예제 #1
0
파일: index.php 프로젝트: adi00/wumaproject
        }
    }
} else {
    $arr_logintype[0] = 0;
}
$pwCacheFile = D_P . 'data/bbscache/o_indexset_cache.php';
list(, $loginq) = explode("\t", $db_qcheck);
if (pwFilemtime($pwCacheFile) + 60 < $timestamp) {
    require_once R_P . 'require/showimg.php';
    $newuser = browseNewuser(8);
    if ($o_indexset & 2) {
        $smphoto = browsePhoto(6);
    }
    if ($o_indexset & 4) {
        $hotsubject = forumHotSubject(12);
        $hotforum_temp = forumSortpost(12);
        foreach ($hotforum_temp as $key => $value) {
            $value['title'] = strip_tags($value['title']);
            $value['title_sub'] = substrs($value['title'], 15);
            $hotforum[] = $value;
        }
        unset($hotforum_temp);
    }
    if ($o_indexset & 8) {
        $feeds = browseFeeds(15);
    }
    if ($o_indexset & 16) {
        $hotuser = browseHotuser(9);
    }
    if ($o_indexset & 32) {
        $newWrite = browseWrite(5);
예제 #2
0
/*** userapp **/
//消息数目统计
$notify_message_num = $private_message_num = 0;
$query = $db->query("SELECT mid,fromuid FROM pw_msg WHERE touid=" . pwEscape($winduid) . "AND type='rebox' AND ifnew=1");
while ($rt = $db->fetch_array($query)) {
    if ($rt['fromuid'] == 0) {
        $notify_message_num++;
    } elseif ($rt['fromuid'] != 0) {
        $private_message_num++;
    }
}
//好友论坛最新主题
$query = $db->query("SELECT t.tid,t.author,t.authorid,t.subject,t.postdate,m.icon FROM pw_threads t LEFT JOIN pw_members m ON t.authorid=m.uid WHERE t.authorid IN(" . pwImplode($frienddb) . ") ORDER BY t.postdate DESC LIMIT 5");
while ($rt = $db->fetch_array($query)) {
    list($rt['faceurl']) = showfacedesign($rt['icon'], '1', 's');
    list($rt['posttime'], $rt['postdate']) = getLastDate($rt['postdate']);
    $rt['subject'] = substrs($rt['subject'], 35);
    $friend_new_topic[] = $rt;
}
(empty($winddb['honor']) || !$_G['allowhonor']) && ($winddb['honor'] = getLangInfo('other', 'whattosay'));
$hotforum = forumSortpost(12);
function forumSortpost($num)
{
    global $db, $tdtime;
    $element = L::loadClass('element');
    $temp = $element->forumSort('article', $num);
    return $temp;
}
require_once M_P . 'require/header.php';
require_once PrintEot('m_home');
footer();