정적 분석 결과 반영

This commit is contained in:
2018-04-09 01:29:29 +09:00
parent 27d313c594
commit da89d81ef9
28 changed files with 116 additions and 37 deletions
+6 -1
View File
@@ -23,7 +23,9 @@ $me = MYDB_fetch_array($result);
$query = "select nation,color,name,power,gennum from nation where level>0 order by power desc";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$nationcount = MYDB_num_rows($result);
$nationnum = array();
$nationnum = [];
$nationname = [];
$nationcolor = [];
$nationStr = "";
$powerStr = "";
@@ -99,6 +101,8 @@ for($i=0; $i < $nationcount; $i++) {
echo "
</tr>";
$state = [];
for($i=0; $i < $nationcount; $i++) {
$query = "select you,state from diplomacy where me='$nationnum[$i]'";
$dipresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
@@ -199,6 +203,7 @@ for($i=0; $i < $citycount; $i++) {
}
function mySort($killnum) {
$seq = [];
for($i=0; $i < count($killnum); $i++) {
$seq[$i] = $i;
}