불필한 const varname -> string 대체 제거.
필요할 곳은 나중에 처리하는 것으로.
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
var POPUP = "popup";
|
||||
|
||||
var LOGIN = "login";
|
||||
var JOIN = "join";
|
||||
var FINDPW = "findpw";
|
||||
|
||||
var ENTRANCE = "entrance";
|
||||
var SERVERLIST = "serverList";
|
||||
var LOGOUT = "logout";
|
||||
var ADMIN = "admin";
|
||||
var MEMBER = "member";
|
||||
|
||||
var MANAGE = "manage";
|
||||
var ICON = "icon";
|
||||
|
||||
@@ -2,20 +2,6 @@
|
||||
require_once('_common.php');
|
||||
require_once(ROOT.'/f_func/class._Setting.php');
|
||||
|
||||
define('POPUP', 'popup');
|
||||
|
||||
define('LOGIN', 'login');
|
||||
define('JOIN', 'join');
|
||||
define('FINDPW', 'findpw');
|
||||
|
||||
define('ENTRANCE', 'entrance');
|
||||
define('SERVERLIST', 'serverList');
|
||||
define('LOGOUT', 'logout');
|
||||
define('ADMIN', 'admin');
|
||||
define('MEMBER', 'member');
|
||||
|
||||
define('MANAGE', 'manage');
|
||||
define('ICON', 'icon');
|
||||
|
||||
function getServerConfigList(){
|
||||
static $serverList = null;
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
var W = "/";
|
||||
var HOME = "/dev_sam/"; //TODO:install시 수정
|
||||
//var HOME = "http://62che.com/sam/";
|
||||
//var HOME = "http://localhost/sam/";
|
||||
|
||||
var I = "i_";
|
||||
|
||||
var PHP = ".php";
|
||||
var FRAME = "Frame.php";
|
||||
var STYLE = "Style.css";
|
||||
var ACTION = "Action.js";
|
||||
var POST = "Post.php";
|
||||
var GET = "Get.php";
|
||||
var INC = "Inc.php";
|
||||
|
||||
var RETRIVAL = "retrival";
|
||||
|
||||
@@ -29,13 +29,6 @@ define('F_FUNC', 'f_func');
|
||||
|
||||
define('JS', '.js');
|
||||
define('CSS', '.css');
|
||||
define('PHP', '.php');
|
||||
define('FRAME', 'Frame.php');
|
||||
define('STYLE', 'Style.css');
|
||||
define('ACTION', 'Action.js');
|
||||
//define('POST', 'Post.php');
|
||||
//define('GET', 'Get.php');
|
||||
define('INC', 'Inc.php');
|
||||
|
||||
define('APP', 'app');
|
||||
define('FUNC', 'func');
|
||||
@@ -43,7 +36,6 @@ define('DB', 'DB');
|
||||
define('SESSION', 'SESSION');
|
||||
define('CONFIG', 'config');
|
||||
define('SETTING', 'SETTING');
|
||||
define('RETRIVAL', 'retrival');
|
||||
define('INSTALL', 'install');
|
||||
|
||||
define('SLEEP', 'sleep');
|
||||
|
||||
@@ -43,7 +43,7 @@ var serverLoginTemplate = "\
|
||||
";
|
||||
|
||||
function Entrance_Import() {
|
||||
ImportAction(HOME+I+ENTRANCE+W+MANAGE+W+ACTION);
|
||||
ImportAction("../i_entrance/manage/Action.js");
|
||||
|
||||
EntranceManage_Import();
|
||||
}
|
||||
@@ -62,7 +62,7 @@ function Entrance_Update() {
|
||||
function Entrance_UpdateServer() {
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
HOME+I+ENTRANCE+W+SERVERLIST+POST, {
|
||||
"../i_entrance/serverListPost.php", {
|
||||
},
|
||||
function(response, textStatus) {
|
||||
if(response.result == "SUCCESS") {
|
||||
@@ -87,10 +87,10 @@ function Entrance_drawServerList(serverInfos){
|
||||
return true;
|
||||
}
|
||||
|
||||
var serverPath = '../'+serverInfo.name;
|
||||
var serverPath = "../"+serverInfo.name;
|
||||
|
||||
|
||||
$.getJSON('../'+serverInfo.name+'/j_server_basic_info.php',{}, function(result){
|
||||
$.getJSON("../"+serverInfo.name+'/j_server_basic_info.php',{}, function(result){
|
||||
console.log(result);
|
||||
console.log(result.game);
|
||||
if(!result.game){
|
||||
@@ -168,12 +168,12 @@ function Entrance_Manage() {
|
||||
function Entrance_Logout() {
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
HOME+I+ENTRANCE+W+LOGOUT+POST, {
|
||||
"../i_entrance/logoutPost.php", {
|
||||
},
|
||||
function(response, textStatus) {
|
||||
if(response.result == "SUCCESS") {
|
||||
Popup_WaitHide();
|
||||
ReplaceFrame(HOME);
|
||||
ReplaceFrame("../");
|
||||
} else {
|
||||
Popup_WaitShow("로그아웃 실패!");
|
||||
}
|
||||
@@ -184,7 +184,7 @@ function Entrance_Logout() {
|
||||
|
||||
$(function(){
|
||||
ImportView("body", "../i_popup/Frame.php");
|
||||
//ImportView("body", FRAME);
|
||||
//ImportView("body", "Frame.php");
|
||||
|
||||
Popup_Import();
|
||||
Popup_Init();
|
||||
|
||||
@@ -78,7 +78,7 @@ function Entrance_AdminChangeNotice() {
|
||||
Popup_Confirm('정말 실행하시겠습니까?', function() {
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
HOME+I+ENTRANCE+W+ADMIN+POST, {
|
||||
"../i_entrance/adminPost.php", {
|
||||
action: 'notice',
|
||||
notice: notice
|
||||
},
|
||||
@@ -101,7 +101,7 @@ function modifyServerStatus(caller, action) {
|
||||
Popup_Confirm('정말 실행하시겠습니까?', function() {
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
HOME+I+ENTRANCE+W+ADMIN+POST, {
|
||||
"../i_entrance/adminPost.php", {
|
||||
server: server,
|
||||
action: action
|
||||
},
|
||||
@@ -111,7 +111,7 @@ function modifyServerStatus(caller, action) {
|
||||
if(action == 'reset') {
|
||||
ReplaceFrame(response.installURL);
|
||||
} else {
|
||||
Replace(ENTRANCE+PHP);
|
||||
Replace("entrance.php");
|
||||
}
|
||||
} else {
|
||||
Popup_WaitShow(response.msg);
|
||||
@@ -125,23 +125,23 @@ function modifyServerStatus(caller, action) {
|
||||
function Entrance_AdminNPCLogin(caller) {
|
||||
var $caller = $(caller);
|
||||
var serverDir = $caller.parents('tr').data('server_name');
|
||||
location.href = serverDir+W+'npc_login'+PHP;
|
||||
location.href = serverDir+"/npc_login.php";
|
||||
}
|
||||
|
||||
function Entrance_AdminNPCCreate(caller) {
|
||||
var $caller = $(caller);
|
||||
var serverDir = $caller.parents('tr').data('server_name');
|
||||
location.href = serverDir+W+'npc_join'+PHP;
|
||||
location.href = serverDir+"/npc_join.php";
|
||||
}
|
||||
|
||||
function Entrance_AdminClosedLogin(caller) {
|
||||
var $caller = $(caller);
|
||||
var serverDir = $caller.parents('tr').data('server_name');
|
||||
location.href = serverDir+W+'npc_login'+PHP;
|
||||
location.href = serverDir+"/npc_login.php";
|
||||
}
|
||||
|
||||
function Entrance_AdminOpen119(caller) {
|
||||
var $caller = $(caller);
|
||||
var serverDir = $caller.parents('tr').data('server_name');
|
||||
location.href = serverDir+W+'_119'+PHP;
|
||||
location.href = serverDir+"/_119.php";
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ $userGrade = $member['GRADE'];
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<?php include(MANAGE.W.FRAME); ?>
|
||||
<?php include("manage".W."Frame.php"); ?>
|
||||
<?php
|
||||
if($member['GRADE'] >= 6) {
|
||||
include('member/Frame.php');
|
||||
@@ -100,8 +100,8 @@ if($userGrade >= 6){
|
||||
<div id="user_info">
|
||||
<div class="bg2 section_title with_border">계 정 관 리</div>
|
||||
<div class="center_ordered_items with_border bg0">
|
||||
<input id="btn_user_manage" class="with_skin" type="button" value="비밀번호 & 전콘 & 탈퇴">
|
||||
<input id="btn_logout" class="with_skin" type="button" value="로 그 아 웃">
|
||||
<button id="btn_user_manage" class="with_skin">비밀번호 & 전콘 & 탈퇴</button>
|
||||
<button id="btn_logout" class="with_skin">로 그 아 웃</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ function EntranceManage_Init() {
|
||||
function EntranceManage_Update() {
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
HOME+I+ENTRANCE+W+MANAGE+W+'Get.php', {
|
||||
"../../i_entrance/manage/Get.php", {
|
||||
},
|
||||
function(response, textStatus) {
|
||||
if(response.result == "SUCCESS") {
|
||||
@@ -82,7 +82,7 @@ function EntranceManage_ChangePw() {
|
||||
Popup_Confirm('정말 실행하시겠습니까?', function() {
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
HOME+I+ENTRANCE+W+MANAGE+W+"password"+POST, {
|
||||
"../../i_entrance/manage/passwordPost.php", {
|
||||
pw: hex_md5(pw+""+pw),
|
||||
newPw: hex_md5(pw1+""+pw1)
|
||||
},
|
||||
@@ -112,7 +112,7 @@ function EntranceManage_DeleteIcon() {
|
||||
Popup_Confirm('정말 실행하시겠습니까?', function() {
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
HOME+I+ENTRANCE+W+MANAGE+W+"delete"+POST, {
|
||||
"../../i_entrance/manage/deletePost.php", {
|
||||
},
|
||||
function(response, textStatus) {
|
||||
Popup_WaitShow(response.msg, function() {
|
||||
@@ -138,13 +138,13 @@ function EntranceManage_Quit() {
|
||||
Popup_Confirm('정말 탈퇴하시겠습니까?', function() {
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
HOME+I+ENTRANCE+W+MANAGE+W+"quit"+POST, {
|
||||
"../../i_entrance/manage/quitPost.php", {
|
||||
pw: hex_md5(pw+""+pw)
|
||||
},
|
||||
function(response, textStatus) {
|
||||
if(response.result == "SUCCESS") {
|
||||
Popup_WaitShow(response.msg, function() {
|
||||
ReplaceFrame(HOME);
|
||||
ReplaceFrame("../../");
|
||||
});
|
||||
} else {
|
||||
Popup_WaitShow(response.msg, function() {
|
||||
|
||||
@@ -42,7 +42,7 @@ function EntranceMember_Order() {
|
||||
function EntranceMember_UpdateMember(select) {
|
||||
Popup_Wait(function() {
|
||||
GetJSON(
|
||||
HOME+I+ENTRANCE+W+MEMBER+W+GET, {
|
||||
"../../i_entrance/member/Get.php", {
|
||||
select: select
|
||||
},
|
||||
function(response, textStatus) {
|
||||
@@ -67,7 +67,7 @@ function EntranceMember_Post(select) {
|
||||
Popup_Confirm('정말 실행하시겠습니까?', function() {
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
HOME+I+ENTRANCE+W+MEMBER+W+POST, {
|
||||
"../../i_entrance/member/Post.php", {
|
||||
select: select,
|
||||
no: no
|
||||
},
|
||||
|
||||
@@ -3,8 +3,8 @@ require_once('_common.php');
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
ImportStyle("<?=ROOT;?>"+W+I+ENTRANCE+W+MEMBER+W+STYLE);
|
||||
ImportAction("<?=ROOT;?>"+W+I+ENTRANCE+W+MEMBER+W+ACTION);
|
||||
ImportStyle("<?=ROOT;?>/i_entrance/member/Style.css");
|
||||
ImportAction("<?=ROOT;?>/i_entrance/member/Action.js");
|
||||
EntranceMember_Import();
|
||||
EntranceMember_Init();
|
||||
</script>
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
|
||||
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
function Login_Import() {
|
||||
ImportAction(HOME+I+LOGIN+W+FINDPW+W+ACTION);
|
||||
ImportAction(HOME+I+LOGIN+W+JOIN+W+ACTION);
|
||||
ImportAction("../i_login/findpw/Action.js");
|
||||
ImportAction("../i_login/join/Action.js");
|
||||
|
||||
LoginFindpw_Import();
|
||||
LoginJoin_Import();
|
||||
@@ -82,7 +82,7 @@ function Login_Login() {
|
||||
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
HOME+I+LOGIN+W+POST, {
|
||||
"../i_login/Post.php", {
|
||||
id: id,
|
||||
pw: pw,
|
||||
conmsg: conmsg
|
||||
@@ -90,7 +90,7 @@ function Login_Login() {
|
||||
function(response, textStatus) {
|
||||
if(response.result == "SUCCESS") {
|
||||
Popup_WaitHide();
|
||||
ReplaceFrame(HOME);
|
||||
ReplaceFrame("../");
|
||||
} else {
|
||||
Popup_WaitShow(response.msg, function() {
|
||||
$("#Login_00010010").focus();
|
||||
|
||||
@@ -42,7 +42,7 @@ function LoginFindpw_Update() {
|
||||
|
||||
function LoginFindpw_UpdateRegisteredCount() {
|
||||
GetJSON(
|
||||
HOME+I+LOGIN+W+FINDPW+W+GET, { },
|
||||
"../../i_login/findpw/Get.php", { },
|
||||
function(response, textStatus) {
|
||||
if(response.result == "SUCCESS") {
|
||||
$("#LoginFindpw_000100").text(response.registeredCount);
|
||||
@@ -94,7 +94,7 @@ function LoginFindpw_SendCode() {
|
||||
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
HOME+I+LOGIN+W+FINDPW+W+"sendCode"+POST, {
|
||||
"../../i_login/findpw/sendCodePost.php", {
|
||||
email: email
|
||||
},
|
||||
function(response, textStatus) {
|
||||
@@ -125,7 +125,7 @@ function LoginFindpw_VerifyCode() {
|
||||
} else if(code.length == 6) {
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
HOME+I+LOGIN+W+FINDPW+W+"verifyCode"+POST, {
|
||||
"../../i_login/findpw/verifyCodePost.php", {
|
||||
email: email,
|
||||
code: code
|
||||
},
|
||||
@@ -153,7 +153,7 @@ function LoginFindpw_Check(type) {
|
||||
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
HOME+I+LOGIN+W+FINDPW+W+"check"+POST, {
|
||||
"../../i_login/findpw/checkPost.php", {
|
||||
type: type,
|
||||
id: id,
|
||||
pid1: pid1,
|
||||
@@ -194,7 +194,7 @@ function LoginFindpw_Findpw() {
|
||||
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
HOME+I+LOGIN+W+FINDPW+W+POST, {
|
||||
"../../i_login/findpw/Post.php", {
|
||||
id: id,
|
||||
pid1: pid1,
|
||||
pid2: pid2,
|
||||
|
||||
@@ -50,7 +50,7 @@ function LoginJoin_Update() {
|
||||
|
||||
function LoginJoin_UpdateRegisteredCount() {
|
||||
GetJSON(
|
||||
HOME+I+LOGIN+W+JOIN+W+GET, { },
|
||||
"../../i_login/join/Get.php", { },
|
||||
function(response, textStatus) {
|
||||
if(response.result == "SUCCESS") {
|
||||
$("#LoginJoin_000100").text(response.registeredCount);
|
||||
@@ -110,7 +110,7 @@ function LoginJoin_SendCode() {
|
||||
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
HOME+I+LOGIN+W+JOIN+W+"sendCode"+POST, {
|
||||
"../../i_login/join/sendCodePost.php", {
|
||||
email: email
|
||||
},
|
||||
function(response, textStatus) {
|
||||
@@ -141,7 +141,7 @@ function LoginJoin_VerifyCode() {
|
||||
} else if(code.length == 6) {
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
HOME+I+LOGIN+W+JOIN+W+"verifyCode"+POST, {
|
||||
"../../i_login/join/verifyCodePost.php", {
|
||||
email: email,
|
||||
code: code
|
||||
},
|
||||
@@ -170,7 +170,7 @@ function LoginJoin_Check(type) {
|
||||
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
HOME+I+LOGIN+W+JOIN+W+"check"+POST, {
|
||||
"../../i_login/join/checkPost.php", {
|
||||
type: type,
|
||||
id: id,
|
||||
pid1: pid1,
|
||||
@@ -220,7 +220,7 @@ function LoginJoin_Join() {
|
||||
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
HOME+I+LOGIN+W+JOIN+W+POST, {
|
||||
"../../i_login/join/Post.php", {
|
||||
id: id,
|
||||
pw: pw,
|
||||
pid1: pid1,
|
||||
|
||||
+2
-2
@@ -38,8 +38,8 @@ $system = getRootDB()->queryFirstRow('SELECT `REG`, `LOGIN` FROM `SYSTEM` WHERE
|
||||
$(document).ready(Login);
|
||||
|
||||
function Login() {
|
||||
//ImportView("body", "<?=ROOT;?>"+W+I+POPUP+W+FRAME);
|
||||
//ImportView("body", FRAME);
|
||||
//ImportView("body", "<?=ROOT;?>/i_popup/Frame.php");
|
||||
//ImportView("body", "Frame.php");
|
||||
|
||||
Popup_Import();
|
||||
Popup_Init();
|
||||
|
||||
+1
-1
@@ -110,7 +110,7 @@ $(document).ready( function () {
|
||||
alert('정상적으로 가입되었습니다.');
|
||||
}
|
||||
|
||||
window.location.href = '../';
|
||||
window.location.href = "../";
|
||||
|
||||
});
|
||||
console.log('Yes!');
|
||||
|
||||
@@ -57,7 +57,7 @@ function doLoginUsingOAuth(retry=false){
|
||||
}
|
||||
}
|
||||
else{
|
||||
window.location.href = '../';
|
||||
window.location.href = "../";
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user