새로운 설정 파일을 위한 gitignore 확보

처리하지 않고 남겨둔 array 참조 해결

main.js 를 별도로 이동
This commit is contained in:
2018-01-21 01:45:09 +09:00
parent 3515fc637e
commit dd28eb768f
31 changed files with 570 additions and 400 deletions
+6 -66
View File
@@ -19,7 +19,8 @@ $me = MYDB_fetch_array($result);
//그새 사망이면
if($me['no'] == 0) {
//echo "a";
echo "<script>location.replace('start.php');</script>";
header('Location: start.php');
//echo "<script>location.replace('start.php');</script>";
exit(0);
}
@@ -58,68 +59,7 @@ $scenario = getScenario($connect);
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php?<?=$me['skin'];?> type=text/css>
<script src="../e_lib/jquery-3.2.1.min.js"></script>
<script type="text/javascript">
if (document.all) {
document.onkeydown = function () {
var key_f5 = 116; // 116 = F5
var key_enter = 13; // 13 = 엔터
if (key_f5 == event.keyCode) {
event.keyCode=0;
refreshing(0,0);
return false;
} else if(key_enter == event.keyCode) {
event.keyCode=0;
refreshing(4,message);
return false;
}
return true;
}
}
function refreshing(arg1, arg2) {
// if(term <= 0) {
switch(arg1) {
case 0: location.reload(); break;
case 1: go(arg2); break;
case 2: turn(arg2); break;
case 3: arg2.submit(); break;
case 4:
arg2.submit();
message.msg.value = "";
document.getElementById("msg").value = "";
message.msg.focus();
break;
}
}
function go(type) {
if(type == 1) location.replace('b_nationboard.php');
else if(type == 2) location.replace('b_troop.php');
else if(type == 3) location.replace('b_nationrule.php');
else if(type == 4) location.replace('b_chiefboard.php');
else if(type == 5) location.replace('b_chiefcenter.php');
else if(type == 6) window.open('b_genList.php');
else if(type == 7) location.replace('b_myKingdomInfo.php');
else if(type == 8) location.replace('b_myCityInfo.php');
else if(type == 9) location.replace('b_myGenInfo.php');
else if(type == 10) location.replace('b_myBossInfo.php');
else if(type == 11) location.replace('b_currentCity.php');
else if(type == 12) location.replace('b_myPage.php');
else if(type == 13) location.replace('b_dipcenter.php');
else if(type == 14) location.replace('b_diplomacy.php');
else if(type == 15) window.open('b_tournament.php');
else if(type == 16) window.open('b_betting.php');
else if(type == 17) window.open('b_auction.php');
else if(type == 18) window.open('b_battleCenter.php');
}
function turn(type) {
num = form2.sel.value;
commandlist.location.replace('turn.php?type=' + type + '&sel=' + num);
}
</script>
<script src="js/main.js"></script>
<?php require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
@@ -303,17 +243,17 @@ if($me['userlevel'] >= 5) {
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 style=font-size:13;word-break:break-all; id=bg0>
<tr>
<td colspan=2>
<form id=message name=message method=post action=c_msgsubmit.php target=msglist>
<form id="message" name="message" method="post" action="c_msgsubmit.php" target="msglist">
<?php genList($connect); ?>
<input type=textarea id=msg name=msg maxlength=99 style=color:white;background-color:black;font-size:13;width:720px;>
<input type=button style=background-color:<?=$_basecolor2;?>;color:white;font-size:13;width:100px; value='서신전달&갱신' onclick='refreshing(4,message)'>
<br>내용 없이 '서신전달&갱신'을 누르면 메세지창이 갱신됩니다.
<br>내용 없이 '서신전달&amp;갱신'을 누르면 메세지창이 갱신됩니다.
</form>
</td>
</tr>
<tr><td colspan=2><?php allButton($connect); ?></td></tr>
<tr><td colspan=2>
<iframe name=msglist src='msglist.php' width=1000 height=1375 frameborder=0 marginwidth=0 marginheight=0 topmargin=0 scrolling=no>
<iframe id="msglist" name="msglist" src='msglist.php' width=1000 height=1375 frameborder=0 marginwidth=0 marginheight=0 topmargin=0 scrolling=no>
</iframe>
</td></tr>
<tr><td colspan=2>