- 이미 기능이 사라진 N생성 버튼 제거 - 기존의 DB까지 포함한 초기화를 '완전 리셋' - 제대로 동작하지 않던 폐쇄중 로그인 변경 - 리셋 프로세스에 권한을 제대로 검사하지 않는 문제 해결
111 lines
3.3 KiB
JavaScript
111 lines
3.3 KiB
JavaScript
function Entrance_AdminImport() {
|
|
}
|
|
|
|
function Entrance_AdminInit() {
|
|
$("#Entrance_000201").click(Entrance_Donation);
|
|
$("#Entrance_000202").click(Entrance_Member);
|
|
$("#Entrance_000204").click(Entrance_AdminChangeNotice);
|
|
$("#Entrance_000205").click(Entrance_IconScrub);
|
|
}
|
|
|
|
function Entrance_AdminUpdate() {
|
|
}
|
|
|
|
function Entrance_IconScrub(){
|
|
Popup_Confirm('사용하지 않는 전콘 중 등록된지 2개월이 지난 것들을 삭제합니다.', function() {
|
|
Popup_Wait(function() {
|
|
PostJSON(
|
|
HOME+I+ENTRANCE+W+'iconScrub.php', {
|
|
action: 0,
|
|
notice: notice
|
|
},
|
|
function(response, textStatus) {
|
|
if(response.result == "SUCCESS") {
|
|
Popup_WaitHide();
|
|
Replace(ENTRANCE+PHP);
|
|
} else {
|
|
Popup_WaitShow(response.msg);
|
|
}
|
|
}
|
|
)
|
|
})
|
|
});
|
|
}
|
|
|
|
function Entrance_Donation() {
|
|
$("#Entrance_00").hide();
|
|
$("#EntranceDonation_00").show();
|
|
EntranceDonation_Update();
|
|
}
|
|
|
|
function Entrance_Member() {
|
|
$("#Entrance_00").hide();
|
|
$("#EntranceMember_00").show();
|
|
EntranceMember_Update();
|
|
}
|
|
|
|
function Entrance_AdminChangeNotice() {
|
|
var notice = $("#Entrance_000203").val();
|
|
|
|
Popup_Confirm('정말 실행하시겠습니까?', function() {
|
|
Popup_Wait(function() {
|
|
PostJSON(
|
|
HOME+I+ENTRANCE+W+ADMIN+POST, {
|
|
action: 0,
|
|
notice: notice
|
|
},
|
|
function(response, textStatus) {
|
|
if(response.result == "SUCCESS") {
|
|
Popup_WaitHide();
|
|
Replace(ENTRANCE+PHP);
|
|
} else {
|
|
Popup_WaitShow(response.msg);
|
|
}
|
|
}
|
|
)
|
|
})
|
|
});
|
|
}
|
|
|
|
function Entrance_AdminPost(server, select) {
|
|
Popup_Confirm('정말 실행하시겠습니까?', function() {
|
|
Popup_Wait(function() {
|
|
PostJSON(
|
|
HOME+I+ENTRANCE+W+ADMIN+POST, {
|
|
action: 1,
|
|
server: server,
|
|
select: select
|
|
},
|
|
function(response, textStatus) {
|
|
if(response.result == "SUCCESS") {
|
|
Popup_WaitHide();
|
|
if(select == 1 || select == 3) {
|
|
ReplaceFrame(response.installURL);
|
|
} else {
|
|
Replace(ENTRANCE+PHP);
|
|
}
|
|
} else {
|
|
Popup_WaitShow(response.msg);
|
|
}
|
|
}
|
|
)
|
|
})
|
|
});
|
|
}
|
|
|
|
function Entrance_AdminNPCLogin(serverDir) {
|
|
ReplaceFrame(serverDir+W+'npc_login'+PHP);
|
|
}
|
|
|
|
function Entrance_AdminNPCCreate(serverDir) {
|
|
ReplaceFrame(serverDir+W+'npc_join'+PHP);
|
|
}
|
|
|
|
function Entrance_AdminClosedLogin(serverDir) {
|
|
ReplaceFrame(serverDir+'_close'+W+'index'+PHP);
|
|
}
|
|
|
|
function Entrance_AdminOpen119(serverDir) {
|
|
Open(serverDir+W+'119'+PHP);
|
|
}
|