function execute($requests) { $use_portal = db_portal_config('USE_PORTAL_KTAI'); if (!$use_portal['value']) { openpne_redirect('ktai'); } $this->set('SNS_NAME', SNS_NAME); $this->set('IS_CLOSED_SNS', IS_CLOSED_SNS); $top = array(); $bottom = array(); $layout_list = db_portal_layout_ktai_order_by_position(); foreach ($layout_list as $layout) { $pos = $layout['position']; $name = $layout['content_name']; $content = $this->get_contents($name); if ($pos == 10 || $pos == 11) { $top[] = $content; } else { if ($pos == 20 || $pos == 21) { $bottom[] = $content; } } } $this->set('top', $top); $this->set('bottom', $bottom); // inc_entry_point $this->set('inc_ktai_entry_point', fetch_inc_entry_point($this->getView(), 'ktai_o_login')); return 'success'; }
function execute($requests) { $u = $GLOBALS['AUTH']->uid(); $this->set('inc_navi', fetch_inc_navi("h")); // inc_entry_point $this->set('inc_entry_point', fetch_inc_entry_point($this->getView(), 'h_reply_message')); return 'success'; }
function execute($requests) { $u = $GLOBALS['KTAI_C_MEMBER_ID']; // --- リクエスト変数 $target_c_member_id = $requests['target_c_member_id']; // ---------- if ($target_c_member_id == $u) { openpne_redirect('ktai', 'page_h_home'); } if (!db_member_is_active_c_member_id($target_c_member_id)) { ktai_display_error('該当するメンバーが見つかりません。'); } if (db_member_is_access_block($u, $target_c_member_id)) { openpne_redirect('ktai', 'page_h_access_block'); } //管理画面HTML $this->set('c_siteadmin', p_common_c_siteadmin4target_pagename('k_f_home')); //ターゲットのc_member $is_friend = db_friend_is_friend($u, $target_c_member_id); $target_c_member = db_member_c_member_with_profile($target_c_member_id, 'private'); $target_c_member['last_login'] = p_f_home_last_login4access_date($target_c_member['access_date']); if ($target_c_member['birth_year']) { $target_c_member['age'] = getAge($target_c_member['birth_year'], $target_c_member['birth_month'], $target_c_member['birth_day']); } $this->set("target_c_member", $target_c_member); //ターゲットの最新日記5件 $this->set("c_diary_list", db_diary_get_c_diary_list4c_member_id($target_c_member_id, 5, $u)); //フレンドランダム5人 $this->set("c_friend_list", db_friend_c_friend_list_random4c_member_id($target_c_member_id, 5)); //参加コミュニティ最新書き込み5件 $this->set("c_commu_list", db_commu_c_commu_list_lastupdate4c_member_id($target_c_member_id, 5)); //共通コミュニティ $this->set('common_commu_count', count(db_common_commu_common_commu_id4c_member_id($target_c_member_id, $u))); //ターゲットと自分との関係 $this->set("relation", db_friend_relationship4two_members($u, $target_c_member_id)); $is_friend = db_friend_is_friend($u, $target_c_member_id); if ($is_friend) { $this->set('is_friend', $is_friend); } else { $this->set('friend_path', db_friend_friend_path4c_member_ids($u, $target_c_member_id)); } $this->set('profile_list', db_member_c_profile_list()); // 誕生日まであと何日? $this->set('days_birthday', db_member_count_days_birthday4c_member_id($target_c_member_id)); if (OPENPNE_USE_POINT_RANK) { // ポイント $point = db_point_get_point($target_c_member_id); $this->set("point", $point); // ランク $this->set("rank", db_point_get_rank4point($point)); } // inc_entry_point $this->set('inc_ktai_entry_point', fetch_inc_entry_point($this->getView(), 'ktai_f_home')); //あしあとをつける db_ashiato_insert_c_ashiato($target_c_member_id, $u); return 'success'; }
function execute($requests) { $u = $GLOBALS['AUTH']->uid(); $target_c_member_id = $u; $this->set('is_h_prof', 1); $this->set('inc_navi', fetch_inc_navi('h')); $target_c_member = db_member_c_member_with_profile($u, 'private'); $this->set('is_friend', 0); $this->set('c_diary_list', db_diary_get_c_diary_list4c_member_id($target_c_member_id, 5, null, 'friend')); if (OPENPNE_USE_ALBUM) { // アルバム $this->set('c_album_list', db_album_get_c_album_subject_list4c_member_id($target_c_member_id, 5, null, 'friend')); } // --- f_home, h_prof 共通処理 $this->set('target_c_member_id', $target_c_member_id); $target_c_member['last_login'] = p_f_home_last_login4access_date($target_c_member['access_date']); if ($target_c_member['birth_year']) { $target_c_member['age'] = getAge($target_c_member['birth_year'], $target_c_member['birth_month'], $target_c_member['birth_day']); } $this->set('target_c_member', $target_c_member); $this->set('c_rss_cache_list', db_rss_c_rss_cache_list4c_member_id($target_c_member_id, 5)); $this->set('c_friend_comment_list', db_friend_c_friend_comment4c_member_id($target_c_member_id)); $this->set('c_friend_list', db_friend_c_friend_list4c_member_id($target_c_member_id, 9)); $this->set('c_friend_count', db_friend_count_friends($target_c_member_id)); $this->set('user_count', db_commu_count_c_commu4c_member_id($target_c_member_id)); $this->set('c_commu_list', db_commu_c_commu_list4c_member_id_2($target_c_member_id, 9)); $this->set('c_review_list', db_review_c_review_list4member($target_c_member_id, 5)); $this->set('profile_list', db_member_c_profile_list()); // 誕生日まであと何日? $this->set('days_birthday', db_member_count_days_birthday4c_member_id($target_c_member_id)); if (OPENPNE_USE_POINT_RANK) { // ポイント $point = db_point_get_point($target_c_member_id); $this->set("point", $point); // ランク $this->set("rank", db_point_get_rank4point($point)); } // ---bizここから $this->set('is_h_prof', 1); //カレンダー表示用 $biz_dir = OPENPNE_MODULES_BIZ_DIR . '/biz/'; //bizモジュールディレクトリの定義 include_once $biz_dir . 'lib/smarty_functions.php'; //bizモジュールよりライブラリを拝借 include_once $biz_dir . 'lib/mysql_functions.php'; //bizモジュールよりライブラリを拝借 $this->set('calendar', biz_getScheduleWeek($u, $u, $requests['w'], 'p', true, true, true, $target_c_member)); $todolist = biz_getTodoList($u, $u, "h", $target_c_member['nickname']); $this->set("todolist", $todolist); $group_list = biz_getHomeGroupList($u); $this->set('group_list', $group_list); // ---bizここまで // inc_entry_point $this->set('inc_entry_point', fetch_inc_entry_point($this->getView(), 'f_home')); return 'success'; }
function execute($requests) { $u = $GLOBALS['AUTH']->uid(); $c_commu_id = $requests['target_c_commu_id']; $c_commu = db_commu_c_commu4c_commu_id2($c_commu_id); //コミュニティの存在の有無 if (!$c_commu) { openpne_redirect('pc', 'page_h_err_c_home'); } $inc_navi = fetch_inc_navi('c', $c_commu_id); $this->set('inc_navi', $inc_navi); $this->set('c_commu', $c_commu); // 副管理者情報 if ($c_commu['c_member_id_sub_admin']) { $c_member_sub_admin = db_member_c_member4c_member_id($c_commu['c_member_id_sub_admin']); $this->set('sub_admin', $c_member_sub_admin); } $this->set('is_c_commu_admin', db_commu_is_c_commu_admin($c_commu_id, $u)); $this->set('is_c_commu_member', db_commu_is_c_commu_member($c_commu_id, $u)); $this->set('is_c_commu_view', db_commu_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)); $this->set('is_receive_mail', db_commu_is_receive_mail_ktai($c_commu_id, $u)); $this->set('is_receive_mail_pc', db_commu_is_receive_mail_pc($c_commu_id, $u)); $this->set('is_receive_message', db_commu_is_receive_message($c_commu_id, $u)); //コミュニティメンバー $c_commu_member_list = db_commu_c_commu_member_list4c_commu_id($c_commu_id, 9); $this->set('c_commu_member_list', $c_commu_member_list); $c_member_secure = db_member_c_member_secure4c_member_id($u); if (empty($c_member_secure['ktai_address'])) { $is_registered_ktai_address = false; } else { $is_registered_ktai_address = true; } //非公開コミュニティに管理者から招待されたかどうか $this->set('admin_invite', db_commu_c_commu4c_admin_invite_id($c_commu_id, $u)); //参加コミュニティの新着トピック書き込み $new_topic_comment = db_commu_new_topic_comment4c_commu_id($c_commu_id, 7); $this->set('new_topic_comment', $new_topic_comment); //参加コミュニティの新着イベント書き込み $new_topic_comment_event = db_commu_new_topic_comment4c_commu_id($c_commu_id, 7, 1); $this->set('new_topic_comment_event', $new_topic_comment_event); //参加コミュニティの新着おすすめレビュー $this->set('new_commu_review', db_review_new_commu_review4c_commu_id($c_commu_id, 7)); // 携帯メールアドレス登録状況 $this->set('is_registered_ktai_address', $is_registered_ktai_address); $this->set('is_unused_pc_bbs', util_is_unused_mail('m_pc_bbs_info')); $this->set('is_unused_ktai_bbs', util_is_unused_mail('m_ktai_bbs_info')); // inc_entry_point $this->set('inc_entry_point', fetch_inc_entry_point($this->getView(), 'c_home')); return 'success'; }
function execute($requests) { $u = $GLOBALS['KTAI_C_MEMBER_ID']; // --- リクエスト変数 $target_c_commu_id = $requests['target_c_commu_id']; // ---------- $c_commu = db_commu_c_commu4c_commu_id($target_c_commu_id); //コミュニティの存在の有無 if (!$c_commu) { openpne_redirect('ktai', 'page_h_home'); } //--- 権限チェック //未処理 //掲示板の閲覧権限チェック tplでやっている $this->set("is_c_commu_view", db_commu_is_c_commu_view4c_commu_idAc_member_id($target_c_commu_id, $u)); $this->set("is_c_commu_member", db_commu_is_c_commu_member($target_c_commu_id, $u)); $this->set('is_c_commu_admin', db_commu_is_c_commu_admin($target_c_commu_id, $u)); //--- //管理画面HTML $this->set('c_siteadmin', p_common_c_siteadmin4target_pagename('k_c_home')); //コミュニティ情報 $this->set("c_commu", db_commu_c_commu4c_commu_id_k($target_c_commu_id)); // 副管理者情報 if ($c_commu['c_member_id_sub_admin']) { $c_member_sub_admin = db_member_c_member4c_member_id($c_commu['c_member_id_sub_admin']); $this->set('sub_admin', $c_member_sub_admin); } //コミュニティメンバーリスト $this->set("c_commu_member_list", db_commu_c_commu_member_list_random4c_commu_id($target_c_commu_id, 5)); //参加コミュニティの新着トピック書き込み $this->set("new_topic_comment", db_commu_new_topic_comment4c_commu_id($target_c_commu_id, 5)); //参加コミュニティの新着イベント書き込み $this->set("new_topic_comment_event", db_commu_new_topic_comment4c_commu_id($target_c_commu_id, 5, 1)); //自分($u)とこのコミュとの関係 $this->set("relation_c_member_and_c_commu", db_commu_relationship_between_member_commu($target_c_commu_id, $u)); //コミュニティメール(ktai)受信設定 $this->set("is_receive_mail", db_commu_is_receive_mail_ktai($target_c_commu_id, $u)); //コミュニティメール(pc)受信設定 $this->set("is_receive_mail_pc", db_commu_is_receive_mail_pc($target_c_commu_id, $u)); //管理者からのメッセージ受信設定 $this->set("is_receive_message", db_commu_is_receive_message($target_c_commu_id, $u)); $this->set('is_unused_pc_bbs', util_is_unused_mail('m_pc_bbs_info')); $this->set('is_unused_ktai_bbs', util_is_unused_mail('m_ktai_bbs_info')); // inc_entry_point $this->set('inc_ktai_entry_point', fetch_inc_entry_point($this->getView(), 'ktai_c_home')); return 'success'; }
function execute($requests) { if (LOGIN_URL_KTAI && !DISPLAY_LOGIN) { client_redirect_absolute(LOGIN_URL_KTAI); } // --- リクエスト変数 $msg_id = $requests['msg']; $kad = $requests['kad']; // ---------- //メッセージ $this->set('msg', k_p_common_msg4msg_id($msg_id)); $this->set('ktai_address', t_decrypt($kad)); $this->set('SNS_NAME', SNS_NAME); $this->set('IS_CLOSED_SNS', IS_CLOSED_SNS); // inc_entry_point $this->set('inc_ktai_entry_point', fetch_inc_entry_point($this->getView(), 'ktai_o_login')); return 'success'; }
function execute($requests) { $u = $GLOBALS['AUTH']->uid(); // --- リクエスト変数 $form_val['subject'] = $requests['subject']; $form_val['body'] = $requests['body']; $form_val['public_flag'] = $requests['public_flag']; $form_val['category'] = $requests['category']; $form_val['is_comment_input'] = $requests['is_comment_input']; // ---------- $sessid = session_id(); t_image_clear_tmp($sessid); $this->set('inc_navi', fetch_inc_navi("h")); //プロフィール $c_member = db_member_c_member4c_member_id($u); if (empty($form_val['public_flag'])) { $form_val['public_flag'] = $c_member['public_flag_diary']; } $this->set("target_member", $c_member); $this->set("form_val", $form_val); //カレンダー関係 //カレンダー開始用変数 $year = date("Y"); $month = date("n"); //日記一覧、カレンダー用変数 $date_val = array('year' => $year, 'month' => $month, 'day' => null); $this->set("date_val", $date_val); //日記のカレンダー $calendar = db_common_diary_monthly_calendar($year, $month, $u); $this->set("calendar", $calendar['days']); $this->set("ym", $calendar['ym']); //各月の日記 $this->set("date_list", p_fh_diary_list_date_list4c_member_id($u)); if (USE_DIARY_CATEGORY) { //カテゴリリスト $this->set("category_list", db_diary_category_list4c_member_id($u)); $this->set("use_diary_category", true); } // inc_entry_point $this->set('inc_entry_point', fetch_inc_entry_point($this->getView(), 'h_diary_add')); return 'success'; }
function execute($requests) { $u = $GLOBALS['AUTH']->uid(); $target_c_member_id = $u; $this->set('is_h_prof', 1); $this->set('inc_navi', fetch_inc_navi('h')); $target_c_member = db_member_c_member_with_profile($u, 'private'); $this->set('is_friend', 0); $this->set('c_diary_list', db_diary_get_c_diary_list4c_member_id($target_c_member_id, 5, null, 'friend')); if (OPENPNE_USE_ALBUM) { // アルバム $this->set('c_album_list', db_album_get_c_album_subject_list4c_member_id($target_c_member_id, 5, null, 'friend')); } // --- f_home, h_prof 共通処理 $this->set('target_c_member_id', $target_c_member_id); $target_c_member['last_login'] = p_f_home_last_login4access_date($target_c_member['access_date']); if ($target_c_member['birth_year']) { $target_c_member['age'] = getAge($target_c_member['birth_year'], $target_c_member['birth_month'], $target_c_member['birth_day']); } $this->set('target_c_member', $target_c_member); $this->set('c_rss_cache_list', db_rss_c_rss_cache_list4c_member_id($target_c_member_id, 5)); $this->set('c_friend_comment_list', db_friend_c_friend_comment4c_member_id($target_c_member_id)); $this->set('c_friend_list', db_friend_c_friend_list4c_member_id($target_c_member_id, 9)); $this->set('c_friend_count', db_friend_count_friends($target_c_member_id)); $this->set('user_count', db_commu_count_c_commu4c_member_id($target_c_member_id)); $this->set('c_commu_list', db_commu_c_commu_list4c_member_id_2($target_c_member_id, 9)); $this->set('c_review_list', db_review_c_review_list4member($target_c_member_id, 5)); $this->set('profile_list', db_member_c_profile_list()); // 誕生日まであと何日? $this->set('days_birthday', db_member_count_days_birthday4c_member_id($target_c_member_id)); if (OPENPNE_USE_POINT_RANK) { // ポイント $point = db_point_get_point($target_c_member_id); $this->set("point", $point); // ランク $this->set("rank", db_point_get_rank4point($point)); } // inc_entry_point $this->set('inc_entry_point', fetch_inc_entry_point($this->getView(), 'f_home')); return 'success'; }
function execute($requests) { $this->set('SNS_NAME', SNS_NAME); $this->set('IS_CLOSED_SNS', IS_CLOSED_SNS); if (SNS_TITLE) { $title = SNS_TITLE; } else { $title = SNS_NAME; } $top = array(); $bottom = array(); $layout_list = db_portal_layout_ktai_order_by_position(); foreach ($layout_list as $layout) { $pos = $layout['position']; $name = $layout['content_name']; $content = $this->get_contents($name); if ($pos == 10 || $pos == 11) { $top[] = $content; } else { if ($pos == 20 || $pos == 21) { $bottom[] = $content; } } } $this->set('title', $title); $this->set('top', $top); $this->set('bottom', $bottom); $this->set('ktai_color_config', util_get_color_config_ktai()); $this->set('inc_ktai_header', fetch_inc_ktai_header()); $this->set('inc_ktai_footer', fetch_inc_ktai_footer()); $this->set('WORD_FRIEND', WORD_FRIEND); $this->set('WORD_MY_FRIEND', WORD_MY_FRIEND); $this->set('WORD_FRIEND_HALF', WORD_FRIEND_HALF); $this->set('WORD_MY_FRIEND_HALF', WORD_MY_FRIEND_HALF); // inc_entry_point $this->set('inc_ktai_entry_point', fetch_inc_entry_point($this->getView(), 'ktai_o_login')); return 'success'; }
function execute($requests) { $u = $GLOBALS['KTAI_C_MEMBER_ID']; // --- リクエスト変数 $target_c_member_id = $u; // ---------- $this->set('is_h_prof', 1); //管理画面HTML $this->set('c_siteadmin', p_common_c_siteadmin4target_pagename('k_f_home')); $target_c_member = db_member_c_member_with_profile($target_c_member_id, 'private'); $target_c_member['last_login'] = p_f_home_last_login4access_date($target_c_member['access_date']); if ($target_c_member['birth_year']) { $target_c_member['age'] = getAge($target_c_member['birth_year'], $target_c_member['birth_month'], $target_c_member['birth_day']); } $this->set("target_c_member", $target_c_member); //ターゲットの最新日記5件 $this->set('c_diary_list', db_diary_get_c_diary_list4c_member_id($target_c_member_id, 5, null, 'friend')); //フレンドランダム5人 $this->set("c_friend_list", db_friend_c_friend_list_random4c_member_id($target_c_member_id, 5)); //参加コミュニティ最新書き込み5件 $this->set("c_commu_list", db_commu_c_commu_list_lastupdate4c_member_id($target_c_member_id, 5)); //共通コミュニティ $this->set('common_commu_count', count(db_common_commu_common_commu_id4c_member_id($target_c_member_id, $u))); $this->set('profile_list', db_member_c_profile_list()); // 誕生日まであと何日? $this->set('days_birthday', db_member_count_days_birthday4c_member_id($target_c_member_id)); if (OPENPNE_USE_POINT_RANK) { // ポイント $point = db_point_get_point($target_c_member_id); $this->set("point", $point); // ランク $this->set("rank", db_point_get_rank4point($point)); } // inc_entry_point $this->set('inc_ktai_entry_point', fetch_inc_entry_point($this->getView(), 'ktai_f_home')); return 'success'; }
function execute($requests) { $u = $GLOBALS['AUTH']->uid(); // --- リクエスト変数 $target_c_diary_id = $requests['target_c_diary_id']; $subject = $requests['subject']; $body = $requests['body']; $public_flag = $requests['public_flag']; $category = $requests['category']; $is_comment_input = $requests['is_comment_input']; // ---------- $c_diary = db_diary_get_c_diary4id($target_c_diary_id); // target が指定されていない // 新規作成 if (!$target_c_diary_id) { openpne_redirect('pc', 'page_h_diary_add'); } // target の日記が存在しない if (!p_common_is_active_c_diary_id($target_c_diary_id) && $target_c_diary_id != null) { openpne_redirect('pc', 'page_h_err_fh_diary'); } //--- 権限チェック //日記の作成者 if ($u != $c_diary['c_member_id']) { handle_kengen_error(); } //登録されている写真を削除 0は削除しない 1は削除する if ($_REQUEST['del_img'] & 0x1 == 1) { $c_diary['image_filename_1'] = ""; } if ($_REQUEST['del_img'] & 0x2 == 1) { $c_diary['image_filename_2'] = ""; } if ($_REQUEST['del_img'] & 0x4 == 1) { $c_diary['image_filename_3'] = ""; } $this->set('del_img', $_REQUEST['del_img']); $this->set('inc_navi', fetch_inc_navi('h')); //プロフィール $this->set("target_member", db_member_c_member4c_member_id($u)); //カレンダー関係 //カレンダー開始用変数 $time = strtotime($c_diary['r_datetime']); $year = date('Y', $time); $month = date('n', $time); //日記一覧、カレンダー用変数 $date_val = array('year' => $year, 'month' => $month, 'day' => null); $this->set("date_val", $date_val); //日記のカレンダー $calendar = db_common_diary_monthly_calendar($year, $month, $u); $this->set("calendar", $calendar['days']); $this->set("ym", $calendar['ym']); //各月の日記 $this->set("date_list", p_fh_diary_list_date_list4c_member_id($u)); if (USE_DIARY_CATEGORY) { //この日記のカテゴリリストを得る if ($category) { $category_list = array(); foreach (preg_split('/\\s+/', $category) as $value) { if (empty($value)) { break; } $category_list[] = array('c_diary_category_id' => 'dummy', 'category_name' => $value); } $this->set("category", $category_list); } else { $this->set("category", db_diary_category_list4c_diary_id($target_c_diary_id)); } //メンバーのカテゴリリスト $this->set("category_list", db_diary_category_list4c_member_id($u)); $this->set("use_diary_category", true); } // 内容の不備によるリダイレクト時・編集修正時は値を上書き if ($requests['msg'] || !(is_null($subject) || is_null($body))) { $c_diary['subject'] = $subject; $c_diary['body'] = $body; $c_diary['public_flag'] = util_cast_public_flag_diary($public_flag); $c_diary['is_comment_input'] = $is_comment_input; } $this->set("diary", $c_diary); // inc_entry_point $this->set('inc_entry_point', fetch_inc_entry_point($this->getView(), 'h_diary_edit')); return 'success'; }
function execute($requests) { $u = $GLOBALS['AUTH']->uid(); $inc_navi = fetch_inc_navi('h'); $this->set('inc_navi', $inc_navi); $OPTION = $this->get('C_MEMBER_CONFIG'); /// infomation /// // 運営者からのおしらせ $this->set('site_info', p_common_c_siteadmin4target_pagename('h_home')); //未読メッセージの数をお知らせ $this->set('num_message_not_is_read', db_message_count_c_message_not_is_read4c_member_to_id($u)); //日記コメントの未読の数をお知らせ $this->set('num_diary_not_is_read', p_h_diary_count_c_diary_not_is_read4c_member_id($u)); //日記コメントの未読の中で、読ませるものを送る $this->set('first_diary_read', p_h_diary_c_diary_first_diary_read4c_member_id($u)); //あなたにフレンド承認を求めているメンバーリスト $f_confirm_list = db_friend_anatani_c_friend_confirm_list4c_member_id($u); $this->set('f_confirm_list', $f_confirm_list); $this->set('num_f_confirm_list', count($f_confirm_list)); //あなたにコミュニティ参加承認を求めているメンバーリスト $h_confirm_list = db_commu_anatani_c_commu_member_confirm_list4c_member_id($u); $this->set('h_confirm_list', $h_confirm_list); $this->set('num_h_confirm_list', count($h_confirm_list)); // あなたにコミュニティ管理者交代を希望しているメンバー $anatani_c_commu_admin_confirm_list = db_commu_anatani_c_commu_admin_confirm_list4c_member_id($u); $this->set('anatani_c_commu_admin_confirm_list', $anatani_c_commu_admin_confirm_list); $this->set('num_anatani_c_commu_admin_confirm_list', count($anatani_c_commu_admin_confirm_list)); // あなたにコミュニティ副管理者を希望しているメンバー $anatani_c_commu_sub_admin_confirm_list = db_commu_anatani_c_commu_sub_admin_confirm_list4c_member_id($u); $this->set('anatani_c_commu_sub_admin_confirm_list', $anatani_c_commu_sub_admin_confirm_list); $this->set('num_anatani_c_commu_sub_admin_confirm_list', count($anatani_c_commu_sub_admin_confirm_list)); // 誕生日かどうか $this->set('birthday_flag', db_member_birthday_flag4c_member_id($u)); /// 左側 /// // メンバー情報 $c_member = db_member_c_member_with_profile($u, 'private'); $this->set('c_member', $c_member); // フレンドリスト $c_friend_list = db_friend_c_friend_list4c_member_id($u, 9); $this->set('c_friend_list', $c_friend_list); $this->set('c_friend_count', db_friend_count_friends($u)); // 参加コミュニティ $c_commu_user_list = db_commu_c_commu_list4c_member_id_2($u, 9); $this->set('c_commu_user_list', $c_commu_user_list); $this->set('fh_com_count_user', db_commu_count_c_commu4c_member_id($u)); // 写真使用量 $image_limit_list = db_image_get_image_limit_list($u); $this->set('image_limit_list', $image_limit_list); /// 最新情報 /// // 最新日記 if (DISPLAY_NEWDIARYTOPIC_HOME && $OPTION['IS_DISPLAY_NEWDIARY_HOME']) { $this->set('c_diary_list_all', p_h_home_c_diary_all_list(5)); } // フレンド最新日記 $c_diary_friend_list = p_h_home_c_diary_friend_list4c_member_id($u, 5, true); $this->set('c_diary_friend_list', $c_diary_friend_list); // フレンド最新blog $this->set('c_rss_cache_list', db_rss_list_friend_c_rss_cache_list($u, 5)); // 日記コメント記入履歴 $c_diary_my_comment_list = p_h_home_c_diary_my_comment_list4c_member_id($u, 5); $this->set('c_diary_my_comment_list', $c_diary_my_comment_list); // コミュニティ全ての新着書き込み if (DISPLAY_NEWDIARYTOPIC_HOME && $OPTION['IS_DISPLAY_NEWTOPIC_HOME']) { $this->set('c_topic_list_all', p_h_home_c_topic_all_list(5)); } // 参加コミュニティの新着書き込み $this->set('c_commu_topic_comment_list', db_commu_c_commu_topic_comment_list4c_member_id($u, 5, true)); // レビュー $this->set('c_friend_review_list', db_review_c_friend_review_list4c_member_id($u, 5)); if (OPENPNE_USE_ALBUM) { // アルバム $this->set('c_friend_album_list', p_h_home_c_album_friend_list4c_member_id($u, 5)); } /// 自分の情報 /// // 日記 $c_diary_list = db_diary_get_c_diary_list4c_member_id($u, 5); $this->set('c_diary_list', $c_diary_list); // 外部blog $this->set('c_blog_list', db_rss_h_blog_list_friend4c_member_id($u, 5, 1)); // レビュー $this->set('c_review_list', db_review_c_review_list4member($u, 5)); if (OPENPNE_USE_ALBUM) { // アルバム $this->set('c_album_list', db_album_get_c_album_subject_list4c_member_id($u, 5)); } /// その他 /// if (OPENPNE_USE_POINT_RANK) { // ポイント $point = db_point_get_point($u); $this->set("point", $point); // ランク $this->set("rank", db_point_get_rank4point($point)); } // 紹介文 $c_friend_intro_list = db_friend_c_friend_intro_list4c_member_id($u, 5); $this->set('c_friend_intro_list', $c_friend_intro_list); // 今日の日付、曜日 $this->set('r_datetime', date('m/d')); $date = array('日', '月', '火', '水', '木', '金', '土'); $this->set('r_datetime_date', $date[date('w')]); /// 週間カレンダー if (DISPLAY_SCHEDULE_HOME && $OPTION['IS_DISPLAY_SCHEDULE_HOME']) { //開始曜日の設定 if ($c_member['schedule_start_day'] == 2) { $start_day = date("w"); } else { $start_day = $c_member['schedule_start_day']; } $this->set('calendar', $this->get_calendar($u, $requests['w'], $start_day)); } // お気に入りフィード if (USE_BOOKMARK_FEED) { // お気に入りの最新日記 if ($OPTION['IS_DISPLAY_BOOKMARK_DIARY_HOME']) { $this->set('bookmark_diary_list', db_bookmark_diary_list($u, 5)); } //お気に入りの最新ブログ if ($OPTION['IS_DISPLAY_BOOKMARK_BLOG_HOME']) { $this->set('bookmark_blog_list', db_bookmark_blog_list($u, 5)); } //お気に入りのメンバー $bookmark_member_list = db_bookmark_member_list($u, 9); $this->set('bookmark_member_list', $bookmark_member_list); $this->set('bookmark_count', db_bookmark_count($u)); } // API用セッションID $this->set('api_session_id', get_api_sessionid($u)); // アクセス日時を記録 db_member_do_access($u); // inc_entry_point $this->set('inc_entry_point', fetch_inc_entry_point($this->getView(), 'h_home')); return 'success'; }
function execute($requests) { $u = $GLOBALS['KTAI_C_MEMBER_ID']; $OPTION = $this->get('C_MEMBER_CONFIG'); $c_member_secure = db_member_c_member_secure4c_member_id($u); //管理画面HTML $this->set('c_siteadmin', p_common_c_siteadmin4target_pagename('k_h_home')); $c_member = db_member_c_member_with_profile($u, 'private'); //メンバー情報 $this->set('c_member', $c_member); //新着メッセージ数 $this->set('c_message_unread_count', db_message_c_message_received_unread_all_count4c_member_id($u)); //フレンドの最新日記 $this->set('c_diary_friend_list', p_h_home_c_diary_friend_list4c_member_id($u, 5, true)); //参加コミュニティリスト $this->set('c_commu_list', db_commu_c_commu_list_lastupdate4c_member_id($u, 5)); //参加コミュニティの数 $this->set('fh_com_count_user', db_commu_count_c_commu4c_member_id($u)); //フレンドリスト $this->set('c_friend_list', db_friend_c_friend_list_random4c_member_id($u, 5)); //フレンドの数 $this->set('c_friend_count', db_friend_count_friends($u)); //参加コミュニティの新着書き込み $this->set('c_commu_topic_list', db_commu_c_commu_topic_comment_list4c_member_id($u, 5, true)); $this->set('SNS_NAME', SNS_NAME); if (DISPLAY_NEWDIARYTOPIC_HOME) { if ($OPTION['IS_DISPLAY_NEWDIARY_HOME_KTAI']) { $this->set('c_diary_list_all', p_h_home_c_diary_all_list(5)); } if ($OPTION['IS_DISPLAY_NEWTOPIC_HOME_KTAI']) { $this->set('c_topic_list_all', p_h_home_c_topic_all_list(5)); } } //アクセス日時を記録 db_member_do_access($u); //未読メッセージの数をお知らせ $this->set("num_message_not_is_read", db_message_count_c_message_not_is_read4c_member_to_id($u)); //日記コメントの未読の数をお知らせ $this->set("num_diary_not_is_read", p_h_diary_count_c_diary_not_is_read4c_member_id($u)); //日記コメントの未読の中で、読ませるものを送る $this->set("first_diary_read", p_h_diary_c_diary_first_diary_read4c_member_id($u)); //コミュニティ承認を求めているメンバーリスト $h_confirm_list = db_commu_anatani_c_commu_member_confirm_list4c_member_id($u); $this->set("h_confirm_list", $h_confirm_list); //そのメンバーの人数 $this->set("num_h_confirm_list", count($h_confirm_list)); //あなたにフレンド認証を求めているメンバーリスト $f_confirm_list = db_friend_anatani_c_friend_confirm_list4c_member_id($u); $this->set("f_confirm_list", $f_confirm_list); //そのメンバーの人数 $this->set("num_f_confirm_list", count($f_confirm_list)); // あなたにコミュニティ管理者交代を希望しているメンバー $anatani_c_commu_admin_confirm_list = db_commu_anatani_c_commu_admin_confirm_list4c_member_id($u); $this->set("anatani_c_commu_admin_confirm_list", $anatani_c_commu_admin_confirm_list); //そのメンバーの人数 $this->set("num_anatani_c_commu_admin_confirm_list", count($anatani_c_commu_admin_confirm_list)); // あなたにコミュニティ副管理者を希望しているメンバー $anatani_c_commu_sub_admin_confirm_list = db_commu_anatani_c_commu_sub_admin_confirm_list4c_member_id($u); $this->set("anatani_c_commu_sub_admin_confirm_list", $anatani_c_commu_sub_admin_confirm_list); //そのメンバーの人数 $this->set("num_anatani_c_commu_sub_admin_confirm_list", count($anatani_c_commu_sub_admin_confirm_list)); //日記コメント記入履歴 $this->set("c_diary_my_comment_list", p_h_home_c_diary_my_comment_list4c_member_id($u, 5)); // 誕生日かどうか $this->set('birthday_flag', db_member_birthday_flag4c_member_id($u)); if (MAIL_ADDRESS_HASHED) { $mail_address = "b{$u}-" . t_get_user_hash($u) . "@" . MAIL_SERVER_DOMAIN; } else { $mail_address = "blog" . "@" . MAIL_SERVER_DOMAIN; } $mail_address = MAIL_ADDRESS_PREFIX . $mail_address; $this->set('blog_address', $mail_address); if (OPENPNE_USE_POINT_RANK) { // ポイント $point = db_point_get_point($u); $this->set("point", $point); // ランク $this->set("rank", db_point_get_rank4point($point)); // メール送信設定 $this->set('is_unused_rank_up', util_is_unused_mail('m_ktai_rank_up')); } // メール送信設定 $this->set('is_unused_ashiato', util_is_unused_mail('m_ktai_ashiato')); $this->set('is_unused_diary_comment', util_is_unused_mail('m_ktai_diary_comment_info')); // inc_entry_point $this->set('inc_ktai_entry_point', fetch_inc_entry_point($this->getView(), 'ktai_h_home')); return 'success'; }
function execute($requests) { $u = $GLOBALS['AUTH']->uid(); // --- リクエスト変数 $target_c_member_id = $requests['target_c_member_id']; // ---------- // - IDが指定されていない場合 // - IDが自分の場合 // は h_home へリダイレクト if (!$target_c_member_id || $target_c_member_id == $u) { openpne_redirect('pc', 'page_h_home'); } if (!db_member_is_active_c_member_id($target_c_member_id)) { openpne_redirect('pc', 'page_h_err_f_home'); } if (db_member_is_access_block($u, $target_c_member_id)) { openpne_redirect('pc', 'page_h_access_block'); } //あしあとをつける db_ashiato_insert_c_ashiato($target_c_member_id, $u); $this->set('is_h_prof', 0); $inc_navi = fetch_inc_navi('f', $target_c_member_id); $this->set('inc_navi', $inc_navi); $target_c_member = db_member_c_member_with_profile($target_c_member_id, 'private'); $is_friend = db_friend_is_friend($u, $target_c_member_id); if ($is_friend) { // 自分が書いた紹介文 $this->set('my_friend_intro', db_friend_c_friend_intro($u, $target_c_member_id)); } else { // 友達の友達 $this->set('friend_path', db_friend_friend_path4c_member_ids($u, $target_c_member_id)); } $this->set('is_friend', $is_friend); $c_member = db_member_c_member4c_member_id($u); $this->set('c_member', $c_member); $c_diary_list = db_diary_get_c_diary_list4c_member_id($target_c_member_id, 5, $u); $this->set('c_diary_list', $c_diary_list); if (OPENPNE_USE_ALBUM) { // アルバム $this->set('c_album_list', db_album_get_c_album_subject_list4c_member_id($target_c_member_id, 5, $u)); } // --- f_home, h_prof 共通処理 $this->set('target_c_member_id', $target_c_member_id); $target_c_member['last_login'] = p_f_home_last_login4access_date($target_c_member['access_date']); if ($target_c_member['birth_year']) { $target_c_member['age'] = getAge($target_c_member['birth_year'], $target_c_member['birth_month'], $target_c_member['birth_day']); } $this->set('target_c_member', $target_c_member); $this->set('c_rss_cache_list', db_rss_c_rss_cache_list4c_member_id($target_c_member_id, 5)); $c_friend_comment_list = db_friend_c_friend_comment4c_member_id($target_c_member_id); $this->set('c_friend_comment_list', $c_friend_comment_list); $c_friend_list = db_friend_c_friend_list4c_member_id($target_c_member_id, 9); $this->set('c_friend_list', $c_friend_list); $this->set('c_friend_count', db_friend_count_friends($target_c_member_id)); $this->set('user_count', db_commu_count_c_commu4c_member_id($target_c_member_id)); $this->set('common_commu_count', count(db_common_commu_common_commu_id4c_member_id($target_c_member_id, $u))); $c_commu_list = db_commu_c_commu_list4c_member_id_2($target_c_member_id, 9); $this->set('c_commu_list', $c_commu_list); $this->set('c_review_list', db_review_c_review_list4member($target_c_member_id, 5)); $profile_list = db_member_c_profile_list(); $this->set('profile_list', $profile_list); // 誕生日まであと何日? $this->set('days_birthday', db_member_count_days_birthday4c_member_id($target_c_member_id)); if (OPENPNE_USE_POINT_RANK) { // ポイント $point = db_point_get_point($target_c_member_id); $this->set("point", $point); // ランク $this->set("rank", db_point_get_rank4point($point)); } // inc_entry_point $this->set('inc_entry_point', fetch_inc_entry_point($this->getView(), 'f_home')); // --- return 'success'; }
function execute($requests) { $u = $GLOBALS['AUTH']->uid(); // --- リクエスト変数 $target_c_member_id = $requests['target_c_member_id']; // ---------- // - IDが指定されていない場合 // - IDが自分の場合 // は h_home へリダイレクト if (!$target_c_member_id || $target_c_member_id == $u) { openpne_redirect('pc', 'page_h_home'); } if (!db_member_is_active_c_member_id($target_c_member_id)) { openpne_redirect('pc', 'page_h_err_f_home'); } if (db_member_is_access_block($u, $target_c_member_id)) { openpne_redirect('pc', 'page_h_access_block'); } //あしあとをつける db_ashiato_insert_c_ashiato($target_c_member_id, $u); $this->set('is_h_prof', 0); $this->set('inc_navi', fetch_inc_navi('f', $target_c_member_id)); $is_friend = db_friend_is_friend($u, $target_c_member_id); $target_c_member = db_member_c_member_with_profile($target_c_member_id, 'private'); if ($is_friend) { // 自分が書いた紹介文 $this->set('my_friend_intro', db_friend_c_friend_intro($u, $target_c_member_id)); } else { // 友達の友達 $this->set('friend_path', db_friend_friend_path4c_member_ids($u, $target_c_member_id)); } $this->set('is_friend', $is_friend); $this->set('c_member', db_member_c_member4c_member_id($u)); $this->set('c_diary_list', db_diary_get_c_diary_list4c_member_id($target_c_member_id, 5, $u)); if (OPENPNE_USE_ALBUM) { // アルバム $this->set('c_album_list', db_album_get_c_album_subject_list4c_member_id($target_c_member_id, 5, $u)); } // --- f_home, h_prof 共通処理 $this->set('target_c_member_id', $target_c_member_id); $target_c_member['last_login'] = p_f_home_last_login4access_date($target_c_member['access_date']); if ($target_c_member['birth_year']) { $target_c_member['age'] = getAge($target_c_member['birth_year'], $target_c_member['birth_month'], $target_c_member['birth_day']); } $this->set('target_c_member', $target_c_member); $target_c_member_all = db_member_c_member_with_profile($target_c_member_id, 'private'); $this->set('target_c_member_all', $target_c_member_all); $this->set('c_rss_cache_list', db_rss_c_rss_cache_list4c_member_id($target_c_member_id, 5)); $this->set('c_friend_comment_list', db_friend_c_friend_comment4c_member_id($target_c_member_id)); $this->set('c_friend_list', db_friend_c_friend_list4c_member_id($target_c_member_id, 9)); $this->set('c_friend_count', db_friend_count_friends($target_c_member_id)); $this->set('user_count', db_commu_count_c_commu4c_member_id($target_c_member_id)); $this->set('common_commu_count', count(db_common_commu_common_commu_id4c_member_id($target_c_member_id, $u))); $this->set('c_commu_list', db_commu_c_commu_list4c_member_id_2($target_c_member_id, 9)); $this->set('c_review_list', db_review_c_review_list4member($target_c_member_id, 5)); $this->set('profile_list', db_member_c_profile_list()); // 誕生日まであと何日? $this->set('days_birthday', db_member_count_days_birthday4c_member_id($target_c_member_id)); if (OPENPNE_USE_POINT_RANK) { // ポイント $point = db_point_get_point($target_c_member_id); $this->set("point", $point); // ランク $this->set("rank", db_point_get_rank4point($point)); } // --- bizここから // バナーをBIZ用右部拡張領域下に表示させる為の仕掛け $this->set('is_f_home', 1); $biz_dir = OPENPNE_MODULES_BIZ_DIR . '/biz/'; //bizモジュールディレクトリの定義 include_once $biz_dir . 'lib/smarty_functions.php'; //bizモジュールよりライブラリを拝借 include_once $biz_dir . 'lib/mysql_functions.php'; //bizモジュールよりライブラリを拝借 $c_member = db_member_c_member4c_member_id($u); $todolist = biz_getTodoList($u, $target_c_member_id, "f", $c_member['nickname']); $this->set("todolist", $todolist); $this->set('calendar', biz_getScheduleWeek($u, $target_c_member_id, $requests['w'], 'f', true, true, true, $target_c_member)); $group_list = biz_getHomeGroupList($target_c_member_id); $this->set('group_list', $group_list); // --- bizここまで // inc_entry_point $this->set('inc_entry_point', fetch_inc_entry_point($this->getView(), 'f_home')); // --- return 'success'; }