function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     if (!$this->get_execute_privilege()) {
         $controller->forward(SECURE_MODULE, SECURE_ACTION);
         return;
     }
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // 対象となるコミュニティIDを取得
     $community_id = $request->ACSgetParameter('community_id');
     // コミュニティ情報
     $community_row = ACSCommunity::get_community_row($community_id);
     $form = $request->ACSGetParameters();
     $form['community_id'] = $community_row['community_id'];
     // 更新
     ACSCommunity::update_community_admin($acs_user_info_row, $form);
     $done_obj = new ACSDone();
     $done_obj->set_title(ACSMsg::get_msg('Community', 'EditCommunityAdminAction.class.php', 'M001'));
     $done_obj->set_message(ACSMsg::get_msg('Community', 'EditCommunityAdminAction.class.php', 'M002'));
     $done_obj->add_link(ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'EditCommunityAdminAction.class.php', 'BACK_TO_CM'), array("{COMMUNITY_NAME}" => $community_row['community_name'])), $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id']);
     $request->setAttribute('done_obj', $done_obj);
     $controller->forward('Common', 'Done');
 }
 function registerValidators(&$validatorManager)
 {
     /* 必須チェック */
     parent::regValidateName($validatorManager, "subject", true, ACSMsg::get_msg('System', 'CreateSystemAnnounceAction.class.php', 'M002'));
     parent::regValidateName($validatorManager, "body", true, ACSMsg::get_msg('System', 'CreateSystemAnnounceAction.class.php', 'M003'));
     parent::regValidateName($validatorManager, "expire_date", true, ACSMsg::get_msg('System', 'CreateSystemAnnounceAction.class.php', 'M004'));
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // 対象となるコミュニティIDを取得
     $community_id = $request->ACSgetParameter('community_id');
     $form = $request->ACSGetParameters();
     // コミュニティ情報
     $community_row = ACSCommunity::get_community_profile_row($community_id);
     if ($form['mode'] == 'parent') {
         $parent_community_id = $form['delete_community_id'];
         $sub_community_id = $community_id;
     } elseif ($form['mode'] == 'sub') {
         $parent_community_id = $community_id;
         $sub_community_id = $form['delete_community_id'];
     }
     // 削除
     ACSCommunity::delete_community_link($parent_community_id, $sub_community_id);
     // forward
     $done_obj = new ACSDone();
     $done_obj->set_title(ACSMsg::get_msg('Community', 'DeleteCommunityLinkAction.class.php', 'M001'));
     $done_obj->set_message(ACSMsg::get_msg('Community', 'DeleteCommunityLinkAction.class.php', 'M002'));
     $done_obj->add_link(ACSMsg::get_msg('Community', 'DeleteCommunityLinkAction.class.php', 'M003'), $this->getControllerPath('Community', 'CommunityLink') . '&community_id=' . $community_row['community_id']);
     $done_obj->add_link(ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'DeleteCommunityLinkAction.class.php', 'BACK_TO_CM'), array("{COMMUNITY_NAME}" => $community_row['community_name'])), $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id']);
     $request->setAttribute('done_obj', $done_obj);
     $controller->forward('Common', 'Done');
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     if (!$this->get_execute_privilege()) {
         $controller->forward(SECURE_MODULE, SECURE_ACTION);
         return;
     }
     /* コミュニティ情報取得 */
     $target_community_id = $request->getParameter('community_id');
     $target_community_row = ACSCommunity::get_community_row($request->getParameter('community_id'));
     /* 削除処理 */
     $delete_user_community_id_array = $request->getParameter('delete_user_community_id_array');
     $ret = ACSCommunity::delete_community_member($target_community_id, $delete_user_community_id_array);
     if (!$ret) {
         "ERROR : delete community member failed";
         exit;
     }
     /* 完了画面表示 */
     // 引数セット
     $community_top_url = $this->getControllerPath('Community', '');
     $community_top_url .= '&community_id=' . $target_community_row['community_id'];
     $community_top_link_name = ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'DeleteCommunityMemberAction.class.php', 'BACK_TO_CM'), array("{COMMUNITY_NAME}" => $target_community_row['community_name']));
     $done_obj = new ACSDone();
     $done_obj->set_title(ACSMsg::get_msg('Community', 'DeleteCommunityMemberAction.class.php', 'M001'));
     $done_obj->set_message(ACSMsg::get_msg('Community', 'DeleteCommunityMemberAction.class.php', 'M002'));
     $done_obj->add_link($community_top_link_name, $community_top_url);
     $request->setAttribute('done_obj', $done_obj);
     // 画面呼び出し
     $controller->forward('Common', 'Done');
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     // 管理者かどうか確認
     if (!$this->get_execute_privilege()) {
         $controller->forward(SECURE_MODULE, SECURE_ACTION);
         return;
     }
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // get
     $form = $request->ACSGetParameters();
     $user_id = $form['user_id'];
     if (ACSUser::get_user_info_row_by_user_id($user_id)) {
         echo ACSMsg::get_msg('System', 'AddUserAction.class.php', 'M001');
         return;
     }
     // ユーザ情報を新規登録する
     $ret = ACSUser::set_user_info($form);
     // ログ登録: ユーザ新規登録
     ACSLog::set_log($acs_user_info_row, 'New User Registration', $ret, "[UserID:{$form['user_id']}]");
     $user_list_url = $this->getControllerPath('System', 'UserList');
     header("Location: {$user_list_url}");
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     $form = $form = $request->ACSGetParameters();
     // 対象となるコミュニティIDを取得
     $community_id = $request->ACSgetParameter('community_id');
     // コミュニティ情報
     $community_row = ACSCommunity::get_community_profile_row($community_id);
     // 承認が必要か
     $is_admission_required = ACSCommunity::is_admission_required_for_join_community($acs_user_info_row['user_community_id'], $community_id);
     // forward
     $done_obj = new ACSDone();
     $done_obj->set_message(ACSMsg::get_msg('Community', 'JoinCommunityAction.class.php', 'M003'));
     $done_obj->add_link($community_row['community_name'] . ' ' . ACSMsg::get_msg('Community', 'JoinCommunityAction.class.php', 'M004'), $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id']);
     if ($is_admission_required) {
         // コミュニティ参加承認待ち登録
         $waiting_id = ACSWaiting::set_waiting_for_join_community($community_id, $acs_user_info_row['user_community_id'], $form['message']);
         // 参加承認依頼通知メール
         ACSWaiting::send_admission_request_notify_mail($waiting_id);
         $done_obj->set_title(ACSMsg::get_msg('Community', 'JoinCommunityAction.class.php', 'M001'));
     } else {
         // コミュニティメンバ登録
         $community_member_form = array();
         $community_member_form['community_id'] = $community_id;
         $community_member_form['user_community_id'] = $acs_user_info_row['user_community_id'];
         ACSCommunity::set_community_member($community_member_form);
         $done_obj->set_title(ACSMsg::get_msg('Community', 'JoinCommunityAction.class.php', 'M002'));
     }
     $request->setAttribute('done_obj', $done_obj);
     $controller->forward('Common', 'Done');
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     $user_id = $user->getAttribute('login_user_id');
     if ($user_id == null || $user_id == "") {
         if (ACSSystem::check_connect_outside() != "0") {
             // LDAP接続エラーの場合、処理終了
             $this->setError($controller, $request, $user, 'login_input', ACSMsg::get_msg('Common', 'GlobalSecureAction.class.php', 'M002'));
         } else {
             if ($_POST['userid'] != NULL && $_POST['userid'] != "") {
                 // エラーの場合、処理終了
                 $this->setError($controller, $request, $user, 'login_input', ACSMsg::get_msg('Common', 'GlobalSecureAction.class.php', 'M001'));
             }
         }
         return View::INPUT;
     }
     if ($acs_user_info_row['is_acs_user']) {
         // ログ登録: ログイン
         ACSLog::set_log($acs_user_info_row, 'Login', true, "[UserID:" . $acs_user_info_row['user_id'] . "]");
         // ラストログイン登録
         ACSUser::set_last_login($acs_user_info_row);
         header("Location: ./" . $_SERVER['REQUEST_URI']);
     }
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     if (!$this->get_execute_privilege()) {
         $controller->forward(SECURE_MODULE, SECURE_ACTION);
         return;
     }
     //削除処理を行う
     $target_community_id = $request->getParameter('community_id');
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     $bbs_id = $request->getParameter('bbs_id');
     //ファイル情報テーブルのデータ削除
     $bbs_obj = ACSBBS::get_bbs_row($bbs_id);
     if (!$bbs_obj) {
         echo ACSMsg::get_msg('Community', 'DeleteBBSAction.class.php', 'M001');
     }
     $ret = ACSBBS::delete_bbs($bbs_obj);
     if (!$ret) {
         echo "ERROR: delete article failed";
     }
     //表示
     $bbs_change_url = $this->getControllerPath('Community', 'BBS');
     $bbs_change_url .= '&community_id=' . $target_community_id . '&bbs_id=' . $bbs_id;
     header("Location: {$bbs_change_url}");
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     // コミュニティ情報
     // RSSに表示する全コミュニティ のコミュニティID指定定数
     // 対象とならないコミュニティIDを取得
     $except_community_id = $request->getParameter('except_community_id');
     // BBS記事一覧
     $bbs_row_array = ACSBBS::get_bbs_rss_row_array($except_community_id, 0);
     // システム情報の設定
     $system_config_keyword_value['SYSTEM_NAME'] = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D01'), 'SYSTEM_NAME');
     $system_config_keyword_value['SYSTEM_OUTLINE'] = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D01'), 'SYSTEM_OUTLINE');
     $system_config_keyword_value['SYSTEM_BASE_URL'] = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D01'), 'SYSTEM_BASE_URL');
     $system_config_keyword_value['SYSTEM_MAIL_ADDR'] = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D01'), 'SYSTEM_MAIL_ADDR');
     //	$system_config_keyword_value['SYSTEM_IMAGE'] = ACSSystemConfig::get_keyword_value('システム', 'SYSTEM_IMAGE');		// 3/13現在画像は無い 次行 暫定処理
     $system_config_keyword_value['SYSTEM_IMAGE']['title'] = ACSMsg::get_msg('Community', 'PressReleaseAllRSSAction.class.php', 'M001');
     $system_config_keyword_value['SYSTEM_IMAGE']['url'] = ACSMsg::get_msg('Community', 'PressReleaseAllRSSAction.class.php', 'M002');
     $system_config_keyword_value['SYSTEM_IMAGE']['link'] = ACSMsg::get_msg('Community', 'PressReleaseAllRSSAction.class.php', 'M003');
     $system_config_keyword_value['SYSTEM_IMAGE']['description'] = ACSMsg::get_msg('Community', 'PressReleaseAllRSSAction.class.php', 'M004');
     $rss_syndicationURL .= $system_config_keyword_value['SYSTEM_BASE_URL'] . $this->getControllerPath('Community', 'PressReleaseAllRSS');
     // 掲載終了日が本日を越えていないもののみにする
     // 本日を取得
     $today = date("Y/m/d");
     $bbs_rss_array = array();
     foreach ($bbs_row_array as $index => $bbs_row) {
         //対象となる記事のみを抽出
         $bbs_date = ACSLib::convert_pg_date_to_str($bbs_row['expire_date'], false, false, false);
         if ($bbs_date >= $today || $bbs_date == null) {
             //記事配列を作り変え
             $bbs_rss_array[$index] = $bbs_row;
             //相対するCommunity名を作る
             $community_row = ACSCommunity::get_community_row($bbs_row['community_id']);
             $bbs_rss_array[$index]['community_id_name'] = $community_row['community_name'];
             //記事のリンク先を作る
             $bbs_rss_array[$index]['bbs_url'] = $this->getControllerPath('Community', 'BBSRes') . '&community_id=' . $bbs_row['community_id'] . '&bbs_id=' . $bbs_row['bbs_id'];
             //画像のリンク先を作る
             $bbs_rss_array[$index]['file_link'] = "";
             if ($bbs_row['file_id'] != "") {
                 $bbs_rss_array[$index]['file_url'] = $system_config_keyword_value['SYSTEM_BASE_URL'] . ACSBBSFile::get_image_url($bbs_row['bbs_id'], 'rss');
                 //RSS表示用
             }
         }
     }
     $user->setAttribute('bbs_rss_array', $bbs_rss_array);
     // RSS対象のBBS記事一覧
     $bbs_rss_array = $user->getAttribute('bbs_rss_array');
     // RSS対象のアドレス開始値
     $system_top_address = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D01'), 'SYSTEM_BASE_URL');
     // set
     $request->setAttribute('system_config_keyword_value', $system_config_keyword_value);
     $request->setAttribute('rss_syndicationURL', $rss_syndicationURL);
     $request->setAttribute('bbs_rss_array', $bbs_rss_array);
     $request->setAttribute('system_top_address', $system_top_address);
     require "PressReleaseAllRSS.php";
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     // 必須チェック
     //    Validator でできないチェックはここで行う
     if (!$request->getParameter('selected_folder') && !$request->getParameter('selected_file')) {
         // エラーの場合、処理終了
         return $this->setError($controller, $request, $user, 'selected_folder', ACSMsg::get_msg('User', 'RenameFolderListAction.class.php', 'M001'));
     }
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     if (!$this->get_execute_privilege()) {
         $controller->forward(SECURE_MODULE, SECURE_ACTION);
         return;
     }
     // 対象となるユーザコミュニティIDを取得
     $target_user_community_id = $request->getParameter('id');
     // 対象となるフォルダIDを取得
     $target_user_community_folder_id = $request->getParameter('folder_id');
     // 表示するページの所有者情報取得
     $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($target_user_community_id);
     // フォルダ情報取得
     $user_folder_obj = new ACSUserFolder($target_user_community_id, $acs_user_info_row, $target_user_community_folder_id);
     // set
     $request->setAttribute('target_user_info_row', $target_user_info_row);
     $request->setAttribute('user_folder_obj', $user_folder_obj);
     // 名前変更対象を取得
     // フォルダ
     $selected_folder_obj_array = array();
     // View にわたす変更対象のフォルダ
     $selected_folder_row_array = array();
     $selected_folder_array = $request->getParameter('selected_folder');
     if ($selected_folder_array) {
         foreach ($selected_folder_array as $selected_folder_id) {
             $_selected_folder_obj = $user_folder_obj->folder_obj->get_folder_obj($selected_folder_id);
             array_push($selected_folder_obj_array, $_selected_folder_obj);
         }
     }
     // ファイル
     $selected_file_obj_array = array();
     // View にわたす変更対象のファイル
     $selected_file_row_array = array();
     $selected_file_array = $request->getParameter('selected_file');
     if ($selected_file_array) {
         foreach ($selected_file_array as $selected_file_id) {
             $_selected_file_obj = $user_folder_obj->folder_obj->get_file_obj($selected_file_id);
             array_push($selected_file_obj_array, $_selected_file_obj);
         }
     }
     // set
     $request->setAttribute('selected_folder_obj_array', $selected_folder_obj_array);
     $request->setAttribute('selected_file_obj_array', $selected_file_obj_array);
     return View::INPUT;
 }
 /**
  * コミュニティ削除処理
  */
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     if (!$this->get_execute_privilege()) {
         $controller->forward(SECURE_MODULE, SECURE_ACTION);
         return;
     }
     /* コミュニティ情報取得 */
     $target_community_id = $request->getParameter('community_id');
     $target_community_row = ACSCommunity::get_community_row($request->getParameter('community_id'));
     /* 削除処理 */
     ACSDB::_do_query("BEGIN");
     $ret = ACSCommunity::delete_community($target_community_id);
     if (!$ret) {
         ACSDB::_do_query("ROLLBACK");
         "ERROR : delete community failed";
         exit;
     }
     // フォルダのディレクトリ移動
     $from_dir = ACS_FOLDER_DIR . "/";
     $from_dir .= ACSFile::get_upload_file_save_path($target_community_id);
     if (file_exists($from_dir)) {
         $to_dir = ACS_TRASH_FOLDER_DIR . "/";
         $to_dir .= ACSFile::get_upload_file_save_path($target_community_id);
         if (!file_exists(ACS_TRASH_FOLDER_DIR)) {
             // 置き場所ディレクトリがなければ作成する
             mkdir(ACS_TRASH_FOLDER_DIR);
             chmod(ACS_TRASH_FOLDER_DIR, 0777);
         }
         $ret = rename($from_dir, $to_dir);
         if (!$ret) {
             ACSDB::_do_query("ROLLBACK");
             "ERROR : delete community failed";
             exit;
         }
     }
     ACSDB::_do_query("COMMIT");
     /* 完了画面表示 */
     // 引数セット
     $message = ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'DeleteCommunityAction.class.php', 'DELETECM'), array('{TARGET_COMMUNITY_NAME}' => $target_community_row['community_name']));
     $top_page_url = $this->getControllerPath('User', 'Index');
     $top_page_link_name = ACSMsg::get_msg('Community', 'DeleteCommunityAction.class.php', 'M001');
     $done_obj = new ACSDone();
     $done_obj->set_title(ACSMsg::get_msg('Community', 'DeleteCommunityAction.class.php', 'M002'));
     $done_obj->set_message($message);
     $done_obj->add_link($top_page_link_name, $top_page_url);
     $request->setAttribute('done_obj', $done_obj);
     // 画面呼び出し
     $controller->forward('Common', 'Done');
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // get
     $community_row = $request->getAttribute('community_row');
     $bbs_row_array = $request->getAttribute('bbs_row_array');
     $term = $request->getAttribute('term');
     // ユーザ情報
     $community_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
     $community_row['image_url'] = ACSCommunity::get_image_url($community_row['community_id']);
     if ($community_row['file_id'] != '') {
         $community_file_info_row = ACSFileInfoModel::select_file_info_row($community_row['file_id']);
         $community_row['image_title'] = $community_file_info_row['display_file_name'];
     } else {
         // コミュニティ写真はありません
         $community_row['image_title'] = ACSMsg::get_msg('Community', ' BBSRSSSuccessView.class.php', 'M001');
     }
     // 加工
     foreach ($bbs_row_array as $index => $bbs_row) {
         // 親記事の投稿者 トップページURL
         $bbs_row_array[$index]['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $bbs_row['community_id'];
         // 返信画面URL
         $bbs_row_array[$index]['bbs_res_url'] = $this->getControllerPath('Community', 'BBSRes') . '&community_id=' . $community_row['community_id'] . '&bbs_id=' . $bbs_row['bbs_id'];
         // ファイルの画像URL
         if ($bbs_row['file_id'] != "") {
             $bbs_row_array[$index]['file_url'] = ACSBBSFile::get_image_url($bbs_row['bbs_id'], 'rss');
         }
     }
     //---- アクセス制御 ----//
     $role_array = ACSAccessControl::get_community_role_array($acs_user_info_row, $community_row);
     $bbs_row_array = ACSAccessControl::get_valid_row_array_for_community($acs_user_info_row, $role_array, $bbs_row_array);
     //----------------------//
     // ACSBBS::print_bbs_rss()で使用するパラメータをセットする
     $params = array();
     // ベースURL
     if ($acs_user_info_row['is_acs_user']) {
         $params['base_url'] = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D01'), 'SYSTEM_BASE_LOGIN_URL');
     } else {
         $params['base_url'] = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D01'), 'SYSTEM_BASE_URL');
     }
     // 自身のURL
     $params['rss_syndication_url'] = $params['base_url'] . $this->getControllerPath('Community', 'BBSRSS') . '&id=' . $community_row['community_id'] . '&term=' . $term;
     // RSS出力部
     ACSBBS::print_bbs_rss($community_row, $bbs_row_array, $params);
     // 終了
     exit;
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     if (!$this->get_execute_privilege()) {
         $controller->forward(SECURE_MODULE, SECURE_ACTION);
         return;
     }
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     $target_community_id = $request->getParameter('community_id');
     $target_community_folder_id = $request->getParameter('folder_id');
     $file_id = $request->getParameter('file_id');
     $file_history_id = $request->getParameter('file_history_id');
     // アクセス制御 // プットフォルダ、ファイルはNG
     $file_obj = ACSFile::get_file_info_instance($file_id);
     if ($file_obj->get_owner_community_id() != $target_community_id) {
         $controller->forward(SECURE_MODULE, SECURE_ACTION);
         return;
         //return VIEW_NONE;
     }
     $file_info_row = ACSFileInfoModel::select_file_info_row($file_id);
     $file_history_row = ACSFileHistory::get_file_history_row($file_history_id);
     // form
     $form = $request->ACSGetParameters();
     // ファイル復活処理
     // フォルダobj
     $community_folder_obj = new ACSUserFolder($target_community_id, $acs_user_info_row, $target_community_folder_id);
     $folder_obj = $community_folder_obj->get_folder_obj();
     // file_info更新
     $ret = $folder_obj->restore_history_file($file_info_row, $file_history_row);
     if (!$ret) {
         print "ERROR: Restore file failed.";
     }
     // ファイル履歴情報登録
     if ($ret) {
         $file_info_row = ACSFileInfoModel::select_file_info_row($file_id);
         $ret = ACSFileHistory::set_file_history($file_info_row, $acs_user_info_row['user_community_id'], $form['comment'], ACSMsg::get_msg('Community', '', 'M001'));
     }
     // ファイル詳細情報へ遷移
     $file_detail_url = $this->getControllerPath('Community', 'FileDetail');
     $file_detail_url .= '&community_id=' . $target_community_id;
     $file_detail_url .= '&file_id=' . $file_id;
     $file_detail_url .= '&folder_id=' . $target_community_folder_id;
     header("Location: {$file_detail_url}");
     //return VIEW_NONE;
 }
