[php5_debug] 지도 출력 관련 로직 예외처리 추가 및 내 정보의 array 호출에 따옴표 누락 수정
This commit is contained in:
+10
-10
@@ -2788,11 +2788,11 @@ function generalInfo2($connect, $no, $skin) {
|
|||||||
$dedication = unfont($dedication);
|
$dedication = unfont($dedication);
|
||||||
}
|
}
|
||||||
|
|
||||||
$dex0 = $general[dex0] / $_dexLimit * 100;
|
$dex0 = $general['dex0'] / $_dexLimit * 100;
|
||||||
$dex10 = $general[dex10] / $_dexLimit * 100;
|
$dex10 = $general['dex10'] / $_dexLimit * 100;
|
||||||
$dex20 = $general[dex20] / $_dexLimit * 100;
|
$dex20 = $general['dex20'] / $_dexLimit * 100;
|
||||||
$dex30 = $general[dex30] / $_dexLimit * 100;
|
$dex30 = $general['dex30'] / $_dexLimit * 100;
|
||||||
$dex40 = $general[dex40] / $_dexLimit * 100;
|
$dex40 = $general['dex40'] / $_dexLimit * 100;
|
||||||
|
|
||||||
if($dex0 > 100) { $dex0 = 100; }
|
if($dex0 > 100) { $dex0 = 100; }
|
||||||
if($dex10 > 100) { $dex10 = 100; }
|
if($dex10 > 100) { $dex10 = 100; }
|
||||||
@@ -2800,11 +2800,11 @@ function generalInfo2($connect, $no, $skin) {
|
|||||||
if($dex30 > 100) { $dex30 = 100; }
|
if($dex30 > 100) { $dex30 = 100; }
|
||||||
if($dex40 > 100) { $dex40 = 100; }
|
if($dex40 > 100) { $dex40 = 100; }
|
||||||
|
|
||||||
$general[dex0] = getDexCall($general[dex0]);
|
$general['dex0'] = getDexCall($general['dex0']);
|
||||||
$general[dex10] = getDexCall($general[dex10]);
|
$general['dex10'] = getDexCall($general['dex10']);
|
||||||
$general[dex20] = getDexCall($general[dex20]);
|
$general['dex20'] = getDexCall($general['dex20']);
|
||||||
$general[dex30] = getDexCall($general[dex30]);
|
$general['dex30'] = getDexCall($general['dex30']);
|
||||||
$general[dex40] = getDexCall($general[dex40]);
|
$general['dex40'] = getDexCall($general['dex40']);
|
||||||
|
|
||||||
echo "<table width=498 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg2>
|
echo "<table width=498 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg2>
|
||||||
<tr><td align=center colspan=6 id=bg1><b>추 가 정 보</b></td></tr>
|
<tr><td align=center colspan=6 id=bg1><b>추 가 정 보</b></td></tr>
|
||||||
|
|||||||
+7
-4
@@ -159,6 +159,11 @@ function showMap($connect, $type, $graphic) {
|
|||||||
$query = "select nation,name,color,capital from nation";
|
$query = "select nation,name,color,capital from nation";
|
||||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||||
$count = MYDB_num_rows($result);
|
$count = MYDB_num_rows($result);
|
||||||
|
|
||||||
|
$nationname = array();
|
||||||
|
$nationcolor = array();
|
||||||
|
$nationCapital = array();
|
||||||
|
|
||||||
for($i=1; $i <= $count; $i++) {
|
for($i=1; $i <= $count; $i++) {
|
||||||
$nation = MYDB_fetch_array($result);
|
$nation = MYDB_fetch_array($result);
|
||||||
$nationcolor[$nation['nation']] = $nation['color'];
|
$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
|
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";
|
$query = "select name,level,nation,city,state,region,supply from city";
|
||||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||||
@@ -262,7 +265,7 @@ function showMap($connect, $type, $graphic) {
|
|||||||
else { $cap = 0; }
|
else { $cap = 0; }
|
||||||
|
|
||||||
city($graphic, $brouserIE,
|
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);
|
$state, $myCity, $city['supply'], $cap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
//임시 땜빵 리팩터링.
|
//임시 땜빵 리팩터링.
|
||||||
require "lib.php";
|
require_once "lib.php";
|
||||||
|
|
||||||
function dbConnRoot() {
|
function dbConnRoot() {
|
||||||
global $connect, $HTTP_COOKIE_VARS;
|
global $connect, $HTTP_COOKIE_VARS;
|
||||||
|
|||||||
Reference in New Issue
Block a user