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


PHP openpne_forward函数代码示例

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


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

示例1: execute

 function execute($requests)
 {
     $u = $GLOBALS['AUTH']->uid();
     // --- リクエスト変数
     $c_commu_id = $requests['target_c_commu_id'];
     $c_review_id = $requests['c_review_id'];
     // ----------
     //--- 権限チェック
     //コミュニティメンバー
     if (!db_commu_is_c_commu_member($c_commu_id, $u)) {
         handle_kengen_error();
     }
     //---
     if (!$c_review_id) {
         $_REQUEST['target_c_commu_id'] = $c_commu_id;
         openpne_forward('pc', 'page', "c_member_review_add");
         exit;
     }
     $c_member_review = db_review_c_member_review_add_confirm_c_member_review4c_review_id($c_review_id, $u);
     if (!$c_member_review) {
         handle_kengen_error();
     }
     $this->set('c_member_review', $c_member_review);
     $this->set('c_commu', db_commu_c_commu4c_commu_id($c_commu_id));
     $this->set('c_review_id', $c_review_id);
     $this->set('inc_navi', fetch_inc_navi('c', $c_commu_id));
     return 'success';
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:28,代码来源:c_member_review_add_confirm.php

示例2: execute

 function execute($requests)
 {
     if (!OPENPNE_USE_ALBUM) {
         handle_kengen_error();
     }
     $u = $GLOBALS['AUTH']->uid();
     // --- リクエスト変数
     $subject = $requests['subject'];
     $description = $requests['description'];
     $public_flag = $requests['public_flag'];
     $tmpfile = $requests['tmpfile'];
     // ----------
     // 画像アップロード可能サイズチェック
     if ($tmpfile) {
         $filesize = util_image_get_c_tmp_filesize4filename("a_{$c_album_id}_1", $tmpfile);
         $result = util_image_check_add_image_upload($filesize, $u, 'other');
         if ($result) {
             $_REQUEST['err_msg'] = util_image_get_upload_err_msg($result);
             openpne_forward('pc', 'page', "h_album_add");
             exit;
         }
     }
     $c_member_id = $u;
     $c_album_id = db_album_insert_c_album($c_member_id, $subject, $description, $public_flag);
     if ($tmpfile) {
         $filename = image_insert_c_image4tmp("a_{$c_album_id}_1", $tmpfile, $u, 'other');
         $sessid = session_id();
         t_image_clear_tmp($sessid);
         //アルバムの表紙に写真ファイル名を登録
         db_album_update_c_album_album_cover_image($c_album_id, $filename);
     }
     $p = array('target_c_album_id' => $c_album_id);
     openpne_redirect('pc', 'page_h_album_image_add', $p);
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:34,代码来源:h_album_add_insert_c_album.php

示例3: execute

 function execute($requests)
 {
     $u = $GLOBALS['AUTH']->uid();
     $this->set('inc_navi', fetch_inc_navi('h'));
     // --- リクエスト変数
     $input = $requests;
     // ----------
     $title = $input['title'];
     $body = $input['body'];
     if (is_null($input['end_year'])) {
         $input['end_year'] = $input['start_year'];
     }
     if (is_null($input['end_month'])) {
         $input['end_month'] = $input['start_month'];
     }
     if (is_null($input['end_day'])) {
         $input['end_day'] = $input['start_day'];
     }
     // validation
     $errors = array();
     if (!$title) {
         $errors[] = "タイトルを入力してください";
     }
     if (is_null($input['start_hour']) xor is_null($input['start_minute'])) {
         $errors[] = "開始時刻が正しくありません";
     }
     if (is_null($input['end_hour']) xor is_null($input['end_minute'])) {
         $errors[] = "終了時刻が正しくありません";
     }
     $start_date = intval(sprintf("%04d%02d%02d", $input['start_year'], $input['start_month'], $input['start_day']));
     $end_date = intval(sprintf("%04d%02d%02d", $input['end_year'], $input['end_month'], $input['end_day']));
     if ($input['start_hour'] && $input['start_minute']) {
         $start_time = intval(sprintf("%02d%02d", $input['start_hour'], $input['start_minute']));
     } else {
         $start_time = 0;
         // -∞
     }
     if ($input['end_hour'] && $input['end_minute']) {
         $end_time = intval(sprintf("%02d%02d", $input['end_hour'], $input['end_minute']));
     } else {
         $end_time = 2400;
         // +∞
     }
     if ($end_date < $start_date || $end_date == $start_date && $end_time < $start_time) {
         $errors[] = "終了日は開始日より前に設定できません";
     }
     if ($errors) {
         $_REQUEST['msg'] = array_shift($errors);
         $i = 1;
         while ($msg = array_shift($errors)) {
             $_REQUEST["msg{$i}"] = $msg;
             $i++;
         }
         openpne_forward('pc', 'page', "h_schedule_add");
         exit;
     }
     $this->set('input', $input);
     $this->set('is_unused_schedule', util_is_unused_mail('m_pc_schedule_mail'));
     return 'success';
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:60,代码来源:h_schedule_add_confirm.php

示例4: 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

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

示例6: execute

 function execute($requests)
 {
     $u = $GLOBALS['AUTH']->uid();
     if (!OPENPNE_USE_RANKING) {
         openpne_forward('pc', 'page', 'h_err_ranking');
         exit;
     }
     // --- リクエスト変数
     $kind = $requests['kind'];
     // ----------
     $this->set('inc_navi', fetch_inc_navi('h'));
     $this->set('kind', $kind);
     $limit = 10;
     switch ($kind) {
         case "friend":
             $list = pne_cache_call(3600, 'db_ranking_c_friend_ranking', $limit);
             foreach ($list as $key => $value) {
                 $list[$key]['c_member'] = db_member_c_member_with_profile($value['c_member_id']);
             }
             break;
         case "com_member":
             $list = pne_cache_call(3600, 'db_ranking_c_commu_member_ranking', $limit);
             foreach ($list as $key => $value) {
                 $list[$key]['c_commu'] = db_commu_c_commu4c_commu_id($value['c_commu_id']);
             }
             break;
         case "com_comment":
             $list = pne_cache_call(3600, 'db_ranking_c_commu_topic_comment_ranking', $limit);
             foreach ($list as $key => $value) {
                 $list[$key]['c_commu'] = db_commu_c_commu4c_commu_id($value['c_commu_id']);
             }
             break;
         case "ashiato":
         default:
             $list = pne_cache_call(3600, 'db_ranking_c_ashiato_ranking', $limit);
             foreach ($list as $key => $value) {
                 $list[$key]['c_member'] = db_member_c_member_with_profile($value['c_member_id']);
                 if (!$list[$key]['c_member']) {
                     unset($list[$key]);
                 }
             }
             break;
     }
     $rank_list = array();
     if ($list) {
         $rank = 1;
         $current_count = null;
         foreach ($list as $item) {
             if ($item['count'] != $current_count) {
                 $rank = $rank + count($rank_list[$rank]);
                 $current_count = $item['count'];
             }
             $rank_list[$rank][] = $item;
         }
     }
     $this->set("rank_list", $rank_list);
     return 'success';
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:58,代码来源:h_ranking.php

示例7: execute

 function execute($requests)
 {
     if (!OPENPNE_USE_ALBUM) {
         handle_kengen_error();
     }
     $u = $GLOBALS['AUTH']->uid();
     // --- リクエスト変数
     $target_c_album_id = $requests['target_c_album_id'];
     $subject = $requests['subject'];
     $description = $requests['description'];
     $public_flag = $requests['public_flag'];
     // ----------
     //--- 権限チェック
     $c_album = db_album_get_c_album4c_album_id($target_c_album_id);
     if ($c_album['c_member_id'] != $u) {
         handle_kengen_error();
     }
     //---
     //写真データ一時ファイル削除
     $sessid = session_id();
     t_image_clear_tmp($sessid);
     $upfiles = array(1 => $_FILES['upfile_1']);
     $tmpfiles = array(1 => '');
     $filesize = 0;
     foreach ($upfiles as $key => $upfile) {
         if ($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_album_cover_edit');
                 exit;
             } else {
                 $filesize += $image['size'];
                 $tmpfiles[$key] = t_image_save2tmp($upfile, $sessid, "a_{$target_c_album_id}_{$key}", $image['format']);
             }
         }
     }
     // 画像アップロード可能サイズチェック
     if ($filesize) {
         $del_file = array();
         if ($c_album['album_cover_image']) {
             $del_file[] = $c_album['album_cover_image'];
         }
         $result = util_image_check_change_image_upload($filesize, $del_file, $u, 'other');
         if ($result) {
             $sessid = session_id();
             t_image_clear_tmp($sessid);
             $_REQUEST['msg'] = util_image_get_upload_err_msg($result);
             openpne_forward('pc', 'page', 'h_album_cover_edit');
             exit;
         }
     }
     $this->set('inc_navi', fetch_inc_navi("h"));
     $form_val = array("target_c_album_id" => $target_c_album_id, "subject" => $subject, "description" => $description, "public_flag" => $public_flag, "upfile_1" => $_FILES['upfile_1'], "tmpfile_1" => $tmpfiles[1]);
     $this->set("form_val", $form_val);
     return 'success';
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:56,代码来源:h_album_cover_edit_confirm.php

示例8: execute

 function execute($requests)
 {
     $specify_type = $requests['specify_type'];
     $id_list_string = $requests['c_member_id_list'];
     if (!$id_list_string) {
         $error_msg = 'IDまたはメールアドレスを入力してください';
         $this->handleError($error_msg);
     }
     //改行をスペースに
     $id_list_string = str_replace("\r\n", ' ', $id_list_string);
     $id_list_string = str_replace("\n", ' ', $id_list_string);
     $id_list_string = str_replace("\r", ' ', $id_list_string);
     $id_list_string = str_replace(" ", ' ', $id_list_string);
     $id_list_parsed = explode(' ', $id_list_string);
     $c_member_id_list = array();
     foreach ($id_list_parsed as $each_id) {
         if (!$each_id) {
             continue;
         }
         switch ($specify_type) {
             case 'c_member_id':
                 $each_c_member_id = $each_id;
                 break;
             case 'mail_address':
                 if (!is_ktai_mail_address($each_id)) {
                     $each_c_member_id = db_member_c_member_id4pc_address($each_id);
                 } else {
                     $each_c_member_id = db_member_c_member_id4ktai_address2($each_id);
                 }
                 if (!$each_c_member_id) {
                     $error_msg = '無効なメールアドレスが含まれています: ' . $each_id;
                     $this->handleError($error_msg);
                 }
                 break;
             default:
                 $this->handleError('');
                 break;
         }
         if (!is_numeric($each_c_member_id)) {
             $error_msg = 'IDは整数値で指定してください: ' . $each_c_member_id;
             $this->handleError($error_msg);
         }
         if (!db_member_is_active_c_member_id($each_c_member_id)) {
             $error_msg = '無効なIDが含まれています: ' . $each_c_member_id;
             $this->handleError($error_msg);
         }
         //重複チェック
         if (in_array($each_c_member_id, $c_member_id_list)) {
             continue;
         }
         $c_member_id_list[] = intval($each_c_member_id);
     }
     $_REQUEST['c_member_ids'] = $c_member_id_list;
     openpne_forward(ADMIN_MODULE_NAME, 'page', 'send_messages');
     exit;
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:56,代码来源:send_messages_id_list.php

示例9: execute

 function execute($requests)
 {
     $u = $GLOBALS['AUTH']->uid();
     if (!IS_USER_INVITE) {
         openpne_forward('pc', 'page', 'h_err_invite');
         exit;
     }
     // --- リクエスト変数
     $form_val = $requests;
     // ----------
     if (is_ktai_mail_address($form_val['mail'])) {
         $form_val['mail'] = str_replace('"', '', $form_val['mail']);
     }
     $msg = "";
     if (OPENPNE_USE_CAPTCHA && (empty($_SESSION['captcha_keystring']) || $_SESSION['captcha_keystring'] != $requests['captcha'])) {
         unset($_SESSION['captcha_keystring']);
         $msg = "確認キーワードが誤っています";
     } else {
         unset($_SESSION['captcha_keystring']);
         if (!db_common_is_mailaddress($form_val['mail'])) {
             $msg = "メールアドレスを正しく入力してください";
         } elseif (db_member_is_sns_join4mail_address($form_val['mail'])) {
             $msg = "そのメールアドレスは既に登録済みです";
         } elseif (!db_member_is_limit_domain4mail_address($form_val['mail'])) {
             $msg = "そのメールアドレスは登録できません";
         } else {
             if (is_ktai_mail_address($form_val['mail'])) {
                 //<PCKTAI
                 if (!((OPENPNE_REGIST_FROM & OPENPNE_REGIST_FROM_KTAI) >> 1)) {
                     $msg = "携帯メールアドレスには招待を送ることができません";
                 }
                 //>
             } else {
                 //<PCKTAI
                 if (!(OPENPNE_REGIST_FROM & OPENPNE_REGIST_FROM_PC)) {
                     $msg = "PCメールアドレスには招待を送ることができません";
                 }
                 //>
             }
         }
     }
     if ($msg) {
         $_REQUEST['msg'] = $msg;
         openpne_forward('pc', 'page', "h_invite");
         exit;
     }
     $this->set('inc_navi', fetch_inc_navi("h"));
     $this->set('form_val', $form_val);
     $this->set('SNS_NAME', SNS_NAME);
     $random_string = do_common_create_password();
     $_SESSION['captcha_confirm'] = $random_string;
     $this->set('captcha_confirm', md5($random_string));
     return 'success';
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:54,代码来源:h_invite_confirm.php

示例10: execute

 function execute($requests)
 {
     $u = $GLOBALS['AUTH']->uid();
     if (!IS_USER_INVITE) {
         openpne_forward('pc', 'page', 'h_err_invite');
         exit;
     }
     $this->set('inc_navi', fetch_inc_navi('h'));
     $this->set('SNS_NAME', SNS_NAME);
     return 'success';
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:11,代码来源:h_invite_end.php

示例11: 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'];
     // ----------
     list($event, $errors) = p_c_event_add_confirm_event4request(true);
     if ($event['invite_period_year'] . $event['invite_period_month'] . $event['invite_period_day'] != '') {
         $invite_period = $event['invite_period_year'] . "-" . $event['invite_period_month'] . "-" . $event['invite_period_day'];
     } else {
         $invite_period = '';
     }
     //--- 権限チェック
     //イベント管理者 or コミュニティ管理者
     if (!db_commu_is_c_event_admin($c_commu_topic_id, $u) && !db_commu_is_c_commu_admin($event['c_commu_id'], $u)) {
         handle_kengen_error();
     }
     //---
     //エラーチェック
     $err_msg = $errors;
     if (!$event['open_date_month'] || !$event['open_date_day'] || !$event['open_date_year']) {
         $err_msg[] = "開催日時を入力してください";
     } elseif (!t_checkdate($event['open_date_month'], $event['open_date_day'], $event['open_date_year'])) {
         $err_msg[] = "開催日時は存在しません";
     } elseif (mktime(0, 0, 0, $event['open_date_month'], $event['open_date_day'], $event['open_date_year']) < mktime(0, 0, 0)) {
         $err_msg[] = "開催日時は過去に指定できません";
     }
     if ($event['invite_period_month'] . $event['invite_period_day'] . $event['invite_period_year'] != "") {
         if (!$event['invite_period_month'] || !$event['invite_period_day'] || !$event['invite_period_year']) {
             $err_msg[] = "募集期限は存在しません";
         } elseif (!t_checkdate($event['invite_period_month'], $event['invite_period_day'], $event['invite_period_year'])) {
             $err_msg[] = "募集期限は存在しません";
         } elseif (mktime(0, 0, 0, $event['invite_period_month'], $event['invite_period_day'], $event['invite_period_year']) < mktime(0, 0, 0)) {
             $err_msg[] = "募集期限は過去に指定できません";
         } elseif (mktime(0, 0, 0, $event['open_date_month'], $event['open_date_day'], $event['open_date_year']) < mktime(0, 0, 0, $event['invite_period_month'], $event['invite_period_day'], $event['invite_period_year'])) {
             $err_msg[] = "募集期限は開催日時より未来に指定できません";
         }
     }
     if ($err_msg) {
         $_REQUEST = $event;
         $_REQUEST['err_msg'] = $err_msg;
         $_REQUEST['target_c_commu_topic_id'] = $c_commu_topic_id;
         openpne_forward('ktai', 'page', "c_event_edit");
         exit;
     }
     $update_c_commu_topic = array('name' => $event['title'], 'open_date' => $event['open_date_year'] . "-" . $event['open_date_month'] . "-" . $event['open_date_day'], 'open_date_comment' => $event['open_date_comment'], 'open_pref_id' => $event['open_pref_id'], 'open_pref_comment' => $event['open_pref_comment'], 'invite_period' => $invite_period, 'event_flag' => 1, 'capacity' => $event['capacity']);
     db_commu_update_c_commu_topic($c_commu_topic_id, $update_c_commu_topic);
     $update_c_commu_topic_comment = array('body' => $event['detail']);
     db_commu_update_c_commu_topic_comment($c_commu_topic_id, $update_c_commu_topic_comment);
     $p = array('target_c_commu_topic_id' => $c_commu_topic_id);
     openpne_redirect('ktai', 'page_c_bbs', $p);
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:53,代码来源:c_event_edit_update_c_commu_topic.php

示例12: execute

 function execute($requests)
 {
     if (!OPENPNE_USE_ALBUM) {
         handle_kengen_error();
     }
     $u = $GLOBALS['AUTH']->uid();
     // --- リクエスト変数
     $target_c_album_id = $requests['target_c_album_id'];
     $subject = $requests['subject'];
     $description = $requests['description'];
     $public_flag = $requests['public_flag'];
     $tmpfile_1 = $requests['tmpfile_1'];
     // ----------
     //--- 権限チェック
     $c_album = db_album_get_c_album4c_album_id($target_c_album_id);
     if ($c_album['c_member_id'] != $u) {
         handle_kengen_error();
     }
     //---
     //---画像アップロードサイズチェック
     if ($tmpfile_1) {
         $del_file = array();
         $filesize = util_image_get_c_tmp_filesize4filename("a_{$target_c_album_id}_1", $tmpfile_1);
         if ($c_album['album_cover_image']) {
             $del_file[] = $c_album['album_cover_image'];
         }
         $result = util_image_check_change_image_upload($filesize, $del_file, $u, 'other');
         if ($result) {
             $sessid = session_id();
             t_image_clear_tmp($sessid);
             $_REQUEST['msg'] = util_image_get_upload_err_msg($result);
             openpne_forward('pc', 'page', 'h_album_cover_edit');
             exit;
         }
     }
     $filename_1 = '';
     $c_album_cover = $c_album['album_cover_image'];
     if ($tmpfile_1) {
         db_album_image_data_delete($c_album_cover, $u);
         $filename_1 = image_insert_c_image4tmp("a_{$target_c_album_id}_1", $tmpfile_1, $u, 'other');
     }
     $sessid = session_id();
     t_image_clear_tmp($sessid);
     //アルバムデータの変更
     db_album_update_c_album_cover($target_c_album_id, $subject, $description, $filename_1, $public_flag);
     $p = array('target_c_album_id' => $target_c_album_id);
     openpne_redirect('pc', 'page_fh_album', $p);
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:48,代码来源:h_album_cover_edit_insert_c_album.php

示例13: execute

 function execute($requests)
 {
     $u = $GLOBALS['AUTH']->uid();
     // --- リクエスト変数
     $name = $requests['name'];
     $c_commu_category_id = $requests['c_commu_category_id'];
     $info = $requests['info'];
     $is_admit = $requests['is_admit'];
     $is_open = $requests['is_open'];
     $tmpfile = $requests['tmpfile'];
     $err_msg = array();
     if (db_commu_is_commu4c_commu_name($name)) {
         $err_msg[] = 'その' . WORD_COMMUNITY . 'はすでに存在します';
     }
     if (!db_commu_c_commu_category_is_create_commu($c_commu_category_id)) {
         $err_msg[] = '指定されたカテゴリは選択できません';
     }
     // 画像アップロード可能サイズチェック
     if ($tmpfile) {
         $filesize = util_image_get_c_tmp_filesize4filename("c_{$c_commu_id}", $tmpfile);
         $result = util_image_check_add_image_upload($filesize, $u, 'other');
         if ($result) {
             $err_msg[] = util_image_get_upload_err_msg($result);
         }
     }
     if ($err_msg) {
         $_REQUEST['err_msg'] = $err_msg;
         openpne_forward('pc', 'page', "h_com_add");
         exit;
     }
     // ----------
     // コミュニティ作成
     $c_commu_id = db_commu_insert_c_commu($u, $name, $c_commu_category_id, $info, $is_admit, $is_open);
     if ($tmpfile) {
         $filename = image_insert_c_image4tmp("c_{$c_commu_id}", $tmpfile, $u);
         t_image_clear_tmp(session_id());
         // 画像更新
         if ($filename) {
             db_commu_update_c_commu_image_filename($c_commu_id, $filename);
         }
     }
     //作成者をコミュメンバーにする
     db_commu_join_c_commu($c_commu_id, $u);
     $p = array('target_c_commu_id' => $c_commu_id);
     openpne_redirect('pc', 'page_c_home', $p);
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:46,代码来源:h_com_add_insert_c_commu.php

示例14: execute

 function execute($requests)
 {
     $u = $GLOBALS['AUTH']->uid();
     // --- リクエスト変数
     $id = $requests['id'];
     $is_check = $requests['is_check'];
     $writer_name = $requests['writer_name'];
     $sort_order = $requests['sort_order'];
     $writer_id = $requests['writer_id'];
     $memo = $requests['memo'];
     $is_done = $requests['is_done'];
     $due_year = $requests['due_year'];
     $due_month = $requests['due_month'];
     $due_day = $requests['due_day'];
     $priority = $requests['priority'];
     $biz_group_id = $requests['biz_group_id'];
     $public_flag = $requests['public_flag'];
     // ----------
     if (!biz_isPermissionTodo($u, $id)) {
         handle_kengen_error();
     }
     if (empty($memo)) {
         $_REQUEST['msg'] = 'Todoの内容を入力してください';
         openpne_forward('biz', 'page', 'fh_home_edit_biz_todo');
         exit;
     }
     if (!$biz_group_id && $public_flag == 'group') {
         $_REQUEST['msg'] = '「グループまで公開」Todoの場合はグループを指定してください';
         openpne_forward('biz', 'page', 'fh_home_edit_biz_todo');
         exit;
     }
     if ($is_check && $public_flag == 'private') {
         $_REQUEST['msg'] = '公開範囲が「公開しない」のTodoは共有できません';
         openpne_forward('biz', 'page', 'fh_home_edit_biz_todo');
         exit;
     }
     $member_info = db_member_c_member4c_member_id_LIGHT($writer_id);
     $todo_info = biz_getTodo($id);
     $due_datetime = $due_year . '-' . $due_month . '-' . $due_day . ' 00:00:00';
     if (!$todo_info['c_member_id'] && !$is_check) {
         $todo_info['c_member_id'] = $writer_id;
     }
     biz_editTodo($todo_info['c_member_id'], $memo, $writer_id, $sort_order, $is_check, $id, $is_done, $due_datetime, $priority, $biz_group_id, $public_flag);
     openpne_redirect('pc', 'page_h_home');
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:45,代码来源:h_home_edit_biz_todo.php

示例15: execute

 function execute($requests)
 {
     $server =& openid_util_get_server();
     $openid_request = $server->decodeRequest();
     $response = null;
     if (in_array($openid_request->mode, array('checkid_immediate', 'checkid_setup'))) {
         if ($openid_request->immediate) {
             $response = $openid_request->answer(false);
         } else {
             openpne_forward('openid', 'page', 'server_confirm');
             exit;
         }
     } else {
         $response = $server->handleRequest($openid_request);
     }
     $webresponse = $server->encodeResponse($response);
     openid_util_write_response($webresponse);
 }
开发者ID:KimuraYoichi,项目名称:PukiWiki,代码行数:18,代码来源:server.php


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