From 47bdb068d5c7a973c243cc8051961ddb7563f0af Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 17 Feb 2018 23:47:38 +0900 Subject: [PATCH] =?UTF-8?q?npc=5Flogin=20=EC=9A=B0=ED=9A=8C=20=EA=B8=B0?= =?UTF-8?q?=EB=8A=A5=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- twe/npc_login.php | 46 ----------------------- twe/npc_login_process.php | 77 --------------------------------------- 2 files changed, 123 deletions(-) delete mode 100644 twe/npc_login.php delete mode 100644 twe/npc_login_process.php diff --git a/twe/npc_login.php b/twe/npc_login.php deleted file mode 100644 index 72e5bddc..00000000 --- a/twe/npc_login.php +++ /dev/null @@ -1,46 +0,0 @@ - - - -NPC로그인 - - - - - - - - - - -
삼국지 모의전투 PHP (유기체서버)
-
- - - - - - - - - - - - - - - - -
ID
비밀번호
-
-
-
- - - diff --git a/twe/npc_login_process.php b/twe/npc_login_process.php deleted file mode 100644 index 91beffca..00000000 --- a/twe/npc_login_process.php +++ /dev/null @@ -1,77 +0,0 @@ -location.replace('index.php');"; - echo 'index.php';//TODO:debug all and replace -} elseif(!$me) { - MessageBox("아이디나 암호가 올바르지 않습니다!!!"); - //echo ""; - echo 'index.php';//TODO:debug all and replace -} else { - switch($me['block']) { - case 1: - MessageBox("비매너 발언으로 인해, 발언권이 제한됩니다."); break; - case 2: - MessageBox("현재 블럭된 계정입니다. 턴 실행이 제한됩니다."); - MessageBox("절대 1계정만 사용하십시오! {$me['killturn']}시간 후 재등록 가능합니다."); break; - case 3: - MessageBox("현재 블럭된 계정입니다. 발언권과 턴 실행이 제한됩니다."); - MessageBox("절대 1계정만 사용하십시오! {$me['killturn']}시간 후 재등록 가능합니다."); break; - } - - $_SESSION['p_id'] = $id; - $_SESSION['p_ip'] = getenv("REMOTE_ADDR"); - $_SESSION['p_time'] = time(); - - $date = date('Y-m-d H:i:s'); - - $query="update general set logcnt=logcnt+1,ip='{$_SESSION['p_ip']}',lastconnect='$date',conmsg='$conmsg' where owner='{$_SESSION['noMember']}'"; - MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); - - //echo ""; - echo './';//TODO:debug all and replace - - $date2 = substr($date, 0, 10); - $fp = fopen("logs/_{$date2}-login.txt", "a"); - $msg = _String::Fill2($date,20," ")._String::Fill2($id,13," ")._String::Fill2($me['name'],13," ")._String::Fill2($_SESSION['p_ip'],16," "); - fwrite($fp, $msg."\n"); - fclose($fp); -} - -function DeleteSession() { - $session_path = "data/session"; // 세션이저장된 디렉토리 - if(!$dir=@opendir($session_path)) echo "디렉토리를 열지못했습니다."; - - while($file=@readdir($dir)) { - if(!strstr($file,'sess_')) continue; - if(strpos($file,'sess_')!=0) continue; - if (!$atime=@fileatime("$session_path/$file")) continue; - if (time() > $atime + 86400) { // 10대시 지난시간을 초로 계산해서 적어주시면 됩니다. - // $return = (@unlink("$session_path/$file")); - @unlink("$session_path/$file"); - } - } - closedir($dir); -} - -MYDB_close($connect);