本文整理汇总了PHP中db_member_c_member4c_member_id函数的典型用法代码示例。如果您正苦于以下问题:PHP db_member_c_member4c_member_id函数的具体用法?PHP db_member_c_member4c_member_id怎么用?PHP db_member_c_member4c_member_id使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了db_member_c_member4c_member_id函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: execute
function execute($requests)
{
$u = $GLOBALS['AUTH']->uid();
// --- リクエスト変数
$c_commu_id = $requests['target_c_commu_id'];
$page = $requests['page'];
// ----------
$page_size = 30;
$c_member_id = $u;
//--- 権限チェック
//コミュニティメンバー
if (!db_commu_is_c_commu_member($c_commu_id, $u)) {
handle_kengen_error();
}
//---
$this->set('c_member', db_member_c_member4c_member_id($c_member_id));
list($c_review_list, $is_prev, $is_next, $total_num, $start_num, $end_num) = db_review_list_product_c_review_list4c_member_id($c_member_id, $page, $page_size);
$this->set('c_review_list', $c_review_list);
$this->set("is_prev", $is_prev);
$this->set("is_next", $is_next);
$this->set("page", $page);
$this->set("total_num", $total_num);
$this->set('start_num', $start_num);
$this->set('end_num', $end_num);
$c_commu = db_commu_c_commu4c_commu_id($c_commu_id);
$this->set('c_commu', $c_commu);
$this->set('inc_navi', fetch_inc_navi('c', $c_commu_id));
return 'success';
}
示例2: execute
function execute($requests)
{
$v = array();
$target_c_commu_topic_ids = $requests['target_c_commu_topic_ids'];
// トピックが選択されていない場合はエラー
if (!$target_c_commu_topic_ids) {
admin_client_redirect('topic_list', "トピックが選択されていません");
}
$id_ary = split(":", $target_c_commu_topic_ids);
$v = array();
$topic_list = array();
foreach ($id_ary as $id) {
$topic = db_commu_c_topic4c_commu_topic_id_2($id);
if (!$topic) {
admin_client_redirect('topic_list', '指定されたトピック・イベントは存在しません');
}
$member = db_member_c_member4c_member_id($topic['c_member_id']);
$topic['count_comments'] = _db_count_c_commu_topic_comments4c_commu_topic_id($topic['c_commu_topic_id']);
$commu = db_commu_c_commu4c_commu_id($topic['c_commu_id']);
$topic['commu_name'] = $commu['name'];
$topic['c_member'] = $member;
$topic['original_filename'] = db_file_original_filename4filename($topic['filename']);
array_push($topic_list, $topic);
}
$this->set('topic_list', $topic_list);
$this->set('pref', p_regist_prof_c_profile_pref_list4null());
$this->set('target_c_commu_topic_ids', $target_c_commu_topic_ids);
$v['SNS_NAME'] = SNS_NAME;
$v['OPENPNE_VERSION'] = OPENPNE_VERSION;
$this->set($v);
return 'success';
}
示例3: 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';
}
示例4: execute
function execute($requests)
{
if (!OPENPNE_USE_ALBUM) {
handle_kengen_error();
}
$u = $GLOBALS['AUTH']->uid();
// --- リクエスト変数
$target_c_album_id = $requests['target_c_album_id'];
$page = $requests['page'];
// ----------
$page_size = 20;
$desc = 1;
$target_c_album = db_album_get_c_album4c_album_id($target_c_album_id);
$target_c_member_id = $u;
if ($target_c_member_id != $target_c_album['c_member_id']) {
handle_kengen_error();
}
$this->set('target_c_member_id', $target_c_member_id);
$this->set('target_c_album_id', $target_c_album_id);
$this->set('album_info', $target_c_album);
$this->set("target_member", db_member_c_member4c_member_id($target_c_member_id));
$target_c_album_image = db_album_c_album_image_list4c_album_id($target_c_album_id, $page, $page_size, $desc);
$this->set("target_album_image", $target_c_album_image[0]);
$this->set('is_prev', $target_c_album_image[1]);
$this->set('is_next', $target_c_album_image[2]);
$this->set("total_num", $target_c_album_image[3]);
$this->set('album_list_count', count($target_c_album_image[0]));
$this->set('page', $page);
$this->set('page_size', $page_size);
$view =& $this->getView();
$view->ext_display('h_album_image_insert_dialog.tpl');
exit;
}
示例5: execute
function execute($requests)
{
$u = $GLOBALS['KTAI_C_MEMBER_ID'];
// --- リクエスト変数
$target_c_album_image_id = $requests['target_c_album_image_id'];
// ----------
$target_c_album_image = db_album_image_get_c_album_image4id($target_c_album_image_id);
//targetのアルバム写真が存在しない
if (!$target_c_album_image) {
openpne_redirect('ktai', 'page_h_err_fh_album');
}
$target_c_album_id = $target_c_album_image['c_album_id'];
$c_album = db_album_get_c_album4c_album_id($target_c_album_id);
//targetのアルバムが存在しない
if (!$c_album) {
openpne_redirect('ktai', 'page_h_err_fh_album');
}
if ($c_album['c_member_id'] != $u) {
handle_kengen_error();
}
$this->set('c_album_image', $target_c_album_image);
$this->set('album_info', $c_album);
//メンバー情報
$c_member = db_member_c_member4c_member_id($u);
$this->set('member', $c_member);
return 'success';
}
示例6: execute
function execute($requests)
{
$u = $GLOBALS['AUTH']->uid();
// --- リクエスト変数
$target_c_commu_id = $requests['target_c_commu_id'];
$page = $requests['page'];
// ----------
//--- 権限チェック
//コミュニティ管理者
if (!db_commu_is_c_commu_admin($target_c_commu_id, $u)) {
handle_kengen_error();
}
//---
$this->set('inc_navi', fetch_inc_navi('c', $target_c_commu_id));
//メンバー情報
$this->set("member", db_member_c_member4c_member_id($u));
//コミュニティID
$this->set("c_commu_id", $target_c_commu_id);
//コミュニティ情報
$this->set("c_commu", db_commu_c_commu4c_commu_id($target_c_commu_id));
$page_size = 20;
//コミュニティメンバーリスト
$list = db_commu_c_member_list4c_commu_id($target_c_commu_id, $page_size, $page);
$this->set("c_member_list", $list[0]);
$this->set("is_prev", $list[1]);
$this->set("is_next", $list[2]);
$this->set("page", $page);
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_album_id = $requests['target_c_album_id'];
// ----------
$c_member = db_member_c_member4c_member_id($u);
$c_album = db_album_get_c_album4c_album_id($target_c_album_id);
if ($c_album['c_member_id'] != $u) {
handle_kengen_error();
}
$this->set('target_c_album', $c_album);
if (OPENPNE_ALBUM_LIMIT) {
$kb = 1024;
$mb = 1048576;
$limit_size = db_album_sum_filesize4c_member_id($u);
$limit_size = OPENPNE_ALBUM_LIMIT * $mb - $limit_size;
$limit_size = floor($limit_size / $kb);
$this->set('album_limit', OPENPNE_ALBUM_LIMIT);
$this->set('limit_size', $limit_size);
}
if (MAIL_ADDRESS_HASHED) {
$mail_address = "ai{$target_c_album_id}-" . t_get_user_hash($u) . '@' . MAIL_SERVER_DOMAIN;
} else {
$mail_address = "ai{$target_c_album_id}" . '@' . MAIL_SERVER_DOMAIN;
}
$mail_address = MAIL_ADDRESS_PREFIX . $mail_address;
$this->set('mail_address', $mail_address);
return 'success';
}
示例9: execute
function execute($requests)
{
$u = $GLOBALS['KTAI_C_MEMBER_ID'];
// --- リクエスト変数
$target_c_diary_id = $requests['target_c_diary_id'];
// ----------
$c_member = db_member_c_member4c_member_id($u);
if ($target_c_diary_id) {
$c_diary = db_diary_get_c_diary4id($target_c_diary_id);
$this->set('target_c_diary', $c_diary);
if ($c_diary['c_member_id'] != $u) {
handle_kengen_error();
}
} else {
handle_kengen_error();
}
if (MAIL_ADDRESS_HASHED) {
$mail_address = 'bi' . $target_c_diary_id . '-' . t_get_user_hash($u) . "@" . MAIL_SERVER_DOMAIN;
} else {
$mail_address = 'bi' . $target_c_diary_id . "@" . MAIL_SERVER_DOMAIN;
}
$mail_address = MAIL_ADDRESS_PREFIX . $mail_address;
$this->set('mail_address', $mail_address);
//メンバー情報
$this->set('member', $c_member);
return 'success';
}
示例10: execute
function execute($requests)
{
$v = array();
$target_c_commu_topic_comment_ids = $requests['target_c_commu_topic_comment_ids'];
// トピックのコメントが選択されていない場合はエラー
if (!$target_c_commu_topic_comment_ids) {
admin_client_redirect('topic_comment_list', "トピックのコメントが選択されていません");
}
$id_ary = split(":", $target_c_commu_topic_comment_ids);
$v = array();
$topic_comment_list = array();
foreach ($id_ary as $id) {
$topic_comment = db_commu_c_commu_topic_comment4c_commu_topic_comment_id($id);
if (!$topic_comment) {
admin_client_redirect('topic_comment_list', '指定されたトピック・イベントのコメントは存在しません');
}
if ($topic_comment['number'] == 0) {
admin_client_redirect('topic_comment_list', '指定されたコメントはトピック本文のためトピック削除にて削除してください');
}
$member = db_member_c_member4c_member_id($topic_comment['c_member_id']);
$topic_comment['nickname'] = $member['nickname'];
$topic_comment['count_comments'] = _db_count_c_commu_topic_comments4c_commu_topic_id($topic_comment['c_commu_topic_id']);
$topic_comment['original_filename'] = db_file_original_filename4filename($topic_comment['filename']);
array_push($topic_comment_list, $topic_comment);
}
$this->set('topic_comment_list', $topic_comment_list);
$this->set('target_c_commu_topic_comment_ids', $target_c_commu_topic_comment_ids);
$v['SNS_NAME'] = SNS_NAME;
$v['OPENPNE_VERSION'] = OPENPNE_VERSION;
$this->set($v);
return 'success';
}
示例11: execute
function execute($requests)
{
$u = $GLOBALS['AUTH']->uid();
// --- リクエスト変数
$subject = $requests['subject'];
$body = $requests['body'];
$public_flag = util_cast_public_flag_diary($requests['public_flag']);
$category = $requests['category'];
$is_comment_input = $requests['is_comment_input'];
// ----------
$sessid = session_id();
t_image_clear_tmp($sessid);
$upfiles = array(1 => $_FILES['upfile_1'], $_FILES['upfile_2'], $_FILES['upfile_3']);
$tmpfiles = array(1 => '', '', '');
$filesize = 0;
foreach ($upfiles as $key => $upfile) {
if (!empty($upfile) && $upfile['error'] !== UPLOAD_ERR_NO_FILE) {
if (!($image = t_check_image($upfile))) {
$_REQUEST['msg'] = '画像は' . IMAGE_MAX_FILESIZE . 'KB以内のGIF・JPEG・PNGにしてください';
openpne_forward('pc', 'page', 'h_diary_add');
exit;
} else {
$filesize += $image['size'];
$tmpfiles[$key] = t_image_save2tmp($upfile, $sessid, "d_{$key}", $image['format']);
}
}
}
$category_list = array_unique(preg_split('/\\s+/', $category));
if (count($category_list) > 5) {
$_REQUEST['msg'] = 'カテゴリは5つまでしか指定できません';
openpne_forward('pc', 'page', 'h_diary_add');
exit;
}
foreach ($category_list as $value) {
if (mb_strwidth($value) > 20) {
$_REQUEST['msg'] = 'カテゴリはひとつにつき全角10文字(半角20文字)以内で入力してください';
openpne_forward('pc', 'page', 'h_diary_add');
exit;
}
}
// 画像アップロード可能サイズチェック
if ($filesize) {
$result = util_image_check_add_image_upload($filesize, $u, 'diary');
if ($result) {
if ($result == 2) {
$result = 3;
}
$msg = util_image_get_upload_err_msg($result);
$_REQUEST['msg'] = $msg;
openpne_forward('pc', 'page', 'h_diary_add');
exit;
}
}
$this->set('inc_navi', fetch_inc_navi('h'));
//プロフィール
$this->set("member", db_member_c_member4c_member_id($u));
$form_val = array("subject" => $subject, "body" => $body, "public_flag" => $public_flag, "upfile_1" => $_FILES['upfile_1'], "upfile_2" => $_FILES['upfile_2'], "upfile_3" => $_FILES['upfile_3'], "tmpfile_1" => $tmpfiles[1], "tmpfile_2" => $tmpfiles[2], "tmpfile_3" => $tmpfiles[3], "category" => join(" ", $category_list), "is_comment_input" => $is_comment_input);
$this->set("form_val", $form_val);
return 'success';
}
示例12: execute
function execute($requests)
{
$u = $GLOBALS['KTAI_C_MEMBER_ID'];
// --- リクエスト変数
$target_c_commu_id = $requests['target_c_commu_id'];
$target_c_member_id = $requests['target_c_member_id'];
// ----------
//--- 権限チェック
//コミュニティ管理者
//targetメンバーが管理者(=自分)でない
$status = db_common_commu_status($u, $target_c_commu_id);
if (!$status['is_commu_admin']) {
handle_kengen_error();
}
$status = db_common_commu_status($target_c_member_id, $target_c_commu_id);
if ($status['is_commu_admin']) {
handle_kengen_error();
}
if ($target_c_member_id == $u) {
handle_kengen_error();
}
//---
$this->set('target_c_member', db_member_c_member4c_member_id($target_c_member_id));
$this->set("c_commu", db_commu_c_commu4c_commu_id_k($target_c_commu_id));
$this->set("target_c_commu_id", $target_c_commu_id);
$this->set("target_c_member_id", $target_c_member_id);
return 'success';
}
示例13: execute
function execute($requests)
{
if (!OPENPNE_USE_ALBUM) {
handle_kengen_error();
}
$v = array();
$target_c_album_image_ids = $requests['target_c_album_image_ids'];
// アルバム写真が選択されていない場合はエラー
if (!$target_c_album_image_ids) {
admin_client_redirect('edit_album_image_list', "アルバム写真が選択されていません");
}
$id_ary = split(":", $target_c_album_image_ids);
$album_image_list = array();
foreach ($id_ary as $id) {
$album_image = db_album_image_get_c_album_image4id($id);
if (!$album_image) {
admin_client_redirect('edit_album_image_list', '指定されたアルバムは存在しません');
}
$member = db_member_c_member4c_member_id($album_image['c_member_id']);
$album_image['c_member'] = $member;
array_push($album_image_list, $album_image);
}
$this->set('album_image_list', $album_image_list);
$this->set('target_c_album_image_ids', $target_c_album_image_ids);
$this->set($v);
return 'success';
}
示例14: execute
function execute($requests)
{
$v = array();
$target_c_commu_ids = $requests['target_c_commu_ids'];
$target_c_commu_id = $requests['target_c_commu_id'];
if (!empty($target_c_commu_id)) {
$target_c_commu_ids[] = $target_c_commu_id;
}
if (empty($target_c_commu_ids)) {
admin_client_redirect('list_c_commu', WORD_COMMUNITY . 'が選択されていません');
}
$i = 0;
foreach ($target_c_commu_ids as $target_c_commu_id) {
$c_commu_list[$i] = db_commu_c_commu4c_commu_id($target_c_commu_id);
if (!$c_commu_list[$i]) {
admin_client_redirect('list_c_commu', '指定された' . WORD_COMMUNITY . 'は存在しません');
}
$c_commu_list[$i]['c_member'] = db_member_c_member4c_member_id($c_commu_list[$i]['c_member_id_admin']);
$i++;
}
$this->set('c_commu_list', $c_commu_list);
$v['SNS_NAME'] = SNS_NAME;
$v['OPENPNE_VERSION'] = OPENPNE_VERSION;
$this->set($v);
return 'success';
}
示例15: execute
function execute($requests)
{
$v = array();
$target_c_diary_ids = $requests['target_c_diary_ids'];
// 日記が選択されていない場合はエラー
if (!$target_c_diary_ids) {
admin_client_redirect('diary_list', WORD_DIARY . "が選択されていません");
}
$ids_ary = split(":", $target_c_diary_ids);
$v = array();
$diary_list = array();
foreach ($ids_ary as $id) {
$diary = db_diary_get_c_diary4id($id);
if (!$diary) {
admin_client_redirect('diary_list', '指定された' . WORD_DIARY . "は存在しません");
}
$diary['count_comments'] = db_diary_count_c_diary_comment4c_diary_id($id);
$member = db_member_c_member4c_member_id($diary['c_member_id']);
$diary['c_member'] = $member;
array_push($diary_list, $diary);
}
$this->set('diary_list', $diary_list);
$this->set('target_c_diary_ids', $target_c_diary_ids);
$v['SNS_NAME'] = SNS_NAME;
$v['OPENPNE_VERSION'] = OPENPNE_VERSION;
$this->set($v);
return 'success';
}