= 2) { printLimitMsg($me[turntime]); exit(); } if($me[level] == 0 || ($me[level] == 1 && $me[belong] < $nation[secretlimit])) { echo "수뇌부가 아니거나 사관년도가 부족합니다."; exit(); } if($me[level] >= 5) { $btn = "submit"; $read = ""; } else { $btn = "hidden"; $read = "readonly"; } if($me[skin] < 1) { $tempColor = $_basecolor; $tempColor2 = $_basecolor2; $tempColor3 = $_basecolor3; $tempColor4 = $_basecolor4; $_basecolor = "000000"; $_basecolor2 = "000000"; $_basecolor3 = "000000"; $_basecolor4 = "000000"; } ?>
| 내 무 부 |
| 외 교 관 계 | |||||||||
| 국 가 명 | 국력 | 장수 | 속령 | 상태 | 기간 | 종 료 시 점 | 비 고 | $nation[name] | $nation[power] | $nation[gennum] | $citycount | - | - | - | - | "; continue; } $query = "select state,term,fixed,reserved,showing from diplomacy where me='$me[nation]' and you='$nation[nation]'"; $result2 = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); $dip = MYDB_fetch_array($result2); $query = "select reserved,showing from diplomacy where you='$me[nation]' and me='$nation[nation]'"; $result2 = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); $dip2 = MYDB_fetch_array($result2); //속령수 $query = "select city from city where nation='$nation[nation]'"; $result2 = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); $citycount = MYDB_num_rows($result2); switch($dip[state]) { case 0: $state = "교 전"; break; case 1: $state = "선포중"; break; case 2: $state = "통 상"; break; case 3: $state = "통합수락중"; break; case 4: $state = "통합제의중"; break; case 5: $state = "합병수락중"; break; case 6: $state = "합병제의중"; break; case 7: $state = "불가침"; break; } $term = $admin[year] * 12 + $admin[month] + $dip[term]; $year = floor($term / 12); $month = $term % 12; if($month == 0) { $month = 12; $year--; } $date = date('Y-m-d H:i:s'); $note = ""; if($dip[fixed] != "") { if($dip[state] == 7) { $note .= $dip[fixed]; } else { $note .= "{$dip[fixed]}"; } if($dip[reserved] != "" || $dip2[reserved] != "") { $note .= "
| $nation[name] | $nation[power] | $nation[gennum] | $citycount | $state | "; if($dip[term] != 0) { echo"$dip[term] 개월 | {$year}年 {$month}月 | "; } else { echo"- | - | "; } echo "{$note} |