本文整理汇总了PHP中db_member_is_access_block函数的典型用法代码示例。如果您正苦于以下问题:PHP db_member_is_access_block函数的具体用法?PHP db_member_is_access_block怎么用?PHP db_member_is_access_block使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了db_member_is_access_block函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: execute
function execute($requests)
{
$u = $GLOBALS['AUTH']->uid();
// --- リクエスト変数
$target_c_member_id = $requests['target_c_member_id'];
// ----------
if (is_null($target_c_member_id)) {
$target_c_member_id = $u;
}
if (db_member_is_access_block($u, $target_c_member_id)) {
openpne_redirect('pc', 'page_h_access_block');
}
// navi 振り分け用
if ($target_c_member_id == $u) {
$type = "h";
} else {
$type = "f";
}
$this->set('inc_navi', fetch_inc_navi($type, $target_c_member_id));
//自分情報
$this->set("member", db_member_c_member4c_member_id($u));
//ターゲット情報
$this->set("target_member", db_member_c_member4c_member_id($target_c_member_id));
if ($target_c_member_id == $u) {
$raw_c_friend_comment_list = db_friend_intro_list_with_my_intro4c_member_id($target_c_member_id);
} else {
$raw_c_friend_comment_list = db_friend_intro_list4c_member_id($target_c_member_id);
}
$c_friend_comment_list = $raw_c_friend_comment_list;
//紹介文達
$this->set("intro_list", $c_friend_comment_list);
//---- ページ表示 ----//
return 'success';
}
示例2: execute
function execute($requests)
{
$u = $GLOBALS['KTAI_C_MEMBER_ID'];
// --- リクエスト変数
$target_c_member_id = $requests['target_c_member_id'];
$page = $requests['page'];
// ----------
if (!$target_c_member_id) {
$target_c_member_id = $u;
}
if (db_member_is_access_block($u, $target_c_member_id)) {
openpne_redirect('ktai', 'page_h_access_block');
}
//ターゲット情報
$this->set("target_c_member", db_member_c_member4c_member_id_LIGHT($target_c_member_id));
// 1ページ当たりに表示するフレンドの数
$page_size = 10;
//ターゲットの詳細な友達リスト
$list = db_friend_friend_list4c_member_id($target_c_member_id, $page_size, $page);
$total_num = db_friend_count_friends($target_c_member_id);
$this->set("target_friend_list", $list[0]);
$this->set("page", $page);
$this->set("is_prev", $list[1]);
$this->set("is_next", $list[2]);
$this->set('total_num', $total_num);
$pager = array();
$pager['start'] = $page_size * ($page - 1) + 1;
$pager['end'] = $pager['start'] + count($list[0]) - 1;
$this->set('pager', $pager);
$this->set("INC_NAVI_type", k_p_fh_common_get_type($target_c_member_id, $u));
return 'success';
}
示例3: execute
function execute($requests)
{
$tail = $GLOBALS['KTAI_URL_TAIL'];
$u = $GLOBALS['KTAI_C_MEMBER_ID'];
// --- リクエスト変数
$target_c_member_id = $requests['target_c_member_id'];
$body = $requests['body'];
// ----------
$c_member_id_from = $u;
//--- 権限チェック
//フレンドでない and フレンド承認待ちでない
$status = db_friend_status($u, $target_c_member_id);
if ($status['is_friend']) {
ktai_display_error('このメンバーは既に' . WORD_MY_FRIEND_HALF . 'に登録されています。');
} elseif ($status['is_friend_confirm']) {
ktai_display_error('このメンバーは既に' . WORD_MY_FRIEND_HALF . 'リンク承認待ち中です。');
} elseif ($target_c_member_id == $u) {
ktai_display_error('自分にリンク要請することはできません。');
}
// アクセスブロック
if (db_member_is_access_block($u, $target_c_member_id)) {
openpne_redirect('ktai', 'page_h_access_block');
}
// -----
if ($body == null) {
$p = array('target_c_member_id' => $target_c_member_id, 'msg' => 1);
openpne_redirect('ktai', 'page_f_link_request', $p);
}
db_friend_insert_c_friend_confirm($c_member_id_from, $target_c_member_id, $body);
//メッセージ
list($subject, $body_disp) = create_message_friend_link_request($c_member_id_from, $body);
db_message_send_message_syoudaku($c_member_id_from, $target_c_member_id, $subject, $body_disp);
$p = array('target_c_member_id' => $target_c_member_id);
openpne_redirect('ktai', 'page_f_home', $p);
}
示例4: execute
function execute($requests)
{
$u = $GLOBALS['AUTH']->uid();
// --- リクエスト変数
$target_c_member_id = $requests['target_c_member_id'];
// ----------
//is_friend
$is_friend = db_friend_is_friend($u, $target_c_member_id);
//--- 権限チェック
//フレンド
if ($target_c_member_id == $u) {
handle_kengen_error();
}
if (!$is_friend) {
$p = array('target_c_member_id' => $target_c_member_id);
openpne_redirect('pc', 'page_f_link_request_err_yet', $p);
}
//---
if (db_member_is_access_block($u, $target_c_member_id)) {
openpne_redirect('pc', 'page_h_access_block');
}
$this->set('inc_navi', fetch_inc_navi('f', $target_c_member_id));
$this->set("target_member", db_member_c_member4c_member_id($target_c_member_id));
$this->set("intro_body", db_friend_intro_body4c_member_id($u, $target_c_member_id));
$this->set("target_c_member_id", $target_c_member_id);
return 'success';
}
示例5: execute
function execute($requests)
{
$u = $GLOBALS['AUTH']->uid();
// --- リクエスト変数
$target_c_member_id = $requests['target_c_member_id'];
$page = $requests['page'];
// ----------
if (is_null($target_c_member_id)) {
$target_c_member_id = $u;
}
if (db_member_is_access_block($u, $target_c_member_id)) {
openpne_redirect('pc', 'page_h_access_block');
}
// navi 振り分け用
if ($target_c_member_id == $u) {
$type = "h";
} else {
$type = "f";
}
$this->set('inc_navi', fetch_inc_navi($type, $target_c_member_id));
$this->set("target_member", db_member_c_member4c_member_id($target_c_member_id));
$page_size = 50;
$this->set("page", $page);
list($c_commu_list, $pager) = db_commu_c_commu_list4c_member_id($target_c_member_id, $page, $page_size);
$this->set("fh_com_list_user", $c_commu_list);
$this->set("pager", $pager);
for ($i = 1; $i <= $pager['total_page']; $i++) {
$page_list[] = $i;
}
$this->set("page_list", $page_list);
return 'success';
}
示例6: execute
function execute($requests)
{
if (!OPENPNE_USE_ALBUM) {
handle_kengen_error();
}
$u = $GLOBALS['AUTH']->uid();
// --- リクエスト変数
$target_c_member_id = $requests['target_c_member_id'];
$page = $requests['page'];
$keyword = $requests['keyword'];
// ----------
if (!$target_c_member_id || !is_null($keyword)) {
$target_c_member_id = $u;
}
if ($target_c_member_id == $u) {
$type = 'h';
$is_album_admin = true;
} else {
$type = 'f';
$is_album_admin = false;
$target_c_member = db_member_c_member4c_member_id($target_c_member_id);
// メンバーが存在しない
if (!$target_c_member) {
handle_kengen_error();
}
// アクセスブロック
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('inc_navi', fetch_inc_navi($type, $target_c_member_id));
$this->set('type', $type);
$page_size = 10;
$target_member = db_member_c_member4c_member_id($target_c_member_id);
$this->set('target_member', $target_member);
$this->set('c_member_id', $u);
//年月日で一覧表示、アルバム数に制限なし
//検索する場合
if ($keyword) {
$list_set = p_h_album_list_all_search_c_album4c_album($keyword, $page_size, $page, $u);
} else {
$list_set = p_fh_album_list_fh_my_album_list4c_member_id($target_c_member_id, $page_size, $page, $u);
}
$this->set('target_album_list', $list_set[0]);
//アルバムサブジェクト一覧取得
$album_subject_list = db_album_get_c_album_subject_list4c_member_id($target_c_member_id, 10, $u);
$this->set('target_album_subject_list', $album_subject_list);
$this->set('page', $page);
$this->set('page_size', $page_size);
$this->set('is_prev', $list_set[1]);
$this->set('is_next', $list_set[2]);
$this->set("total_num", $list_set[3]);
$this->set('album_list_count', count($list_set[0]));
//検索ワード
$this->set('keyword', $keyword);
$this->set("url_keyword", urlencode($keyword));
return 'success';
}
示例7: execute
function execute($requests)
{
$u = $GLOBALS['KTAI_C_MEMBER_ID'];
$tail = $GLOBALS['KTAI_URL_TAIL'];
// --- リクエスト変数
$target_c_member_id = $requests['target_c_member_id'];
// ----------
//is_friend
$is_friend = db_friend_is_friend($u, $target_c_member_id);
//--- 権限チェック
//フレンド
if ($target_c_member_id == $u) {
handle_kengen_error();
}
if (!$is_friend) {
$p = array('target_c_member_id' => $target_c_member_id);
openpne_redirect('ktai', 'page_f_home', $p);
}
//---
if (db_member_is_access_block($u, $target_c_member_id)) {
openpne_redirect('ktai', 'page_h_access_block');
}
$this->set("target_member", db_member_c_member4c_member_id($target_c_member_id));
$this->set("intro_body", db_friend_intro_body4c_member_id($u, $target_c_member_id));
$this->set("target_c_member_id", $target_c_member_id);
return 'success';
}
示例8: execute
function execute($requests)
{
$u = $GLOBALS['KTAI_C_MEMBER_ID'];
// --- リクエスト変数
$target_c_member_id = $requests['target_c_member_id'];
$page = $requests['page'];
// ----------
if (!$target_c_member_id) {
$target_c_member_id = $u;
}
if (db_member_is_access_block($u, $target_c_member_id)) {
openpne_redirect('ktai', 'page_h_access_block');
}
// メンバー情報
$this->set("target_c_member", db_member_c_member4c_member_id_LIGHT($target_c_member_id));
// 参加コミュニティリスト
$page_size = 10;
$list = db_commu_c_commu_list4c_member_id_4($target_c_member_id, $page_size, $page);
$this->set("c_commu_list", $list[0]);
$this->set("page", $page);
$this->set("is_prev", $list[1]);
$this->set("is_next", $list[2]);
$pager = array();
$pager['start'] = $page_size * ($page - 1) + 1;
$pager['end'] = $pager['start'] + count($list[0]) - 1;
$this->set('pager', $pager);
// 参加コミュニティ数
$this->set("count_commus", $list[3]);
//f or h
$this->set("INC_NAVI_type", k_p_fh_common_get_type($target_c_member_id, $u));
return 'success';
}
示例9: execute
function execute($requests)
{
$u = $GLOBALS['AUTH']->uid();
// --- リクエスト変数
$target_c_member_id = $requests['target_c_member_id'];
$body = $requests['body'];
// ----------
//--- 権限チェック
//フレンドでない or フレンド承認中でない
$status = db_friend_status($u, $target_c_member_id);
if ($status['is_friend']) {
$p = array('target_c_member_id' => $target_c_member_id);
openpne_redirect('pc', 'page_f_link_request_err_already', $p);
} elseif ($status['is_friend_confirm']) {
$p = array('target_c_member_id' => $target_c_member_id);
openpne_redirect('pc', 'page_f_link_request_err_wait', $p);
}
//アクセスブロック設定
if (db_member_is_access_block($u, $target_c_member_id)) {
openpne_redirect('pc', 'page_h_access_block');
}
//---
$c_member_id_from = $u;
db_friend_insert_c_friend_confirm($c_member_id_from, $target_c_member_id, $body);
list($subject, $body_disp) = create_message_friend_link_request($c_member_id_from, $body);
db_message_send_message_syoudaku($c_member_id_from, $target_c_member_id, $subject, $body_disp);
$p = array('target_c_member_id' => $target_c_member_id);
openpne_redirect('pc', 'page_f_home', $p);
}
示例10: execute
function execute($requests)
{
$u = $GLOBALS['AUTH']->uid();
// --- リクエスト変数
$target_c_album_image_id = $requests['target_c_album_image_id'];
// ----------
if (!p_common_is_active_c_album_image_id($target_c_album_image_id)) {
util_send_header_internal_server_error();
}
$c_album_image = db_album_image_get_c_album_image4id($target_c_album_image_id);
$c_album_id = $c_album_image['c_album_id'];
if (!p_common_is_active_c_album_id($c_album_id)) {
util_send_header_internal_server_error();
}
$c_album = db_album_get_c_album4c_album_id($c_album_id);
$target_c_member_id = $c_album['c_member_id'];
if ($u != $target_c_member_id) {
// メンバーが存在しない
if (!db_member_is_active_c_member_id($target_c_member_id)) {
util_send_header_internal_server_error();
}
// check public_flag
if (!pne_check_album_public_flag($c_album_id, $u)) {
util_send_header_internal_server_error();
}
// アクセスブロック設定
if (db_member_is_access_block($u, $target_c_member_id)) {
util_send_header_internal_server_error();
}
}
$c_album_image['image_filename'] = util_get_img_url($c_album_image['image_filename'], 180, 180);
//---
util_output_xml4array($c_album_image, 'c_album_image');
}
示例11: execute
function execute($requests)
{
$u = $GLOBALS['AUTH']->uid();
// --- リクエスト変数
$target_c_album_id = $requests['target_c_album_id'];
// ----------
if (!p_common_is_active_c_album_id($target_c_album_id)) {
util_send_header_internal_server_error();
}
//--- 権限チェック
$c_album = db_album_get_c_album4c_album_id($target_c_album_id);
$target_c_member_id = $c_album['c_member_id'];
$c_album['c_member'] = db_member_c_member4c_member_id_LIGHT($target_c_member_id);
$c_album['album_cover_image'] = util_get_img_url($c_album['album_cover_image'], 180, 180);
$c_album['word_my_friend'] = WORD_MY_FRIEND;
if ($u != $target_c_member_id) {
// メンバーが存在しない
if (!$c_album['c_member']) {
util_send_header_internal_server_error();
}
// check public_flag
if (!pne_check_album_public_flag($target_c_album_id, $u)) {
util_send_header_internal_server_error();
}
// アクセスブロック設定
if (db_member_is_access_block($u, $target_c_member_id)) {
util_send_header_internal_server_error();
}
}
//---
util_output_xml4array($c_album, 'c_album');
}
示例12: execute
function execute($requests)
{
$u = $GLOBALS['AUTH']->uid();
// --- リクエスト変数
$target_c_member_id = $requests['target_c_member_id'];
// ----------
if (db_member_is_access_block($u, $target_c_member_id)) {
openpne_redirect('pc', 'page_h_access_block');
}
if ($target_c_member_id == $u) {
handle_kengen_error();
}
//アクティブメンバーか
if (!db_member_is_active_c_member_id($target_c_member_id)) {
handle_kengen_error();
}
//お気に入り登録済みメンバーか
if (db_bookmark_is_bookmark($u, $target_c_member_id)) {
$p = array('c_member_id_to' => $target_c_member_id);
openpne_redirect('pc', 'page_f_bookmark_add_err_already', $p);
}
$this->set('inc_navi', fetch_inc_navi('f', $target_c_member_id));
$c_member = db_member_c_member_with_profile($target_c_member_id);
$c_member['last_login'] = p_f_home_last_login4access_date($c_member['access_date']);
$this->set('c_member', $c_member);
return 'success';
}
示例13: execute
function execute($requests)
{
$u = $GLOBALS['KTAI_C_MEMBER_ID'];
// --- リクエスト変数
$target_c_member_id = $requests['target_c_member_id'];
$page = $requests['page'];
// ----------
if (db_member_is_access_block($u, $target_c_member_id)) {
openpne_redirect('ktai', 'page_h_access_block');
}
// メンバー情報
$this->set("target_c_member", db_member_c_member4c_member_id_LIGHT($target_c_member_id));
// 参加コミュニティリスト
$page_size = 10;
list($list, $pager) = db_common_commu_common_commu_list4c_member_id($target_c_member_id, $u, $page, $page_size);
$this->set("common_commu_list", $list);
$this->set("page", $page);
$this->set("is_prev", $pager[prev_page]);
$this->set("is_next", $pager[next_page]);
$this->set('start_num', $pager['start_num']);
$this->set('end_num', $pager['end_num']);
// 共通コミュニティ数
$this->set("common_commu_count", $pager[total_num]);
return 'success';
}
示例14: execute
function execute($requests)
{
$u = $GLOBALS['AUTH']->uid();
// --- リクエスト変数
$target_c_member_id = $requests['target_c_member_id'];
$page = $requests['page'];
$order = $requests['order'];
// ----------
if (!$target_c_member_id) {
$target_c_member_id = $u;
}
if (db_member_is_access_block($u, $target_c_member_id)) {
openpne_redirect('pc', 'page_h_access_block');
}
// navi 振り分け用
if ($target_c_member_id == $u) {
$type = "h";
} else {
$type = "f";
}
$this->set('inc_navi', fetch_inc_navi($type, $target_c_member_id));
$this->set("type", $type);
//----------PC CONTENT#LEFT
//メンバー情報
$this->set("member", db_member_c_member4c_member_id($u));
//ターゲット情報
$this->set("target_member", db_member_c_member4c_member_id($target_c_member_id));
//ターゲットの友達数
$friend_num = db_friend_count_friends($target_c_member_id);
$this->set("target_friend_num", $friend_num);
//----------PC CONTENT#CENTER
// 1ページ当たりに表示するフレンドの数
$page_size = 50;
//ターゲットの詳細な友達リスト
$list = db_friend_friend_list4c_member_id2($target_c_member_id, $page_size, $page, $order);
$this->set("order", $order);
$this->set("target_friend_list_disp", $list[0]);
$this->set("page", $page);
$this->set("is_prev", $list[1]);
$this->set("is_next", $list[2]);
$this->set("start_num", ($page - 1) * $page_size + 1);
if ($page * $page_size < $friend_num) {
$end_num = $page * $page_size;
} else {
$end_num = $friend_num;
}
$this->set("end_num", $end_num);
for ($i = 1; $i <= $list[3]; $i++) {
$page_num[] = $i;
}
$this->set("page_num", $page_num);
//あしあとをつける
if ($target_c_member_id != $u) {
db_ashiato_insert_c_ashiato($target_c_member_id, $u);
}
return 'success';
}
示例15: execute
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';
}