general table의 no_member를 의미에 더 맞도록 owner로 변경.

general table의 user_id, password column 삭제. 코드도 이를 참조하지 않고 owner를 이용하도록 변경
This commit is contained in:
2018-02-04 04:40:35 +09:00
parent e42643d439
commit 5ed33b1cda
89 changed files with 421 additions and 391 deletions
+38 -38
View File
@@ -170,7 +170,7 @@ function ender($type=0) {
}
function command_99($connect, $turn) {
$query = "select nation,level from general where no_member='{$_SESSION['noMember']}'";
$query = "select nation,level from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -234,7 +234,7 @@ 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 no_member='{$_SESSION['noMember']}'";
$query = "select no,nation,level,personal,special2,level,city,crew,horse,injury,leader,crewtype,gold from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -667,7 +667,7 @@ 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 no_member='{$_SESSION['noMember']}'";
$query = "select no,nation,personal,special2,level,city,crew,horse,injury,leader,crewtype,gold from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("command_12 ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -1096,7 +1096,7 @@ function calc(cost, formnum) {
function command_15($connect, $turn, $command) {
starter("재편성");
$query = "select no,nation from general where no_member='{$_SESSION['noMember']}'";
$query = "select no,nation from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
$me = $general['no'];
@@ -1137,7 +1137,7 @@ function command_15($connect, $turn, $command) {
function command_16($connect, $turn, $command) {
starter("출병");
$query = "select city from general where no_member='{$_SESSION['noMember']}'";
$query = "select city from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
@@ -1176,7 +1176,7 @@ function command_16($connect, $turn, $command) {
function command_21($connect, $turn, $command) {
starter("이동");
$query = "select city from general where no_member='{$_SESSION['noMember']}'";
$query = "select city from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
@@ -1217,7 +1217,7 @@ function command_22($connect, $turn, $command) {
die('비활성화됨');//TODO:등용장 대 디자인
starter("등용");
$query = "select nation from general where no_member='{$_SESSION['noMember']}'";
$query = "select nation from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -1282,7 +1282,7 @@ function command_22($connect, $turn, $command) {
function command_23($connect, $turn, $command) {
starter("포상", 1);
$query = "select no,nation from general where no_member='{$_SESSION['noMember']}'";
$query = "select no,nation from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
@@ -1352,7 +1352,7 @@ function command_23($connect, $turn, $command) {
function command_24($connect, $turn, $command) {
starter("몰수", 1);
$query = "select no,nation from general where no_member='{$_SESSION['noMember']}'";
$query = "select no,nation from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
@@ -1430,7 +1430,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 no_member='{$_SESSION['noMember']}'";
$query = "select no,nations from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("command_27 ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -1500,7 +1500,7 @@ function command_25($connect, $turn, $command) {
function command_27($connect, $turn, $command) {
starter("발령", 1);
$query = "select no,nation,level from general where no_member='{$_SESSION['noMember']}'";
$query = "select no,nation,level from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("command_27 ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -1555,7 +1555,7 @@ function command_27($connect, $turn, $command) {
function command_30($connect, $turn, $command) {
starter("강행");
$query = "select city from general where no_member='{$_SESSION['noMember']}'";
$query = "select city from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
@@ -1596,7 +1596,7 @@ ender();
function command_31($connect, $turn, $command) {
starter("첩보");
$query = "select city from general where no_member='{$_SESSION['noMember']}'";
$query = "select city from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
@@ -1640,7 +1640,7 @@ function command_31($connect, $turn, $command) {
function command_32($connect, $turn, $command) {
starter("화계");
$query = "select city from general where no_member='{$_SESSION['noMember']}'";
$query = "select city from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
@@ -1679,7 +1679,7 @@ function command_32($connect, $turn, $command) {
function command_33($connect, $turn, $command) {
starter("탈취");
$query = "select city from general where no_member='{$_SESSION['noMember']}'";
$query = "select city from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
@@ -1718,7 +1718,7 @@ function command_33($connect, $turn, $command) {
function command_34($connect, $turn, $command) {
starter("파괴");
$query = "select city from general where no_member='{$_SESSION['noMember']}'";
$query = "select city from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
@@ -1757,7 +1757,7 @@ function command_34($connect, $turn, $command) {
function command_35($connect, $turn, $command) {
starter("선동");
$query = "select city from general where no_member='{$_SESSION['noMember']}'";
$query = "select city from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
@@ -1796,7 +1796,7 @@ function command_35($connect, $turn, $command) {
function command_36($connect, $turn, $command) {
starter("기습");
$query = "select city from general where no_member='{$_SESSION['noMember']}'";
$query = "select city from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
@@ -1835,7 +1835,7 @@ function command_36($connect, $turn, $command) {
function command_43($connect, $turn, $command) {
starter("증여");
$query = "select no,nation from general where no_member='{$_SESSION['noMember']}'";
$query = "select no,nation from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
@@ -2048,7 +2048,7 @@ function command_46($connect, $turn, $command) {
function command_48($connect, $turn, $command) {
starter("장비 매매");
$query = "select no,city,gold from general where no_member='{$_SESSION['noMember']}'";
$query = "select no,city,gold from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("command_48 ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
$city = getCity($connect, $me['city'], "secu");
@@ -2158,7 +2158,7 @@ function command_49($connect, $turn, $command) {
function command_51($connect, $turn, $command) {
starter("항복 권고", 1);
$query = "select nation from general where no_member='{$_SESSION['noMember']}'";
$query = "select nation from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -2209,7 +2209,7 @@ function command_51($connect, $turn, $command) {
function command_52($connect, $turn, $command) {
starter("원조", 1);
$query = "select nation from general where no_member='{$_SESSION['noMember']}'";
$query = "select nation from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -2290,7 +2290,7 @@ function command_52($connect, $turn, $command) {
function command_53($connect, $turn, $command) {
starter("통합제의", 1);
$query = "select no,nation from general where no_member='{$_SESSION['noMember']}'";
$query = "select no,nation from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("command_53 ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -2354,7 +2354,7 @@ function command_53($connect, $turn, $command) {
function command_54($connect, $turn, $command) {
starter("선양");
$query = "select no,nation from general where no_member='{$_SESSION['noMember']}'";
$query = "select no,nation from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
@@ -2398,7 +2398,7 @@ function command_54($connect, $turn, $command) {
function command_61($connect, $turn, $command) {
starter("불가침", 1);
$query = "select nation from general where no_member='{$_SESSION['noMember']}'";
$query = "select nation from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -2479,7 +2479,7 @@ function command_61($connect, $turn, $command) {
function command_62($connect, $turn, $command) {
starter("선전포고", 1);
$query = "select nation from general where no_member='{$_SESSION['noMember']}'";
$query = "select nation from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -2544,7 +2544,7 @@ function command_62($connect, $turn, $command) {
function command_63($connect, $turn, $command) {
starter("종전", 1);
$query = "select nation from general where no_member='{$_SESSION['noMember']}'";
$query = "select nation from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -2600,7 +2600,7 @@ function command_63($connect, $turn, $command) {
function command_64($connect, $turn, $command) {
starter("파기", 1);
$query = "select nation from general where no_member='{$_SESSION['noMember']}'";
$query = "select nation from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -2655,7 +2655,7 @@ function command_64($connect, $turn, $command) {
function command_65($connect, $turn, $command) {
starter("초토화", 1);
$query = "select city from general where no_member='{$_SESSION['noMember']}'";
$query = "select city from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
@@ -2691,7 +2691,7 @@ echo "<br>
function command_66($connect, $turn, $command) {
starter("천도", 1);
$query = "select city from general where no_member='{$_SESSION['noMember']}'";
$query = "select city from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
@@ -2728,7 +2728,7 @@ echo "<br>
function command_67($connect, $turn, $command) {
starter("증축", 1);
$query = "select city from general where no_member='{$_SESSION['noMember']}'";
$query = "select city from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
@@ -2765,7 +2765,7 @@ echo "<br>
function command_68($connect, $turn, $command) {
starter("감축", 1);
$query = "select city from general where no_member='{$_SESSION['noMember']}'";
$query = "select city from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
@@ -2802,7 +2802,7 @@ echo "<br>
function command_72($connect, $turn, $command) {
starter("백성동원", 1);
$query = "select city from general where no_member='{$_SESSION['noMember']}'";
$query = "select city from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
@@ -2839,7 +2839,7 @@ echo "<br>
function command_73($connect, $turn, $command) {
starter("수몰", 1);
$query = "select city from general where no_member='{$_SESSION['noMember']}'";
$query = "select city from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
@@ -2876,7 +2876,7 @@ echo "<br>
function command_74($connect, $turn, $command) {
starter("허보", 1);
$query = "select city from general where no_member='{$_SESSION['noMember']}'";
$query = "select city from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
@@ -2914,7 +2914,7 @@ echo "<br>
function command_75($connect, $turn, $command) {
starter("피장파장", 1);
$query = "select nation from general where no_member='{$_SESSION['noMember']}'";
$query = "select nation from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -2971,7 +2971,7 @@ function command_75($connect, $turn, $command) {
function command_77($connect, $turn, $command) {
starter("이호경식", 1);
$query = "select nation from general where no_member='{$_SESSION['noMember']}'";
$query = "select nation from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -3028,7 +3028,7 @@ function command_77($connect, $turn, $command) {
function command_78($connect, $turn, $command) {
starter("급습", 1);
$query = "select nation from general where no_member='{$_SESSION['noMember']}'";
$query = "select nation from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$me = MYDB_fetch_array($result);