diff --git a/i_entrance/memberAdmin.css b/css/admin_member.css similarity index 97% rename from i_entrance/memberAdmin.css rename to css/admin_member.css index 2062eed4..e37f3698 100644 --- a/i_entrance/memberAdmin.css +++ b/css/admin_member.css @@ -1,5 +1,12 @@ @charset "utf-8"; +#btn_back1{ + position:absolute; + right: 6px; + margin:6px; + height:40px; +} + #user_list_frame{ min-width:920px; } diff --git a/i_entrance/adminStyle.css b/css/admin_server.css similarity index 100% rename from i_entrance/adminStyle.css rename to css/admin_server.css diff --git a/i_entrance/Style.css b/css/entrance.css similarity index 100% rename from i_entrance/Style.css rename to css/entrance.css diff --git a/i_entrance/user_info.css b/css/user_info.css similarity index 100% rename from i_entrance/user_info.css rename to css/user_info.css diff --git a/f_retrival/_common.php b/f_retrival/_common.php deleted file mode 100644 index d30e09aa..00000000 --- a/f_retrival/_common.php +++ /dev/null @@ -1,9 +0,0 @@ - - + - +
- 회원 관리 + +

회원 관리

+
가입 허용  @@ -61,7 +63,7 @@ if($userGrade < 6){
- +
diff --git a/i_entrance/entrance.php b/i_entrance/entrance.php index 179a8cf3..0053b5e3 100644 --- a/i_entrance/entrance.php +++ b/i_entrance/entrance.php @@ -22,21 +22,18 @@ $userGrade = $session->userGrade; - - + + - - - -= 6): ?> += 5): ?> - - + + @@ -45,7 +42,7 @@ $userGrade = $session->userGrade;
= 6){ +if($userGrade >= 5){ echo $templates->render('global_panel',['notice'=>$notice]); } ?> @@ -97,9 +94,8 @@ if($userGrade >= 6){
= 6){ +if($userGrade >= 5){ echo $templates->render('server_panel',[]); - //include('adminInc.php'); } ?> diff --git a/i_entrance/member/Frame.php b/i_entrance/member/Frame.php deleted file mode 100644 index 4d0de407..00000000 --- a/i_entrance/member/Frame.php +++ /dev/null @@ -1,73 +0,0 @@ - - - - -
-
- 회 원 정 보 - (0/0) -
- -
-
- - - - - - -
-
- 선택: - - -
-
- 선택: - - - - - - - - - -
-
-
순번
-
ID
-
민번
-
닉네임
-
IP
-
블럭
-
최근블럭일
-
등록
-
최근등록일
-
등급
-
사진
-
SVR
-
탈퇴
-
-
-
-
diff --git a/i_entrance/member/Get.php b/i_entrance/member/Get.php deleted file mode 100644 index 4dd05c29..00000000 --- a/i_entrance/member/Get.php +++ /dev/null @@ -1,80 +0,0 @@ -userGrade; -if($userGrade < 6) { - Json::die([ - 'result'=>'FAIL', - 'msg'=>'운영자 권한이 없습니다.' - ]); -} - -$orderByStr = ''; -switch($select) { - case 0: $orderByStr = 'ORDER BY NO'; break; - case 1: $orderByStr = 'ORDER BY ID'; break; - case 2: $orderByStr = 'ORDER BY NAME'; break; - case 3: $orderByStr = 'ORDER BY PID'; break; - case 4: $orderByStr = 'ORDER BY IP'; break; - case 5: $orderByStr = 'ORDER BY GRADE DESC'; break; - case 6: $orderByStr = 'ORDER BY REG_NUM DESC'; break; - case 7: $orderByStr = 'ORDER BY REG_DATE DESC'; break; -} - -$response['lists'] = ''; -$response['members'] = ''; - -$members = $db->queryFirstRow('SELECT NO, ID, PID, NAME, IP, PICTURE, IMGSVR, GRADE, REG_NUM, REG_DATE, BLOCK_NUM, BLOCK_DATE, QUIT FROM MEMBER %l', $orderByStr); -$count = count($members); -foreach($members as $member){ - $member['PID'] = substr($member['PID'], 0, 8); - $member['PICTURE'] = substr($member['PICTURE'], -8); - - if($member['GRADE'] == 2) { $member['GRADE'] = "{$member['GRADE']}"; } - if($member['GRADE'] == 3) { $member['GRADE'] = "{$member['GRADE']}"; } - if($member['GRADE'] == 4) { $member['GRADE'] = "{$member['GRADE']}"; } - if($member['GRADE'] == 5) { $member['GRADE'] = "{$member['GRADE']}"; } - if($member['GRADE'] == 6) { $member['GRADE'] = "{$member['GRADE']}"; } - - $response['lists'] .= ""; - - $response['members'] .= " - - - - - - - - - - - - - - -"; -} -$response['members'] .= '
{$member['NO']}{$member['ID']}{$member['PID']}{$member['NAME']}{$member['IP']}{$member['BLOCK_NUM']}{$member['BLOCK_DATE']}{$member['REG_NUM']}{$member['REG_DATE']}{$member['GRADE']}{$member['PICTURE']}{$member['IMGSVR']}{$member['QUIT']}
'; - -$response['count'] = "(0000/{$count})"; - -$system = RootDB::db()->queryFirstRow('SELECT `REG`, `LOGIN` FROM `SYSTEM` WHERE `NO`=1'); - -$response['state'] = "가입: {$system['REG']}, 로그인: {$system['LOGIN']}"; - -$response['result'] = 'SUCCESS'; - -Json::die($response); - - diff --git a/i_entrance/member/_common.php b/i_entrance/member/_common.php deleted file mode 100644 index 98363885..00000000 --- a/i_entrance/member/_common.php +++ /dev/null @@ -1,9 +0,0 @@ -회 원 관 리
-
diff --git a/i_entrance/user_info.html b/i_entrance/user_info.html index aaf0d51c..325c713b 100644 --- a/i_entrance/user_info.html +++ b/i_entrance/user_info.html @@ -8,18 +8,14 @@ - - - + - - - +
diff --git a/i_popup/Action.js b/i_popup/Action.js deleted file mode 100644 index af1b97ad..00000000 --- a/i_popup/Action.js +++ /dev/null @@ -1,128 +0,0 @@ -var Popup_callback = function() {}; -var Popup_waitTimer; - -function Popup_Import() { -} - -function Popup_Init() { - $("#Popup_0102").click(Popup_AlertOK); - - $("#Popup_0202").click(Popup_ConfirmYes); - $("#Popup_0203").click(Popup_ConfirmNo); - - $("#Popup_0303").click(Popup_WaitHide); -} - -function Popup_Update() { -} - -function Popup_Alert(msg, callback) { - $("#Popup_0101").text(msg); - - Popup_callback = callback; - - Popup_AlertShow(); - - // 익스플로러 버그로 인해 딜레이 줌 - setTimeout(function() { $("#Popup_0102").focus(); }, 10); -} - -function Popup_AlertOK() { - if(Popup_callback) { - Popup_callback(); - Popup_callback = ""; - } - - Popup_AlertHide(); -} - -function Popup_AlertShow() { - $("#Popup_00").show(); - $("#Popup_01").show(); -} - -function Popup_AlertHide() { - $("#Popup_00").hide(); - $("#Popup_01").hide(); -} - -function Popup_Confirm(msg, callback) { - $("#Popup_0201").text(msg); - - Popup_callback = callback; - - Popup_ConfirmShow(); - - // 익스플로러 버그로 인해 딜레이 줌 - setTimeout(function() { $("#Popup_0203").focus(); }, 10); -} - -function Popup_ConfirmYes() { - Popup_ConfirmHide(); - - if(Popup_callback) { - Popup_callback(); - Popup_callback = ""; - } -} - -function Popup_ConfirmNo() { - Popup_callback = ""; - - Popup_ConfirmHide(); -} - -function Popup_ConfirmShow() { - $("#Popup_00").show(); - $("#Popup_02").show(); -} - -function Popup_ConfirmHide() { - $("#Popup_00").hide(); - $("#Popup_02").hide(); -} - -function Popup_Wait(callback) { - $("#Popup_0301").text("처리중입니다."); - Popup_waitTimer = setInterval(Popup_WaitInvalidate, 1000); - - $("#Popup_00").show(); - $("#Popup_03").show(); - - callback(); -} - -function Popup_WaitShow(msg, callback) { - clearTimeout(Popup_waitTimer); - - Popup_callback = callback; - - $("#Popup_0301").text(msg); - $("#Popup_0303").show(); - - // 익스플로러 버그로 인해 딜레이 줌 - setTimeout(function() { $("#Popup_0303").focus(); }, 10); -} - -function Popup_WaitHide() { - clearTimeout(Popup_waitTimer); - - if(Popup_callback) { - Popup_callback(); - Popup_callback = ""; - } - - $("#Popup_0303").hide(); - $("#Popup_00").hide(); - $("#Popup_03").hide(); -} - -function Popup_WaitInvalidate() { - var waitMsg = $("#Popup_0302").text(); - - if(waitMsg.length >= 5) { - waitMsg = ""; - } - - $("#Popup_0302").text(waitMsg+"."); -} diff --git a/i_popup/Frame.php b/i_popup/Frame.php deleted file mode 100644 index 621eb6ee..00000000 --- a/i_popup/Frame.php +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - diff --git a/i_popup/Style.css b/i_popup/Style.css deleted file mode 100644 index 6486f055..00000000 --- a/i_popup/Style.css +++ /dev/null @@ -1,98 +0,0 @@ -@charset "utf-8"; - -#Popup_00 { - width: 99%; height: 99%; - background-color: #000000; - position: absolute; top: 0px; left: 0px; - z-index: 10; - opacity: 0.5; filter: alpha(opacity:50); - display: none; -} - -#Popup_01 { - width: 302px; height: 142px; - position: absolute; top: 40%; left: 50%; - margin-left: -150px; margin-top: -70px; - z-index: 10; - display: none; -} - -#Popup_0100 { - width: 300px; height: 20px; - position: absolute; top: 0px; left: 0px; -} - -#Popup_0101 { - width: 290px; height: 110px; - position: absolute; top: 20px; left: 0px; - padding: 5px; - text-align: left; -} - -#Popup_0102 { - width: 200px; height: 30px; - position: absolute; top: 100px; left: 50px; -} - -#Popup_02 { - width: 302px; height: 142px; - position: absolute; top: 40%; left: 50%; - margin-left: -150px; margin-top: -70px; - z-index: 10; - display: none; -} - -#Popup_0200 { - width: 300px; height: 20px; - position: absolute; top: 0px; left: 0px; -} - -#Popup_0201 { - width: 290px; height: 110px; - position: absolute; top: 20px; left: 0px; - padding: 5px; - text-align: left; -} - -#Popup_0202 { - width: 100px; height: 30px; - position: absolute; top: 100px; left: 40px; -} - -#Popup_0203 { - width: 100px; height: 30px; - position: absolute; top: 100px; left: 160px; -} - -#Popup_03 { - width: 302px; height: 112px; - position: absolute; top: 40%; left: 50%; - margin-left: -150px; margin-top: -55px; - z-index: 10; - display: none; -} - -#Popup_0300 { - width: 300px; height: 20px; - position: absolute; top: 0px; left: 0px; -} - -#Popup_0301 { - width: 290px; height: 80px; - position: absolute; top: 20px; left: 0px; - padding: 5px; - text-align: center; -} - -#Popup_0302 { - width: 20px; height: 20px; - position: absolute; top: 50px; left: 140px; - border: none; - text-align: left; -} - -#Popup_0303 { - width: 200px; height: 30px; - position: absolute; top: 70px; left: 50px; - display: none; -} diff --git a/i_popup/_common.php b/i_popup/_common.php deleted file mode 100644 index 3b772d94..00000000 --- a/i_popup/_common.php +++ /dev/null @@ -1,10 +0,0 @@ -\ "; -function Entrance_Import() { -} - -function Entrance_Init() { +$(function(){ $("#btn_logout").click(Entrance_Logout); -} - -function Entrance_Update() { Entrance_UpdateServer(); -} +}); function Entrance_UpdateServer() { - Popup_Wait(function() { - PostJSON( - "../i_entrance/j_server_get_status.php", { - }, - function(response, textStatus) { - if(response.result == "SUCCESS") { - Entrance_drawServerList(response.server); - //Entrance_ServerList(response.serverCount, response.servers); - //Entrance_ServerListPosition(); - Popup_WaitHide(); - } else { - Popup_WaitShow("서버목록 로드 실패!"); - } - } - ) + $.ajax({ + type:'post', + url:"j_server_get_status.php", + dataType:'json', + }).then(function(response){ + if(response.result == "SUCCESS") { + Entrance_drawServerList(response.server); + } }); } @@ -85,8 +72,6 @@ function Entrance_drawServerList(serverInfos){ $.getJSON("../"+serverInfo.name+'/j_server_basic_info.php',{}, function(result){ - console.log(result); - console.log(result.game); if(!result.game){ return; } @@ -135,50 +120,16 @@ function Entrance_drawServerList(serverInfos){ }); } -function Entrance_ServerListPosition() { - var heightTitle = $("#Entrance_000000").height(); - var heightSub = $("#Entrance_000001").height(); - var heightList = $("#Entrance_000002").height(); - var heightComment = $("#Entrance_000003").height(); - var top = heightTitle+heightSub+heightList+5; - - $("#Entrance_000003").css("top", top+"px"); - top += heightComment; - $("#Entrance_0000").height(top+2); - top = 20 + top; - $("#Entrance_0001").css("top", top+"px"); - top = 20 + top + $("#Entrance_0001").height(); - $("#Entrance_0002").css("top", top+"px"); - top = 20 + top + $("#Entrance_0002").height(); - $("#Entrance_0003").css("top", top+"px"); -} - function Entrance_Logout() { - Popup_Wait(function() { - PostJSON( - "../i_entrance/j_logout.php", { - }, - function(response, textStatus) { - if(response.result) { - Popup_WaitHide(); - ReplaceFrame("../"); - } else { - Popup_WaitShow("로그아웃 실패!"); - } - } - ) + $.ajax({ + type:'post', + url:"j_logout.php", + dataType:'json', + }).then(function(response) { + if(response.result) { + location.href="../"; + } else { + alert('로그아웃 실패'); + } }); } - -$(function(){ - ImportView("body", "../i_popup/Frame.php"); - //ImportView("body", "Frame.php"); - - Popup_Import(); - Popup_Init(); - Popup_Update(); - - Entrance_Import(); - Entrance_Init(); - Entrance_Update(); -}); \ No newline at end of file diff --git a/i_entrance/user_info.js b/js/user_info.js similarity index 72% rename from i_entrance/user_info.js rename to js/user_info.js index 8a45d937..4281e4c9 100644 --- a/i_entrance/user_info.js +++ b/js/user_info.js @@ -229,80 +229,3 @@ $(function(){ } }); }) - - -function EntranceManage_Update() { - Popup_Wait(function() { - PostJSON( - "../../i_entrance/manage/Get.php", { - }, - function(response, textStatus) { - if(response.result == "SUCCESS") { - EntranceManage_UpdateInfo(response); - Popup_WaitHide(); - } else { - Popup_WaitShow("정보 로드 실패!"); - } - } - ) - }); -} - -function EntranceManage_ChangeIcon() { - if($("#EntranceManage_001601").val() == "") { - Popup_Alert("파일을 선택해 주세요!"); - } else { - Popup_Wait(function() { - $("#formIcon").submit(); - }); - } -} - -function EntranceManage_DeleteIcon() { - Popup_Confirm('정말 실행하시겠습니까?', function() { - Popup_Wait(function() { - PostJSON( - "../../i_entrance/manage/deletePost.php", { - }, - function(response, textStatus) { - Popup_WaitShow(response.msg, function() { - EntranceManage_Update(); - }); - } - ) - }) - }); -} - -function EntranceManage_Quit() { - var pw = $("#EntranceManage_000600").val(); - - if(pw.length < 4 || pw.length > 12) { - Popup_Alert("현재 비밀번호를 입력해주세요.", function() { - $("#EntranceManage_000600").val(""); - $("#EntranceManage_000600").focus(); - }); - return false; - } - - Popup_Confirm('정말 탈퇴하시겠습니까?', function() { - Popup_Wait(function() { - PostJSON( - "../../i_entrance/manage/quitPost.php", { - pw: hex_md5(pw+""+pw) - }, - function(response, textStatus) { - if(response.result == "SUCCESS") { - Popup_WaitShow(response.msg, function() { - ReplaceFrame("../../"); - }); - } else { - Popup_WaitShow(response.msg, function() { - EntranceManage_Update(); - }); - } - } - ) - }) - }); -} diff --git a/oauth_kakao/join.css b/oauth_kakao/join.css deleted file mode 100644 index 76822f61..00000000 --- a/oauth_kakao/join.css +++ /dev/null @@ -1,67 +0,0 @@ - body, html{ - height: 100%; - background-repeat: no-repeat; -} - -.main{ - margin-top: 70px; -} - -h1.title { - font-size: 50px; - font-family: 'Passion One', cursive; - font-weight: 400; -} - -hr{ - width: 10%; - /*color: #fff;*/ -} - -.form-group{ - margin-bottom: 15px; -} - -label{ - margin-bottom: 15px; -} - -input, -input::-webkit-input-placeholder { - font-size: 11px; - padding-top: 3px; -} - -.main-login{ - /*background-color: #fff;*/ - /* shadows and rounded borders */ - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - border-radius: 2px; - -moz-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); - -webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); - box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); - -} - -.main-center{ - margin-top: 30px; - margin: 0 auto; - max-width: 330px; - padding: 40px 40px; - -} - -.login-button{ - margin-top: 5px; -} - -.login-register{ - font-size: 11px; - text-align: center; -} - - -.terms{ - max-height: 200px; overflow: auto; -}