diff --git a/twe/func.php b/twe/func.php index b3f82b74..a29ce46c 100644 --- a/twe/func.php +++ b/twe/func.php @@ -2788,11 +2788,11 @@ function generalInfo2($connect, $no, $skin) { $dedication = unfont($dedication); } - $dex0 = $general[dex0] / $_dexLimit * 100; - $dex10 = $general[dex10] / $_dexLimit * 100; - $dex20 = $general[dex20] / $_dexLimit * 100; - $dex30 = $general[dex30] / $_dexLimit * 100; - $dex40 = $general[dex40] / $_dexLimit * 100; + $dex0 = $general['dex0'] / $_dexLimit * 100; + $dex10 = $general['dex10'] / $_dexLimit * 100; + $dex20 = $general['dex20'] / $_dexLimit * 100; + $dex30 = $general['dex30'] / $_dexLimit * 100; + $dex40 = $general['dex40'] / $_dexLimit * 100; if($dex0 > 100) { $dex0 = 100; } if($dex10 > 100) { $dex10 = 100; } @@ -2800,11 +2800,11 @@ function generalInfo2($connect, $no, $skin) { if($dex30 > 100) { $dex30 = 100; } if($dex40 > 100) { $dex40 = 100; } - $general[dex0] = getDexCall($general[dex0]); - $general[dex10] = getDexCall($general[dex10]); - $general[dex20] = getDexCall($general[dex20]); - $general[dex30] = getDexCall($general[dex30]); - $general[dex40] = getDexCall($general[dex40]); + $general['dex0'] = getDexCall($general['dex0']); + $general['dex10'] = getDexCall($general['dex10']); + $general['dex20'] = getDexCall($general['dex20']); + $general['dex30'] = getDexCall($general['dex30']); + $general['dex40'] = getDexCall($general['dex40']); echo " diff --git a/twe/map.php b/twe/map.php index 4cc69839..7ab98e5c 100644 --- a/twe/map.php +++ b/twe/map.php @@ -159,6 +159,11 @@ function showMap($connect, $type, $graphic) { $query = "select nation,name,color,capital from nation"; $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); $count = MYDB_num_rows($result); + + $nationname = array(); + $nationcolor = array(); + $nationCapital = array(); + for($i=1; $i <= $count; $i++) { $nation = MYDB_fetch_array($result); $nationcolor[$nation['nation']] = $nation['color']; @@ -233,9 +238,7 @@ function showMap($connect, $type, $graphic) { 210, 285, 275, 75, 160, 180, 255, 295, 315, 30, 325, 350, 260, 435 ); - $nationname = array(); - $nationcolor = array(); - $nationCapital = array(); + $query = "select name,level,nation,city,state,region,supply from city"; $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); @@ -262,7 +265,7 @@ function showMap($connect, $type, $graphic) { else { $cap = 0; } city($graphic, $brouserIE, - $type, $name, $nation, $color, $level, $region, $i+1, $valid[$i+1], $x[$i], $y[$i], + $type, $name, $nation, $color, $level, $region, $i+1, isset($valid[$i+1])?$valid[$i+1]:0 , $x[$i], $y[$i], $state, $myCity, $city['supply'], $cap); } diff --git a/twe/new_lib.php b/twe/new_lib.php index 5158468e..b08635cd 100644 --- a/twe/new_lib.php +++ b/twe/new_lib.php @@ -1,6 +1,6 @@
추 가 정 보