id, pw 삭제중(진행중)
This commit is contained in:
+2
-4
@@ -203,7 +203,6 @@ echo "<script>location.replace('./');</script>";
|
|||||||
|
|
||||||
function RegGeneral3($connect,$turnterm,$gencount,$nation,$level,$name,$leader,$power,$intel,$personal,$special,$msg="") {
|
function RegGeneral3($connect,$turnterm,$gencount,$nation,$level,$name,$leader,$power,$intel,$personal,$special,$msg="") {
|
||||||
$name = "ⓞ".$name;
|
$name = "ⓞ".$name;
|
||||||
$genid = "npc{$gencount}";
|
|
||||||
$turntime = getRandTurn2($turnterm);
|
$turntime = getRandTurn2($turnterm);
|
||||||
$personal = CharCall($personal);
|
$personal = CharCall($personal);
|
||||||
$special = SpecCall($special);
|
$special = SpecCall($special);
|
||||||
@@ -221,18 +220,17 @@ function RegGeneral3($connect,$turnterm,$gencount,$nation,$level,$name,$leader,$
|
|||||||
$picture = 'default.jpg';
|
$picture = 'default.jpg';
|
||||||
$crew = $leader * 100;
|
$crew = $leader * 100;
|
||||||
$crewtype = rand() % 3;
|
$crewtype = rand() % 3;
|
||||||
$pw = md5("18071807");
|
|
||||||
//장수
|
//장수
|
||||||
@MYDB_query("
|
@MYDB_query("
|
||||||
insert into general (
|
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,
|
leader,power,intel,experience,dedication,
|
||||||
level,gold,rice,crew,crewtype,train,atmos,tnmt,
|
level,gold,rice,crew,crewtype,train,atmos,tnmt,
|
||||||
weap,book,horse,turntime,killturn,age,belong,personal,special,specage,special2,specage2,npcmsg,
|
weap,book,horse,turntime,killturn,age,belong,personal,special,specage,special2,specage2,npcmsg,
|
||||||
makelimit,
|
makelimit,
|
||||||
dex0, dex10, dex20, dex30, dex40
|
dex0, dex10, dex20, dex30, dex40
|
||||||
) values (
|
) values (
|
||||||
'$gencount','$npc','$npc','$npcmatch','$genid','$pw','$name','$picture','$nation','$city',
|
'$gencount','$npc','$npc','$npcmatch','$name','$picture','$nation','$city',
|
||||||
'$leader','$power','$intel','$experience','$dedication',
|
'$leader','$power','$intel','$experience','$dedication',
|
||||||
'$level','99999','99999','$crew','$crewtype','100','100','0',
|
'$level','99999','99999','$crew','$crewtype','100','100','0',
|
||||||
'6','6','6','$turntime','$killturn','$age','1',
|
'6','6','6','$turntime','$killturn','$age','1',
|
||||||
|
|||||||
+3
-5
@@ -18,7 +18,6 @@ function RegGeneral($connect,$init,$life,$fiction,$turnterm,$startyear,$year,$ge
|
|||||||
if($init != 0 && $startyear > $bornyear+14 && $startyear <= $deadyear) {
|
if($init != 0 && $startyear > $bornyear+14 && $startyear <= $deadyear) {
|
||||||
if($deadyear <= $startyear+3) $deadyear += 5;
|
if($deadyear <= $startyear+3) $deadyear += 5;
|
||||||
|
|
||||||
$genid = "gen{$gencount}";
|
|
||||||
$turntime = getRandTurn($turnterm);
|
$turntime = getRandTurn($turnterm);
|
||||||
if($personal != "-") { $personal = CharCall($personal); }
|
if($personal != "-") { $personal = CharCall($personal); }
|
||||||
else { $personal = rand() % 10; }
|
else { $personal = rand() % 10; }
|
||||||
@@ -37,17 +36,16 @@ function RegGeneral($connect,$init,$life,$fiction,$turnterm,$startyear,$year,$ge
|
|||||||
$experience = $age * 100;
|
$experience = $age * 100;
|
||||||
$dedication = $age * 100;
|
$dedication = $age * 100;
|
||||||
if($nation != 0 && $level == 0) $level = 1;
|
if($nation != 0 && $level == 0) $level = 1;
|
||||||
$pw = md5("18071807");
|
|
||||||
|
|
||||||
//장수
|
//장수
|
||||||
@MYDB_query("
|
@MYDB_query("
|
||||||
insert into general (
|
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,
|
experience,dedication,level,gold,rice,crew,crewtype,train,atmos,
|
||||||
weap,book,horse,turntime,killturn,age,belong,personal,special,specage,special2,specage2,npcmsg,
|
weap,book,horse,turntime,killturn,age,belong,personal,special,specage,special2,specage2,npcmsg,
|
||||||
makelimit,bornyear,deadyear
|
makelimit,bornyear,deadyear
|
||||||
) values (
|
) values (
|
||||||
'$gencount','$npc','$npc','$npcmatch','$genid','$pw','$name','$picture','$nation',
|
'$gencount','$npc','$npc','$npcmatch','$name','$picture','$nation',
|
||||||
'$city','$leader','$power','$intel','$experience','$dedication',
|
'$city','$leader','$power','$intel','$experience','$dedication',
|
||||||
'$level','1000','1000','0','0','0','0',
|
'$level','1000','1000','0','0','0','0',
|
||||||
'0','0','0','$turntime','$killturn','$age','1',
|
'0','0','0','$turntime','$killturn','$age','1',
|
||||||
|
|||||||
+4
-5
@@ -47,18 +47,17 @@ $turntime = date('Y-m-d H:i:s');
|
|||||||
$lastconnect = $turntime;
|
$lastconnect = $turntime;
|
||||||
$turntime = addTurn($turntime, $turnterm);
|
$turntime = addTurn($turntime, $turnterm);
|
||||||
$turntime = cutTurn($turntime, $turnterm);
|
$turntime = cutTurn($turntime, $turnterm);
|
||||||
$pw = md5('18071807');
|
|
||||||
|
|
||||||
$picture = 'pic_1.jpg';
|
$picture = 'pic_1.jpg';
|
||||||
if($img < 1) { $picture = 'default.jpg'; };
|
if($img < 1) { $picture = 'default.jpg'; };
|
||||||
|
|
||||||
@MYDB_query("
|
@MYDB_query("
|
||||||
insert into general (
|
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,
|
leader, power, intel, experience, dedication, gold, rice, crew, train, atmos,
|
||||||
weap, book, level, turntime, killturn, lastconnect, userlevel
|
weap, book, level, turntime, killturn, lastconnect, userlevel
|
||||||
) values (
|
) 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',
|
'50', '50', '50', '0', '0', '10000', '10000', '0', '0', '0',
|
||||||
'0', '0', '0', '$turntime', '80', '$lastconnect', '6'
|
'0', '0', '0', '$turntime', '80', '$lastconnect', '6'
|
||||||
)",
|
)",
|
||||||
@@ -71,11 +70,11 @@ if($img < 1) { $picture = 'default.jpg'; };
|
|||||||
//부운영자는 비밀번호를 지정하지 않아 로그인할수 없도록 처리한다.
|
//부운영자는 비밀번호를 지정하지 않아 로그인할수 없도록 처리한다.
|
||||||
@MYDB_query("
|
@MYDB_query("
|
||||||
insert into general (
|
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,
|
leader, power, intel, experience, dedication, gold, rice, crew, train, atmos,
|
||||||
weap, book, level, turntime, killturn, lastconnect, userlevel
|
weap, book, level, turntime, killturn, lastconnect, userlevel
|
||||||
) values (
|
) 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',
|
'50', '50', '50', '0', '0', '10000', '10000', '0', '0', '0',
|
||||||
'0', '0', '0', '$turntime', '80', '$lastconnect', '5'
|
'0', '0', '0', '$turntime', '80', '$lastconnect', '5'
|
||||||
)",
|
)",
|
||||||
|
|||||||
@@ -1,57 +0,0 @@
|
|||||||
<?php
|
|
||||||
include "lib.php";
|
|
||||||
include "func.php";
|
|
||||||
|
|
||||||
$id = $_POST['id'];
|
|
||||||
$pw = $_POST['pw'];
|
|
||||||
$type = $_POST['type'];
|
|
||||||
|
|
||||||
$pwTemp = substr($pw, 0, 32);
|
|
||||||
|
|
||||||
$connect = dbConn("sammo");
|
|
||||||
|
|
||||||
//회원 테이블에서 정보확인
|
|
||||||
$query = "select no,id,picture,imgsvr,grade from MEMBER where id='$id' and pw='$pwTemp'";
|
|
||||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
|
||||||
$member = MYDB_fetch_array($result);
|
|
||||||
|
|
||||||
$connect = dbConn();
|
|
||||||
|
|
||||||
if(!$member) {
|
|
||||||
$response['result'] = "error";
|
|
||||||
echo json_encode($response);
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if($type == "rand") {
|
|
||||||
$response['result'] = "rand";
|
|
||||||
|
|
||||||
$abil = abilityRand();
|
|
||||||
} elseif($type == "leadpow") {
|
|
||||||
$response['result'] = "leadpow";
|
|
||||||
|
|
||||||
$abil = abilityLeadpow();
|
|
||||||
} elseif($type == "leadint") {
|
|
||||||
$response['result'] = "leadint";
|
|
||||||
|
|
||||||
$abil = abilityLeadint();
|
|
||||||
} elseif($type == "powint") {
|
|
||||||
$response['result'] = "powint";
|
|
||||||
|
|
||||||
$abil = abilityPowint();
|
|
||||||
} else {
|
|
||||||
$response['result'] = "error";
|
|
||||||
echo json_encode($response);
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
$query = "update token set leader={$abil['leader']},power={$abil['power']},intel={$abil['intel']} where id='{$id}'";
|
|
||||||
MYDB_query($query, $connect) or Error("join_post ".MYDB_error($connect),"");
|
|
||||||
|
|
||||||
$response['leader'] = $abil['leader'];
|
|
||||||
$response['power'] = $abil['power'];
|
|
||||||
$response['intel'] = $abil['intel'];
|
|
||||||
|
|
||||||
usleep(100*1000);
|
|
||||||
echo json_encode($response);
|
|
||||||
|
|
||||||
@@ -2,11 +2,6 @@
|
|||||||
include "lib.php";
|
include "lib.php";
|
||||||
include "func.php";
|
include "func.php";
|
||||||
|
|
||||||
$id = $_POST['id'];
|
|
||||||
$pw = $_POST['pw'];
|
|
||||||
|
|
||||||
$pwTemp = substr($pw, 0, 32);
|
|
||||||
|
|
||||||
$connect = dbConn("sammo");
|
$connect = dbConn("sammo");
|
||||||
|
|
||||||
//회원 테이블에서 정보확인
|
//회원 테이블에서 정보확인
|
||||||
@@ -81,8 +76,6 @@ for($i=0; $i < $nationcount; $i++) {
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
<form name=form1 method=post action=select_npc_post.php>
|
<form name=form1 method=post action=select_npc_post.php>
|
||||||
<input type=hidden name=id value='<?=$id;?>'>
|
|
||||||
<input type=hidden name=pw value='<?=$pw;?>'>
|
|
||||||
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0>
|
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan=2 align=center id=bg1>장수 선택</td>
|
<td colspan=2 align=center id=bg1>장수 선택</td>
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
include "lib.php";
|
include "lib.php";
|
||||||
include "func.php";
|
include "func.php";
|
||||||
|
|
||||||
|
//TODO: 이게 뭔지 분석
|
||||||
|
|
||||||
$id = $_POST['id'];
|
$id = $_POST['id'];
|
||||||
$pw = $_POST['pw'];
|
$pw = $_POST['pw'];
|
||||||
$btn = $_POST['btn'];
|
$btn = $_POST['btn'];
|
||||||
|
|||||||
Reference in New Issue
Block a user