ここの情報は古いです。ご理解頂いた上でお取り扱いください。

source: OpenPNE/trunk/webapp/modules/pc/page/h_prof.php @ 1265

Last change on this file since 1265 was 1265, checked in by takanashi, 16 years ago

PNEPoint確認用

File size: 2.2 KB
Line 
1<?php
2/**
3 * @copyright 2005-2006 OpenPNE Project
4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
5 */
6
7class pc_page_h_prof extends OpenPNE_Action
8{
9    function execute($requests)
10    {
11        $u = $GLOBALS['AUTH']->uid();
12
13        $target_c_member_id = $u;
14
15        $this->set('is_h_prof', 1);
16        $this->set('inc_navi', fetch_inc_navi('h'));
17        $target_c_member = db_common_c_member_with_profile($u, 'friend');
18        $this->set('is_friend', 0);
19        $this->set('c_diary_list', db_diary_get_c_diary_list4c_member_id($target_c_member_id, 5, null, 'friend'));
20
21        // --- f_home, h_prof 共通処理
22
23        $this->set('target_c_member_id', $target_c_member_id);
24        $target_c_member['last_login'] = p_f_home_last_login4access_date($target_c_member['access_date']);
25        if ($target_c_member['birth_year']) {
26            $target_c_member['age'] = getAge($target_c_member['birth_year'], $target_c_member['birth_month'], $target_c_member['birth_day']);
27        }
28        $this->set('target_c_member', $target_c_member);
29
30        $this->set('c_rss_cache_list', p_f_home_c_rss_cache_list4c_member_id($target_c_member_id, 5));
31
32        $this->set('c_friend_comment_list', p_f_home_c_friend_comment4c_member_id($target_c_member_id));
33        $this->set('c_friend_list', p_f_home_c_friend_list4c_member_id($target_c_member_id, 9));
34        $this->set('c_friend_count', db_friend_count_friends($target_c_member_id));
35        $this->set('user_count', p_common_count_c_commu4c_member_id($target_c_member_id));
36        $this->set('c_commu_list', p_f_home_c_commu_list4c_member_id($target_c_member_id, 9));
37        $this->set('c_review_list', db_review_c_review_list4member($target_c_member_id, 5));
38
39        $this->set('profile_list', db_common_c_profile_list());
40
41        // 誕生日まであと何日?
42        $this->set('days_birthday', db_common_count_days_birthday4c_member_id($target_c_member_id));
43
44        // inc_entry_point
45        $this->set('inc_entry_point', fetch_inc_entry_point_f_home($this->getView()));
46
47        //PNEPOINT
48        $point = db_point_get_point($u);
49        $this->set("point", $point);
50
51        //rank
52        $this->set("rank", db_point_get_rank4point($point));
53
54        return 'success';
55    }
56}
57
58?>
Note: See TracBrowser for help on using the repository browser.