string 내의 $ 호출들 일괄 변환.

This commit is contained in:
2018-01-16 03:56:50 +09:00
parent c73a3bcf95
commit 28eaf7b0d7
119 changed files with 6485 additions and 6479 deletions
+37 -37
View File
@@ -7,25 +7,25 @@ $connect = dbConn();
increaseRefresh($connect, "메인", 2);
checkTurn($connect);
$query = "select no,skin,userlevel,con,turntime,newmsg,newvote,map from general where user_id='$_SESSION[p_id]'";
$query = "select no,skin,userlevel,con,turntime,newmsg,newvote,map from general where user_id='$_SESSION['p_id']'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
//그새 사망이면
if($me[no] == 0) {
if($me['no'] == 0) {
echo "a";
echo "<script>location.replace('start.php');</script>";
exit(0);
}
if($me[newmsg] == 1 && $me[newvote] == 1) {
$query = "update general set newmsg=0,newvote=0 where user_id='$_SESSION[p_id]'";
if($me['newmsg'] == 1 && $me['newvote'] == 1) {
$query = "update general set newmsg=0,newvote=0 where user_id='$_SESSION['p_id']'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
} elseif($me[newmsg] == 1) {
$query = "update general set newmsg=0 where user_id='$_SESSION[p_id]'";
} elseif($me['newmsg'] == 1) {
$query = "update general set newmsg=0 where user_id='$_SESSION['p_id']'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
} elseif($me[newvote] == 1) {
$query = "update general set newvote=0 where user_id='$_SESSION[p_id]'";
} elseif($me['newvote'] == 1) {
$query = "update general set newvote=0 where user_id='$_SESSION['p_id']'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
}
@@ -37,10 +37,10 @@ $query = "select plock from plock where no=1";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$plock = MYDB_fetch_array($result);
$con = checkLimit($me[userlevel], $me[con], $admin[conlimit]);
if($con >= 2) { printLimitMsg($me[turntime]); exit(); }
$con = checkLimit($me['userlevel'], $me['con'], $admin['conlimit']);
if($con >= 2) { printLimitMsg($me['turntime']); exit(); }
if($me[skin] < 1) {
if($me['skin'] < 1) {
$tempColor = $_basecolor; $tempColor2 = $_basecolor2; $tempColor3 = $_basecolor3; $tempColor4 = $_basecolor4;
$_basecolor = "000000"; $_basecolor2 = "000000"; $_basecolor3 = "000000"; $_basecolor4 = "000000";
}
@@ -51,7 +51,7 @@ $scenario = getScenario($connect);
<head>
<title>메인</title>
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php?<?=$me[skin];?> type=text/css>
<link rel=stylesheet href=stylesheet.php?<?=$me['skin'];?> type=text/css>
<script type="text/javascript">
//var term = <?=$term;?>; // 갱신 가능 텀
@@ -123,7 +123,7 @@ function turn(type) {
<body oncontextmenu='return false'>
<div style="position:absolute; top:15px; left:50%; margin-left: -567px; width: 52px; height: 52px; border: 1px solid white;">심의</div>
<?php $banner_id = $_SESSION[p_id]; ?>
<?php $banner_id = $_SESSION['p_id']; ?>
<div style="position:absolute; top:77px; left:50%; margin-left: -675px; width: 160px; height: 600px; border: 1px solid white;">
<?php include('../i_banner/banner.php'); ?>
</div>
@@ -140,17 +140,17 @@ function turn(type) {
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 style=font-size:13;word-break:break-all; id=bg0>
<tr><td colspan=5><?php allButton($connect); ?></td></tr>
<tr height=50>
<td colspan=5 align=center><font size=4>삼국지 모의전투 PHP 유기체서버 (<font color=<?=$me[skin]>0?"cyan":"white";?>><?=$scenario;?></font>)</font></td>
<td colspan=5 align=center><font size=4>삼국지 모의전투 PHP 유기체서버 (<font color=<?=$me['skin']>0?"cyan":"white";?>><?=$scenario;?></font>)</font></td>
</tr>
<?php
$valid = 0;
if($admin[extend] == 0) { $extend = "표준"; }
if($admin['extend'] == 0) { $extend = "표준"; }
else { $extend = "확장"; $valid = 1; }
if($admin[fiction] == 0) { $fiction = "사실"; }
if($admin['fiction'] == 0) { $fiction = "사실"; }
else { $fiction = "가상"; $valid = 1; }
if($admin[npcmode] == 0) { $npcmode = "불가능"; }
if($admin['npcmode'] == 0) { $npcmode = "불가능"; }
else { $npcmode = "가능"; $valid = 1; }
if($me[skin] > 0) { $color = "cyan"; }
if($me['skin'] > 0) { $color = "cyan"; }
else { $color = "white"; }
if($valid == 1) {
echo "
@@ -164,10 +164,10 @@ if($valid == 1) {
?>
<tr height=30>
<td width=198 align=center><?php info($connect, 2, $me[skin]); ?></td>
<td width=198 align=center>전체 접속자 수 : <?=$admin[online];?> 명</td>
<td width=198 align=center>턴당 갱신횟수 : <?=$admin[conlimit];?>회</td>
<td width=398 colspan=2 align=center><?php info($connect, 3, $me[skin]); ?></td>
<td width=198 align=center><?php info($connect, 2, $me['skin']); ?></td>
<td width=198 align=center>전체 접속자 수 : <?=$admin['online'];?> 명</td>
<td width=198 align=center>턴당 갱신횟수 : <?=$admin['conlimit'];?>회</td>
<td width=398 colspan=2 align=center><?php info($connect, 3, $me['skin']); ?></td>
</tr>
<tr height=30>
<td align=center>
@@ -176,7 +176,7 @@ if ($onlineNumber > $thr3) { $state = "(긴급모드)"; }
elseif($onlineNumber > $thr2) { $state = "(안전모드)"; }
elseif($onlineNumber > $thr1) { $state = "(절약모드)"; }
else { $state = ""; }
if($plock[plock] == 0) { echo "<marquee scrollamount=2><font color=cyan>서버 가동중{$state}</font></marquee>"; }
if($plock['plock'] == 0) { echo "<marquee scrollamount=2><font color=cyan>서버 가동중{$state}</font></marquee>"; }
else { echo "<font color=magenta>서버 동결중{$state}</font>"; }
echo "
@@ -184,15 +184,15 @@ echo "
<td align=center>
";
switch($admin[tnmt_type]) {
switch($admin['tnmt_type']) {
case 0: $str = "전력전"; break;
case 1: $str = "통솔전"; break;
case 2: $str = "일기토"; break;
case 3: $str = "설전"; break;
}
$str2 = getTournament($admin[tournament]);
$str2 = getTournament($admin['tournament']);
$str3 = getTournamentTime($connect);
if($admin[tournament] == 0) { echo "<font color=magenta>현재 토너먼트 경기 없음</font>"; }
if($admin['tournament'] == 0) { echo "<font color=magenta>현재 토너먼트 경기 없음</font>"; }
else { echo "<marquee scrollamount=2>↑<font color=cyan>{$str}</font> {$str2} {$str3}↑</marquee>"; }
echo "
@@ -211,7 +211,7 @@ echo "
<td colspan=2 align=center>
";
$vote = explode("|", $admin[vote]);
$vote = explode("|", $admin['vote']);
$vote[0] = Tag2Code($vote[0]);
if($vote[0] == "") { echo "<font color=magenta>진행중 설문 없음</font>"; }
else { echo "<marquee scrollamount=3><font color=cyan>설문 진행중</font> : $vote[0]</marquee>"; }
@@ -222,11 +222,11 @@ echo "
</tr>";
?>
<tr><td colspan=5>접속중인 국가: <?=onlinenation($connect);?></td></tr>
<tr><td colspan=5><?php adminMsg($connect, $me[skin]); ?></td></tr>
<tr><td colspan=5>【 국가방침 】<?php nationMsg($connect, $me[skin]); ?></td></tr>
<tr><td colspan=5><?php adminMsg($connect, $me['skin']); ?></td></tr>
<tr><td colspan=5>【 국가방침 】<?php nationMsg($connect, $me['skin']); ?></td></tr>
<tr><td colspan=5>【 접속자 】<?=onlinegen($connect);?></td></tr>
<?php
if($me[userlevel] >= 5) {
if($me['userlevel'] >= 5) {
echo "
<tr><td colspan=5>
<input type=button value=게임관리 onclick=location.replace('_admin1.php')>
@@ -248,7 +248,7 @@ if($me[userlevel] >= 5) {
</table>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 style=font-size:13;word-break:break-all; id=bg0>
<tr>
<td width=698 height=520 colspan=2><iframe src='map.php?type=0&graphic=<?=$me[map];?>' width=698 height=520 frameborder=0 marginwidth=0 marginheight=0 topmargin=0 scrolling=no></iframe></td>
<td width=698 height=520 colspan=2><iframe src='map.php?type=0&graphic=<?=$me['map'];?>' width=698 height=520 frameborder=0 marginwidth=0 marginheight=0 topmargin=0 scrolling=no></iframe></td>
<td width=298 rowspan=4><iframe name=commandlist src='commandlist.php' width=298 height=700 frameborder=0 marginwidth=0 marginheight=0 topmargin=0 scrolling=no></iframe></td>
</tr>
<form name=form2 action=preprocessing.php method=post target=commandlist>
@@ -258,7 +258,7 @@ if($me[userlevel] >= 5) {
</tr>
<tr>
<td width=646 align=right>
<font color=<?=$me[skin]>0?"cyan":"white";?>><b>←</b> Ctrl, Shift, 드래그로 복수선택 가능     반복&수정<b>→</b></font>
<font color=<?=$me['skin']>0?"cyan":"white";?>><b>←</b> Ctrl, Shift, 드래그로 복수선택 가능     반복&수정<b>→</b></font>
<select name=sel size=1 style=color:white;background-color:black;font-size:13;>
<option value=1>1턴</option>
<option value=2>2턴</option>
@@ -296,11 +296,11 @@ if($me[userlevel] >= 5) {
<td width=498 align=center id=bg1><b>개인 기록</b></td>
</tr>
<tr>
<td width=498 ><?php AllLog(15, $me[skin]); ?></td>
<td width=498 ><?php MyLog($me[no], 15, $me[skin]); ?></td>
<td width=498 ><?php AllLog(15, $me['skin']); ?></td>
<td width=498 ><?php MyLog($me['no'], 15, $me['skin']); ?></td>
</tr>
<tr><td width=998 colspan=2 align=center id=bg1><b>중원 정세</b></td></tr>
<tr><td width=998 colspan=2><?php History(15, $me[skin]); ?></td></tr>
<tr><td width=998 colspan=2><?php History(15, $me['skin']); ?></td></tr>
</table>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 style=font-size:13;word-break:break-all; id=bg0>
<tr>
@@ -332,5 +332,5 @@ banner();
</html>
<?php
if($con == 1) { MessageBox("접속제한이 얼마 남지 않았습니다! 제한량이 모자라다면 참여를 해보세요^^"); }
if($me[newmsg] == 1) { MessageBox("개인 서신이 도착했습니다!"); }
if($me[newvote] == 1) { $develcost = $admin[develcost]*5; MessageBox("설문조사에 참여하시면 금{$develcost}과 유니크템을 드립니다! (우측 상단 설문조사 메뉴)"); }
if($me['newmsg'] == 1) { MessageBox("개인 서신이 도착했습니다!"); }
if($me['newvote'] == 1) { $develcost = $admin['develcost']*5; MessageBox("설문조사에 참여하시면 금{$develcost}과 유니크템을 드립니다! (우측 상단 설문조사 메뉴)"); }