diff --git a/.gitignore b/.gitignore
index 3cde3ffd..ea970be3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -118,4 +118,5 @@ set.php
config.php
sess_*
*/logs/*.txt
-d_setting/set.php
\ No newline at end of file
+d_setting/set.php
+conf.php
\ No newline at end of file
diff --git a/twe/_admin4.php b/twe/_admin4.php
index 98ee02c6..46712c41 100644
--- a/twe/_admin4.php
+++ b/twe/_admin4.php
@@ -109,7 +109,7 @@ $conMsg = "";
for($i=0; $i < $ipCount; $i++) {
$ip = MYDB_fetch_array($result);
- $query = "select name,ip,lastconnect,user_id,block,conmsg from general where ip like '$ip[ip2]%' and npc<2 order by ip";
+ $query = "select name,ip,lastconnect,user_id,block,conmsg from general where ip like '{$ip['ip2']}%' and npc<2 order by ip";
$genResult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$genCount = MYDB_num_rows($genResult);
for($k=0; $k < $genCount; $k++) {
diff --git a/twe/_admin5.php b/twe/_admin5.php
index 5492267f..ab036395 100644
--- a/twe/_admin5.php
+++ b/twe/_admin5.php
@@ -230,13 +230,13 @@ for($i=0; $i < $nationCount; $i++) {
{$gen['avgp']}
{$gen['avgi']}
{$gen['avge']}
- {$nation[dex0]}
- {$nation[dex10]}
- {$nation[dex20]}
- {$nation[dex30]}
- {$nation[dex40]}
+ {$nation['dex0']}
+ {$nation['dex10']}
+ {$nation['dex20']}
+ {$nation['dex30']}
+ {$nation['dex40']}
{$gen['crew']}/{$gen['leader']}00
- {$city['pop']}/{$city[pop2]}
+ {$city['pop']}/{$city['pop2']}
{$city['rate']}%
{$city['agri']}%
{$city['comm']}%
diff --git a/twe/_simul.php b/twe/_simul.php
index e22d2eae..2ec1a276 100644
--- a/twe/_simul.php
+++ b/twe/_simul.php
@@ -590,11 +590,11 @@ if($isgen == "장수공격" || $isgen == "성벽공격" || $isgen == "장수평
//군주, 참모, 모사 방어 보정 5%
if($oppose['level'] == 12 || $oppose['level'] == 11 || $oppose['level'] == 9 || $oppose['level'] == 7 || $oppose['level'] == 5) {
$opCrew = $opCrew * 0.95;
- } elseif($oppose['level'] == 4 && $oppose['no'] == $city[gen1]) { // 태수 보정
+ } elseif($oppose['level'] == 4 && $oppose['no'] == $city['gen1']) { // 태수 보정
$opCrew = $opCrew * 0.95;
- } elseif($oppose['level'] == 3 && $oppose['no'] == $city[gen2]) { // 군사 보정
+ } elseif($oppose['level'] == 3 && $oppose['no'] == $city['gen2']) { // 군사 보정
$opCrew = $opCrew * 0.95;
- } elseif($oppose['level'] == 2 && $oppose['no'] == $city[gen3]) { // 시중 보정
+ } elseif($oppose['level'] == 2 && $oppose['no'] == $city['gen3']) { // 시중 보정
$opCrew = $opCrew * 0.95;
}
diff --git a/twe/a_npcList.php b/twe/a_npcList.php
index 0668c376..a165626e 100644
--- a/twe/a_npcList.php
+++ b/twe/a_npcList.php
@@ -87,11 +87,11 @@ for($j=0; $j < $gencount; $j++) {
echo "
{$name}
- {$general[name2]}
+ {$general['name2']}
Lv {$general['explevel']}
{$nation}
".getGenChar($general['personal'])."
- ".getGenSpecial($general['special'])." / ".getGenSpecial($general[special2])."
+ ".getGenSpecial($general['special'])." / ".getGenSpecial($general['special2'])."
{$general['sum']}
{$general['leader']}
{$general['power']}
diff --git a/twe/a_vote.php b/twe/a_vote.php
index 16524b01..c2b1fe73 100644
--- a/twe/a_vote.php
+++ b/twe/a_vote.php
@@ -92,7 +92,7 @@ for($i=1; $i < $voteTypeCount; $i++) {
} else {
echo "추후공개";
}
- $vote[i] = Tag2Code($vote[i]);
+ $vote[$i] = Tag2Code($vote[$i]);
echo "
{$vote[$i]}
diff --git a/twe/b_auction.php b/twe/b_auction.php
index 538a8452..3d4a185d 100644
--- a/twe/b_auction.php
+++ b/twe/b_auction.php
@@ -79,9 +79,9 @@ for($i=0; $i < $count; $i++) {
$auction = MYDB_fetch_array($result);
$itemname = GetStuffName($auction['stuff']);
$radio = ""; $alert = ""; $alert2 = "";
- if($auction[no1] == $me['no']) { $radio = " disabled"; }
- elseif($auction[no2] > 0 && $auction['amount'] * 2 <= $auction['value'] && $auction['stuff'] == 0) { $radio = " disabled"; $alert = ""; $alert2 = " "; }
- elseif($auction[no2] > 0 && $auction['topv'] <= $auction['value']) { $radio = " disabled"; $alert = ""; $alert2 = " "; }
+ if($auction['no1'] == $me['no']) { $radio = " disabled"; }
+ elseif($auction['no2'] > 0 && $auction['amount'] * 2 <= $auction['value'] && $auction['stuff'] == 0) { $radio = " disabled"; $alert = ""; $alert2 = " "; }
+ elseif($auction['no2'] > 0 && $auction['topv'] <= $auction['value']) { $radio = " disabled"; $alert = ""; $alert2 = " "; }
elseif($chk == 0) { $radio = " checked"; $chk = 1; }
$pv = round($auction['value'] * 100 / $auction['amount']) / 100 + 0.001;
$pv = substr($pv, 0, 4);
@@ -90,14 +90,14 @@ for($i=0; $i < $count; $i++) {
{$auction['no']}
- {$auction[name1]}
+ {$auction['name1']}
{$itemname}
{$auction['amount']}
금 {$auction['cost']}
{$alert}금 {$auction['value']}{$alert2}
{$alert}금 {$auction['topv']}{$alert2}
{$alert}{$pv}{$alert2}
- {$alert}{$auction[name2]}{$alert2}
+ {$alert}{$auction['name2']}{$alert2}
{$auction['expire']}
";
@@ -163,9 +163,9 @@ for($i=0; $i < $count; $i++) {
$auction = MYDB_fetch_array($result);
$itemname = GetStuffName($auction['stuff']);
$radio = ""; $alert = ""; $alert2 = "";
- if($auction[no1] == $me['no']) { $radio = " disabled"; }
- elseif($auction[no2] > 0 && $auction['amount'] >= $auction['value'] * 2 && $auction['stuff'] == 0) { $radio = " disabled"; $alert = ""; $alert2 = " "; }
- elseif($auction[no2] > 0 && $auction['topv'] >= $auction['value']) { $radio = " disabled"; $alert = ""; $alert2 = " "; }
+ if($auction['no1'] == $me['no']) { $radio = " disabled"; }
+ elseif($auction['no2'] > 0 && $auction['amount'] >= $auction['value'] * 2 && $auction['stuff'] == 0) { $radio = " disabled"; $alert = ""; $alert2 = " "; }
+ elseif($auction['no2'] > 0 && $auction['topv'] >= $auction['value']) { $radio = " disabled"; $alert = ""; $alert2 = " "; }
elseif($chk == 0) { $radio = " checked"; $chk = 1; }
$pv = round($auction['value'] * 100 / $auction['amount']) / 100 + 0.001;
$pv = substr($pv, 0, 4);
@@ -174,14 +174,14 @@ for($i=0; $i < $count; $i++) {
{$auction['no']}
- {$auction[name1]}
+ {$auction['name1']}
{$itemname}
{$auction['amount']}
금 {$auction['cost']}
{$alert}금 {$auction['value']}{$alert2}
{$alert}금 {$auction['topv']}{$alert2}
{$alert}{$pv}{$alert2}
- {$alert}{$auction[name2]}{$alert2}
+ {$alert}{$auction['name2']}{$alert2}
{$auction['expire']}
";
diff --git a/twe/b_chiefcenter.php b/twe/b_chiefcenter.php
index b24353d9..ed5b3732 100644
--- a/twe/b_chiefcenter.php
+++ b/twe/b_chiefcenter.php
@@ -91,29 +91,29 @@ $year = $admin['year'];
$month = $admin['month'];
$date = substr(date('Y-m-d H:i:s'), 14);
for($i=12; $i >= $lv; $i--) {
- $totaldate[$i] = $gen[$i][turntime];
- $turntime[$i] = substr($gen[$i][turntime], 14);
+ $totaldate[$i] = $gen[$i]['turntime'];
+ $turntime[$i] = substr($gen[$i]['turntime'], 14);
}
for($k=0; $k < 2; $k++) {
$l4 = 12 - $k; $l3 = 10 - $k; $l2 = 8 - $k; $l1 = 6 - $k;
- if ($gen[$l4][npc] >= 2) { $gen[$l4][name] = "".$gen[$l4][name]." "; }
- elseif($gen[$l4][npc] == 1) { $gen[$l4][name] = "".$gen[$l4][name]." "; }
- if ($gen[$l3][npc] >= 2) { $gen[$l3][name] = "".$gen[$l3][name]." "; }
- elseif($gen[$l3][npc] == 1) { $gen[$l3][name] = "".$gen[$l3][name]." "; }
- if ($gen[$l2][npc] >= 2) { $gen[$l2][name] = "".$gen[$l2][name]." "; }
- elseif($gen[$l2][npc] == 1) { $gen[$l2][name] = "".$gen[$l2][name]." "; }
- if ($gen[$l1][npc] >= 2) { $gen[$l1][name] = "".$gen[$l1][name]." "; }
- elseif($gen[$l1][npc] == 1) { $gen[$l1][name] = "".$gen[$l1][name]." "; }
+ if ($gen[$l4]['npc'] >= 2) { $gen[$l4]['name'] = "".$gen[$l4]['name']." "; }
+ elseif($gen[$l4]['npc'] == 1) { $gen[$l4]['name'] = "".$gen[$l4]['name']." "; }
+ if ($gen[$l3]['npc'] >= 2) { $gen[$l3]['name'] = "".$gen[$l3]['name']." "; }
+ elseif($gen[$l3]['npc'] == 1) { $gen[$l3]['name'] = "".$gen[$l3]['name']." "; }
+ if ($gen[$l2]['npc'] >= 2) { $gen[$l2]['name'] = "".$gen[$l2]['name']." "; }
+ elseif($gen[$l2]['npc'] == 1) { $gen[$l2]['name'] = "".$gen[$l2]['name']." "; }
+ if ($gen[$l1]['npc'] >= 2) { $gen[$l1]['name'] = "".$gen[$l1]['name']." "; }
+ elseif($gen[$l1]['npc'] == 1) { $gen[$l1]['name'] = "".$gen[$l1]['name']." "; }
echo "
.
- ".getLevel($l4, $nation['level'])." : {$gen[$l4][name]}
- ".getLevel($l3, $nation['level'])." : {$gen[$l3][name]}
- ".getLevel($l2, $nation['level'])." : {$gen[$l2][name]}
- ".getLevel($l1, $nation['level'])." : {$gen[$l1][name]}
+ ".getLevel($l4, $nation['level'])." : {$gen[$l4]['name']}
+ ".getLevel($l3, $nation['level'])." : {$gen[$l3]['name']}
+ ".getLevel($l2, $nation['level'])." : {$gen[$l2]['name']}
+ ".getLevel($l1, $nation['level'])." : {$gen[$l1]['name']}
.
";
diff --git a/twe/b_currentCity.php b/twe/b_currentCity.php
index 97a06673..f4073549 100644
--- a/twe/b_currentCity.php
+++ b/twe/b_currentCity.php
@@ -141,15 +141,15 @@ $query = "select nation,name,color from nation where nation='{$city['nation']}'"
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$nation = MYDB_fetch_array($result);
-$query = "select name from general where no='$city[gen1]'"; // 태수 이름
+$query = "select name from general where no='{$city['gen1']}'"; // 태수 이름
$genresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$gen1 = MYDB_fetch_array($genresult);
-$query = "select name from general where no='$city[gen2]'"; // 군사 이름
+$query = "select name from general where no='{$city['gen2']}'"; // 군사 이름
$genresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$gen2 = MYDB_fetch_array($genresult);
-$query = "select name from general where no='$city[gen3]'"; // 시중 이름
+$query = "select name from general where no='{$city['gen3']}'"; // 시중 이름
$genresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$gen3 = MYDB_fetch_array($genresult);
@@ -170,17 +170,17 @@ echo "
주민
- {$city['pop']}/$city[pop2]
+ {$city['pop']}/{$city['pop2']}
농업
- {$city['agri']}/$city[agri2]
+ {$city['agri']}/{$city['agri2']}
상업
- {$city['comm']}/$city[comm2]
+ {$city['comm']}/{$city['comm2']}
치안
- {$city['secu']}/$city[secu2]
+ {$city['secu']}/{$city['secu2']}
수비
- {$city['def']}/$city[def2]
+ {$city['def']}/{$city['def2']}
성벽
- {$city['wall']}/$city[wall2]
+ {$city['wall']}/{$city['wall2']}
민심
diff --git a/twe/b_diplomacy.php b/twe/b_diplomacy.php
index 6ab57f34..594ce42e 100644
--- a/twe/b_diplomacy.php
+++ b/twe/b_diplomacy.php
@@ -144,7 +144,7 @@ for($i=0; $i < $citycount; $i++) {
if($city['conflict'] != "") {
$nation = explode("|", $city['conflict']);
- $killnum = explode("|", $city[conflict2]);
+ $killnum = explode("|", $city['conflict2']);
$seq = mySort($killnum); // 큰 순서대로 순서를 구한다.
diff --git a/twe/b_myBossInfo.php b/twe/b_myBossInfo.php
index 40093ed9..9bbd4f0f 100644
--- a/twe/b_myBossInfo.php
+++ b/twe/b_myBossInfo.php
@@ -77,16 +77,16 @@ echo "
";
for($i=12; $i >= $lv; $i-=2) {
$i1 = $i; $i2 = $i - 1;
- $imageTemp1 = GetImageURL($level[$i1][imgsvr]);
- $imageTemp2 = GetImageURL($level[$i2][imgsvr]);
+ $imageTemp1 = GetImageURL($level[$i1]['imgsvr']);
+ $imageTemp2 = GetImageURL($level[$i2]['imgsvr']);
echo "
".getLevel($i1, $nation['level'])."
-
- ";echo $level[$i1][name]==''?"-":$level[$i1][name]; echo " ({$level[$i1][belong]}년)
+
+ ";echo $level[$i1]['name']==''?"-":$level[$i1]['name']; echo " ({$level[$i1]['belong']}년)
".getLevel($i2, $nation['level'])."
-
- ";echo $level[$i2][name]==''?"-":$level[$i2][name]; echo " ({$level[$i2][belong]}년)
+
+ ";echo $level[$i2]['name']==''?"-":$level[$i2]['name']; echo " ({$level[$i2]['belong']}년)
";
}
@@ -457,13 +457,13 @@ $region = 0;
for($j=0; $j < $citycount; $j++) {
$city = MYDB_fetch_array($cityresult);
- $query = "select name,belong,city from general where no='$city[gen1]'";
+ $query = "select name,belong,city from general where no='{$city['gen1']}'";
$genresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$gen1 = MYDB_fetch_array($genresult);
- $query = "select name,belong,city from general where no='$city[gen2]'";
+ $query = "select name,belong,city from general where no='{$city['gen2']}'";
$genresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$gen2 = MYDB_fetch_array($genresult);
- $query = "select name,belong,city from general where no='$city[gen3]'";
+ $query = "select name,belong,city from general where no='{$city['gen3']}'";
$genresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$gen3 = MYDB_fetch_array($genresult);
diff --git a/twe/b_myCityInfo.php b/twe/b_myCityInfo.php
index 0e4fdd4a..91204be5 100644
--- a/twe/b_myCityInfo.php
+++ b/twe/b_myCityInfo.php
@@ -84,15 +84,15 @@ $citycount = MYDB_num_rows($cityresult);
for($j=0; $j < $citycount; $j++) {
$city = MYDB_fetch_array($cityresult);
if($city['city'] == $nation['capital']) { $city['name'] = "[{$city['name']}] "; }
- $query = "select name from general where no='$city[gen1]'"; // 태수
+ $query = "select name from general where no='{$city['gen1']}'"; // 태수
$genresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$gen1 = MYDB_fetch_array($genresult);
- $query = "select name from general where no='$city[gen2]'"; // 군사
+ $query = "select name from general where no='{$city['gen2']}'"; // 군사
$genresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$gen2 = MYDB_fetch_array($genresult);
- $query = "select name from general where no='$city[gen3]'"; // 시중
+ $query = "select name from general where no='{$city['gen3']}'"; // 시중
$genresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$gen3 = MYDB_fetch_array($genresult);
@@ -115,17 +115,17 @@ for($j=0; $j < $citycount; $j++) {
주민
- {$city['pop']}/$city[pop2]
+ {$city['pop']}/{$city['pop2']}
농업
- {$city['agri']}/$city[agri2]
+ {$city['agri']}/{$city['agri2']}
상업
- {$city['comm']}/$city[comm2]
+ {$city['comm']}/{$city['comm2']}
치안
- {$city['secu']}/$city[secu2]
+ {$city['secu']}/{$city['secu2']}
수비
- {$city['def']}/$city[def2]
+ {$city['def']}/{$city['def2']}
성벽
- {$city['wall']}/$city[wall2]
+ {$city['wall']}/{$city['wall2']}
민심
@@ -133,7 +133,7 @@ for($j=0; $j < $citycount; $j++) {
시세
{$city['trade']}%
인구
- ".round($city['pop']/$city[pop2]*100, 2)." %
+ ".round($city['pop']/$city['pop2']*100, 2)." %
태수
";echo $gen1['name']==''?"-":"{$gen1['name']}";echo "
군사
diff --git a/twe/b_myGenInfo.php b/twe/b_myGenInfo.php
index c7261994..e59ffc42 100644
--- a/twe/b_myGenInfo.php
+++ b/twe/b_myGenInfo.php
@@ -151,7 +151,7 @@ for($j=0; $j < $gencount; $j++) {
{$general['gold']}
{$general['rice']}
".getGenChar($general['personal'])."
- ".getGenSpecial($general['special'])." / ".getGenSpecial($general[special2])."
+ ".getGenSpecial($general['special'])." / ".getGenSpecial($general['special2'])."
{$general['belong']}
{$general['connect']}"; echo " (".getConnect($general['connect']).")
";
diff --git a/twe/b_myKingdomInfo.php b/twe/b_myKingdomInfo.php
index f9441468..bd4c4421 100644
--- a/twe/b_myKingdomInfo.php
+++ b/twe/b_myKingdomInfo.php
@@ -47,7 +47,7 @@ for($j=0; $j < $citycount; $j++) {
if($city['city'] == $nation['capital']) { $cityname[$j] = "[{$city['name']}] "; }
else { $cityname[$j] = $city['name']; }
$totalpop += $city['pop'];
- $maxpop += $city[pop2];
+ $maxpop += $city['pop2'];
}
$query = "select sum(crew) as totcrew,sum(leader)*100 as maxcrew from general where nation='{$nation['nation']}'";
diff --git a/twe/c_auction.php b/twe/c_auction.php
index 587406d6..6573869d 100644
--- a/twe/c_auction.php
+++ b/twe/c_auction.php
@@ -103,7 +103,7 @@ if($btn == "판매") {
$valid = 0;
}
*/
- if($auction[no2] > 0 && $value <= $auction['value']) {
+ if($auction['no2'] > 0 && $value <= $auction['value']) {
$msg = "ㆍ현재판매가보다 높게 입찰해야 합니다.>";
$valid = 0;
}
@@ -182,7 +182,7 @@ if($btn == "판매") {
$msg2 = "ㆍ현재 쌀만 거래 가능합니다.>";
$valid = 0;
}
- if($auction[no2] > 0 && $value >= $auction['value']) {
+ if($auction['no2'] > 0 && $value >= $auction['value']) {
$msg2 = "ㆍ현재구매가보다 낮게 입찰해야 합니다.>";
$valid = 0;
}
diff --git a/twe/c_msgsubmit.php b/twe/c_msgsubmit.php
index 4779a914..ae0f234d 100644
--- a/twe/c_msgsubmit.php
+++ b/twe/c_msgsubmit.php
@@ -24,6 +24,13 @@ $me = MYDB_fetch_array($result);
$con = checkLimit($me['userlevel'], $me['con'], $admin['conlimit']);
if($con >= 2) {
//echo ""; exit();
+ header('Content-Type: application/json');
+ echo json_encode([
+ 'result' => false,
+ 'reason' => '권한이 충분하지 않습니다.',
+ 'redirect' => 'main.php',
+ 'page_target' => 'top'
+ ]);
echo 'main.php';//TODO:debug all and replace
}
diff --git a/twe/event_1.php b/twe/event_1.php
index b9a61d7e..bc0d99b5 100644
--- a/twe/event_1.php
+++ b/twe/event_1.php
@@ -96,13 +96,13 @@ for($i=0; $i < 7; $i++) {
$result = MYDB_query($query, $connect) or Error("scenario_194A ".MYDB_error($connect),"");
$city = MYDB_fetch_array($result);
//태수 해제
- $query = "update general set level=1 where no='{$city[gen1]}'";
+ $query = "update general set level=1 where no='{$city['gen1']}'";
$result = MYDB_query($query, $connect) or Error("scenario_194A ".MYDB_error($connect),"");
//군사 해제
- $query = "update general set level=1 where no='{$city[gen2]}'";
+ $query = "update general set level=1 where no='{$city['gen2']}'";
$result = MYDB_query($query, $connect) or Error("scenario_194A ".MYDB_error($connect),"");
//시중 해제
- $query = "update general set level=1 where no='{$city[gen3]}'";
+ $query = "update general set level=1 where no='{$city['gen3']}'";
$result = MYDB_query($query, $connect) or Error("scenario_194A ".MYDB_error($connect),"");
$query = "update city set nation='{$nation['nation']}',pop='1000000',agri=agri2,comm=comm2,secu=secu2,def=def2,wall=wall2,supply=1,gen1=0,gen2=0,gen3=0 where city='{$cap[$i]}'";
diff --git a/twe/event_2.php b/twe/event_2.php
index 29696f41..1e323cd5 100644
--- a/twe/event_2.php
+++ b/twe/event_2.php
@@ -100,13 +100,13 @@ for($i=0; $i < 7; $i++) {
$result = MYDB_query($query, $connect) or Error("scenario_194A ".MYDB_error($connect),"");
$city = MYDB_fetch_array($result);
//태수 해제
- $query = "update general set level=1 where no='{$city[gen1]}'";
+ $query = "update general set level=1 where no='{$city['gen1']}'";
$result = MYDB_query($query, $connect) or Error("scenario_194A ".MYDB_error($connect),"");
//군사 해제
- $query = "update general set level=1 where no='{$city[gen2]}'";
+ $query = "update general set level=1 where no='{$city['gen2']}'";
$result = MYDB_query($query, $connect) or Error("scenario_194A ".MYDB_error($connect),"");
//시중 해제
- $query = "update general set level=1 where no='{$city[gen3]}'";
+ $query = "update general set level=1 where no='{$city['gen3']}'";
$result = MYDB_query($query, $connect) or Error("scenario_194A ".MYDB_error($connect),"");
$query = "update city set nation='{$nation['nation']}',pop='1000000',agri=agri2,comm=comm2,secu=secu2,def=def2,wall=wall2,supply=1,gen1=0,gen2=0,gen3=0 where city='{$cap[$i]}'";
diff --git a/twe/event_4.php b/twe/event_4.php
index df66037d..94b6c052 100644
--- a/twe/event_4.php
+++ b/twe/event_4.php
@@ -81,7 +81,7 @@ if(rand()%2 == 0) {
$intel = 150 - $leader - $power;
}
-RegGeneral4($connect,$admin['turnterm'],$gencount, 0, 0, "유기체", $leader, $power, $intel, $personal, $general['specage'], $general[specage2], "흠... 그럼 어쩔 수 없이 흉노로 가야겠군요."); $gencount++;
+RegGeneral4($connect,$admin['turnterm'],$gencount, 0, 0, "유기체", $leader, $power, $intel, $personal, $general['specage'], $general['specage2'], "흠... 그럼 어쩔 수 없이 흉노로 가야겠군요."); $gencount++;
//////////////////////////장수 끝///////////////////////////////////////////////
diff --git a/twe/func.php b/twe/func.php
index b1cf9623..e8336382 100644
--- a/twe/func.php
+++ b/twe/func.php
@@ -1904,7 +1904,7 @@ function cityInfo($connect) {
}
if($city['gen1'] > 0) {
- $query = "select name from general where no='$city[gen1]'";
+ $query = "select name from general where no='{$city['gen1']}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$gen1 = MYDB_fetch_array($result);
} else {
@@ -1912,7 +1912,7 @@ function cityInfo($connect) {
}
if($city['gen2'] > 0) {
- $query = "select name from general where no='$city[gen2]'";
+ $query = "select name from general where no='{$city['gen2']}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$gen2 = MYDB_fetch_array($result);
} else {
@@ -1920,7 +1920,7 @@ function cityInfo($connect) {
}
if($city['gen3'] > 0) {
- $query = "select name from general where no='$city[gen3]'";
+ $query = "select name from general where no='{$city['gen3']}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$gen3 = MYDB_fetch_array($result);
} else {
@@ -2849,27 +2849,27 @@ function generalInfo2($connect, $no, $skin) {
숙 련 도
보병
- $general[dex0]
+ {$general['dex0']}
".bar($dex0, $skin, 16)."
궁병
- $general[dex10]
+ {$general['dex10']}
".bar($dex10, $skin, 16)."
기병
- $general[dex20]
+ {$general['dex20']}
".bar($dex20, $skin, 16)."
귀병
- $general[dex30]
+ {$general['dex30']}
".bar($dex30, $skin, 16)."
차병
- $general[dex40]
+ {$general['dex40']}
".bar($dex40, $skin, 16)."
";
@@ -4137,7 +4137,7 @@ function checkTurn($connect) {
for($i=0; $i < $gencount; $i++) {
$general = MYDB_fetch_array($result);
- //if(PROCESS_LOG) $processlog[0] = "[{$date}] 월턴 이전 갱신: name({$general['name']}), no({$general['no']}), turntime({$general['turntime']}), turn0({$general[turn0]})";
+ //if(PROCESS_LOG) $processlog[0] = "[{$date}] 월턴 이전 갱신: name({$general['name']}), no({$general['no']}), turntime({$general['turntime']}), turn0({$general['turn0']})";
//if(PROCESS_LOG) pushProcessLog($connect, $processlog);
//if(STEP_LOG) pushStepLog(date('Y-m-d H:i:s').', processAI');
@@ -4244,7 +4244,7 @@ function checkTurn($connect) {
for($i=0; $i < $gencount; $i++) {
$general = MYDB_fetch_array($result);
- //if(PROCESS_LOG) $processlog[0] = "[{$date}] 월턴 이후 갱신: name({$general['name']}), no({$general['no']}), turntime({$general['turntime']}), turn0({$general[turn0]})";
+ //if(PROCESS_LOG) $processlog[0] = "[{$date}] 월턴 이후 갱신: name({$general['name']}), no({$general['no']}), turntime({$general['turntime']}), turn0({$general['turn0']})";
//if(PROCESS_LOG) pushProcessLog($connect, $processlog);
//if(STEP_LOG) pushStepLog(date('Y-m-d H:i:s').', processAI');
@@ -4328,7 +4328,7 @@ function addAge($connect) {
for($i=0; $i < $gencount; $i++) {
$general = MYDB_fetch_array($result);
- $special2 = getSpecial2($connect, $general['leader'], $general['power'], $general['intel'], 0, $general[dex0], $general[dex10], $general[dex20], $general[dex30], $general[dex40]);
+ $special2 = getSpecial2($connect, $general['leader'], $general['power'], $general['intel'], 0, $general['dex0'], $general['dex10'], $general['dex20'], $general['dex30'], $general['dex40']);
$query = "update general set special2='$special2' where no='{$general['no']}'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
@@ -4574,7 +4574,7 @@ function preUpdateMonthly($connect) {
for($i=0; $i < $cityCount; $i++) {
$city = MYDB_fetch_array($result);
- $query = "update general set level=1 where no='$city[gen1]' or no='$city[gen2]' or no='$city[gen3]'";
+ $query = "update general set level=1 where no='{$city['gen1']}' or no='{$city['gen2']}' or no='{$city['gen3']}'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$history[count($history)] = "●>{$admin['year']}년 {$admin['month']}월:【고립】 >{$city['name']} >(이)가 보급이 끊겨 미지배> 도시가 되었습니다.";
@@ -4792,7 +4792,7 @@ group by A.nation
$dip = MYDB_fetch_array($result);
//양측 기간 모두 0이 되는 상황이면 휴전
- if($dip[term1] <= 1 && $dip[term2] <= 1) {
+ if($dip['term1'] <= 1 && $dip['term2'] <= 1) {
$query = "select name from nation where nation='{$dip['me']}' or nation='{$dip['you']}'";
$nationResult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$nation = MYDB_fetch_array($nationResult);
@@ -5536,7 +5536,7 @@ function PreprocessCommand($connect, $no) {
$log[0] = "●>".getItemName($general['item']).">(을)를 사용하여 치료합니다!";
pushGenLog($general, $log);
- } elseif($general['injury'] > 10 && $general['item'] == 1 && $general[turn0] != EncodeCommand(0, 0, 0, 50)) {
+ } elseif($general['injury'] > 10 && $general['item'] == 1 && $general['turn0'] != EncodeCommand(0, 0, 0, 50)) {
//환약 사용
$query = "update general set injury=0,item=0 where no='$no'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
@@ -5791,7 +5791,7 @@ function updateTurntime($connect, $no) {
$query = "update general set user_id='$npcid',password='$pw',npc='{$general['npc']}',killturn='{$general['killturn']}',mode=2 where no='$no'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
- $alllog[0] = "●>{$admin['month']}월:$general[name2]>(이)가 {$general['name']}>의 육체에서 유체이탈>합니다!";
+ $alllog[0] = "●>{$admin['month']}월:{$general['name2']}>(이)가 {$general['name']}>의 육체에서 유체이탈>합니다!";
pushAllLog($alllog);
if($admin['isUnited'] == 0) {
@@ -6412,12 +6412,12 @@ function popIncrease($connect) {
// 국가보정
if($type[$city['nation']] == 4 || $type[$city['nation']] == 6 || $type[$city['nation']] == 7 || $type[$city['nation']] == 8 || $type[$city['nation']] == 12 || $type[$city['nation']] == 13) { $ratio *= 1.2; }
if($type[$city['nation']] == 1 || $type[$city['nation']] == 3) { $ratio *= 0.8; }
- $ratio *= (1 + $city['secu']/$city[secu2]/10); //치안에 따라 최대 10% 추가
+ $ratio *= (1 + $city['secu']/$city['secu2']/10); //치안에 따라 최대 10% 추가
} else {
// 국가보정
if($type[$city['nation']] == 4 || $type[$city['nation']] == 6 || $type[$city['nation']] == 7 || $type[$city['nation']] == 8 || $type[$city['nation']] == 12 || $type[$city['nation']] == 13) { $ratio *= 0.8; }
if($type[$city['nation']] == 1 || $type[$city['nation']] == 3) { $ratio *= 1.2; }
- $ratio *= (1 - $city['secu']/$city[secu2]/10); //치안에 따라 최대 10% 경감
+ $ratio *= (1 - $city['secu']/$city['secu2']/10); //치안에 따라 최대 10% 경감
}
$pop = $city['pop'] + floor($city['pop'] * $ratio) + 5000; // 기본 5000명은 증가
diff --git a/twe/func_auction.php b/twe/func_auction.php
index c56fe55f..2abe51b0 100644
--- a/twe/func_auction.php
+++ b/twe/func_auction.php
@@ -161,8 +161,8 @@ function processAuction($connect) {
// 유닉템 처리
if($auction['stuff'] != 0) {
- if($auction[no2] == 0) {
- $auctionLog[0] = "◆>{$admin['year']}년 {$admin['month']}월, {$auction['no']}번 판매> 유찰> : {$auction[name1]}>(이)가 ".GetStuffName($auction['stuff']).">(을)를 판매, 그러나 입찰자 부재";
+ if($auction['no2'] == 0) {
+ $auctionLog[0] = "◆>{$admin['year']}년 {$admin['month']}월, {$auction['no']}번 판매> 유찰> : {$auction['name1']}>(이)가 ".GetStuffName($auction['stuff']).">(을)를 판매, 그러나 입찰자 부재";
pushAuctionLog($connect, $auctionLog);
} else {
$trader['no'] = 0;
@@ -170,7 +170,7 @@ function processAuction($connect) {
$trader['gold'] = 99999999;
$trader['rice'] = 99999999;
- $query = "select no,name,gold,rice from general where no='$auction[no2]'";
+ $query = "select no,name,gold,rice from general where no='{$auction['no2']}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$bidder = MYDB_fetch_array($result);
@@ -191,28 +191,28 @@ function processAuction($connect) {
if($count > 0) {
$traderLog[0] = "◆>{$auction['no']}번 거래 유찰>! 이미 아이템을 누군가가 가로챘습니다!";
$bidderLog[0] = "◆>{$auction['no']}번 거래 유찰>! 이미 아이템을 누군가가 가로챘습니다!";
- $auctionLog[0] = "◆>{$admin['year']}년 {$admin['month']}월, {$auction['no']}번 판매> 유찰> : {$auction[name1]}>(이)가 ".GetStuffName($auction['stuff']).">(을)를 판매, {$auction[name2]}>(이)가 금 {$auction['value']}>(으)로 입찰, 그러나 아이템 이미 매진!";
+ $auctionLog[0] = "◆>{$admin['year']}년 {$admin['month']}월, {$auction['no']}번 판매> 유찰> : {$auction['name1']}>(이)가 ".GetStuffName($auction['stuff']).">(을)를 판매, {$auction['name2']}>(이)가 금 {$auction['value']}>(으)로 입찰, 그러나 아이템 이미 매진!";
} elseif($auction['value'] > $bidder['gold'] - 1000) {
$gold = round($auction['value'] * 0.01);
$bidder['gold'] -= $gold;
if($bidder['gold'] < 0) $bidder['gold'] = 0;
- $query = "update general set gold='{$bidder['gold']}' where no='$auction[no2]'";
+ $query = "update general set gold='{$bidder['gold']}' where no='{$auction['no2']}'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$traderLog[0] = "◆>입찰자의 자금 부족으로 {$auction['no']}번 ".GetStuffName($auction['stuff'])."> 거래 유찰>!";
$bidderLog[0] = "◆>입찰자의 자금 부족으로 {$auction['no']}번 ".GetStuffName($auction['stuff'])."> 거래 유찰>! 벌금 {$gold}>";
- $auctionLog[0] = "◆>{$admin['year']}년 {$admin['month']}월, {$auction['no']}번 판매> 유찰> : {$auction[name1]}>(이)가 ".GetStuffName($auction['stuff']).">(을)를 판매, {$auction[name2]}>(이)가 금 {$auction['value']}>(으)로 입찰, 그러나 입찰자 자금부족, 벌금 {$gold}>";
+ $auctionLog[0] = "◆>{$admin['year']}년 {$admin['month']}월, {$auction['no']}번 판매> 유찰> : {$auction['name1']}>(이)가 ".GetStuffName($auction['stuff']).">(을)를 판매, {$auction['name2']}>(이)가 금 {$auction['value']}>(으)로 입찰, 그러나 입찰자 자금부족, 벌금 {$gold}>";
} else {
$traderLog[0] = "◆>{$auction['no']}번 거래 성사>로 ".GetStuffName($auction['stuff']).">(을)를 판매, 금 {$auction['value']}>(을)를 획득!";
$bidderLog[0] = "◆>{$auction['no']}번 거래 성사>로 금 {$auction['value']}>(을)를 지불, ".GetStuffName($auction['stuff'])."> 구입!";
- $auctionLog[0] = "◆>{$admin['year']}년 {$admin['month']}월, {$auction['no']}번 판매> 성사> : {$auction[name1]}>(이)가 ".GetStuffName($auction['stuff']).">(을)를 판매, {$auction[name2]}>(이)가 금 {$auction['value']}>(으)로 구매";
+ $auctionLog[0] = "◆>{$admin['year']}년 {$admin['month']}월, {$auction['no']}번 판매> 성사> : {$auction['name1']}>(이)가 ".GetStuffName($auction['stuff']).">(을)를 판매, {$auction['name2']}>(이)가 금 {$auction['value']}>(으)로 구매";
$auctionLog[0] .= " ★ 아이템 거래 ★>";
- $query = "update general set gold=gold-'{$auction['value']}',{$type}='$sel2' where no='$auction[no2]'";
+ $query = "update general set gold=gold-'{$auction['value']}',{$type}='$sel2' where no='{$auction['no2']}'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
- $alllog[0] = "●>{$admin['month']}월:$auction[name2]>(이)가 ".GetStuffName($auction['stuff']).">(을)를 구매했습니다!";
- $history[0] = "●>{$admin['year']}년 {$admin['month']}월:【암시장】 >$auction[name2]>(이)가 ".GetStuffName($auction['stuff']).">(을)를 구매했습니다!";
+ $alllog[0] = "●>{$admin['month']}월:{$auction['name2']}>(이)가 ".GetStuffName($auction['stuff']).">(을)를 구매했습니다!";
+ $history[0] = "●>{$admin['year']}년 {$admin['month']}월:【암시장】 >{$auction['name2']}>(이)가 ".GetStuffName($auction['stuff']).">(을)를 구매했습니다!";
pushAllLog($alllog);
pushHistory($connect, $history);
}
@@ -225,32 +225,32 @@ function processAuction($connect) {
if($auction['no2'] == 0) {
// 상인건수가 아닌것만 출력
if($auction['no1'] != 0) {
- $query = "select no from general where no='$auction[no1]'";
+ $query = "select no from general where no='{$auction['no1']}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$trader = MYDB_fetch_array($result);
$traderLog[0] = "◆>입찰자 부재로 {$auction['no']}번 거래 유찰>!";
if($auction['type'] == 0) {
- $auctionLog[0] = "◆>{$admin['year']}년 {$admin['month']}월, {$auction['no']}번 판매> 유찰> : {$auction[name1]}>(이)가 쌀 {$auction['amount']}>(을)를 판매, 그러나 입찰자 부재";
+ $auctionLog[0] = "◆>{$admin['year']}년 {$admin['month']}월, {$auction['no']}번 판매> 유찰> : {$auction['name1']}>(이)가 쌀 {$auction['amount']}>(을)를 판매, 그러나 입찰자 부재";
} else {
- $auctionLog[0] = "◆>{$admin['year']}년 {$admin['month']}월, {$auction['no']}번 구매> 유찰> : {$auction[name1]}>(이)가 쌀 {$auction['amount']}>(을)를 구매, 그러나 입찰자 부재";
+ $auctionLog[0] = "◆>{$admin['year']}년 {$admin['month']}월, {$auction['no']}번 구매> 유찰> : {$auction['name1']}>(이)가 쌀 {$auction['amount']}>(을)를 구매, 그러나 입찰자 부재";
}
pushGenLog($trader, $traderLog);
pushAuctionLog($connect, $auctionLog);
}
} else {
- if($auction[no1] == 0) {
+ if($auction['no1'] == 0) {
$trader['no'] = 0;
$trader['name'] = 'ⓝ상인';
$trader['gold'] = 99999;
$trader['rice'] = 99999;
} else {
- $query = "select no,name,gold,rice from general where no='$auction[no1]'";
+ $query = "select no,name,gold,rice from general where no='{$auction['no1']}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$trader = MYDB_fetch_array($result);
}
- $query = "select no,name,gold,rice from general where no='$auction[no2]'";
+ $query = "select no,name,gold,rice from general where no='{$auction['no2']}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$bidder = MYDB_fetch_array($result);
//판매거래
@@ -259,26 +259,26 @@ function processAuction($connect) {
$gold = round($auction['value'] * 0.01);
$trader['gold'] -= $gold;
if($trader['gold'] < 0) $trader['gold'] = 0;
- $query = "update general set gold='{$trader['gold']}' where no='$auction[no1]'";
+ $query = "update general set gold='{$trader['gold']}' where no='{$auction['no1']}'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$traderLog[0] = "◆>판매자의 군량 부족으로 {$auction['no']}번 거래 유찰>! 벌금 {$gold}>";
$bidderLog[0] = "◆>판매자의 군량 부족으로 {$auction['no']}번 거래 유찰>!";
- $auctionLog[0] = "◆>{$admin['year']}년 {$admin['month']}월, {$auction['no']}번 판매> 유찰> : {$auction[name1]}>(이)가 쌀 {$auction['amount']}>(을)를 판매, {$auction[name2]}>(이)가 금 {$auction['value']}>(으)로 입찰, 그러나 판매자 군량부족, 벌금 {$gold}>";
+ $auctionLog[0] = "◆>{$admin['year']}년 {$admin['month']}월, {$auction['no']}번 판매> 유찰> : {$auction['name1']}>(이)가 쌀 {$auction['amount']}>(을)를 판매, {$auction['name2']}>(이)가 금 {$auction['value']}>(으)로 입찰, 그러나 판매자 군량부족, 벌금 {$gold}>";
} elseif($auction['value'] > $bidder['gold'] - 1000) {
$gold = round($auction['value'] * 0.01);
$bidder['gold'] -= $gold;
if($bidder['gold'] < 0) $bidder['gold'] = 0;
- $query = "update general set gold='{$bidder['gold']}' where no='$auction[no2]'";
+ $query = "update general set gold='{$bidder['gold']}' where no='{$auction['no2']}'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$traderLog[0] = "◆>입찰자의 자금 부족으로 {$auction['no']}번 거래 유찰>!";
$bidderLog[0] = "◆>입찰자의 자금 부족으로 {$auction['no']}번 거래 유찰>! 벌금 {$gold}>";
- $auctionLog[0] = "◆>{$admin['year']}년 {$admin['month']}월, {$auction['no']}번 판매> 유찰> : {$auction[name1]}>(이)가 쌀 {$auction['amount']}>(을)를 판매, {$auction[name2]}>(이)가 금 {$auction['value']}>(으)로 입찰, 그러나 입찰자 자금부족, 벌금 {$gold}>";
+ $auctionLog[0] = "◆>{$admin['year']}년 {$admin['month']}월, {$auction['no']}번 판매> 유찰> : {$auction['name1']}>(이)가 쌀 {$auction['amount']}>(을)를 판매, {$auction['name2']}>(이)가 금 {$auction['value']}>(으)로 입찰, 그러나 입찰자 자금부족, 벌금 {$gold}>";
} else {
$traderLog[0] = "◆>{$auction['no']}번 거래 성사>로 쌀 {$auction['amount']}>(을)를 판매, 금 {$auction['value']}>(을)를 획득!";
$bidderLog[0] = "◆>{$auction['no']}번 거래 성사>로 금 {$auction['value']}>(을)를 지불, 쌀 {$auction['amount']}>(을)를 구입!";
- $auctionLog[0] = "◆>{$admin['year']}년 {$admin['month']}월, {$auction['no']}번 판매> 성사> : {$auction[name1]}>(이)가 쌀 {$auction['amount']}>(을)를 판매, {$auction[name2]}>(이)가 금 {$auction['value']}>(으)로 구매";
+ $auctionLog[0] = "◆>{$admin['year']}년 {$admin['month']}월, {$auction['no']}번 판매> 성사> : {$auction['name1']}>(이)가 쌀 {$auction['amount']}>(을)를 판매, {$auction['name2']}>(이)가 금 {$auction['value']}>(으)로 구매";
if($auction['value'] >= $auction['amount'] * 2) {
$auctionLog[0] .= " ★ 최고가 거래 ★>";
} elseif($auction['value'] >= $auction['topv']) {
@@ -286,9 +286,9 @@ function processAuction($connect) {
} elseif($auction['value'] * 2 <= $auction['amount']) {
$auctionLog[0] .= " ★ 최저가 거래 ★>";
}
- $query = "update general set gold=gold+'{$auction['value']}',rice=rice-'{$auction['amount']}' where no='$auction[no1]'";
+ $query = "update general set gold=gold+'{$auction['value']}',rice=rice-'{$auction['amount']}' where no='{$auction['no1']}'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
- $query = "update general set gold=gold-'{$auction['value']}',rice=rice+'{$auction['amount']}' where no='$auction[no2]'";
+ $query = "update general set gold=gold-'{$auction['value']}',rice=rice+'{$auction['amount']}' where no='{$auction['no2']}'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
}
pushGenLog($trader, $traderLog);
@@ -300,26 +300,26 @@ function processAuction($connect) {
$gold = round($auction['value'] * 0.01);
$bidder['gold'] -= $gold;
if($bidder['gold'] < 0) $bidder['gold'] = 0;
- $query = "update general set gold='{$bidder['gold']}' where no='$auction[no2]'";
+ $query = "update general set gold='{$bidder['gold']}' where no='{$auction['no2']}'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$traderLog[0] = "◆>입찰자의 군량 부족으로 {$auction['no']}번 거래 유찰>!";
$bidderLog[0] = "◆>입찰자의 군량 부족으로 {$auction['no']}번 거래 유찰>! 벌금 {$gold}>";
- $auctionLog[0] = "◆>{$admin['year']}년 {$admin['month']}월, {$auction['no']}번 구매> 유찰> : {$auction[name1]}>(이)가 쌀 {$auction['amount']}>(을)를 구매, {$auction[name2]}>(이)가 금 {$auction['value']}>(으)로 입찰, 그러나 입찰자 군량부족, 벌금 {$gold}>";
+ $auctionLog[0] = "◆>{$admin['year']}년 {$admin['month']}월, {$auction['no']}번 구매> 유찰> : {$auction['name1']}>(이)가 쌀 {$auction['amount']}>(을)를 구매, {$auction['name2']}>(이)가 금 {$auction['value']}>(으)로 입찰, 그러나 입찰자 군량부족, 벌금 {$gold}>";
} elseif($auction['value'] > $trader['gold'] - 1000) {
$gold = round($auction['value'] * 0.01);
$trader['gold'] -= $gold;
if($trader['gold'] < 0) $trader['gold'] = 0;
- $query = "update general set gold='{$trader['gold']}' where no='$auction[no1]'";
+ $query = "update general set gold='{$trader['gold']}' where no='{$auction['no1']}'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$traderLog[0] = "◆>구매자의 자금 부족으로 {$auction['no']}번 거래 유찰>! 벌금 {$gold}>";
$bidderLog[0] = "◆>구매자의 자금 부족으로 {$auction['no']}번 거래 유찰>!";
- $auctionLog[0] = "◆>{$admin['year']}년 {$admin['month']}월, {$auction['no']}번 구매> 유찰> : {$auction[name1]}>(이)가 쌀 {$auction['amount']}>(을)를 구매, {$auction[name2]}>(이)가 금 {$auction['value']}>(으)로 입찰, 그러나 구매자 자금부족, 벌금 {$gold}>";
+ $auctionLog[0] = "◆>{$admin['year']}년 {$admin['month']}월, {$auction['no']}번 구매> 유찰> : {$auction['name1']}>(이)가 쌀 {$auction['amount']}>(을)를 구매, {$auction['name2']}>(이)가 금 {$auction['value']}>(으)로 입찰, 그러나 구매자 자금부족, 벌금 {$gold}>";
} else {
$traderLog[0] = "◆>{$auction['no']}번 거래 성사>로 금 {$auction['value']}>(을)를 지불, 쌀 {$auction['amount']}>(을)를 구입!";
$bidderLog[0] = "◆>{$auction['no']}번 거래 성사>로 쌀 {$auction['amount']}>(을)를 판매, 금 {$auction['value']}>(을)를 획득!";
- $auctionLog[0] = "◆>{$admin['year']}년 {$admin['month']}월, {$auction['no']}번 구매> 성사> : {$auction[name1]}>(이)가 쌀 {$auction['amount']}>(을)를 구매, {$auction[name2]}>(이)가 금 {$auction['value']}>(으)로 판매";
+ $auctionLog[0] = "◆>{$admin['year']}년 {$admin['month']}월, {$auction['no']}번 구매> 성사> :