- 이미 기능이 사라진 N생성 버튼 제거 - 기존의 DB까지 포함한 초기화를 '완전 리셋' - 제대로 동작하지 않던 폐쇄중 로그인 변경 - 리셋 프로세스에 권한을 제대로 검사하지 않는 문제 해결
41 lines
880 B
PHP
41 lines
880 B
PHP
<?
|
|
include "lib.php";
|
|
include "func.php";
|
|
|
|
$connect=dbConn();
|
|
|
|
$query = "select no,user_id,password,name from general where user_id='$_SESSION[p_id]'";
|
|
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
|
$me = MYDB_fetch_array($result);
|
|
|
|
$_SESSION[p_id] = "";
|
|
$_SESSION[p_name] = "";
|
|
$_SESSION[p_nation] = 0;
|
|
|
|
if(isset($_SEESION['ownUserLevel'])){
|
|
unset($_SESSION['ownUserLevel']);
|
|
}
|
|
|
|
$id = $me[user_id];
|
|
$pw = $me[password];
|
|
$conmsg = $me[conmsg];
|
|
|
|
//���Ǻ��� ����
|
|
session_destroy();
|
|
|
|
echo "<script>location.replace('start.php');</script>";
|
|
|
|
/*
|
|
<html>
|
|
a
|
|
<form name=form1 action=../login.php method=post>
|
|
<input type=hidden name=id value='<?=$id;?>'>
|
|
<input type=hidden name=pw value='<?=$pw;?>'>
|
|
<input type=hidden name=conmsg value='<?=$conmsg;?>'>
|
|
</form>
|
|
<script>form1.submit();</script>
|
|
</html>
|
|
*/
|
|
|
|
?>
|