From 8866a05c01dbeb6401303e092c6e2ca70badc2d0 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 3 Feb 2018 06:10:04 +0900 Subject: [PATCH] =?UTF-8?q?id,=20pw=20=EC=82=AD=EC=A0=9C=EC=A4=91(?= =?UTF-8?q?=EC=A7=84=ED=96=89=EC=A4=91)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- twe/event_1.php | 6 ++--- twe/func_npc.php | 8 +++---- twe/install2_ok.php | 9 ++++--- twe/join_token.php | 57 --------------------------------------------- twe/select_npc.php | 7 ------ twe/selection.php | 2 ++ 6 files changed, 11 insertions(+), 78 deletions(-) delete mode 100644 twe/join_token.php diff --git a/twe/event_1.php b/twe/event_1.php index 30cee6fd..17c7ac10 100644 --- a/twe/event_1.php +++ b/twe/event_1.php @@ -203,7 +203,6 @@ echo ""; 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); @@ -221,18 +220,17 @@ function RegGeneral3($connect,$turnterm,$gencount,$nation,$level,$name,$leader,$ $picture = 'default.jpg'; $crew = $leader * 100; $crewtype = rand() % 3; - $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', '6','6','6','$turntime','$killturn','$age','1', diff --git a/twe/func_npc.php b/twe/func_npc.php index 362803f6..965d40d7 100644 --- a/twe/func_npc.php +++ b/twe/func_npc.php @@ -18,7 +18,6 @@ function RegGeneral($connect,$init,$life,$fiction,$turnterm,$startyear,$year,$ge if($init != 0 && $startyear > $bornyear+14 && $startyear <= $deadyear) { if($deadyear <= $startyear+3) $deadyear += 5; - $genid = "gen{$gencount}"; $turntime = getRandTurn($turnterm); if($personal != "-") { $personal = CharCall($personal); } else { $personal = rand() % 10; } @@ -37,17 +36,16 @@ function RegGeneral($connect,$init,$life,$fiction,$turnterm,$startyear,$year,$ge $experience = $age * 100; $dedication = $age * 100; if($nation != 0 && $level == 0) $level = 1; - $pw = md5("18071807"); - + //장수 @MYDB_query(" insert into general ( - npcid,npc,npc_org,npcmatch,user_id,password,name,picture,nation,city,leader,power,intel, + npcid,npc,npc_org,npcmatch,name,picture,nation,city,leader,power,intel, experience,dedication,level,gold,rice,crew,crewtype,train,atmos, weap,book,horse,turntime,killturn,age,belong,personal,special,specage,special2,specage2,npcmsg, makelimit,bornyear,deadyear ) values ( - '$gencount','$npc','$npc','$npcmatch','$genid','$pw','$name','$picture','$nation', + '$gencount','$npc','$npc','$npcmatch','$name','$picture','$nation', '$city','$leader','$power','$intel','$experience','$dedication', '$level','1000','1000','0','0','0','0', '0','0','0','$turntime','$killturn','$age','1', diff --git a/twe/install2_ok.php b/twe/install2_ok.php index 9731b9a4..38ee8f50 100644 --- a/twe/install2_ok.php +++ b/twe/install2_ok.php @@ -47,18 +47,17 @@ $turntime = date('Y-m-d H:i:s'); $lastconnect = $turntime; $turntime = addTurn($turntime, $turnterm); $turntime = cutTurn($turntime, $turnterm); -$pw = md5('18071807'); $picture = 'pic_1.jpg'; if($img < 1) { $picture = 'default.jpg'; }; @MYDB_query(" insert into general ( - user_id, password, connect, name, picture, nation, city, troop, makelimit, + no_member, connect, name, picture, nation, city, troop, makelimit, leader, power, intel, experience, dedication, gold, rice, crew, train, atmos, weap, book, level, turntime, killturn, lastconnect, userlevel ) values ( - 'admin', '$pw', '0', '운영자', '$picture', '0', '3', '0', '0', + '1', '0', '운영자', '$picture', '0', '3', '0', '0', '50', '50', '50', '0', '0', '10000', '10000', '0', '0', '0', '0', '0', '0', '$turntime', '80', '$lastconnect', '6' )", @@ -71,11 +70,11 @@ if($img < 1) { $picture = 'default.jpg'; }; //부운영자는 비밀번호를 지정하지 않아 로그인할수 없도록 처리한다. @MYDB_query(" insert into general ( - user_id, password, connect, name, picture, nation, city, troop, makelimit, + no_member, connect, name, picture, nation, city, troop, makelimit, leader, power, intel, experience, dedication, gold, rice, crew, train, atmos, weap, book, level, turntime, killturn, lastconnect, userlevel ) values ( - 'viceadmin', 'a', '0', '부운영자', '$picture', '0', '3', '0', '0', + '2', '0', '부운영자', '$picture', '0', '3', '0', '0', '50', '50', '50', '0', '0', '10000', '10000', '0', '0', '0', '0', '0', '0', '$turntime', '80', '$lastconnect', '5' )", diff --git a/twe/join_token.php b/twe/join_token.php deleted file mode 100644 index b9a2923c..00000000 --- a/twe/join_token.php +++ /dev/null @@ -1,57 +0,0 @@ -
- - diff --git a/twe/selection.php b/twe/selection.php index 3d9c67e2..f4c67baf 100644 --- a/twe/selection.php +++ b/twe/selection.php @@ -2,6 +2,8 @@ include "lib.php"; include "func.php"; +//TODO: 이게 뭔지 분석 + $id = $_POST['id']; $pw = $_POST['pw']; $btn = $_POST['btn'];
장수 선택