当前位置: 首页>>代码示例>>PHP>>正文


PHP openpne_redirect函数代码示例

本文整理汇总了PHP中openpne_redirect函数的典型用法代码示例。如果您正苦于以下问题:PHP openpne_redirect函数的具体用法?PHP openpne_redirect怎么用?PHP openpne_redirect使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了openpne_redirect函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: execute

 function execute($requests)
 {
     $u = $GLOBALS['KTAI_C_MEMBER_ID'];
     $tail = $GLOBALS['KTAI_URL_TAIL'];
     // --- リクエスト変数
     $c_commu_id = $requests['c_commu_id'];
     $c_commu_topic_id = $requests['c_commu_topic_id'];
     $c_member_ids = $requests['c_member_ids'];
     $body = $requests['body'];
     // ----------
     $c_topic = db_commu_c_topic4c_commu_topic_id_2($c_commu_topic_id);
     $c_commu_id = $c_topic['c_commu_id'];
     //--- 権限チェック
     // イベント管理者・コミュニティ管理者(副管含む)のみ送信可能
     if (!db_commu_is_c_event_admin($c_commu_topic_id, $u) && !db_commu_is_c_commu_admin($c_commu_id, $u)) {
         handle_kengen_error();
     }
     // 対象者に自分が含まれている
     if (in_array($u, $c_member_ids)) {
         handle_kengen_error();
     }
     //---
     //メッセージ送信
     list($msg_subject, $msg_body) = create_message_event_message($u, $body, $c_commu_topic_id);
     foreach ($c_member_ids as $key => $value) {
         db_message_send_message_event_message($u, $value, $msg_subject, $msg_body);
     }
     $p = array('target_c_commu_topic_id' => $c_commu_topic_id);
     openpne_redirect('ktai', 'page_c_event_mail_end', $p);
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:30,代码来源:c_event_mail.php

示例2: execute

 function execute($requests)
 {
     $u = $GLOBALS['AUTH']->uid();
     // --- リクエスト変数
     $target_c_commu_id = $requests['target_c_commu_id'];
     $body = $requests['body'];
     // ----------
     //--- 権限チェック
     //コミュニティメンバーでない or 参加承認中でない
     $status = db_common_commu_status($u, $target_c_commu_id);
     if ($status['is_commu_member'] || $status['is_commu_member_confirm']) {
         handle_kengen_error();
     }
     //---
     $c_member_id_from = $u;
     db_commu_insert_c_commu_member_confirm($target_c_commu_id, $c_member_id_from, $body);
     //メッセージ
     $c_commu = db_commu_c_commu4c_commu_id($target_c_commu_id);
     list($subject, $body_disp) = create_message_commu_join_request($c_member_id_from, $body, $target_c_commu_id);
     db_message_send_message_syoudaku($c_member_id_from, $c_commu['c_member_id_admin'], $subject, $body_disp);
     if ($c_commu['c_member_id_sub_admin']) {
         db_message_send_message_syoudaku($c_member_id_from, $c_commu['c_member_id_sub_admin'], $subject, $body_disp);
     }
     $p = array('target_c_commu_id' => $target_c_commu_id);
     openpne_redirect('pc', 'page_c_home', $p);
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:26,代码来源:c_join_request_insert_c_commu_member_confirm.php

示例3: execute

 function execute($requests)
 {
     $u = $GLOBALS['AUTH']->uid();
     // --- リクエスト変数
     $category_id = $requests['category_id'];
     $asin = $requests['asin'];
     $body = $requests['body'];
     $satisfaction_level = $requests['satisfaction_level'];
     // ----------
     $c_review_comment = db_review_add_write_c_review_comment4asin_c_member_id($asin, $u);
     if ($c_review_comment) {
         $p = array('c_review_id' => $c_review_comment['c_review_id']);
         openpne_redirect('pc', 'page_h_review_list_product', $p);
     }
     $product = db_review_write_product4asin($asin);
     if (!$product) {
         handle_kengen_error();
     }
     $this->set('inc_navi', fetch_inc_navi('h'));
     $this->set('category_id', $category_id);
     $this->set('asin', $asin);
     $this->set('body', $body);
     $this->set('satisfaction_level', $satisfaction_level);
     return 'success';
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:25,代码来源:h_review_add_write_confirm.php

示例4: execute

 function execute($requests)
 {
     $u = $GLOBALS['AUTH']->uid();
     if (!$requests['name']) {
         $p = array('msg' => '施設名を入力してください');
         openpne_redirect('biz', 'page_s_add_shisetsu', $p);
     }
     $sessid = session_id();
     $filename = '';
     if ($_FILES['image_filename']['name']) {
         $image = biz_saveImage($_FILES['image_filename'], "s_" . $sessid, $u);
         if (!$image['filename']) {
             if (!$image['up_size_chk_result']) {
                 $p = array('msg' => '画像は' . IMAGE_MAX_FILESIZE . 'KB以内のGIF・JPEG・PNGにしてください。');
                 openpne_redirect('biz', 'page_s_add_shisetsu', $p);
             } else {
                 $msg = util_image_get_upload_err_msg($image['up_size_chk_result']);
                 $p = array('msg' => $msg, 'id' => $id);
                 openpne_redirect('biz', 'page_s_add_shisetsu', $p);
             }
         }
         $filename = $image['filename'];
     }
     t_image_clear_tmp(session_id());
     biz_addShisetsu($requests['name'], $filename, $requests['info']);
     $p = array('msg' => '施設を追加しました');
     openpne_redirect('biz', 'page_s_list', $p);
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:28,代码来源:s_add_shisetsu.php

示例5: execute

 function execute($requests)
 {
     $u = $GLOBALS['AUTH']->uid();
     // --- リクエスト変数
     $c_commu_topic_id = $requests['target_c_commu_topic_id'];
     // ----------
     $c_topic = db_commu_c_topic4c_commu_topic_id_2($c_commu_topic_id);
     //--- 権限チェック
     //イベントの管理者 or コミュニティ管理者
     if (!db_commu_is_c_event_admin($c_commu_topic_id, $u) && !db_commu_is_c_commu_admin($c_topic['c_commu_id'], $u)) {
         handle_kengen_error();
     }
     $c_commu = db_commu_c_commu4c_commu_id2($c_topic['c_commu_id']);
     if ($c_commu['is_topic'] == 'admin_only' && !db_commu_is_c_commu_admin($c_topic['c_commu_id'], $u)) {
         handle_kengen_error();
     }
     if ($c_commu['is_topic'] == 'member' && !db_commu_is_c_commu_member($c_topic['c_commu_id'], $u)) {
         handle_kengen_error();
     }
     //---
     db_file_delete_c_file($c_topic['filename']);
     db_commu_delete_c_commu_topic_comment_file($c_commu_topic_id);
     $p = array('target_c_commu_topic_id' => $c_commu_topic_id);
     openpne_redirect('pc', 'page_c_event_edit', $p);
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:25,代码来源:c_event_edit_delete_c_commu_topic_comment_file.php

示例6: execute

 function execute($requests)
 {
     $u = $GLOBALS['AUTH']->uid();
     // --- リクエスト変数
     $c_review_comment_id = $requests['c_review_comment_id'];
     $body = $requests['body'];
     $satisfaction_level = $requests['satisfaction_level'];
     // ----------
     //--- 権限チェック
     //レビューコメント作成者
     if (!db_review_edit_c_review_comment4c_review_comment_id_c_member_id($c_review_comment_id, $u)) {
         handle_kengen_error();
     }
     //---
     if (is_null($body) || $body === '') {
         $err_msg[] = "レビューを入力してください";
     }
     if (!$satisfaction_level) {
         $err_msg[] = "満足度を入力してください";
     }
     if ($err_msg) {
         $c_review = db_review_edit_c_review4c_review_comment_id($c_review_comment_id);
         $_REQUEST['asin'] = $c_review['asin'];
         $_REQUEST['err_msg'] = $err_msg;
         openpne_forward('pc', 'page', "h_review_edit");
         exit;
     }
     do_h_review_edit_update_c_review_comment($c_review_comment_id, $body, $satisfaction_level);
     openpne_redirect('pc', 'page_fh_review_list_member');
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:30,代码来源:h_review_edit_update_c_review_comment.php

示例7: execute

 function execute($requests)
 {
     $u = $GLOBALS['AUTH']->uid();
     // --- リクエスト変数
     $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();
     }
     if ($target_c_member_id == $u) {
         $p = array('target_c_commu_id' => $target_c_commu_id);
         openpne_redirect('pc', 'page_c_taikai_err_admin', $p);
     }
     // 削除対象がコミュニティ管理者
     if (db_commu_is_c_commu_admin($target_c_commu_id, $target_c_member_id)) {
         handle_kengen_error();
     }
     //---
     db_commu_delete_c_commu_member($target_c_commu_id, $target_c_member_id);
     $p = array('target_c_commu_id' => $target_c_commu_id);
     openpne_redirect('pc', 'page_c_edit_member', $p);
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:27,代码来源:c_edit_member_delete_c_commu_member.php

示例8: execute

 function execute($requests)
 {
     $tail = $GLOBALS['KTAI_URL_TAIL'];
     $u = $GLOBALS['KTAI_C_MEMBER_ID'];
     // --- リクエスト変数
     $c_message_id = $requests['c_message_id'];
     // ----------
     $c_message = db_message_c_message4c_message_id($c_message_id);
     if (!util_is_readable_message($u, $c_message_id)) {
         handle_kengen_error();
     }
     if ($c_message['c_member_id_to'] == $u) {
         // 受信メッセージ
         if (empty($c_message['is_deleted_to'])) {
             handle_kengen_error();
             // メッセージがごみ箱にない場合は権限エラー
         }
         db_message_delete_c_message_to_trash($c_message_id);
     } elseif ($c_message['c_member_id_from'] == $u) {
         // 送信メッセージ
         if (empty($c_message['is_deleted_from'])) {
             handle_kengen_error();
             // メッセージがごみ箱にない場合は権限エラー
         }
         db_message_delete_c_message_from_trash($c_message_id, $u);
     }
     openpne_redirect('ktai', 'page_h_message_box', array('box' => 'trash'));
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:28,代码来源:h_message_delete_c_message.php

示例9: execute

 function execute($requests)
 {
     $tail = $GLOBALS['KTAI_URL_TAIL'];
     $u = $GLOBALS['KTAI_C_MEMBER_ID'];
     // --- リクエスト変数
     $c_commu_topic_id = $requests['target_c_commu_topic_id'];
     // ----------
     //--- 権限チェック
     $c_commu_topic = db_commu_c_commu_topic4c_commu_topic_id($c_commu_topic_id);
     $c_commu_id = $c_commu_topic['c_commu_id'];
     $status = db_common_commu_status($u, $c_commu_id);
     if (!$status['is_commu_member']) {
         handle_kengen_error();
     }
     if (!$c_commu_topic['event_flag']) {
         handle_kengen_error();
     }
     if (db_commu_is_writable_c_commu_topic_comment4c_commu_topic_id($c_commu_topic_id)) {
         handle_kengen_error();
     }
     $is_c_event_member = db_commu_is_c_event_member($c_commu_topic_id, $u);
     if ($is_c_event_member) {
         ktai_display_error('すでにイベントに参加しています');
     }
     if (!db_commu_is_event_join_capacity($c_commu_topic_id)) {
         ktai_display_error('イベントの参加者数制限を超えています');
     }
     if (!db_commu_is_event_join_date($c_commu_topic_id)) {
         ktai_display_error('イベントの募集期限が過ぎています');
     }
     db_commu_insert_c_event_member($c_commu_topic_id, $u);
     $p = array('target_c_commu_topic_id' => $c_commu_topic_id);
     openpne_redirect('ktai', 'page_c_bbs', $p);
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:34,代码来源:c_event_join_c_commu_event.php

示例10: 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';
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:32,代码来源:fh_friend_list.php

示例11: execute

 function execute($requests)
 {
     //外部認証の場合はリダイレクト
     check_action4pne_slave(true);
     // --- リクエスト変数
     $session = $requests['session'];
     $id = $requests['id'];
     // ----------
     // ハッシュ化されたIDを戻す
     $c_member_id = t_decrypt($id);
     // 権限チェック
     if (!db_member_c_member_config4name($c_member_id, 'password_reset_sid')) {
         handle_kengen_error();
     }
     if (!db_member_c_member_config4name($c_member_id, 'password_reset_sid_time')) {
         handle_kengen_error();
     }
     $c_member_config = db_member_c_member_config4c_member_id($c_member_id);
     // 権限チェック
     if ($c_member_config['password_reset_sid'] != $session) {
         handle_kengen_error();
     }
     // 有効期限は24時間
     $one_day_time = 86400;
     $limit_password_reset_sid_time = $c_member_config['password_reset_sid_time'] + $one_day_time;
     // 権限チェック
     if (time() > $limit_password_reset_sid_time) {
         $p = array('msg' => 55);
         openpne_redirect('ktai', 'page_o_login', $p);
     }
     $this->set('session', $session);
     $this->set('id', $id);
     return 'success';
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:34,代码来源:o_password_reset.php

示例12: 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';
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:34,代码来源:fh_intro.php

示例13: execute

 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));
     }
     if ($aff_id) {
         $this->set('aff_id', $aff_id);
     }
     // 招待者の情報
     $c_member_invite = db_member_c_member_with_profile($pre['c_member_id_invite'], 'friend');
     $this->set('last_login', p_f_home_last_login4access_date($c_member_invite['access_date']));
     $this->set('friend_count', db_friend_count_friends($c_member_invite['c_member_id']));
     $this->set('target_c_member', $c_member_invite);
     $this->set('ses', $ses);
     $this->set('SNS_NAME', SNS_NAME);
     return 'success';
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:32,代码来源:o_regist_pre.php

示例14: execute

 function execute($requests)
 {
     $u = $GLOBALS['KTAI_C_MEMBER_ID'];
     $tail = $GLOBALS['KTAI_URL_TAIL'];
     // --- リクエスト変数
     $c_commu_topic_id = $requests['target_c_commu_topic_id'];
     $c_member_id = $requests['c_member_id'];
     $body = $requests['body'];
     // ----------
     $c_topic = db_commu_c_topic4c_commu_topic_id_2($c_commu_topic_id);
     $c_commu_id = $c_topic['c_commu_id'];
     //--- 権限チェック
     // イベント閲覧権限がないと送信できない
     if (!db_commu_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)) {
         handle_kengen_error();
     }
     // 自分が送信対象
     if ($u == $c_member_id) {
         handle_kengen_error();
     }
     //---
     list($msg_subject, $msg_body) = create_message_event_invite($u, $body, $c_commu_topic_id);
     db_message_send_message_event_invite($u, $c_member_id, $msg_subject, $msg_body);
     $p = array('target_c_commu_topic_id' => $c_commu_topic_id);
     openpne_redirect('ktai', 'page_c_bbs', $p);
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:26,代码来源:c_event_invite.php

示例15: execute

 function execute($requests)
 {
     $u = $GLOBALS['AUTH']->uid();
     $sessid = session_id();
     $member_list = serialize($requests['member_list']);
     if (!$requests['name']) {
         $p = array('msg' => 'グループ名を登録してください。', 'name' => $requests['name'], 'info' => $requests['info'], 'memberlist' => $member_list);
         openpne_redirect('biz', 'page_h_biz_group_add', $p);
         exit;
     }
     $filename = '';
     if ($_FILES['image_filename']['name']) {
         $image = biz_saveImage($_FILES['image_filename'], "g_" . $sessid, $u);
         if (!$image['filename']) {
             $filename = $requests['image_filename'];
             if (!$image['up_size_chk_result']) {
                 $p = array('msg' => '画像は' . IMAGE_MAX_FILESIZE . 'KB以内のGIF・JPEG・PNGにしてください。', 'id' => $id);
                 openpne_redirect('biz', 'page_h_biz_group_add', $p);
                 exit;
             } else {
                 $msg = util_image_get_upload_err_msg($image['up_size_chk_result']);
                 $p = array('msg' => $msg, 'id' => $id);
                 openpne_redirect('biz', 'page_h_biz_group_add', $p);
                 exit;
             }
         }
         $filename = $image['filename'];
     }
     t_image_clear_tmp(session_id());
     biz_insertGroup($requests['name'], $u, $requests['info'], $filename, $requests['member_list']);
     $p = array('target_c_commu_id' => biz_getGroupMax());
     openpne_redirect('biz', 'page_g_home', $p);
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:33,代码来源:h_biz_group_add.php


注:本文中的openpne_redirect函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。