Beispiel #14
0
function get_trusted_community_row_array($parent_community_row_array, $sub_community_row_array)
{
    $trusted_community_row_array = array();
    // 親コミュニティ
    foreach ($parent_community_row_array as $parent_community_row) {
        //$parent_community_row['community_position'] = '親コミュニティ';
        $parent_community_row['community_position'] = ACSMsg::get_msg("Community", "BBS.tpl.php", 'M024');
        array_push($trusted_community_row_array, $parent_community_row);
    }
    // サブコミュニティ
    foreach ($sub_community_row_array as $sub_community_row) {
        //$sub_community_row['community_position'] = 'サブコミュニティ';
        $sub_community_row['community_position'] = ACSMsg::get_msg("Community", "BBS.tpl.php", 'M025');
        array_push($trusted_community_row_array, $sub_community_row);
    }
    return $trusted_community_row_array;
}
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     // get
     // ユーザ情報一覧
     $log_row_array = $request->getAttribute('log_row_array');
     $form = $request->getAttribute('form');
     // 加工
     foreach ($log_row_array as $index => $log_row) {
         $log_row_array[$index]['log_date'] = ACSLib::convert_pg_date_to_str($log_row['log_date'], true, true, true);
         $log_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $log_row['user_community_id'];
         if (ACSLib::get_boolean($log_row_array[$index]['administrator_flag'])) {
             // システム管理者
             $log_row_array[$index]['user_level_name'] = ACSMsg::get_msg('System', 'LogInputView.class.php', 'M001');
         } else {
             // ログインユーザ
             $log_row_array[$index]['user_level_name'] = ACSMsg::get_msg('System', 'LogInputView.class.php', 'M002');
         }
         if (ACSLib::get_boolean($log_row_array[$index]['operation_result'])) {
             // 成功
             $log_row_array[$index]['operation_result_name'] = ACSMsg::get_msg('System', 'LogInputView.class.php', 'M003');
         } else {
             // 失敗
             $log_row_array[$index]['operation_result_name'] = ACSMsg::get_msg('System', 'LogInputView.class.php', 'M004');
         }
     }
     // ページング設定
     $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D07'), 'LOG_DISPLAY_MAX_COUNT');
     $paging_info = $this->getPagingInfo($controller, $request, $log_row_array, $display_count);
     // URL
     $action_url = $this->getControllerPath();
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('Log.tpl.php');
     // set
     $this->setAttribute('form', $form);
     $this->setAttribute('log_row_array', $log_row_array);
     $this->setAttribute('paging_info', $paging_info);
     $this->setAttribute('action_url', $action_url);
     $this->setAttribute('module', 'System');
     $this->setAttribute('action', 'Log');
     return parent::execute();
 }
 /**
  * ページングリンク出力
  *
  * @param $paging_info
  */
 function print_paging_link($paging_info)
 {
     if (!$paging_info) {
         return;
     }
     // 件数表示
     //echo "全$paging_info[all_count]件: $paging_info[start_count]-$paging_info[end_count]件を表示<br>\n";
     echo ACSMsg::get_tag_replace(ACSMsg::get_msg('lib', 'ACSTemplateLib.class.php', 'PAGE_INFO'), array("{ALL_COUNT}" => $paging_info[all_count], "{START_COUNT}" => $paging_info[start_count], "{END_COUNT}" => $paging_info[end_count]));
     // 1ページのみの場合は表示終了
     if (!$paging_info['paging_row_array']) {
         echo "<br>\n";
         return;
     }
     // 前へ・次へ
     if ($paging_info['prev_link']) {
         echo "<a href=\"{$paging_info['prev_link']}\">" . ACSMsg::get_mdmsg(__FILE__, 'M001') . "</a>";
     } else {
         echo ACSMsg::get_mdmsg(__FILE__, 'M001');
     }
     echo " ";
     if ($paging_info['next_link']) {
         echo "<a href=\"{$paging_info['next_link']}\">" . ACSMsg::get_mdmsg(__FILE__, 'M002') . "</a>";
     } else {
         echo ACSMsg::get_mdmsg(__FILE__, 'M002');
     }
     echo " ";
     // ページ数表示
     foreach ($paging_info['paging_row_array'] as $paging_row) {
         print '<span class="page_number">';
         // リンクがある場合のみ
         if ($paging_row['link_url']) {
             print '<a href="' . $paging_row['link_url'] . '">';
             print $paging_row['page_number'];
             print '</a>';
         } else {
             print '<b>' . $paging_row['page_number'] . '</b>';
         }
         print '</span>' . "\n";
     }
     print "<br><br>\n";
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     // 対象となるユーザコミュニティIDを取得
     $user_community_id = $request->ACSgetParameter('id');
     $delete_user_community_id = $request->ACSgetParameter('delete_user_community_id');
     $form = $request->ACSGetParameters();
     // フレンズ削除
     ACSUser::delete_friends($user_community_id, $delete_user_community_id);
     $friends_list_top_page_url = $this->getControllerPath('User', 'FriendsList') . '&id=' . $user_community_id;
     // ACSDone
     $done_obj = new ACSDone();
     $done_obj->set_title(ACSMsg::get_msg('User', 'DeleteFriendsAction.class.php', 'M001'));
     $done_obj->set_message(ACSMsg::get_msg('User', 'DeleteFriendsAction.class.php', 'M002'));
     $done_obj->add_link(ACSMsg::get_msg('User', 'DeleteFriendsAction.class.php', 'M003'), $friends_list_top_page_url);
     $request->setAttribute('done_obj', $done_obj);
     $controller->forward('Common', 'Done');
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $this->setScreenId("0001");
     $this->setTemplate('Schedule.tpl.php');
     $current_module = 'Community';
     // ログインユーザ情報
     $this->setAttribute('acs_user_info_row', $request->getAttribute('acs_user_info_row'));
     // コミュニティ情報
     $target_community_row =& $request->getAttribute('target_community_row');
     $this->setAttribute('target_community_row', $target_community_row);
     // 共通URLパラメータ
     $url_params = "community_id=" . $target_community_row['community_id'];
     // スケジュールインスタンスの配列
     $schedules =& $request->getAttribute('schedules');
     // 表示用配列の生成
     $schedule_list = array();
     $schedule_persons =& $request->getAttribute('schedule_persons');
     foreach ($schedules as $schedule) {
         $schedule_params = $url_params . "&schedule_id=" . $schedule->schedule_id;
         $person_count_info = $schedule_persons[$schedule->schedule_id];
         if ($schedule->is_target_all()) {
             $person_count_info['participate_person_count'] = $request->getAttribute('member_count');
         }
         $schedule_list[] = array('instance' => $schedule, 'url_edit' => $this->getControllerPath($current_module, 'EditSchedule') . "&" . $schedule_params, 'url_decide' => $this->getControllerPath($current_module, 'DecideSchedule') . "&" . $schedule_params, 'url_answer' => $this->getControllerPath($current_module, 'AnswerSchedule') . "&" . $schedule_params, 'disp_detail' => mb_strlen($schedule->schedule_detail) > 15 ? mb_substr($schedule->schedule_detail, 0, 15) . "..." : $schedule->schedule_detail, 'disp_person_count' => $person_count_info['answer_person_count'] . " / " . $person_count_info['participate_person_count'] . " " . ACSMsg::get_msg('Community', 'ScheduleSuccessView.class.php', 'M004'), 'disp_closing' => ACSLib::convert_pg_date_to_str($schedule->schedule_closing_datetime), 'disp_status' => $schedule->is_fixed() ? ACSMsg::get_msg('Community', 'ScheduleSuccessView.class.php', 'M001') : ($schedule->is_close() ? ACSMsg::get_msg('Community', 'ScheduleSuccessView.class.php', 'M002') : ACSMsg::get_msg('Community', 'ScheduleSuccessView.class.php', 'M003')));
     }
     // コミュニティのURL
     $this->setAttribute('url_community_top', $this->getControllerPath($current_module, 'Index') . "&" . $url_params);
     // 新規作成のURL
     $this->setAttribute('url_schedule_new', $this->getControllerPath($current_module, 'EditSchedule') . "&" . $url_params);
     // ページング設定
     $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D03'), 'COMMUNITY_SCHEDULE_LIST_DISPLAY_MAX_COUNT');
     $paging_info = $this->getPagingInfo($controller, $request, $schedule_list, $display_count);
     $this->setAttribute('schedule_list', $schedule_list);
     $this->setAttribute('paging_info', $paging_info);
     return parent::execute();
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     // 管理者かどうか確認
     if (!$this->get_execute_privilege()) {
         $controller->forward(SECURE_MODULE, SECURE_ACTION);
         return;
     }
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // get
     $form = $request->ACSGetParameters();
     $user_community_id = $user->getAttribute('user_id');
     $form['user_community_id'] = $user_community_id;
     $target_user_info_row = ACSUser::get_user_profile_row($user_community_id, 'include_private_flag');
     $post_user_info_row = ACSUser::get_user_info_row_by_user_id($form['user_id']);
     if ($post_user_info_row && $user_community_id != $post_user_info_row['user_community_id']) {
         echo ACSMsg::get_msg('System', 'EditUserAction.class.php', 'M002');
         return;
     }
     //パスワードチェック
     if ($form['passwd_change'] == 'change_on' && $form['passwd'] == $form['passwd2'] || $form['passwd_change'] == '') {
         // ユーザ情報を変更する
         $ret = ACSUser::update_user_info($form);
         if (!$ret) {
             echo "Warning: Update user information failed.";
             return;
         }
     } else {
         echo ACSMsg::get_msg('System', 'EditUserAction.class.php', 'M001');
         return;
     }
     // ログ登録: ユーザ情報変更
     ACSLog::set_log($acs_user_info_row, 'Change User Information', $ret, "[UserID:{$target_user_info_row['user_id']}]");
     // ユーザ一覧を表示
     $user_list_url = $this->getControllerPath('System', 'UserList');
     header("Location: {$user_list_url}");
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // 表示対象となるユーザコミュニティIDを取得
     $user_community_id = $request->getParameter('id');
     $form = $request->ACSGetParameters();
     // マイフレンズ追加 承認待ち を登録する
     $waiting_id = ACSWaiting::set_waiting_for_add_friends($user_community_id, $acs_user_info_row['user_community_id'], $form['message']);
     // マイフレンズ追加 承認依頼通知メール
     ACSWaiting::send_admission_request_notify_mail($waiting_id);
     // forward
     $done_obj = new ACSDone();
     $done_obj->set_title(ACSMsg::get_msg('User', 'AddFriendsAction.class.php', 'M001'));
     $done_obj->set_message(ACSMsg::get_msg('User', 'AddFriendsAction.class.php', 'M002'));
     $done_obj->add_link(ACSMsg::get_msg('User', 'AddFriendsAction.class.php', 'M003'), './');
     $request->setAttribute('done_obj', $done_obj);
     $controller->forward('Common', 'Done');
 }
 /**
  * コミュニティ削除処理
  */
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     /* アクセスしているユーザ情報 */
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     /* コミュニティ情報取得 */
     $target_community_id = $request->getParameter('community_id');
     $target_community_row = ACSCommunity::get_community_row($request->getParameter('community_id'));
     /* 削除処理 */
     ACSDB::_do_query("BEGIN");
     $ret = ACSCommunity::delete_community_member($target_community_id, array($acs_user_info_row['user_community_id']));
     if (!$ret) {
         ACSDB::_do_query("ROLLBACK");
         "ERROR : Delete community member failed.";
         exit;
     }
     ACSDB::_do_query("COMMIT");
     /* 完了画面表示 */
     // 引数セット
     $message = ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'LeaveCommunityAction.class.php', 'LEAVE_CM'), array("{COMMUNITY_NAME}" => $target_community_row['community_name']));
     // マイページトップページURL
     $top_page_url = $this->getControllerPath('User', 'Index');
     $top_page_link_name = ACSMsg::get_msg('Community', 'LeaveCommunityAction.class.php', 'M001');
     // コミュニティURL
     $community_top_page_url = $this->getControllerPath('Community', 'Index');
     $community_top_page_url .= '&community_id=' . $target_community_row['community_id'];
     $community_top_page_link_name = ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'LeaveCommunityAction.class.php', 'BACK_TO_CM'), array("{COMMUNITY_NAME}" => $target_community_row['community_name']));
     $done_obj = new ACSDone();
     $done_obj->set_title(ACSMsg::get_msg('Community', 'LeaveCommunityAction.class.php', 'M002'));
     $done_obj->set_message($message);
     $done_obj->add_link($top_page_link_name, $top_page_url);
     $done_obj->add_link($community_top_page_link_name, $community_top_page_url);
     $request->setAttribute('done_obj', $done_obj);
     // 画面呼び出し
     $controller->forward('Common', 'Done');
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $mime_type = $request->getParameter('type');
     $new_file_info = $request->getParameter('new_file_info');
     //ファイルの画像URL
     if (preg_match('/image/', $mime_type)) {
         $action = 'inline';
         //ブラウザ内表示
         mb_http_output('pass');
         // output_bufferingを無効にする
         header("Content-disposition: {$action}; filename=\$file_name\"");
         header("Content-type: {$content_type}");
         // ファイルを読み出す
         readfile($new_file_info);
     } else {
         echo ACSMsg::get_msg('User', 'DiaryPreImageAction.class.php', 'M001');
         return $back_url;
     }
 }
 function registerValidators(&$validatorManager)
 {
     $context = $this->getContext();
     $request = $context->getRequest();
     // 作成・変更処理の場合のみ、入力チェックをする
     if ($request->getParameter('action_type')) {
         /* 必須チェック */
         parent::regValidateName($validatorManager, "folder_name", true, ACSMsg::get_msg('User', 'EditFolderAction.class.php', 'M001'));
     }
 }
 /**
  * 入力値チェック(ValidatorManager使用)
  */
 function registerValidators(&$validatorManager)
 {
     $context = $this->getContext();
     $request = $context->getRequest();
     $params =& $request->ACSGetParameters();
     // コミュニティ名 [schedule_name]
     parent::regValidateName($validatorManager, "community_name", true, ACSMsg::get_msg('Community', 'CreateCommunityAction.class.php', 'M007'));
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     if (!$this->get_execute_privilege()) {
         $controller->forward(SECURE_MODULE, SECURE_ACTION);
         return;
     }
     // 必須チェック
     //	Validator でできないチェックはここで行う
     if (!$request->getParameter('selected_folder') && !$request->getParameter('selected_file')) {
         // エラーの場合、処理終了
         return $this->setError($controller, $request, $user, 'selected_folder', ACSMsg::get_msg('Community', 'DeleteFolderAction.class.php', 'M001'));
     }
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // 対象となるユーザコミュニティIDを取得
     $target_community_id = $request->getParameter('community_id');
     // 対象となるフォルダIDを取得
     $target_community_folder_id = $request->getParameter('folder_id');
     // 表示するページの所有者情報取得
     $target_community_info_row = ACSCommunity::get_community_row($target_community_id);
     // フォルダ情報取得
     $community_folder_obj = new ACSCommunityFolder($target_community_id, $acs_user_info_row, $target_community_folder_id);
     // set
     $request->setAttribute('target_community_info_row', $target_community_info_row);
     $request->setAttribute('community_folder_obj', $community_folder_obj);
     /* ------------ */
     /* 確認画面表示 */
     /* ------------ */
     if ($request->getParameter('action_type') == 'confirm') {
         return $this->getDefaultView();
     } elseif ($request->getParameter('action_type') == 'delete') {
         ACSDB::_do_query("BEGIN");
         // フォルダ
         $folder_row_array = array();
         $delete_folder_id_array = $request->getParameter('selected_folder');
         if ($delete_folder_id_array) {
             foreach ($delete_folder_id_array as $folder_id) {
                 // 削除処理
                 $_folder_obj = $community_folder_obj->folder_obj->get_folder_obj($folder_id);
                 $ret = $community_folder_obj->delete_folder($_folder_obj);
                 if (!$ret) {
                     ACSDB::_do_query("ROLLBACK;");
                     print "ERROR: Remove folder failed.";
                     exit;
                 }
             }
         }
         // ファイル
         $file_row_array = array();
         $delete_file_id_array = $request->getParameter('selected_file');
         if ($delete_file_id_array) {
             foreach ($delete_file_id_array as $file_id) {
                 // 公開用ファイル情報
                 ACSFileDetailInfo::delete_file_public_access($file_id);
                 // 削除処理
                 $_file_obj = $community_folder_obj->folder_obj->get_file_obj($file_id);
                 $ret = $_file_obj->delete_file();
                 if (!$ret) {
                     ACSDB::_do_query("ROLLBACK;");
                     print "ERROR: Remove file failed.";
                     exit;
                 }
             }
         }
         ACSDB::_do_query("COMMIT;");
         // フォルダ表示アクション呼び出し
         $folder_action = $this->getControllerPath('Community', 'Folder');
         $folder_action .= '&community_id=' . $target_community_id;
         $folder_action .= '&folder_id=' . $target_community_folder_id;
         header("Location: {$folder_action}");
     }
 }
