general table의 no_member를 의미에 더 맞도록 owner로 변경.
general table의 user_id, password column 삭제. 코드도 이를 참조하지 않고 owner를 이용하도록 변경
This commit is contained in:
+3
-5
@@ -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);
|
||||
|
||||
@@ -68,7 +68,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 = getRandTurn($turnterm);
|
||||
$personal = CharCall($personal);
|
||||
$special = SpecCall($special);
|
||||
@@ -91,18 +90,17 @@ function RegGeneral3($connect,$turnterm,$gencount,$nation,$level,$name,$leader,$
|
||||
$dex20 = rand() % 18000;
|
||||
$dex30 = rand() % 18000;
|
||||
$dex40 = rand() % 18000;
|
||||
$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','1000','1000','$crew','$crewtype','100','100','0',
|
||||
'0','0','0','$turntime','$killturn','$age','1',
|
||||
|
||||
Reference in New Issue
Block a user