Changeset 9091
- Timestamp:
- Nov 11, 2008, 9:17:07 PM (14 years ago)
- Location:
- OpenPNE/branches/stable-2.12.x/webapp
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE/branches/stable-2.12.x/webapp/lib/db/commu.php
r8945 r9091 3461 3461 } 3462 3462 3463 /** 3464 * コミュニティ名が変更されているかどうか 3465 * 3466 * @param int $c_commu_id 3467 * @param string $name 3468 * @return bool 3469 */ 3470 function db_commu_is_changed_c_commu_name($c_commu_id, $name) 3471 { 3472 $sql = 'SELECT name FROM c_commu WHERE c_commu_id = ?'; 3473 $params = array(intval($c_commu_id)); 3474 $now_name = db_get_one($sql, $params); 3475 if ($name === $now_name) { 3476 return false; 3477 } 3478 return true; 3479 } 3480 3463 3481 ?> -
OpenPNE/branches/stable-2.12.x/webapp/lib/util/ktai.php
r7246 r9091 62 62 47 => "コメントが1000番に達したので、これ以上のコメントはできません", 63 63 48 => "設定を変更しました", 64 49 => "その" . WORD_COMMUNITY . "はすでに存在します", 64 65 ); 65 66 -
OpenPNE/branches/stable-2.12.x/webapp/modules/ktai/do/c_edit_update_c_commu.php
r8584 r9091 24 24 $public_flag = $requests['public_flag']; 25 25 $topic_authority = $requests['topic_authority']; 26 27 if ( db_commu_is_changed_c_commu_name($target_c_commu_id, $name) 28 && db_commu_is_commu4c_commu_name($name)) { 29 $p = array('msg' => 49); 30 openpne_redirect('ktai', 'page_h_com_add', $p); 31 } 26 32 // ---------- 27 33 -
OpenPNE/branches/stable-2.12.x/webapp/modules/ktai/do/h_com_add_insert_c_commu.php
r4933 r9091 22 22 $info = $requests['info']; 23 23 $public_flag = $requests['public_flag']; 24 25 if (db_commu_is_commu4c_commu_name($name)) { 26 $p = array('msg' => 49); 27 openpne_redirect('ktai', 'page_h_com_add', $p); 28 } 24 29 // ---------- 25 30 -
OpenPNE/branches/stable-2.12.x/webapp/modules/ktai/templates/h_com_add.tpl
r6410 r9091 4 4 <font color="#({$ktai_color_config.font_05})"><a name="top">({$WORD_COMMUNITY_HALF})の作成</a></font><br> 5 5 </td></tr></table> 6 7 ({if $msg}) 8 <font color="#({$ktai_color_config.font_09})">({$msg})</font><br> 9 <br> 10 ({/if}) 6 11 7 12 ({t_form m=ktai a=do_h_com_add_insert_c_commu}) -
OpenPNE/branches/stable-2.12.x/webapp/modules/pc/do/c_edit_update_c_commu.php
r8607 r9091 38 38 if (!$name) $err_msg[] = WORD_COMMUNITY . "名を入力してください"; 39 39 if (!$info) $err_msg[] = WORD_COMMUNITY . "の説明を入力してください"; 40 41 if ( db_commu_is_changed_c_commu_name($target_c_commu_id, $name) 42 && db_commu_is_commu4c_commu_name($name)) { 43 $err_msg[] = 'その' . WORD_COMMUNITY . 'はすでに存在します'; 44 } 40 45 41 46 if (!empty($upfile_obj) && $upfile_obj['error'] !== UPLOAD_ERR_NO_FILE) {
Note: See TracChangeset
for help on using the changeset viewer.