- DB 불러오는 방식을 기존의 set.php에서 conf.php의 getRootDB()를 이용하도록 변경 - ADODB 에 기반한 _DB 클래스 폐기 - DBS.php 폐기 - _Setting 클래스 용도 변경 - 서버 목록 정의 방식을 하나로 모음 - 로그인시 세션에 사용자 등급을 추가 - "참여"(donation) 관련 코드 전면 제거 - 서버 리셋시 부운영자 비밀번호 문제 수정 - 서버 오픈,닫힘 여부를 새 서버 목록 정의 방식에 따르도록 수정 - DBS.php가 폐기 되었으므로 서버 오픈시 기본 정보를 json으로 받아오도록 하기 위하여 기본 준비 - 기존에 남아있던 세부 서버 로그인 처리 파일을 제거(enterPost.php) - DBS.php 삭제로 전콘 변경시에도 각 서버로 json 호출을 하도록 하는 방식으로 준비 - 전콘을 수동으로 서버에 올린뒤 처리할 수 있도록 하던 legacy 코드 제거 - general 테이블에서 userlevel 컬럼을 삭제하고, 세션에 기록된 userGrade를 이용하도록 변경 - 벌점 제한을 모든 유저 공통으로 하도록 수정 - 세부 서버 리셋을 json ajax로 처리하도록 준비
81 lines
2.2 KiB
JavaScript
81 lines
2.2 KiB
JavaScript
function Entrance_Import() {
|
|
ImportAction(HOME+I+ENTRANCE+W+MANAGE+W+ACTION);
|
|
|
|
EntranceManage_Import();
|
|
}
|
|
|
|
function Entrance_Init() {
|
|
EntranceManage_Init();
|
|
|
|
$("#Entrance_000101").click(Entrance_Manage);
|
|
$("#Entrance_000102").click(Entrance_Logout);
|
|
}
|
|
|
|
function Entrance_Update() {
|
|
Entrance_UpdateServer();
|
|
}
|
|
|
|
function Entrance_UpdateServer() {
|
|
Popup_Wait(function() {
|
|
PostJSON(
|
|
HOME+I+ENTRANCE+W+SERVERLIST+POST, {
|
|
},
|
|
function(response, textStatus) {
|
|
if(response.result == "SUCCESS") {
|
|
Entrance_ServerList(response.serverCount, response.servers);
|
|
Entrance_ServerListPosition();
|
|
Popup_WaitHide();
|
|
} else {
|
|
Popup_WaitShow("서버목록 로드 실패!");
|
|
}
|
|
}
|
|
)
|
|
});
|
|
}
|
|
|
|
function Entrance_ServerList(serverCount, servers) {
|
|
$("#Entrance_000002").html(servers);
|
|
$("#Entrance_000002").height(serverCount*64);
|
|
}
|
|
|
|
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_Manage() {
|
|
$("#Entrance_00").hide();
|
|
$("#EntranceManage_00").show();
|
|
EntranceManage_Update();
|
|
}
|
|
|
|
function Entrance_Logout() {
|
|
Popup_Wait(function() {
|
|
PostJSON(
|
|
HOME+I+ENTRANCE+W+LOGOUT+POST, {
|
|
},
|
|
function(response, textStatus) {
|
|
if(response.result == "SUCCESS") {
|
|
Popup_WaitHide();
|
|
ReplaceFrame(HOME);
|
|
} else {
|
|
Popup_WaitShow("로그아웃 실패!");
|
|
}
|
|
}
|
|
)
|
|
});
|
|
}
|