Beispiel #26
0
<?php 
foreach ($this->_tpl_vars['new_diary_row_array'] as $new_diary_row) {
    echo "<tr>";
    echo "<td width=\"16px\">";
    echo "<img src=\"" . ACS_IMAGE_DIR . 'yaj2.gif' . "\">";
    echo "</td>";
    echo "<td> &nbsp;";
    if ($new_diary_row['is_unread']) {
        echo "<b>";
    }
    echo "<a href=\"{$new_diary_row['diary_comment_url']}\">" . htmlspecialchars(ACSTemplateLib::trim_long_str($new_diary_row['subject'])) . "</a>";
    if ($new_diary_row['is_unread']) {
        echo "</b>";
    }
    echo "&nbsp; ({$new_diary_row['diary_comment_num']}) (" . htmlspecialchars($new_diary_row['community_name']) . ")";
    echo "</td>";
    echo "</tr>\n";
}
if (count($this->_tpl_vars['new_diary_row_array']) == 0) {
    echo "<tr><td>" . ACSMsg::get_msg("User", "NewDiary.tpl.php", 'M002') . "</td></tr>\n";
}
?>
</table>

<?php 
if ($this->_tpl_vars['new_diary_url']) {
    echo "<br>\n";
    echo "<div align=\"right\">";
    echo "<a class=\"ichiran\" href=\"" . $this->_tpl_vars['new_diary_url'] . "\">" . ACSMsg::get_msg("User", "NewDiary.tpl.php", 'M003') . "</a> &nbsp; ";
    echo "</div>\n";
}
" + "&form_name=" + select_obj.form.name + '&prefix=' + prefix,
						"SelectTrustedCommunity", "width=600,height=400,top=200,left=200,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");
		}
		new_cell.appendChild(input_obj);

		// <span>
		span_obj = document.createElement("span");
		span_obj.style.fontSize = "8pt";
		if (prefix == "join_") {
			span_obj.appendChild(document.createTextNode("<?php 
echo ACSMsg::get_msg("Community", "CreateCommunity.tpl.php", 'M012');
?>
"));
		} else {
			span_obj.appendChild(document.createTextNode("<?php 
echo ACSMsg::get_msg("Community", "CreateCommunity.tpl.php", 'M013');
?>
"));
		}
		new_cell.appendChild(span_obj);
		// </span>

		// </td>
		// </tr>


		// </table>
		div_obj.appendChild(table_obj);
	}
}
<?php

// $Id: CommunityList.tpl.php,v 1.7 2007/03/28 02:51:47 w-ota Exp $
?>

<?php 
echo "<div class=\"ttl\">";
if ($this->_tpl_vars['is_self_page']) {
    echo ACSMsg::get_msg("User", "CommunityList.tpl.php", 'M001');
} else {
    echo "<a href=\"" . $this->_tpl_vars['link_page_url']['else_user_top_page_url'] . "\">";
    echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "CommunityList.tpl.php", 'NAME'), array("{USER_NAME}" => htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name'])));
    echo "</a> :: ";
    echo ACSMsg::get_msg("User", "CommunityList.tpl.php", 'M002');
}
echo " (" . $this->_tpl_vars['community_row_array_num'] . ")";
echo "</div><br>\n";
?>

<?php 
// ページング表示
ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
?>

<table width="650" border="0" cellpadding="8" cellspacing="1" bgcolor="#99CC33">
<tr>
<td bgcolor="#ffffff">
<table width="100%" border="0" cellspacing="10" cellpadding="5">
<?php 
if (count($this->_tpl_vars['community_row_array'])) {
    $count = 0;
Beispiel #29
0
echo ACSMsg::get_msg("Common", "Index.tpl.php", 'M002');
?>
</td>
<td><input type="text" name="userid" value="<?php 
echo htmlspecialchars($_POST['userid']);
?>
" size="30" style="width:200px" tabindex="1"></td>
</tr>
<tr>
<td><?php 
echo ACSMsg::get_msg("Common", "Index.tpl.php", 'M003');
?>
</td>
<td><input type="password" name="passwd" value="<?php 
echo htmlspecialchars($_POST['passwd']);
?>
" size="30" style="width:200px" tabindex="2"></td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="<?php 
echo ACSMsg::get_msg("Common", "Index.tpl.php", 'M004');
?>
" tabindex="3">
</td>
</tr>
</table>
</td></tr></table>
</form>
</p>
 /**
  * 入力値チェック(ValidatorManager使用)
  */
 function registerValidators(&$validatorManager)
 {
     $context = $this->getContext();
     $request = $context->getRequest();
     $params =& $request->getParameters();
     // システム用パラメータ
     parent::regValidateName($validatorManager, "community_id", true, ACSMsg::get_msg('Community', 'EditScheduleAction.class.php', 'M001'));
     // 件名 [schedule_name]
     parent::regValidateName($validatorManager, "schedule_name", true, ACSMsg::get_msg('Community', 'EditScheduleAction.class.php', 'M002'));
     if ($params['schedule_name']) {
         $validator =& new StringValidator($controller);
         $validator->initialize(array('max' => _EDITSCHEDULEACTION_SCHEDULE_NAME_MAXLEN, 'max_error' => ACSMsg::get_msg('Community', 'EditScheduleAction.class.php', 'M009') . _EDITSCHEDULEACTION_SCHEDULE_NAME_MAXLEN));
         $validatorManager->registerValidator('schedule_name', $validator);
     }
     // 候補日時(追加分) [edit_append_adjustment_dates]
     if ($params['edit_append_adjustment_dates']) {
         $validator =& new StringValidator($controller);
         $validator->initialize(array('max' => _EDITSCHEDULEACTION_EDIT_APPEND_SCHEDULES_MAXLEN, 'max_error' => ACSMsg::get_msg('Community', 'EditScheduleAction.class.php', 'M012') . _EDITSCHEDULEACTION_EDIT_APPEND_SCHEDULES_MAXLEN));
         $validatorManager->registerValidator('edit_append_adjustment_dates', $validator);
     }
     // 場所 [schedule_place]
     if ($params['schedule_place']) {
         $validator =& new StringValidator($controller);
         $validator->initialize(array('max' => _EDITSCHEDULEACTION_SCHEDULE_PLACE_MAXLEN, 'max_error' => ACSMsg::get_msg('Community', 'EditScheduleAction.class.php', 'M010') . _EDITSCHEDULEACTION_SCHEDULE_PLACE_MAXLEN));
         $validatorManager->registerValidator('schedule_place', $validator);
     }
     // 詳細情報 [schedule_detail]
     if ($params['schedule_detail']) {
         $validator =& new StringValidator($controller);
         $validator->initialize(array('max' => _EDITSCHEDULEACTION_SCHEDULE_DETAIL_MAXLEN, 'max_error' => ACSMsg::get_msg('Community', 'EditScheduleAction.class.php', 'M011') . _EDITSCHEDULEACTION_SCHEDULE_DETAIL_MAXLEN));
         $validatorManager->registerValidator('schedule_detail', $validator);
     }
 }