include "lib.php";
include "func.php";
$id = $_POST[id];
$pw = $_POST[pw];
$pwTemp = substr($pw, 0, 32);
$connect = dbConn("sammo");
//회원 테이블에서 정보확인
$query = "select no,name,picture,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);
if(!$member) {
MessageBox("잘못된 접근입니다!!!");
echo "";
exit(1);
}
$connect = dbConn();
?>
NPC선택
require('analytics.php'); ?>
$query = "select npcmode,maxgeneral,img from game where no='1'";
$result = MYDB_query($query, $connect) or Error("join ".MYDB_error($connect),"");
$admin = MYDB_fetch_array($result);
if($admin[npcmode] != 1) {
echo "";
echo "";
exit();
}
$query = "select no from general where npc<2";
$result = MYDB_query($query, $connect) or Error("join ".MYDB_error($connect),"");
$gencount = MYDB_num_rows($result);
if($gencount >= $admin[maxgeneral]) {
echo "";
echo "";
exit();
}
?>
| 임관 권유 메세지 |
$query = "select name,scoutmsg,color from nation";
$nationresult = MYDB_query($query, $connect) or Error("join ".MYDB_error($connect),"");
$nationcount = MYDB_num_rows($nationresult);
for($i=0; $i < $nationcount; $i++) {
$nation = MYDB_fetch_array($nationresult);
if($nation[scoutmsg] == "") {
echo "
| $nation[name] | - |
";
} else {
echo "
| $nation[name] | $nation[scoutmsg] |
";
}
}
?>
| backButton(); ?> |
| banner(); ?> |