Changeset 8540
- Timestamp:
- Oct 1, 2008, 7:29:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE/branches/stable-2.12.x/webapp/lib/db/commu.php
r8537 r8540 1108 1108 function db_commu_get_c_join_status($c_member_id,$c_commu_id) 1109 1109 { 1110 $is_c_commu_member = db_commu_is_c_commu_member($c_commu_id, $c_member_id); 1111 $is_wait = db_commu_is_c_commu_join_wait($c_commu_id, $c_member_id); 1110 if (db_commu_is_c_commu_member($c_commu_id, $c_member_id)) { 1111 return STATUS_C_JOIN_ALREADY; 1112 } 1113 1112 1114 $c_commu = db_commu_c_commu4c_commu_id($c_commu_id); 1113 $is_join_request_free = false;1114 1115 if ($c_commu['public_flag'] == "public") { 1115 $is_join_request_free = true; 1116 } 1117 1118 $ret = STATUS_C_JOIN_ALREADY; 1119 if (!$is_c_commu_member) { //メンバーで無い 1120 if ($is_wait == true) { 1121 $ret = STATUS_C_JOIN_WAIT; 1122 } else { 1123 if ($is_join_request_free) { 1124 $ret = STATUS_C_JOIN_REQUEST_FREE; 1125 } else { 1126 $ret = STATUS_C_JOIN_REQUEST_NEED; 1127 } 1128 } 1129 } 1130 return $ret; 1116 return STATUS_C_JOIN_REQUEST_FREE; 1117 } 1118 1119 if (db_commu_is_c_commu_join_wait($c_commu_id, $c_member_id)) { 1120 return STATUS_C_JOIN_WAIT; 1121 } 1122 1123 return STATUS_C_JOIN_REQUEST_NEED; 1131 1124 } 1132 1125
Note: See TracChangeset
for help on using the changeset viewer.