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

source: OpenPNE/branches/2.8.x/webapp/modules/pc/page/h_prof.php @ 2864

Last change on this file since 2864 was 2864, checked in by ogawa, 15 years ago

#705:h_diary_editにエントリーポイントを入れる

File size: 2.3 KB
Line 
1<?php
2/**
3 * @copyright 2005-2007 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_member_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', db_rss_c_rss_cache_list4c_member_id($target_c_member_id, 5));
31
32        $this->set('c_friend_comment_list', db_friend_c_friend_comment4c_member_id($target_c_member_id));
33        $this->set('c_friend_list', db_friend_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', db_commu_count_c_commu4c_member_id($target_c_member_id));
36        $this->set('c_commu_list', db_commu_c_commu_list4c_member_id_2($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_member_c_profile_list());
40
41        // 誕生日まであと何日?
42        $this->set('days_birthday', db_member_count_days_birthday4c_member_id($target_c_member_id));
43
44        if (OPENPNE_USE_POINT_RANK) {
45            // ポイント
46            $point = db_point_get_point($target_c_member_id);
47            $this->set("point", $point);
48
49            // ランク
50            $this->set("rank", db_point_get_rank4point($point));
51        }
52
53        // inc_entry_point
54        $this->set('inc_entry_point', fetch_inc_entry_point($this->getView(), 'f_home'));
55
56        return 'success';
57    }
58}
59
60?>
Note: See TracBrowser for help on using the repository browser.