string 내부 $ 기호 추가 수정

This commit is contained in:
2018-01-16 04:05:20 +09:00
parent 44a86cedec
commit 9502197cc2
88 changed files with 1316 additions and 1316 deletions
+90 -90
View File
@@ -143,7 +143,7 @@ function ender($type=0) {
}
function command_99($connect, $turn) {
$query = "select nation,level from general where user_id='$_SESSION['p_id']'";
$query = "select nation,level from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -151,7 +151,7 @@ function command_99($connect, $turn) {
$command = EncodeCommand(0, 0, 0, 99);
for($i=0; $i < sizeof($turn); $i++) {
$query = "update nation set l{$me['level']}turn{$turn[$i]}='{$command}' where nation='$me['nation']'";
$query = "update nation set l{$me['level']}turn{$turn[$i]}='{$command}' where nation='{$me['nation']}'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
}
}
@@ -206,16 +206,16 @@ function command_11($connect, $turn, $command) {
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$admin = MYDB_fetch_array($result);
$query = "select no,nation,level,personal,special2,level,city,crew,horse,injury,leader,crewtype,gold from general where user_id='$_SESSION['p_id']'";
$query = "select no,nation,level,personal,special2,level,city,crew,horse,injury,leader,crewtype,gold from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
//현재 도시
$query = "select city,region from city where city='$me['city']'";
$query = "select city,region from city where city='{$me['city']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$curCity = MYDB_fetch_array($result);
$query = "select level,tech from nation where nation='$me['nation']'";
$query = "select level,tech from nation where nation='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error("process53 ".MYDB_error($connect),"");
$nation = MYDB_fetch_array($result);
@@ -239,7 +239,7 @@ function command_11($connect, $turn, $command) {
$valid[41] = 1; $color[41] = "red"; // 충차
} else {
// 아국 도시 구분
$query = "select city,level,region from city where nation='$me['nation']'";
$query = "select city,level,region from city where nation='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$citycount = MYDB_num_rows($result);
@@ -639,16 +639,16 @@ function command_12($connect, $turn, $command) {
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$admin = MYDB_fetch_array($result);
$query = "select no,nation,personal,special2,level,city,crew,horse,injury,leader,crewtype,gold from general where user_id='$_SESSION['p_id']'";
$query = "select no,nation,personal,special2,level,city,crew,horse,injury,leader,crewtype,gold from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("command_12 ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
//현재 도시
$query = "select city,region from city where city='$me['city']'";
$query = "select city,region from city where city='{$me['city']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$curCity = MYDB_fetch_array($result);
$query = "select level,tech from nation where nation='$me['nation']'";
$query = "select level,tech from nation where nation='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error("process53 ".MYDB_error($connect),"");
$nation = MYDB_fetch_array($result);
@@ -672,7 +672,7 @@ function command_12($connect, $turn, $command) {
$valid[41] = 1; $color[41] = "red"; // 충차
} else {
// 아국 도시 구분
$query = "select city,level,region from city where nation='$me['nation']'";
$query = "select city,level,region from city where nation='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$citycount = MYDB_num_rows($result);
@@ -1068,12 +1068,12 @@ function calc(cost, formnum) {
function command_15($connect, $turn, $command) {
starter("재편성");
$query = "select no,nation from general where user_id='$_SESSION['p_id']'";
$query = "select no,nation from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
$me = $general['no'];
$query = "select no,name from general where nation='$general['nation']'";
$query = "select no,name from general where nation='{$general['nation']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$gencount = MYDB_num_rows($result);
@@ -1109,11 +1109,11 @@ function command_15($connect, $turn, $command) {
function command_16($connect, $turn, $command) {
starter("출병");
$query = "select city from general where user_id='$_SESSION['p_id']'";
$query = "select city from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
$query = "select city,name from city where city='$general['city']'";
$query = "select city,name from city where city='{$general['city']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$currentcity = MYDB_fetch_array($result);
@@ -1149,11 +1149,11 @@ $currentcity['name'] =>
function command_21($connect, $turn, $command) {
starter("이동");
$query = "select city from general where user_id='$_SESSION['p_id']'";
$query = "select city from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
$query = "select city,name from city where city='$general['city']'";
$query = "select city,name from city where city='{$general['city']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$currentcity = MYDB_fetch_array($result);
@@ -1190,7 +1190,7 @@ $currentcity['name'] =>
function command_22($connect, $turn, $command) {
starter("등용");
$query = "select nation from general where user_id='$_SESSION['p_id']'";
$query = "select nation from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -1216,7 +1216,7 @@ function command_22($connect, $turn, $command) {
<option value={$general['no']} {$style}>{$general['name']}</option>";
}
$query = "select nation,name,color from nation where nation!='$me['nation']'";
$query = "select nation,name,color from nation where nation!='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$count = MYDB_num_rows($result);
@@ -1225,7 +1225,7 @@ function command_22($connect, $turn, $command) {
echo "<option style=color:{$nation['color']}>【 {$nation['name']} 】</option>";
$query = "select no,name,npc from general where nation='$nation['nation']' and level!='12' and npc<2 order by npc,binary(name)";
$query = "select no,name,npc from general where nation='{$nation['nation']}' and level!='12' and npc<2 order by npc,binary(name)";
$genresult = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$gencount = MYDB_num_rows($genresult);
@@ -1255,11 +1255,11 @@ function command_22($connect, $turn, $command) {
function command_23($connect, $turn, $command) {
starter("포상", 1);
$query = "select no,nation from general where user_id='$_SESSION['p_id']'";
$query = "select no,nation from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
$query = "select no,name,level,npc from general where nation='$general['nation']' and no!='$general['no']' order by npc,binary(name)";
$query = "select no,name,level,npc from general where nation='{$general['nation']}' and no!='{$general['no']}' order by npc,binary(name)";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$gencount = MYDB_num_rows($result);
@@ -1325,11 +1325,11 @@ function command_23($connect, $turn, $command) {
function command_24($connect, $turn, $command) {
starter("몰수", 1);
$query = "select no,nation from general where user_id='$_SESSION['p_id']'";
$query = "select no,nation from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
$query = "select no,name,level,npc from general where nation='$general['nation']' and no!='$general['no']' order by npc,binary(name)";
$query = "select no,name,level,npc from general where nation='{$general['nation']}' and no!='{$general['no']}' order by npc,binary(name)";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$gencount = MYDB_num_rows($result);
@@ -1403,7 +1403,7 @@ function command_25($connect, $turn, $command) {
$result = MYDB_query($query, $connect) or Error("command_46 ".MYDB_error($connect),"");
$admin = MYDB_fetch_array($result);
$query = "select no,nations from general where user_id='$_SESSION['p_id']'";
$query = "select no,nations from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("command_27 ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -1473,11 +1473,11 @@ function command_25($connect, $turn, $command) {
function command_27($connect, $turn, $command) {
starter("발령", 1);
$query = "select no,nation,level from general where user_id='$_SESSION['p_id']'";
$query = "select no,nation,level from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("command_27 ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
$query = "select no,name,level,npc from general where nation='$me['nation']' and no!='$me['no']' order by npc,binary(name)";
$query = "select no,name,level,npc from general where nation='{$me['nation']}' and no!='{$me['no']}' order by npc,binary(name)";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$gencount = MYDB_num_rows($result);
@@ -1529,11 +1529,11 @@ function command_27($connect, $turn, $command) {
function command_30($connect, $turn, $command) {
starter("강행");
$query = "select city from general where user_id='$_SESSION['p_id']'";
$query = "select city from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
$query = "select city,name from city where city='$general['city']'";
$query = "select city,name from city where city='{$general['city']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$currentcity = MYDB_fetch_array($result);
@@ -1571,11 +1571,11 @@ ender();
function command_31($connect, $turn, $command) {
starter("첩보");
$query = "select city from general where user_id='$_SESSION['p_id']'";
$query = "select city from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
$query = "select city,name from city where city='$general['city']'";
$query = "select city,name from city where city='{$general['city']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$currentcity = MYDB_fetch_array($result);
@@ -1616,11 +1616,11 @@ $currentcity['name'] =>
function command_32($connect, $turn, $command) {
starter("화계");
$query = "select city from general where user_id='$_SESSION['p_id']'";
$query = "select city from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
$query = "select city,name from city where city='$general['city']'";
$query = "select city,name from city where city='{$general['city']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$currentcity = MYDB_fetch_array($result);
@@ -1656,11 +1656,11 @@ $currentcity['name'] =>
function command_33($connect, $turn, $command) {
starter("탈취");
$query = "select city from general where user_id='$_SESSION['p_id']'";
$query = "select city from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
$query = "select city,name from city where city='$general['city']'";
$query = "select city,name from city where city='{$general['city']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$currentcity = MYDB_fetch_array($result);
@@ -1696,11 +1696,11 @@ $currentcity['name'] =>
function command_34($connect, $turn, $command) {
starter("파괴");
$query = "select city from general where user_id='$_SESSION['p_id']'";
$query = "select city from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
$query = "select city,name from city where city='$general['city']'";
$query = "select city,name from city where city='{$general['city']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$currentcity = MYDB_fetch_array($result);
@@ -1736,11 +1736,11 @@ $currentcity['name'] =>
function command_35($connect, $turn, $command) {
starter("선동");
$query = "select city from general where user_id='$_SESSION['p_id']'";
$query = "select city from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
$query = "select city,name from city where city='$general['city']'";
$query = "select city,name from city where city='{$general['city']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$currentcity = MYDB_fetch_array($result);
@@ -1776,11 +1776,11 @@ $currentcity['name'] =>
function command_36($connect, $turn, $command) {
starter("기습");
$query = "select city from general where user_id='$_SESSION['p_id']'";
$query = "select city from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
$query = "select city,name from city where city='$general['city']'";
$query = "select city,name from city where city='{$general['city']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$currentcity = MYDB_fetch_array($result);
@@ -1816,11 +1816,11 @@ $currentcity['name'] =>
function command_43($connect, $turn, $command) {
starter("증여");
$query = "select no,nation from general where user_id='$_SESSION['p_id']'";
$query = "select no,nation from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
$query = "select no,name,level,npc from general where nation='$general['nation']' and no!='$general['no']' order by npc,binary(name)";
$query = "select no,name,level,npc from general where nation='{$general['nation']}' and no!='{$general['no']}' order by npc,binary(name)";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$gencount = MYDB_num_rows($result);
@@ -2029,7 +2029,7 @@ function command_46($connect, $turn, $command) {
function command_48($connect, $turn, $command) {
starter("장비 매매");
$query = "select no,city,gold from general where user_id='$_SESSION['p_id']'";
$query = "select no,city,gold from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("command_48 ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
$city = getCity($connect, $me['city'], "secu");
@@ -2139,11 +2139,11 @@ function command_49($connect, $turn, $command) {
function command_51($connect, $turn, $command) {
starter("항복 권고", 1);
$query = "select nation from general where user_id='$_SESSION['p_id']'";
$query = "select nation from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
$query = "select nation,power from nation where nation='$me['nation']'";
$query = "select nation,power from nation where nation='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$myNation = MYDB_fetch_array($result);
@@ -2155,7 +2155,7 @@ function command_51($connect, $turn, $command) {
<form name=form1 action=c_double.php method=post>
<select name=double size=1 style=color:white;background-color:black>";
$query = "select nation,name,power,color from nation where nation!='$me['nation']'";
$query = "select nation,name,power,color from nation where nation!='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$count = MYDB_num_rows($result);
@@ -2190,11 +2190,11 @@ function command_51($connect, $turn, $command) {
function command_52($connect, $turn, $command) {
starter("원조", 1);
$query = "select nation from general where user_id='$_SESSION['p_id']'";
$query = "select nation from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
$query = "select nation,level from nation where nation='$me['nation']'";
$query = "select nation,level from nation where nation='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$mynation = MYDB_fetch_array($result);
@@ -2212,7 +2212,7 @@ function command_52($connect, $turn, $command) {
<form name=form1 action=c_double.php method=post>
대상 국가 <select name=double size=1 style=color:white;background-color:black>";
$query = "select nation,name,color from nation where nation!='$me['nation']'";
$query = "select nation,name,color from nation where nation!='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$count = MYDB_num_rows($result);
@@ -2271,7 +2271,7 @@ function command_52($connect, $turn, $command) {
function command_53($connect, $turn, $command) {
starter("통합제의", 1);
$query = "select no,nation from general where user_id='$_SESSION['p_id']'";
$query = "select no,nation from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("command_53 ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -2283,7 +2283,7 @@ function command_53($connect, $turn, $command) {
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$stdNation = MYDB_fetch_array($result);
$query = "select nation,power,gennum from nation where nation='$me['nation']'";
$query = "select nation,power,gennum from nation where nation='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$myNation = MYDB_fetch_array($result);
@@ -2295,7 +2295,7 @@ function command_53($connect, $turn, $command) {
<form name=form1 action=c_double.php method=post>
대상국 : <select name=double size=1 style=color:white;background-color:black>";
$query = "select nation,name,power,gennum,color from nation where nation!='$me['nation']'";
$query = "select nation,name,power,gennum,color from nation where nation!='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$count = MYDB_num_rows($result);
@@ -2335,11 +2335,11 @@ function command_53($connect, $turn, $command) {
function command_54($connect, $turn, $command) {
starter("선양");
$query = "select no,nation from general where user_id='$_SESSION['p_id']'";
$query = "select no,nation from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
$query = "select no,name,level from general where nation='$general['nation']' and no!='$general['no']' order by npc,binary(name)";
$query = "select no,name,level from general where nation='{$general['nation']}' and no!='{$general['no']}' order by npc,binary(name)";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$gencount = MYDB_num_rows($result);
@@ -2379,7 +2379,7 @@ function command_54($connect, $turn, $command) {
function command_61($connect, $turn, $command) {
starter("불가침", 1);
$query = "select nation from general where user_id='$_SESSION['p_id']'";
$query = "select nation from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -2391,7 +2391,7 @@ function command_61($connect, $turn, $command) {
<form name=form1 action=c_double.php method=post>
대상 국가 <select name=double size=1 style=color:white;background-color:black>";
$query = "select you,state from diplomacy where me='$me['nation']'";
$query = "select you,state from diplomacy where me='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$count = MYDB_num_rows($result);
@@ -2400,7 +2400,7 @@ function command_61($connect, $turn, $command) {
$diplomacy[$dip['you']] = $dip['state'];
}
$query = "select nation,name,color from nation where nation!='$me['nation']'";
$query = "select nation,name,color from nation where nation!='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$count = MYDB_num_rows($result);
@@ -2460,7 +2460,7 @@ function command_61($connect, $turn, $command) {
function command_62($connect, $turn, $command) {
starter("선전포고", 1);
$query = "select nation from general where user_id='$_SESSION['p_id']'";
$query = "select nation from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -2473,7 +2473,7 @@ function command_62($connect, $turn, $command) {
<form name=form1 action=c_double.php method=post>
대상 국가 <select name=double size=1 style=color:white;background-color:black>";
$query = "select you,state from diplomacy where me='$me['nation']'";
$query = "select you,state from diplomacy where me='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$count = MYDB_num_rows($result);
@@ -2482,14 +2482,14 @@ function command_62($connect, $turn, $command) {
$diplomacy[$dip['you']] = $dip['state'];
}
$query = "select nation,name,color from nation where nation!='$me['nation']'";
$query = "select nation,name,color from nation where nation!='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$count = MYDB_num_rows($result);
for($i=1; $i <= $count; $i++) {
$nation = MYDB_fetch_array($result);
//합병중 국가는 안됨
$query = "select state from diplomacy where me='$nation['nation']' and (state='3' or state='5')";
$query = "select state from diplomacy where me='{$nation['nation']}' and (state='3' or state='5')";
$tempresult = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$anycount = MYDB_num_rows($tempresult);
if($anycount != 0 && $diplomacy[$nation['nation']] != 7) {
@@ -2525,7 +2525,7 @@ function command_62($connect, $turn, $command) {
function command_63($connect, $turn, $command) {
starter("종전", 1);
$query = "select nation from general where user_id='$_SESSION['p_id']'";
$query = "select nation from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -2536,7 +2536,7 @@ function command_63($connect, $turn, $command) {
<form name=form1 action=c_double.php method=post>
대상 국가 <select name=double size=1 style=color:white;background-color:black>";
$query = "select you,state from diplomacy where me='$me['nation']'";
$query = "select you,state from diplomacy where me='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$count = MYDB_num_rows($result);
@@ -2545,7 +2545,7 @@ function command_63($connect, $turn, $command) {
$diplomacy[$dip['you']] = $dip['state'];
}
$query = "select nation,name,color from nation where nation!='$me['nation']'";
$query = "select nation,name,color from nation where nation!='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$count = MYDB_num_rows($result);
@@ -2581,7 +2581,7 @@ function command_63($connect, $turn, $command) {
function command_64($connect, $turn, $command) {
starter("파기", 1);
$query = "select nation from general where user_id='$_SESSION['p_id']'";
$query = "select nation from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -2592,7 +2592,7 @@ function command_64($connect, $turn, $command) {
<form name=form1 action=c_double.php method=post>
대상 국가 <select name=double size=1 style=color:white;background-color:black>";
$query = "select you,state from diplomacy where me='$me['nation']'";
$query = "select you,state from diplomacy where me='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$count = MYDB_num_rows($result);
@@ -2601,7 +2601,7 @@ function command_64($connect, $turn, $command) {
$diplomacy[$dip['you']] = $dip['state'];
}
$query = "select nation,name,color from nation where nation!='$me['nation']'";
$query = "select nation,name,color from nation where nation!='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$count = MYDB_num_rows($result);
@@ -2636,11 +2636,11 @@ function command_64($connect, $turn, $command) {
function command_65($connect, $turn, $command) {
starter("초토화", 1);
$query = "select city from general where user_id='$_SESSION['p_id']'";
$query = "select city from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
$query = "select name,path from city where city='$general['city']'";
$query = "select name,path from city where city='{$general['city']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$currentcity = MYDB_fetch_array($result);
@@ -2673,11 +2673,11 @@ echo "
function command_66($connect, $turn, $command) {
starter("천도", 1);
$query = "select city from general where user_id='$_SESSION['p_id']'";
$query = "select city from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
$query = "select name,path from city where city='$general['city']'";
$query = "select name,path from city where city='{$general['city']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$currentcity = MYDB_fetch_array($result);
@@ -2711,11 +2711,11 @@ echo "
function command_67($connect, $turn, $command) {
starter("증축", 1);
$query = "select city from general where user_id='$_SESSION['p_id']'";
$query = "select city from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
$query = "select name,path from city where city='$general['city']'";
$query = "select name,path from city where city='{$general['city']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$currentcity = MYDB_fetch_array($result);
@@ -2749,11 +2749,11 @@ echo "
function command_68($connect, $turn, $command) {
starter("감축", 1);
$query = "select city from general where user_id='$_SESSION['p_id']'";
$query = "select city from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
$query = "select name,path from city where city='$general['city']'";
$query = "select name,path from city where city='{$general['city']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$currentcity = MYDB_fetch_array($result);
@@ -2787,11 +2787,11 @@ echo "
function command_72($connect, $turn, $command) {
starter("백성동원", 1);
$query = "select city from general where user_id='$_SESSION['p_id']'";
$query = "select city from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
$query = "select name,path from city where city='$general['city']'";
$query = "select name,path from city where city='{$general['city']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$currentcity = MYDB_fetch_array($result);
@@ -2825,11 +2825,11 @@ echo "
function command_73($connect, $turn, $command) {
starter("수몰", 1);
$query = "select city from general where user_id='$_SESSION['p_id']'";
$query = "select city from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
$query = "select name,path from city where city='$general['city']'";
$query = "select name,path from city where city='{$general['city']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$currentcity = MYDB_fetch_array($result);
@@ -2863,11 +2863,11 @@ echo "
function command_74($connect, $turn, $command) {
starter("허보", 1);
$query = "select city from general where user_id='$_SESSION['p_id']'";
$query = "select city from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
$query = "select name,path from city where city='$general['city']'";
$query = "select name,path from city where city='{$general['city']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$currentcity = MYDB_fetch_array($result);
@@ -2902,7 +2902,7 @@ echo "
function command_75($connect, $turn, $command) {
starter("피장파장", 1);
$query = "select nation from general where user_id='$_SESSION['p_id']'";
$query = "select nation from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -2914,7 +2914,7 @@ function command_75($connect, $turn, $command) {
<form name=form1 action=c_double.php method=post>
대상 국가 <select name=double size=1 style=color:white;background-color:black>";
$query = "select you,state from diplomacy where me='$me['nation']'";
$query = "select you,state from diplomacy where me='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$count = MYDB_num_rows($result);
@@ -2923,7 +2923,7 @@ function command_75($connect, $turn, $command) {
$diplomacy[$dip['you']] = $dip['state'];
}
$query = "select nation,name,color from nation where nation!='$me['nation']'";
$query = "select nation,name,color from nation where nation!='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$count = MYDB_num_rows($result);
@@ -2959,7 +2959,7 @@ function command_75($connect, $turn, $command) {
function command_77($connect, $turn, $command) {
starter("이호경식", 1);
$query = "select nation from general where user_id='$_SESSION['p_id']'";
$query = "select nation from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -2971,7 +2971,7 @@ function command_77($connect, $turn, $command) {
<form name=form1 action=c_double.php method=post>
대상 국가 <select name=double size=1 style=color:white;background-color:black>";
$query = "select you,state from diplomacy where me='$me['nation']'";
$query = "select you,state from diplomacy where me='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$count = MYDB_num_rows($result);
@@ -2980,7 +2980,7 @@ function command_77($connect, $turn, $command) {
$diplomacy[$dip['you']] = $dip['state'];
}
$query = "select nation,name,color from nation where nation!='$me['nation']'";
$query = "select nation,name,color from nation where nation!='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$count = MYDB_num_rows($result);
@@ -3016,7 +3016,7 @@ function command_77($connect, $turn, $command) {
function command_78($connect, $turn, $command) {
starter("급습", 1);
$query = "select nation from general where user_id='$_SESSION['p_id']'";
$query = "select nation from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -3028,7 +3028,7 @@ function command_78($connect, $turn, $command) {
<form name=form1 action=c_double.php method=post>
대상 국가 <select name=double size=1 style=color:white;background-color:black>";
$query = "select you,state from diplomacy where me='$me['nation']'";
$query = "select you,state from diplomacy where me='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$count = MYDB_num_rows($result);
@@ -3037,7 +3037,7 @@ function command_78($connect, $turn, $command) {
$diplomacy[$dip['you']] = $dip['state'];
}
$query = "select nation,name,color from nation where nation!='$me['nation']'";
$query = "select nation,name,color from nation where nation!='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$count = MYDB_num_rows($result);