function execute($requests) { $u = $GLOBALS['AUTH']->uid(); $this->set('inc_navi', fetch_inc_navi('h')); $this->set('profile_list', db_member_c_profile_list()); return 'success'; }
function execute($requests) { //<PCKTAI if (OPENPNE_AUTH_MODE == 'slavepne' || !(OPENPNE_REGIST_FROM & OPENPNE_REGIST_FROM_PC)) { client_redirect_login(); } //> // --- リクエスト変数 $sid = $requests['sid']; $err_msg = $requests['err_msg']; // ---------- if (!db_member_is_active_sid($sid)) { $p = array('msg_code' => 'invalid_url'); openpne_redirect('pc', 'page_o_tologin', $p); } $pre = db_member_c_member_pre4sid($sid); $this->set('err_msg', $err_msg); session_name('OpenPNEpcregist'); @session_start(); $this->set('profs', $_SESSION['prof']); //---- inc_ テンプレート用 変数 ----// $this->set('inc_page_header', fetch_inc_page_header('regist')); $c_member_pre = db_member_c_member_pre4c_member_pre_session($sid); $this->set('sid', $sid); $this->set('pc_address', $c_member_pre['pc_address']); $public_flags = array('public' => '全員に公開', 'friend' => WORD_MY_FRIEND . 'まで公開', 'private' => '公開しない'); $this->set('public_flags', $public_flags); $this->set('month_list', p_regist_prof_c_profile_month_list4null()); $this->set('day_list', p_regist_prof_c_profile_day_list4null()); $this->set('query_list', p_common_c_password_query4null()); $this->set('c_profile_list', db_member_c_profile_list()); return 'success'; }
function execute($requests) { //<PCKTAI if (OPENPNE_AUTH_MODE == 'slavepne' || !((OPENPNE_REGIST_FROM & OPENPNE_REGIST_FROM_KTAI) >> 1)) { openpne_redirect('ktai', 'page_o_login', array('msg' => 42)); } //> // --- リクエスト変数 $ses = $requests['ses']; $aff_id = $requests['aff_id']; // ---------- // セッションが有効かどうか if (!($pre = db_member_c_member_ktai_pre4session($ses))) { // 無効の場合、login へリダイレクト openpne_redirect('ktai', 'page_o_login', array('msg' => 42)); } // メールアドレスが登録できるかどうか if (!util_is_regist_mail_address($pre['ktai_address'])) { openpne_redirect('ktai', 'page_o_login', array('msg' => 42)); } $this->set('SNS_NAME', SNS_NAME); $this->set('ses', $ses); $this->set('c_profile_pref_list', p_regist_prof_c_profile_pref_list4null()); $v['month_list'] = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12); $v['day_list'] = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31); $public_flags = array('public' => '全員に公開', 'friend' => WORD_MY_FRIEND_HALF . 'まで公開', 'private' => '公開しない'); $this->set('public_flags', $public_flags); $this->set('password_query_list', p_common_c_password_query4null()); $this->set('profile_list', db_member_c_profile_list()); $this->set('aff_id', $aff_id); $this->set($v); return 'success'; }
function execute($requests) { $v = array(); $v['c_profile_list'] = db_member_c_profile_list(); $this->set($v); 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['KTAI_C_MEMBER_ID']; // --- リクエスト変数 $nickname = $requests['nickname']; $birth_year = $requests['birth_year']; $birth_month = $requests['birth_month']; $birth_day = $requests['birth_day']; $page = $requests['page']; // ---------- $profiles = array(); if ($_REQUEST['profile']) { $profiles = db_member_search_check_profile($_REQUEST['profile']); } $this->set('profiles', $profiles); $limit = 10; $this->set('page', $page); //検索デフォルト値表示用 $cond = array('birth_year' => $birth_year, 'birth_month' => $birth_month, 'birth_day' => $birth_day); $cond_like = array('nickname' => $nickname); $this->set('cond', array_merge($cond, $cond_like)); $result = db_member_search($cond, $cond_like, $limit, $page, $u, $profiles); $this->set('target_friend_list', $result[0]); $pager = array('page_prev' => $result[1], 'page_next' => $result[2], 'total_num' => $result[3]); $pager["disp_start"] = $limit * ($page - 1) + 1; if (($disp_end = $limit * $page) > $pager['total_num']) { $pager['disp_end'] = $pager['total_num']; } else { $pager['disp_end'] = $disp_end; } $this->set("pager", $pager); $tmp = array(); foreach ($cond as $key => $value) { if ($value) { $tmp[] = $key . '=' . urlencode(mb_convert_encoding($value, 'SJIS-win', 'UTF-8')); } } foreach ($cond_like as $key => $value) { if ($value) { $tmp[] = $key . '=' . urlencode(mb_convert_encoding($value, 'SJIS-win', 'UTF-8')); } } foreach ($profiles as $key => $value) { if ($value['c_profile_option_id']) { $v = $value['c_profile_option_id']; } else { $v = urlencode(mb_convert_encoding($value['value'], 'SJIS-win', 'UTF-8')); } $tmp[] = urlencode("profile[{$key}]") . '=' . $v; } $search_condition = implode("&", $tmp); $this->set("search_condition", $search_condition); $this->set('profile_list', db_member_c_profile_list()); return 'success'; }
function execute($requests) { $this->set('SNS_NAME', SNS_NAME); $this->set('c_profile_pref_list', p_regist_prof_c_profile_pref_list4null()); $v['month_list'] = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12); $v['day_list'] = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31); $public_flags = array('public' => '全員に公開', 'friend' => WORD_MY_FRIEND_HALF . 'まで公開', 'private' => '公開しない'); $this->set('public_flags', $public_flags); $this->set('profile_list', db_member_c_profile_list()); $this->set($v); return 'success'; }
function execute($requests) { $u = $GLOBALS['AUTH']->uid(); $this->set('c_member', db_member_c_member4c_member_id($u, true, true, 'private')); $this->set('profs', $_SESSION['prof']); $public_flags = array('public' => '全員に公開', 'friend' => WORD_MY_FRIEND . 'まで公開', 'private' => '公開しない'); $this->set('public_flags', $public_flags); $this->set('inc_navi', fetch_inc_navi("h")); $this->set('month_list', p_regist_prof_c_profile_month_list4null()); $this->set('day_list', p_regist_prof_c_profile_day_list4null()); $this->set('c_profile_list', db_member_c_profile_list()); return 'success'; }
function execute($requests) { $u = $GLOBALS['KTAI_C_MEMBER_ID']; $this->set("c_member", db_member_c_member4c_member_id($u)); $prof = db_member_c_member_with_profile($u, 'private'); $this->set('c_member', $prof); $public_flags = array('public' => '全員に公開', 'friend' => WORD_MY_FRIEND_HALF . 'まで公開', 'private' => '公開しない'); $this->set('public_flags', $public_flags); $this->set('profile_list', db_member_c_profile_list()); $this->set('month', p_regist_prof_c_profile_month_list4null()); $this->set('day', p_regist_prof_c_profile_day_list4null()); return 'success'; }
function execute($requests) { $u = $GLOBALS['AUTH']->uid(); // --- リクエスト変数 $prof = $_REQUEST['prof']; // ---------- $this->set('inc_navi', fetch_inc_navi('h')); if (!$prof) { $prof = db_member_c_member_with_profile($u, 'private'); $OPTION = $this->get('C_MEMBER_CONFIG'); $prof['is_search_result'] = $OPTION['IS_SEARCH_RESULT']; } $this->set('c_member', $prof); $this->set('month', p_regist_prof_c_profile_month_list4null()); $this->set('day', p_regist_prof_c_profile_day_list4null()); $public_flags = array('public' => '全員に公開', 'friend' => WORD_MY_FRIEND . 'まで公開', 'private' => '公開しない'); $this->set('public_flags', $public_flags); $this->set('profile_list', db_member_c_profile_list()); 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) { // エラーメッセージ $v['msg'] = $_REQUEST['msg']; // 検索値 $cond_list = validate_cond($_REQUEST); $v['cond_list'] = $cond_list; // プロフ項目 $profile_list = db_member_c_profile_list(); $this->set('profile_list', $profile_list); // 年 $year = date('Y'); $v['years'] = get_int_assoc($year - 100, $year); // 最終ログイン $select_last_login = array(1 => "3日以内", 2 => "3~7日以内", 3 => "7~30日以内", 4 => "30日以上", 5 => "未ログイン"); $v['select_last_login'] = $select_last_login; // ポイントランク $v['rank_data'] = db_point_get_rank_all(); $this->set($v); 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) { if (!IS_SNS_ENTRY_CONFIRM) { admin_client_redirect('top', '指定されたページにはアクセスできません'); } $order = $requests['order']; $mail_address = $requests['mail_address']; $v = array(); $pager = array(); //絞り込み条件作成 $cond_list = validate_cond((array) $_REQUEST['cond']); $v['cond_list'] = $cond_list; $cond = ''; foreach ($cond_list as $key => $value) { $cond .= '&cond[' . $key . ']=' . $value; } $profile_cond_list = validate_profile_cond((array) $_REQUEST['profile']); $v['profile_cond_list'] = $profile_cond_list; foreach ($profile_cond_list as $key => $value) { $cond .= '&profile[' . $key . ']=' . (int) $value; } $v['cond'] = $cond; //絞り込みのための年 $year = date('Y'); $v['years'] = get_int_assoc($year - 100, $year); //絞り込みのドロップダウンを作る用 $v['profile_list'] = db_member_c_profile_list(); //開始年が終了年より大きい if (!empty($cond_list['s_year']) && !empty($cond_list['e_year']) && $cond_list['s_year'] > $cond_list['e_year']) { $v['msg'] = '※開始年は終了年より小さくして下さい'; } $v['SNS_NAME'] = SNS_NAME; $v['c_member_pre_list'] = _db_admin_c_member_pre_list($requests['page'], $requests['page_size'], $pager, $cond_list, $mail_address, $order); $v['pager'] = $pager; $this->set($v); return 'success'; }
function execute($requests) { $u = $GLOBALS['KTAI_C_MEMBER_ID']; // --- リクエスト変数 $target_c_member_id = $requests['target_c_member_id']; // ---------- $is_h = 0; if ($target_c_member_id == $u || empty($target_c_member_id)) { $target_c_member_id = $u; $is_h = 1; } if (!$is_h) { 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'); } //あしあとをつける db_ashiato_insert_c_ashiato($target_c_member_id, $u); } $is_friend = db_friend_is_friend($u, $target_c_member_id); if ($is_h || $is_friend) { $target_c_member = db_member_c_member_with_profile($target_c_member_id, 'friend'); } else { $target_c_member = db_member_c_member_with_profile($target_c_member_id, 'public'); } 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('is_h', $is_h); $this->set('target_c_member', $target_c_member); $this->set('profile_list', db_member_c_profile_list()); $this->set('relation', db_friend_relationship4two_members($u, $target_c_member_id)); return 'success'; }
function cond_name_list($cond_list, $select_last_login) { $cond_name_list = array(); if (!is_null($cond_list['id'])) { // ID $cond_name_list['id']['name'] = 'ID(完全一致)'; $cond_name_list['id']['value'] = $cond_list['id']; } if (!is_null($cond_list['username'])) { // ログインID $cond_name_list['username']['name'] = 'ログインID'; $cond_name_list['username']['value'] = $cond_list['username']; } if (!is_null($cond_list['nickname'])) { // ニックネーム $cond_name_list['nickname']['name'] = WORD_NICKNAME; $cond_name_list['nickname']['value'] = $cond_list['nickname']; } if (!is_null($cond_list['last_login'])) { // 最終ログイン $cond_name_list['last_login']['name'] = '最終ログイン'; $cond_name_list['last_login']['value'] = $select_last_login[$cond_list['last_login']]; } if (!is_null($cond_list['s_year']) || !is_null($cond_list['e_year'])) { // 生年月日 $cond_name_list['year']['name'] = '生年月日'; if (!is_null($cond_list['s_year'])) { $cond_name_list['year']['value'] = $cond_list['s_year'] . '年 ~ '; } else { $cond_name_list['year']['value'] = '開始指定なし ~ '; } if (!is_null($cond_list['e_year'])) { $cond_name_list['year']['value'] .= $cond_list['e_year'] . '年'; } else { $cond_name_list['year']['value'] .= '終了指定なし'; } } //プロフィール $profile_list = db_member_c_profile_list(); $profile_cond = $cond_list['profile']; $profile_cond_name = array(); if (!is_null($profile_cond)) { foreach ($profile_list as $key => $profile) { if (array_key_exists($key, $profile_cond)) { $profile_cond_name[$key]['name'] = $profile['caption']; if ($profile['form_type'] == 'checkbox') { $profile_cond_name[$key]['value'] = array(); $count = 0; $work_array = array(); foreach ($profile['options'] as $option) { if (in_array($option['c_profile_option_id'], $profile_cond[$key])) { $profile_cond_name[$key]['value'][] = $option['value']; } } } else { if ($profile['form_type'] == 'radio' || $profile['form_type'] == 'select') { foreach ($profile['options'] as $option) { if ($option['c_profile_option_id'] == $profile_cond[$key]) { $profile_cond_name[$key]['value'] = $option['value']; break; } } } else { $profile_cond_name[$key]['value'] = $profile_cond[$key]; } } } } $cond_name_list['profile'] = $profile_cond_name; } //メールアドレス if (!is_null($cond_list['mail_address'])) { $cond_name_list['mail_address']['name'] = 'メールアドレス(完全一致)'; $cond_name_list['mail_address']['value'] = $cond_list['mail_address']; } //PCメールアドレスの有無 if (!is_null($cond_list['is_pc_address'])) { $cond_name_list['is_pc_address']['name'] = 'PCメールアドレス'; if ($cond_list['is_pc_address'] == 1) { $cond_name_list['is_pc_address']['value'] = '登録している'; } else { $cond_name_list['is_pc_address']['value'] = '登録していない'; } } //携帯メールアドレスの有無 if (!is_null($cond_list['is_ktai_address'])) { $cond_name_list['is_ktai_address']['name'] = '携帯メールアドレス'; if ($cond_list['is_ktai_address'] == 1) { $cond_name_list['is_ktai_address']['value'] = '登録している'; } else { $cond_name_list['is_ktai_address']['value'] = '登録していない'; } } //ポイントランク if (!is_null($cond_list['s_rank']) || !is_null($cond_list['e_rank'])) { $cond_name_list['rank']['name'] = 'ポイントランク'; if (!is_null($cond_list['s_rank'])) { $rank = db_point_get_rank4rank_id($cond_list['s_rank']); $cond_name_list['rank']['value'] = $rank['name'] . ' ~ '; } else { $cond_name_list['rank']['value'] = '開始指定なし ~ '; } if (!is_null($cond_list['e_rank'])) { $rank = db_point_get_rank4rank_id($cond_list['e_rank']); $cond_name_list['rank']['value'] .= $rank['name']; } else { $cond_name_list['rank']['value'] .= '終了指定なし'; } } return $cond_name_list; }
function execute($requests) { $order = $requests['order']; $cond = substr($_REQUEST['cond'], 1); $temp_list = explode('&', $cond); foreach ($temp_list as $value) { $temp_list2 = explode('=', $value); $_REQUEST[$temp_list2[0]] = $temp_list2[1]; } $v = array(); $pager = array(); //絞り込み条件作成 $cond_list = validate_cond($_REQUEST); $v['cond_list'] = $cond_list; $cond = ''; foreach ($cond_list as $key => $value) { if (is_array($value)) { foreach ($value as $prof_key => $profile_value) { if (is_array($profile_value)) { foreach ($profile_value as $check_value) { $cond .= '&' . $key . urlencode('[') . $prof_key . urlencode('][]') . '=' . urlencode($check_value); } } else { $cond .= '&' . $key . urlencode('[') . $prof_key . urlencode(']') . '=' . urlencode($profile_value); } } } else { $cond .= '&' . $key . '=' . urlencode($value); } } $v['cond'] = $cond; //絞り込みのための年 $year = date('Y'); $v['years'] = get_int_assoc($year - 100, $year); //絞り込みのドロップダウンを作る用 $v['profile_list'] = db_member_c_profile_list(); //絞り込みのための最終ログイン時間 $select_last_login = array(1 => "3日以内", 2 => "3~7日以内", 3 => "7~30日以内", 4 => "30日以上", 5 => "未ログイン"); $v['select_last_login'] = $select_last_login; $v['rank_data'] = db_point_get_rank_all(); //開始年が終了年より大きい if (!empty($cond_list['s_year']) && !empty($cond_list['e_year']) && $cond_list['s_year'] > $cond_list['e_year']) { $msg = '※開始年は終了年より小さくして下さい'; } //ランクが開始>終了 if (!is_null($cond_list['s_rank']) && !is_null($cond_list['e_rank']) && $cond_list['s_rank'] > $cond_list['e_rank']) { $msg = '※開始ランクは終了ランクより小さくして下さい'; } if ($msg) { $v['msg'] = $msg; } // 表示用検索データ $v['cond_name_data'] = cond_name_list($cond_list, $select_last_login); $v['SNS_NAME'] = SNS_NAME; $v['c_profile_list'] = db_member_c_profile_list4null(); $v['c_member_list'] = array(); // メンバー検索対応により、メールアドレス検索、ログインID検索ともに下記関数に統合 $v['c_member_list'] = _db_admin_c_member_list($requests['page'], $requests['page_size'], $pager, $cond_list, $order); foreach ($v['c_member_list'] as $key => $value) { $v['c_member_list'][$key]['c_member_invite'] = db_member_c_member4c_member_id_LIGHT($value['c_member_id_invite']); $v['c_member_list'][$key]['c_rank'] = db_point_get_rank4point($value['profile']['PNE_POINT']['value']); $v['c_member_list'][$key]['is_receive_any_mail'] = db_admin_is_receive_any_mail4c_member_id($value['c_member_id']); } $v['pager'] = $pager; $this->set($v); 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 db_common_c_profile_list() { return db_member_c_profile_list(); }
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'; }