assign( 'PHPSayConfig', $PHPSayConfig ); $template->assign( 'loginInfo', $loginInfo ); if( !$isMobileRequest ) { $template->assign( 'headerNavi', ($memberId == $loginInfo['uid']) ? "me" : "" ); if( $userInfo['uid'] == $loginInfo['uid'] ) { $template->assign( 'notificationNumber', PHPSay::getUnreadNotificationNumber($DB,$loginInfo['uid']) ); $template->assign( 'favoriteNumber', PHPSay::getUserFavoriteNumber($DB,$loginInfo['uid']) ); $template->assign( 'memberBalance', $userInfo['balance'] ); } } $template->assign( 'userInfo', $userInfo ); $template->assign( 'postType', $postType ); switch ($postType) { case "reply": $template->assign( 'postList', PHPSay::getReply($DB,"uid",$userInfo["uid"],$currentPage,30) ); break; case "favorite": $template->assign( 'postList', PHPSay::getUserFavorite($DB,$loginInfo["uid"],$currentPage,30) ); break; default: $template->assign( 'postList', PHPSay::getTopic($DB,"user",$userInfo["uid"],$currentPage,30) ); } $template->output(); } $DB->close(); } } ?>