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
+3 -5
View File
@@ -9,7 +9,7 @@ include "func.php";
CheckLogin();
$connect = dbConn();
$query = "select userlevel from general where no_member='{$_SESSION['noMember']}'";
$query = "select userlevel from general where owner='{$_SESSION['noMember']}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -207,7 +207,6 @@ echo "<script>location.replace('./');</script>";
function RegGeneral3($connect,$turnterm,$gencount,$nation,$level,$name,$leader,$power,$intel,$personal,$special,$msg="") {
$name = "".$name;
$genid = "npc{$gencount}";
$turntime = getRandTurn2($turnterm);
$personal = CharCall($personal);
$special = SpecCall($special);
@@ -230,18 +229,17 @@ function RegGeneral3($connect,$turnterm,$gencount,$nation,$level,$name,$leader,$
$dex20 = 0;
$dex30 = 0;
$dex40 = 0;
$pw = md5("18071807");
//장수
@MYDB_query("
insert into general (
npcid,npc,npc_org,npcmatch,user_id,password,name,picture,nation,city,
npcid,npc,npc_org,npcmatch,name,picture,nation,city,
leader,power,intel,experience,dedication,
level,gold,rice,crew,crewtype,train,atmos,tnmt,
weap,book,horse,turntime,killturn,age,belong,personal,special,specage,special2,specage2,npcmsg,
makelimit,
dex0, dex10, dex20, dex30, dex40
) values (
'$gencount','$npc','$npc','$npcmatch','$genid','$pw','$name','$picture','$nation','$city',
'$gencount','$npc','$npc','$npcmatch','$name','$picture','$nation','$city',
'$leader','$power','$intel','$experience','$dedication',
'$level','99999','99999','$crew','$crewtype','100','100','0',
'0','0','0','$turntime','$killturn','$age','1',