스킨 기능 삭제
This commit is contained in:
+1
-5
@@ -7,10 +7,6 @@ include "func.php";
|
||||
CheckLogin();
|
||||
$connect = dbConn();
|
||||
|
||||
$query = "select skin from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
if(Session::getUserGrade() < 5) {
|
||||
echo "<!DOCTYPE html>
|
||||
<html>
|
||||
@@ -254,7 +250,7 @@ for($i=0; $i < $nationCount; $i++) {
|
||||
?>
|
||||
</table>
|
||||
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0>
|
||||
<tr><td><?php TrickLog(20, $me['skin']); ?></td></tr>
|
||||
<tr><td><?php TrickLog(20); ?></td></tr>
|
||||
</table>
|
||||
|
||||
<table align=center width=1760 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px; id=bg0>
|
||||
|
||||
+5
-9
@@ -7,10 +7,6 @@ include "func.php";
|
||||
CheckLogin();
|
||||
$connect = dbConn();
|
||||
|
||||
$query = "select skin from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
if(Session::getUserGrade() < 5) {
|
||||
echo "<!DOCTYPE html>
|
||||
<html>
|
||||
@@ -98,7 +94,7 @@ for($i=0; $i < $gencount; $i++) {
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign=top>
|
||||
<?php generalInfo($connect, $gen, $me['skin']); generalInfo2($connect, $gen, $me['skin']); ?>
|
||||
<?php generalInfo($connect, $gen); generalInfo2($connect, $gen); ?>
|
||||
</td>
|
||||
<td valign=top>
|
||||
</td>
|
||||
@@ -109,10 +105,10 @@ for($i=0; $i < $gencount; $i++) {
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign=top>
|
||||
<?php MyLog($gen, 24, $me['skin']); ?>
|
||||
<?php MyLog($gen, 24); ?>
|
||||
</td>
|
||||
<td valign=top>
|
||||
<?php MyBatLog($gen, 24, $me['skin']); ?>
|
||||
<?php MyBatLog($gen, 24); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -121,10 +117,10 @@ for($i=0; $i < $gencount; $i++) {
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign=top>
|
||||
<?php MyHistory($connect, $gen, $me['skin']); ?>
|
||||
<?php MyHistory($connect, $gen); ?>
|
||||
</td>
|
||||
<td valign=top>
|
||||
<?php MyBatRes($gen, 24, $me['skin']); ?>
|
||||
<?php MyBatRes($gen, 24); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -7,10 +7,6 @@ include "func.php";
|
||||
CheckLogin();
|
||||
$connect = dbConn();
|
||||
|
||||
$query = "select skin from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
if(Session::getUserGrade() < 5) {
|
||||
echo "<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
+1
-5
@@ -13,7 +13,7 @@ $query = "select startyear,year,month,conlimit from game where no=1";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$admin = MYDB_fetch_array($result);
|
||||
|
||||
$query = "select skin,map,con,turntime from general where owner='{$_SESSION['userID']}'";
|
||||
$query = "select map,con,turntime from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
@@ -55,10 +55,6 @@ if($month <= 0) {
|
||||
$month += 12;
|
||||
}
|
||||
|
||||
if($me['skin'] < 1) {
|
||||
$tempColor = $_basecolor; $tempColor2 = $_basecolor2; $tempColor3 = $_basecolor3; $tempColor4 = $_basecolor4;
|
||||
$_basecolor = "000000"; $_basecolor2 = "000000"; $_basecolor3 = "000000"; $_basecolor4 = "000000";
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
+3
-3
@@ -13,7 +13,7 @@ $query = "select conlimit from game where no=1";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$admin = MYDB_fetch_array($result);
|
||||
|
||||
$query = "select skin,map,con,turntime from general where owner='{$_SESSION['userID']}'";
|
||||
$query = "select map,con,turntime from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
@@ -53,7 +53,7 @@ $(function(){
|
||||
<table align=center width=1200 height=520 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0>
|
||||
<tr height=520>
|
||||
<td width=498 valign=top>
|
||||
<?php AllLog(34, $me['skin']); ?>
|
||||
<?php AllLog(34); ?>
|
||||
</td>
|
||||
<td width=698>
|
||||
<?=getMapHtml()?>
|
||||
@@ -61,7 +61,7 @@ $(function(){
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=2 valign=top>
|
||||
<?php History(34, $me['skin']); ?>
|
||||
<?php History(34); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ $file = @fread($fp, 1000);
|
||||
@fclose($fp);
|
||||
$log = explode("\n",$file);
|
||||
$str = "";
|
||||
for($i=0; $i < $count; $i++) { $str .= ConvertLog($log[count($log)-2-$i], $skin)."<br>"; }
|
||||
for($i=0; $i < $count; $i++) { $str .= ConvertLog($log[count($log)-2-$i])."<br>"; }
|
||||
echo $str;
|
||||
|
||||
$curonline = getOnlineNum();
|
||||
|
||||
+2
-7
@@ -8,7 +8,7 @@ CheckLogin();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("거래장", 2);
|
||||
|
||||
$query = "select no,special,skin,con,turntime from general where owner='{$_SESSION['userID']}'";
|
||||
$query = "select no,special,con,turntime from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
@@ -35,11 +35,6 @@ if(Session::getUserGrade() >= 5 || ($me['special'] != 30 && $btCount < 1) || ($m
|
||||
$btn = "hidden";
|
||||
}
|
||||
|
||||
if($me['skin'] < 1) {
|
||||
$tempColor = $_basecolor; $tempColor2 = $_basecolor2; $tempColor3 = $_basecolor3; $tempColor4 = $_basecolor4;
|
||||
$_basecolor = "000000"; $_basecolor2 = "000000"; $_basecolor3 = "000000"; $_basecolor4 = "000000";
|
||||
}
|
||||
|
||||
if($msg == "") $msg = "-";
|
||||
if($msg2 == "") $msg2 = "-";
|
||||
?>
|
||||
@@ -227,7 +222,7 @@ for($i=0; $i < $count; $i++) {
|
||||
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0>
|
||||
<tr><td align=center id=bg2><font size=5>최 근 기 록</font></td></tr>
|
||||
<tr><td>
|
||||
<?=AuctionLog(20, $me['skin']);?>
|
||||
<?=AuctionLog(20);?>
|
||||
</td></tr>
|
||||
<tr><td align=center id=bg2><font size=5>도 움 말</font></td></tr>
|
||||
<tr><td>
|
||||
|
||||
@@ -18,7 +18,7 @@ $query = "select nation from general where no='$gen'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$general = MYDB_fetch_array($result);
|
||||
|
||||
$query = "select skin,no,nation,level,con,turntime,belong from general where owner='{$_SESSION['userID']}'";
|
||||
$query = "select no,nation,level,con,turntime,belong from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
@@ -50,10 +50,6 @@ if($type == 0) {
|
||||
}
|
||||
$sel[$type] = "selected";
|
||||
|
||||
if($me['skin'] < 1) {
|
||||
$tempColor = $_basecolor; $tempColor2 = $_basecolor2; $tempColor3 = $_basecolor3; $tempColor4 = $_basecolor4;
|
||||
$_basecolor = "000000"; $_basecolor2 = "000000"; $_basecolor3 = "000000"; $_basecolor4 = "000000";
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
@@ -117,10 +113,10 @@ for($i=0; $i < $gencount; $i++) {
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign=top>
|
||||
<?php generalInfo($connect, $gen, $me['skin']); generalInfo2($connect, $gen, $me['skin']); ?>
|
||||
<?php generalInfo($connect, $gen); generalInfo2($connect, $gen); ?>
|
||||
</td>
|
||||
<td valign=top>
|
||||
<?php MyHistory($connect, $gen, $me['skin']); ?>
|
||||
<?php MyHistory($connect, $gen); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -129,10 +125,10 @@ for($i=0; $i < $gencount; $i++) {
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign=top>
|
||||
<?php MyBatLog($gen, 24, $me['skin']); ?>
|
||||
<?php MyBatLog($gen, 24); ?>
|
||||
</td>
|
||||
<td valign=top>
|
||||
<?php MyBatRes($gen, 24, $me['skin']); ?>
|
||||
<?php MyBatRes($gen, 24); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -8,7 +8,7 @@ CheckLogin();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("기밀실", 1);
|
||||
|
||||
$query = "select skin,no,nation,level from general where owner='{$_SESSION['userID']}'";
|
||||
$query = "select no,nation,level from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
@@ -17,10 +17,6 @@ if($me['level'] < 5) {
|
||||
exit();
|
||||
}
|
||||
|
||||
if($me['skin'] < 1) {
|
||||
$tempColor = $_basecolor; $tempColor2 = $_basecolor2; $tempColor3 = $_basecolor3; $tempColor4 = $_basecolor4;
|
||||
$_basecolor = "000000"; $_basecolor2 = "000000"; $_basecolor3 = "000000"; $_basecolor4 = "000000";
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
@@ -12,7 +12,7 @@ $query = "select conlimit from game where no=1";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$admin = MYDB_fetch_array($result);
|
||||
|
||||
$query = "select skin,no,nation,level,con,turntime,belong from general where owner='{$_SESSION['userID']}'";
|
||||
$query = "select no,nation,level,con,turntime,belong from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ CheckLogin();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("현재도시", 1);
|
||||
|
||||
$query = "select skin,no,nation,level,city from general where owner='{$_SESSION['userID']}'";
|
||||
$query = "select no,nation,level,city from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
@@ -16,10 +16,6 @@ $query = "select nation,level,spy from nation where nation='{$me['nation']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$myNation = MYDB_fetch_array($result);
|
||||
|
||||
if($me['skin'] < 1) {
|
||||
$tempColor = $_basecolor; $tempColor2 = $_basecolor2; $tempColor3 = $_basecolor3; $tempColor4 = $_basecolor4;
|
||||
$_basecolor = "000000"; $_basecolor2 = "000000"; $_basecolor3 = "000000"; $_basecolor4 = "000000";
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
@@ -276,7 +272,7 @@ for($j=0; $j < $gencount; $j++) {
|
||||
$imageTemp = GetImageURL($general['imgsvr']);
|
||||
echo "
|
||||
<tr>
|
||||
<td align=center"; echo $me['skin']==2?" background={$imageTemp}/{$general['picture']}":""; echo " height=64></td>
|
||||
<td align=center height=64></td>
|
||||
<td align=center>{$general['name']}</td>
|
||||
<td align=center>$leader</td>
|
||||
<td align=center>$power</td>
|
||||
|
||||
+1
-5
@@ -12,7 +12,7 @@ $query = "select conlimit from game where no=1";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$admin = MYDB_fetch_array($result);
|
||||
|
||||
$query = "select skin,no,nation,level,con,turntime,belong from general where owner='{$_SESSION['userID']}'";
|
||||
$query = "select no,nation,level,con,turntime,belong from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
@@ -31,10 +31,6 @@ if($me['level'] == 0 || ($me['level'] == 1 && $me['belong'] < $nation['secretlim
|
||||
if($me['level'] >= 5) { $btn = "submit"; $read = ""; }
|
||||
else { $btn = "hidden"; $read = "readonly"; }
|
||||
|
||||
if($me['skin'] < 1) {
|
||||
$tempColor = $_basecolor; $tempColor2 = $_basecolor2; $tempColor3 = $_basecolor3; $tempColor4 = $_basecolor4;
|
||||
$_basecolor = "000000"; $_basecolor2 = "000000"; $_basecolor3 = "000000"; $_basecolor4 = "000000";
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
+1
-5
@@ -12,7 +12,7 @@ $query = "select turnterm from game where no=1";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$admin = MYDB_fetch_array($result);
|
||||
|
||||
$query = "select no,nation,skin,map from general where owner='{$_SESSION['userID']}'";
|
||||
$query = "select no,nation,map from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
@@ -43,10 +43,6 @@ for($i=0; $i < $nationcount; $i++) {
|
||||
$cityStr .= "속령 $citycount<br>";
|
||||
}
|
||||
|
||||
if($me['skin'] < 1) {
|
||||
$tempColor = $_basecolor; $tempColor2 = $_basecolor2; $tempColor3 = $_basecolor3; $tempColor4 = $_basecolor4;
|
||||
$_basecolor = "000000"; $_basecolor2 = "000000"; $_basecolor3 = "000000"; $_basecolor4 = "000000";
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
+1
-5
@@ -12,7 +12,7 @@ $query = "select conlimit from game where no=1";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$admin = MYDB_fetch_array($result);
|
||||
|
||||
$query = "select skin,no,nation,level,con,turntime,belong from general where owner='{$_SESSION['userID']}'";
|
||||
$query = "select no,nation,level,con,turntime,belong from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
@@ -33,10 +33,6 @@ if($type == 0) {
|
||||
}
|
||||
$sel[$type] = "selected";
|
||||
|
||||
if($me['skin'] < 1) {
|
||||
$tempColor = $_basecolor; $tempColor2 = $_basecolor2; $tempColor3 = $_basecolor3; $tempColor4 = $_basecolor4;
|
||||
$_basecolor = "000000"; $_basecolor2 = "000000"; $_basecolor3 = "000000"; $_basecolor4 = "000000";
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
@@ -10,7 +10,7 @@ increaseRefresh("인사부", 1);
|
||||
//훼섭 추방을 위해 갱신
|
||||
checkTurn($connect);
|
||||
|
||||
$query = "select skin,no,nation,level from general where owner='{$_SESSION['userID']}'";
|
||||
$query = "select no,nation,level from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
@@ -20,10 +20,6 @@ if($meLevel == 0) {
|
||||
exit();
|
||||
}
|
||||
|
||||
if($me['skin'] < 1) {
|
||||
$tempColor = $_basecolor; $tempColor2 = $_basecolor2; $tempColor3 = $_basecolor3; $tempColor4 = $_basecolor4;
|
||||
$_basecolor = "000000"; $_basecolor2 = "000000"; $_basecolor3 = "000000"; $_basecolor4 = "000000";
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
@@ -8,7 +8,7 @@ CheckLogin();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("세력도시", 1);
|
||||
|
||||
$query = "select no,nation,level,skin from general where owner='{$_SESSION['userID']}'";
|
||||
$query = "select no,nation,level from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
@@ -22,10 +22,6 @@ if($type == 0) {
|
||||
}
|
||||
$sel[$type] = "selected";
|
||||
|
||||
if($me['skin'] < 1) {
|
||||
$tempColor = $_basecolor; $tempColor2 = $_basecolor2; $tempColor3 = $_basecolor3; $tempColor4 = $_basecolor4;
|
||||
$_basecolor = "000000"; $_basecolor2 = "000000"; $_basecolor3 = "000000"; $_basecolor4 = "000000";
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
+2
-6
@@ -8,7 +8,7 @@ CheckLogin();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("세력장수", 1);
|
||||
|
||||
$query = "select skin,no,nation,level from general where owner='{$_SESSION['userID']}'";
|
||||
$query = "select no,nation,level from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
@@ -23,10 +23,6 @@ if($type == 0) {
|
||||
}
|
||||
$sel[$type] = "selected";
|
||||
|
||||
if($me['skin'] < 1) {
|
||||
$tempColor = $_basecolor; $tempColor2 = $_basecolor2; $tempColor3 = $_basecolor3; $tempColor4 = $_basecolor4;
|
||||
$_basecolor = "000000"; $_basecolor2 = "000000"; $_basecolor3 = "000000"; $_basecolor4 = "000000";
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
@@ -140,7 +136,7 @@ for($j=0; $j < $gencount; $j++) {
|
||||
$imageTemp = GetImageURL($general['imgsvr']);
|
||||
echo "
|
||||
<tr>
|
||||
<td align=center"; echo $me['skin']>0?" background={$imageTemp}/{$general['picture']}":""; echo " height=64></td>
|
||||
<td align=center background={$imageTemp}/{$general['picture']} height=64></td>
|
||||
<td align=center>$name</td>
|
||||
<td align=center>"; echo getLevel($general['level'], $nation['level']); echo "</td>
|
||||
<td align=center>".getDed($general['dedication'])."</td>
|
||||
|
||||
@@ -33,7 +33,7 @@ if($me['level'] == 0) {
|
||||
</table>
|
||||
<br>
|
||||
<?php
|
||||
$query = "select nation,skin from general where owner='{$_SESSION['userID']}'";
|
||||
$query = "select nation from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
@@ -141,7 +141,7 @@ echo"
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center valign=top id=bg1>국가열전</td>
|
||||
<td colspan=7 id=bg0>".ConvertLog($nation['history'], $me['skin'])."</td>
|
||||
<td colspan=7 id=bg0>".ConvertLog($nation['history'])."</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>";
|
||||
|
||||
+6
-31
@@ -25,18 +25,14 @@ if($btn == "설정저장" && $me['myset'] > 0) {
|
||||
$submit = 'hidden';
|
||||
}
|
||||
|
||||
$query = "update general set myset=myset-1,map='$map',mode='$mode',skin='$skin',tnmt='$tnmt' where owner='{$_SESSION['userID']}'";
|
||||
$query = "update general set myset=myset-1,map='$map',mode='$mode',tnmt='$tnmt' where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
}
|
||||
|
||||
$query = "select no,skin,map,mode,tnmt,myset from general where owner='{$_SESSION['userID']}'";
|
||||
$query = "select no,map,mode,tnmt,myset from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
if($me['skin'] < 1) {
|
||||
$tempColor = $_basecolor; $tempColor2 = $_basecolor2; $tempColor3 = $_basecolor3; $tempColor4 = $_basecolor4;
|
||||
$_basecolor = "000000"; $_basecolor2 = "000000"; $_basecolor3 = "000000"; $_basecolor4 = "000000";
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
@@ -67,27 +63,6 @@ function go(type) {
|
||||
</td>
|
||||
<td width=50% valign=top>
|
||||
<form name=form1 action=b_myPage.php method=post>
|
||||
스킨 【
|
||||
<select name=skin>
|
||||
<option value=0 <?=$me['skin']==0?"selected ":" ";?>style=color:ffffff;background-color:000000;font-size:13px;>=== 간 단 ===</option>
|
||||
<option value=1 <?=$me['skin']==1?"selected ":" ";?>style=color:225500;background-color:330000;font-size:13px;>=== 표 준 ===</option>
|
||||
<option value=2 <?=$me['skin']==2?"selected ":" ";?>style=color:ffffff;background-color:000000;font-size:13px;>=== 계 절 ===</option>
|
||||
<option value=3 <?=$me['skin']==3?"selected ":" ";?>style=color:ff69b4;background-color:330033;font-size:13px;>=== 봄 ===</option>
|
||||
<option value=4 <?=$me['skin']==4?"selected ":" ";?>style=color:225500;background-color:001717;font-size:13px;>=== 여 름 ===</option>
|
||||
<option value=5 <?=$me['skin']==5?"selected ":" ";?>style=color:b8860b;background-color:220000;font-size:13px;>=== 가 을 ===</option>
|
||||
<option value=6 <?=$me['skin']==6?"selected ":" ";?>style=color:666666;background-color:222222;font-size:13px;>=== 겨 울 ===</option>
|
||||
<option value=7 <?=$me['skin']==7?"selected ":" ";?>style=color:660000;background-color:220000;font-size:13px;>=== 주 작 ===</option>
|
||||
<option value=8 <?=$me['skin']==8?"selected ":" ";?>style=color:006600;background-color:002200;font-size:13px;>=== 초 태 ===</option>
|
||||
<option value=9 <?=$me['skin']==9?"selected ":" ";?>style=color:000066;background-color:000022;font-size:13px;>=== 청 룡 ===</option>
|
||||
<option value=10 <?=$me['skin']==10?"selected ":" ";?>style=color:006666;background-color:002222;font-size:13px;>=== 녹 기 ===</option>
|
||||
<option value=11 <?=$me['skin']==11?"selected ":" ";?>style=color:660066;background-color:220022;font-size:13px;>=== 남 황 ===</option>
|
||||
<option value=12 <?=$me['skin']==12?"selected ":" ";?>style=color:666600;background-color:222200;font-size:13px;>=== 황 봉 ===</option>
|
||||
<option value=13 <?=$me['skin']==13?"selected ":" ";?>style=color:666666;background-color:222222;font-size:13px;>=== 현 무 ===</option>
|
||||
<option value=14 <?=$me['skin']==14?"selected ":" ";?>style=color:ffffff;background-color:000000;font-size:13px;>=== 랜 덤 ===</option>
|
||||
<option value=15 <?=$me['skin']==15?"selected ":" ";?>style=color:pink;background-color:000000;font-size:13px;>==소녀시대===</option>
|
||||
<option value=16 <?=$me['skin']==16?"selected ":" ";?>style=color:pink;background-color:000000;font-size:13px;>=== 태 연 ===</option>
|
||||
<option value=17 <?=$me['skin']==17?"selected ":" ";?>style=color:pink;background-color:000000;font-size:13px;>=== 소 원 ===</option>
|
||||
</select> 】<br><br>
|
||||
지도수준 【
|
||||
<input type=radio name=map value=0 <?=$me['map']==0?"checked":""; ?>>상세
|
||||
<input type=radio name=map value=1 <?=$me['map']==1?"checked":""; ?>>간단
|
||||
@@ -116,10 +91,10 @@ function go(type) {
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign=top>
|
||||
<?php MyLog($me['no'], 24, $me['skin']); ?>
|
||||
<?php MyLog($me['no'], 24); ?>
|
||||
</td>
|
||||
<td valign=top>
|
||||
<?php MyBatLog($me['no'], 24, $me['skin']); ?>
|
||||
<?php MyBatLog($me['no'], 24); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -128,10 +103,10 @@ function go(type) {
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign=top>
|
||||
<?php MyHistory($connect, $me['no'], $me['skin']); ?>
|
||||
<?php MyHistory($connect, $me['no']); ?>
|
||||
</td>
|
||||
<td valign=top>
|
||||
<?php MyBatRes($me['no'], 24, $me['skin']); ?>
|
||||
<?php MyBatRes($me['no'], 24); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -8,14 +8,10 @@ CheckLogin();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("회의실", 1);
|
||||
|
||||
$query = "select skin,no,nation from general where owner='{$_SESSION['userID']}'";
|
||||
$query = "select no,nation from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
if($me['skin'] < 1) {
|
||||
$tempColor = $_basecolor; $tempColor2 = $_basecolor2; $tempColor3 = $_basecolor3; $tempColor4 = $_basecolor4;
|
||||
$_basecolor = "000000"; $_basecolor2 = "000000"; $_basecolor3 = "000000"; $_basecolor4 = "000000";
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
+1
-5
@@ -8,7 +8,7 @@ CheckLogin();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("부대편성", 1);
|
||||
|
||||
$query = "select skin,no,nation,troop from general where owner='{$_SESSION['userID']}'";
|
||||
$query = "select no,nation,troop from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
@@ -16,10 +16,6 @@ $query = "select * from troop where nation='{$me['nation']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$troopcount = MYDB_num_rows($result);
|
||||
|
||||
if($me['skin'] < 1) {
|
||||
$tempColor = $_basecolor; $tempColor2 = $_basecolor2; $tempColor3 = $_basecolor3; $tempColor4 = $_basecolor4;
|
||||
$_basecolor = "000000"; $_basecolor2 = "000000"; $_basecolor3 = "000000"; $_basecolor4 = "000000";
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
+52
-61
@@ -227,7 +227,7 @@ function getRandGenName() {
|
||||
function cityInfo($connect) {
|
||||
global $_basecolor, $_basecolor2, $images;
|
||||
|
||||
$query = "select no,city,skin from general where owner='{$_SESSION['userID']}'";
|
||||
$query = "select no,city from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
@@ -251,7 +251,7 @@ function cityInfo($connect) {
|
||||
$tradeStr = $city['trade'] . "%";
|
||||
}
|
||||
|
||||
if($nation['color'] == "" || $me['skin'] < 1) { $nation['color'] = "000000"; }
|
||||
if($nation['color'] == "" ) { $nation['color'] = "000000"; }
|
||||
echo "<table width=640 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg2>
|
||||
<tr><td colspan=8 align=center style=height:20;color:".newColor($nation['color']).";background-color:{$nation['color']};font-weight:bold;font-size:13px;>【 ".getRegion($city['region'])." | ".getCityLevel($city['level'])." 】 {$city['name']}</td></tr>
|
||||
<tr><td colspan=8 align=center style=height:20;color:".newColor($nation['color']).";background-color:{$nation['color']}><b>";
|
||||
@@ -291,9 +291,9 @@ function cityInfo($connect) {
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowspan=2 align=center id=bg1><b>주민</b></td>
|
||||
<td height=7 colspan=3>".bar($pop, $me['skin'])."</td>
|
||||
<td height=7 colspan=3>".bar($pop)."</td>
|
||||
<td rowspan=2 align=center id=bg1><b>민심</b></td>
|
||||
<td height=7>".bar($rate, $me['skin'])."</td>
|
||||
<td height=7>".bar($rate)."</td>
|
||||
<td rowspan=2 align=center id=bg1><b>태수</b></td>
|
||||
<td rowspan=2 align=center>{$gen1['name']}</td>
|
||||
</tr>
|
||||
@@ -303,11 +303,11 @@ function cityInfo($connect) {
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=50 rowspan=2 align=center id=bg1><b>농업</b></td>
|
||||
<td width=100 height=7>".bar($agri, $me['skin'])."</td>
|
||||
<td width=100 height=7>".bar($agri)."</td>
|
||||
<td width=50 rowspan=2 align=center id=bg1><b>상업</b></td>
|
||||
<td width=100 height=7>".bar($comm, $me['skin'])."</td>
|
||||
<td width=100 height=7>".bar($comm)."</td>
|
||||
<td width=50 rowspan=2 align=center id=bg1><b>치안</b></td>
|
||||
<td width=100 height=7>".bar($secu, $me['skin'])."</td>
|
||||
<td width=100 height=7>".bar($secu)."</td>
|
||||
<td width=50 rowspan=2 align=center id=bg1><b>군사</b></td>
|
||||
<td rowspan=2 align=center>{$gen2['name']}</td>
|
||||
</tr>
|
||||
@@ -318,11 +318,11 @@ function cityInfo($connect) {
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowspan=2 align=center id=bg1><b>수비</b></td>
|
||||
<td height=7>".bar($def, $me['skin'])."</td>
|
||||
<td height=7>".bar($def)."</td>
|
||||
<td rowspan=2 align=center id=bg1><b>성벽</b></td>
|
||||
<td height=7>".bar($wall, $me['skin'])."</td>
|
||||
<td height=7>".bar($wall)."</td>
|
||||
<td rowspan=2 align=center id=bg1><b>시세</b></td>
|
||||
<td height=7>".bar($trade, $me['skin'])."</td>
|
||||
<td height=7>".bar($trade)."</td>
|
||||
<td rowspan=2 align=center id=bg1><b>시중</b></td>
|
||||
<td rowspan=2 align=center>{$gen3['name']}</td>
|
||||
</tr>
|
||||
@@ -342,7 +342,7 @@ function myNationInfo($connect) {
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$admin = MYDB_fetch_array($result);
|
||||
|
||||
$query = "select skin,no,nation from general where owner='{$_SESSION['userID']}'";
|
||||
$query = "select no,nation from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
@@ -370,13 +370,8 @@ function myNationInfo($connect) {
|
||||
<tr>
|
||||
<td colspan=4 align=center ";
|
||||
|
||||
if($me['skin'] < 1) {
|
||||
if($me['nation'] == 0) { echo "style=font-weight:bold;font-size:13px;>【재 야】"; }
|
||||
else { echo "style=font-weight:bold;font-size:13px;>국가【 {$nation['name']} 】"; }
|
||||
} else {
|
||||
if($me['nation'] == 0) { echo "style=color:white;background-color:000000;font-weight:bold;font-size:13px;>【재 야】"; }
|
||||
else { echo "style=color:".newColor($nation['color']).";background-color:{$nation['color']};font-weight:bold;font-size:13px;>국가【 {$nation['name']} 】"; }
|
||||
}
|
||||
if($me['nation'] == 0) { echo "style=color:white;background-color:000000;font-weight:bold;font-size:13px;>【재 야】"; }
|
||||
else { echo "style=color:".newColor($nation['color']).";background-color:{$nation['color']};font-weight:bold;font-size:13px;>국가【 {$nation['name']} 】"; }
|
||||
|
||||
echo "
|
||||
</td>
|
||||
@@ -844,24 +839,20 @@ function CoreCommandTable($connect) {
|
||||
}
|
||||
|
||||
function myInfo($connect) {
|
||||
$query = "select no,skin from general where owner='{$_SESSION['userID']}'";
|
||||
$query = "select no from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
generalInfo($connect, $me['no'], $me['skin']);
|
||||
generalInfo($connect, $me['no']);
|
||||
}
|
||||
|
||||
function generalInfo($connect, $no, $skin) {
|
||||
function generalInfo($connect, $no) {
|
||||
global $_basecolor, $_basecolor2, $image, $images;
|
||||
|
||||
$query = "select img from game where no='1'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$admin = MYDB_fetch_array($result);
|
||||
|
||||
$query = "select skin from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
$query = "select block,no,name,picture,imgsvr,injury,nation,city,troop,leader,leader2,power,power2,intel,intel2,explevel,experience,level,gold,rice,crew,crewtype,train,atmos,weap,book,horse,item,turntime,killturn,age,personal,special,specage,special2,specage2,mode,con,connect from general where no='$no'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$general = MYDB_fetch_array($result);
|
||||
@@ -924,7 +915,7 @@ function generalInfo($connect, $no, $skin) {
|
||||
$remaining = substr($general['turntime'], 14, 2) - date('i');
|
||||
if($remaining < 0) { $remaining = 60 + $remaining; }
|
||||
|
||||
if($nation['color'] == "" || $skin < 1) { $nation['color'] = "000000"; }
|
||||
if($nation['color'] == "") { $nation['color'] = "000000"; }
|
||||
|
||||
if($general['age'] < 60) { $general['age'] = "<font color=limegreen>{$general['age']} 세</font>"; }
|
||||
elseif($general['age'] < 80) { $general['age'] = "<font color=yellow>{$general['age']} 세</font>"; }
|
||||
@@ -960,19 +951,19 @@ function generalInfo($connect, $no, $skin) {
|
||||
$imageTemp = GetImageURL($general['imgsvr']);
|
||||
echo "<table width=498 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg2>
|
||||
<tr>
|
||||
<td width=64 height=64 align=center rowspan=3"; echo $skin>0?" background={$imageTemp}/{$general['picture']}":""; echo "> </td>
|
||||
<td width=64 height=64 align=center rowspan=3 background={$imageTemp}/{$general['picture']}> </td>
|
||||
<td align=center colspan=9 height=16 style=color:".newColor($nation['color']).";background-color:{$nation['color']};font-weight:bold;font-size:13px;>{$specUser} {$general['name']} 【 {$level} | {$call} | {$color}{$injury}</font> 】 ".substr($general['turntime'], 11)."</td>
|
||||
</tr>
|
||||
<tr height=16>
|
||||
<td align=center id=bg1><b>통솔</b></td>
|
||||
<td align=center> {$color}{$leader}</font>{$lbonus} </td>
|
||||
<td align=center width=45>".bar(expStatus($general['leader2']), $skin, 20)."</td>
|
||||
<td align=center width=45>".bar(expStatus($general['leader2']), 20)."</td>
|
||||
<td align=center id=bg1><b>무력</b></td>
|
||||
<td align=center> {$color}{$power}</font> </td>
|
||||
<td align=center width=45>".bar(expStatus($general['power2']), $skin, 20)."</td>
|
||||
<td align=center width=45>".bar(expStatus($general['power2']), 20)."</td>
|
||||
<td align=center id=bg1><b>지력</b></td>
|
||||
<td align=center> {$color}{$intel}</font> </td>
|
||||
<td align=center width=45>".bar(expStatus($general['intel2']), $skin, 20)."</td>
|
||||
<td align=center width=45>".bar(expStatus($general['intel2']), 20)."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center id=bg1><b>명마</b></td>
|
||||
@@ -983,7 +974,7 @@ function generalInfo($connect, $no, $skin) {
|
||||
<td align=center colspan=2><font size=1>$bookname</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center height=64 rowspan=3"; echo $skin>0?" background={$weapImage}":""; echo "> </td>
|
||||
<td align=center height=64 rowspan=3 background={$weapImage}> </td>
|
||||
<td align=center id=bg1><b>자금</b></td>
|
||||
<td align=center colspan=2>{$general['gold']}</td>
|
||||
<td align=center id=bg1><b>군량</b></td>
|
||||
@@ -1010,7 +1001,7 @@ function generalInfo($connect, $no, $skin) {
|
||||
<tr height=20>
|
||||
<td align=center id=bg1><b>Lv</b></td>
|
||||
<td align=center> {$general['explevel']} </td>
|
||||
<td align=center colspan=5>".bar(getLevelPer($general['experience'], $general['explevel']), $skin, 20)."</td>
|
||||
<td align=center colspan=5>".bar(getLevelPer($general['experience'], $general['explevel']), 20)."</td>
|
||||
<td align=center id=bg1><b>연령</b></td>
|
||||
<td align=center colspan=2>{$general['age']}</td>
|
||||
</tr>
|
||||
@@ -1032,14 +1023,14 @@ function generalInfo($connect, $no, $skin) {
|
||||
}
|
||||
|
||||
function myInfo2($connect) {
|
||||
$query = "select no,skin from general where owner='{$_SESSION['userID']}'";
|
||||
$query = "select no from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
generalInfo2($connect, $me['no'], $me['skin']);
|
||||
generalInfo2($connect, $me['no']);
|
||||
}
|
||||
|
||||
function generalInfo2($connect, $no, $skin) {
|
||||
function generalInfo2($connect, $no) {
|
||||
global $_basecolor, $_basecolor2, $image, $images, $_dexLimit;
|
||||
|
||||
$query = "select personal,experience,dedication,firenum,warnum,killnum,deathnum,killcrew,deathcrew,belong,killnum*100/warnum as winrate,killcrew/deathcrew*100 as killrate,dex0,dex10,dex20,dex30,dex40 from general where no='$no'";
|
||||
@@ -1120,27 +1111,27 @@ function generalInfo2($connect, $no, $skin) {
|
||||
<tr height=16>
|
||||
<td width=64 align=center id=bg1><b>보병</b></td>
|
||||
<td width=64> {$general['dex0']}</td>
|
||||
<td width=366 align=center>".bar($dex0, $skin, 16)."</td>
|
||||
<td width=366 align=center>".bar($dex0, 16)."</td>
|
||||
</tr>
|
||||
<tr height=16>
|
||||
<td align=center id=bg1><b>궁병</b></td>
|
||||
<td> {$general['dex10']}</td>
|
||||
<td align=center>".bar($dex10, $skin, 16)."</td>
|
||||
<td align=center>".bar($dex10, 16)."</td>
|
||||
</tr>
|
||||
<tr height=16>
|
||||
<td align=center id=bg1><b>기병</b></td>
|
||||
<td> {$general['dex20']}</td>
|
||||
<td align=center>".bar($dex20, $skin, 16)."</td>
|
||||
<td align=center>".bar($dex20, 16)."</td>
|
||||
</tr>
|
||||
<tr height=16>
|
||||
<td align=center id=bg1><b>귀병</b></td>
|
||||
<td> {$general['dex30']}</td>
|
||||
<td align=center>".bar($dex30, $skin, 16)."</td>
|
||||
<td align=center>".bar($dex30, 16)."</td>
|
||||
</tr>
|
||||
<tr height=16>
|
||||
<td align=center id=bg1><b>차병</b></td>
|
||||
<td> {$general['dex40']}</td>
|
||||
<td align=center>".bar($dex40, $skin, 16)."</td>
|
||||
<td align=center>".bar($dex40, 16)."</td>
|
||||
</tr>
|
||||
</table>";
|
||||
}
|
||||
@@ -1257,7 +1248,7 @@ function pushHistory($history) {
|
||||
file_put_contents(__dir__.'/logs/_history.txt', $text, FILE_APPEND);
|
||||
}
|
||||
|
||||
function getRawLog($path, $count, $line_length, $skin){
|
||||
function getRawLog($path, $count, $line_length){
|
||||
//TODO: tail과 유사한 형태로 처리할 수 있는게 나을 듯. 그 이전에 파일 로그는 좀... ㅜㅜ
|
||||
if(!file_exists($path)){
|
||||
return null;
|
||||
@@ -1269,7 +1260,7 @@ function getRawLog($path, $count, $line_length, $skin){
|
||||
fclose($fp);
|
||||
}
|
||||
|
||||
function TrickLog($count, $skin) {
|
||||
function TrickLog($count) {
|
||||
if(!file_exists("logs/_tricklog.txt")){
|
||||
return '';
|
||||
}
|
||||
@@ -1279,11 +1270,11 @@ function TrickLog($count, $skin) {
|
||||
@fclose($fp);
|
||||
$log = explode("\n",$file);
|
||||
$str = "";
|
||||
for($i=0; $i < $count; $i++) { $str .= ConvertLog($log[count($log)-2-$i], $skin)."<br>"; }
|
||||
for($i=0; $i < $count; $i++) { $str .= ConvertLog($log[count($log)-2-$i])."<br>"; }
|
||||
echo $str;
|
||||
}
|
||||
|
||||
function AllLog($count, $skin) {
|
||||
function AllLog($count) {
|
||||
if(!file_exists("logs/_alllog.txt")){
|
||||
return '';
|
||||
}
|
||||
@@ -1294,12 +1285,12 @@ function AllLog($count, $skin) {
|
||||
$log = explode("\n",$file);
|
||||
$str = "";
|
||||
for($i=0; $i < $count; $i++) {
|
||||
$str .= isset($log[count($log)-2-$i]) ? ConvertLog($log[count($log)-2-$i], $skin)."<br>" : "<br>";
|
||||
$str .= isset($log[count($log)-2-$i]) ? ConvertLog($log[count($log)-2-$i])."<br>" : "<br>";
|
||||
}
|
||||
echo $str;
|
||||
}
|
||||
|
||||
function AuctionLog($count, $skin) {
|
||||
function AuctionLog($count) {
|
||||
if(!file_exists("logs/_auctionlog.txt")){
|
||||
return '';
|
||||
}
|
||||
@@ -1309,11 +1300,11 @@ function AuctionLog($count, $skin) {
|
||||
@fclose($fp);
|
||||
$log = explode("\n",$file);
|
||||
$str = "";
|
||||
for($i=0; $i < $count; $i++) { $str .= ConvertLog($log[count($log)-2-$i], $skin)."<br>"; }
|
||||
for($i=0; $i < $count; $i++) { $str .= ConvertLog($log[count($log)-2-$i])."<br>"; }
|
||||
echo $str;
|
||||
}
|
||||
|
||||
function History($count, $skin) {
|
||||
function History($count) {
|
||||
if(!file_exists("logs/_history.txt")){
|
||||
return '';
|
||||
}
|
||||
@@ -1324,12 +1315,12 @@ function History($count, $skin) {
|
||||
$log = explode("\n",$file);
|
||||
$str = "";
|
||||
for($i=0; $i < $count; $i++) {
|
||||
$str .= isset($log[count($log)-2-$i]) ? ConvertLog($log[count($log)-2-$i], $skin)."<br>" : "<br>";
|
||||
$str .= isset($log[count($log)-2-$i]) ? ConvertLog($log[count($log)-2-$i])."<br>" : "<br>";
|
||||
}
|
||||
echo $str;
|
||||
}
|
||||
|
||||
function MyLog($no, $count, $skin) {
|
||||
function MyLog($no, $count) {
|
||||
if(!file_exists("logs/gen{$no}.txt")){
|
||||
return '';
|
||||
}
|
||||
@@ -1340,12 +1331,12 @@ function MyLog($no, $count, $skin) {
|
||||
$log = explode("\n",$file);
|
||||
$str = "";
|
||||
for($i=0; $i < $count; $i++) {
|
||||
$str .= isset($log[count($log)-2-$i]) ? ConvertLog($log[count($log)-2-$i], $skin)."<br>" : "<br>";
|
||||
$str .= isset($log[count($log)-2-$i]) ? ConvertLog($log[count($log)-2-$i])."<br>" : "<br>";
|
||||
}
|
||||
echo $str;
|
||||
}
|
||||
|
||||
function MyBatRes($no, $count, $skin) {
|
||||
function MyBatRes($no, $count) {
|
||||
if(!file_exists("logs/batres{$no}.txt")){
|
||||
return '';
|
||||
}
|
||||
@@ -1356,12 +1347,12 @@ function MyBatRes($no, $count, $skin) {
|
||||
$log = explode("\n",$file);
|
||||
$str = "";
|
||||
for($i=0; $i < $count; $i++) {
|
||||
$str .= isset($log[count($log)-2-$i]) ? ConvertLog($log[count($log)-2-$i], $skin)."<br>" : "<br>";
|
||||
$str .= isset($log[count($log)-2-$i]) ? ConvertLog($log[count($log)-2-$i])."<br>" : "<br>";
|
||||
}
|
||||
echo $str;
|
||||
}
|
||||
|
||||
function MyBatLog($no, $count, $skin) {
|
||||
function MyBatLog($no, $count) {
|
||||
if(!file_exists("logs/batlog{$no}.txt")){
|
||||
return '';
|
||||
}
|
||||
@@ -1372,16 +1363,16 @@ function MyBatLog($no, $count, $skin) {
|
||||
$log = explode("\n",$file);
|
||||
$str = "";
|
||||
for($i=0; $i < $count; $i++) {
|
||||
$str .= isset($log[count($log)-2-$i]) ? ConvertLog($log[count($log)-2-$i], $skin)."<br>" : "<br>";
|
||||
$str .= isset($log[count($log)-2-$i]) ? ConvertLog($log[count($log)-2-$i])."<br>" : "<br>";
|
||||
}
|
||||
echo $str;
|
||||
}
|
||||
|
||||
function MyHistory($connect, $no, $skin) {
|
||||
function MyHistory($connect, $no) {
|
||||
$query = "select history from general where no='$no'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$general = MYDB_fetch_array($result);
|
||||
echo ConvertLog($general['history'], $skin);
|
||||
echo ConvertLog($general['history']);
|
||||
}
|
||||
|
||||
function addHistory($me, $history) {
|
||||
@@ -1396,12 +1387,12 @@ function addNationHistory($nation, $history) {
|
||||
$history.'<br>', $nation['nation']);
|
||||
}
|
||||
|
||||
function adminMsg($connect, $skin=1) {
|
||||
function adminMsg($connect) {
|
||||
$query = "select msg from game where no='1'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$admin = MYDB_fetch_array($result);
|
||||
|
||||
echo "운영자 메세지 : <font color="; echo $skin>0?"yellow":"white"; echo ">";
|
||||
echo "운영자 메세지 : <font color=yellow>";
|
||||
echo $admin['msg']."</font>";
|
||||
}
|
||||
|
||||
@@ -1437,7 +1428,7 @@ function onlineNation($connect) {
|
||||
}
|
||||
|
||||
function nationMsg($connect) {
|
||||
$query = "select no,nation,skin from general where owner='{$_SESSION['userID']}'";
|
||||
$query = "select no,nation from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
@@ -1445,7 +1436,7 @@ function nationMsg($connect) {
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$nation = MYDB_fetch_array($result);
|
||||
|
||||
echo "<font color="; echo $me['skin']>0?"orange":"white"; echo ">".$nation['msg']."</font>";
|
||||
echo "<font color=orange>".$nation['msg']."</font>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
+10
-14
@@ -37,7 +37,7 @@ echo "
|
||||
}
|
||||
|
||||
|
||||
function bar($per, $skin=1, $h=7) {
|
||||
function bar($per, $h=7) {
|
||||
global $images;
|
||||
if($h == 7) { $bd = 0; $h = 7; $h2 = 5; }
|
||||
else { $bd = 1; $h = 12; $h2 = 8; }
|
||||
@@ -48,14 +48,10 @@ function bar($per, $skin=1, $h=7) {
|
||||
$str2 = "<td width=*% background={$images}/pr{$h2}.gif></td>";
|
||||
if($per <= 0) { $str1 = ""; }
|
||||
elseif($per >= 100) { $str2 = ""; }
|
||||
if($skin == 0) {
|
||||
$str = "-";
|
||||
} else {
|
||||
$str = "
|
||||
<table width=100% height={$h} border={$bd} cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:1;>
|
||||
<tr>{$str1}{$str2}</tr>
|
||||
</table>";
|
||||
}
|
||||
$str = "
|
||||
<table width=100% height={$h} border={$bd} cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:1;>
|
||||
<tr>{$str1}{$str2}</tr>
|
||||
</table>";
|
||||
return $str;
|
||||
}
|
||||
|
||||
@@ -132,7 +128,7 @@ function printCitysName($connect, $cityNo, $distance=1) {
|
||||
}
|
||||
|
||||
|
||||
function info($connect, $type=0, $skin=1) {
|
||||
function info($connect, $type=0) {
|
||||
$query = "select year,month,turnterm,maxgeneral from game where no='1'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$admin = MYDB_fetch_array($result);
|
||||
@@ -149,16 +145,16 @@ function info($connect, $type=0, $skin=1) {
|
||||
|
||||
switch($type) {
|
||||
case 0:
|
||||
echo "현재 : {$admin['year']}年 {$admin['month']}月 (<font color="; echo $skin>0?"cyan":"white"; echo ">$termtype</font> 서버)<br> 등록 장수 : 유저 {$gencount} / {$admin['maxgeneral']} 명 + <font color="; echo $skin>0?"cyan":"white"; echo ">NPC {$npccount} 명</font>";
|
||||
echo "현재 : {$admin['year']}年 {$admin['month']}月 (<font color=cyan>$termtype</font> 서버)<br> 등록 장수 : 유저 {$gencount} / {$admin['maxgeneral']} 명 + <font color=cyan>NPC {$npccount} 명</font>";
|
||||
break;
|
||||
case 1:
|
||||
echo "현재 : {$admin['year']}年 {$admin['month']}月 (<font color="; echo $skin>0?"cyan":"white"; echo ">$termtype</font> 서버) 등록 장수 : 유저 {$gencount} / {$admin['maxgeneral']} 명 + <font color="; echo $skin>0?"cyan":"white"; echo ">NPC {$npccount} 명</font>";
|
||||
echo "현재 : {$admin['year']}年 {$admin['month']}月 (<font color=cyan>$termtype</font> 서버) 등록 장수 : 유저 {$gencount} / {$admin['maxgeneral']} 명 + <font color=cyan>NPC {$npccount} 명</font>";
|
||||
break;
|
||||
case 2:
|
||||
echo "현재 : {$admin['year']}年 {$admin['month']}月 (<font color="; echo $skin>0?"cyan":"white"; echo ">$termtype</font> 서버)";
|
||||
echo "현재 : {$admin['year']}年 {$admin['month']}月 (<font color=cyan>$termtype</font> 서버)";
|
||||
break;
|
||||
case 3:
|
||||
echo "등록 장수 : 유저 {$gencount} / {$admin['maxgeneral']} 명 + <font color="; echo $skin>0?"cyan":"white"; echo ">NPC {$npccount} 명</font>";
|
||||
echo "등록 장수 : 유저 {$gencount} / {$admin['maxgeneral']} 명 + <font color=cyan>NPC {$npccount} 명</font>";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
+8
-13
@@ -279,7 +279,7 @@ function getMailboxList(){
|
||||
// who : xxxx,xxxx(발신인, 수신인)
|
||||
function DecodeMsg($connect, $msg, $type, $who, $date, $bg, $num=0) {
|
||||
//FIXME: 폐기
|
||||
$query = "select skin,no,nation,name,picture,level from general where owner='{$_SESSION['userID']}'";
|
||||
$query = "select no,nation,name,picture,level from general where owner='{$_SESSION['userID']}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
@@ -312,11 +312,11 @@ function DecodeMsg($connect, $msg, $type, $who, $date, $bg, $num=0) {
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$dip = MYDB_fetch_array($result);
|
||||
|
||||
ShowMsg($me['skin'], $bgcolor, $category, $sndr['picture'], $sndr['imgsvr'], "{$sndr['name']}:{$sndrnation['name']}▶", $sndrnation['color'], $sndr['name'], $sndrnation['color'], $msg, $date, $num, $from, $term, $me['level'], $dip['reserved']);
|
||||
ShowMsg($bgcolor, $category, $sndr['picture'], $sndr['imgsvr'], "{$sndr['name']}:{$sndrnation['name']}▶", $sndrnation['color'], $sndr['name'], $sndrnation['color'], $msg, $date, $num, $from, $term, $me['level'], $dip['reserved']);
|
||||
} elseif($category <= 8) {
|
||||
$rcvrnation = getNationStaticInfo($to);
|
||||
|
||||
ShowMsg($me['skin'], $bgcolor, $category, $sndr['picture'], $sndr['imgsvr'], "{$sndr['name']}:{$sndrnation['name']}▶", $sndrnation['color'], $rcvrnation['name'], $rcvrnation['color'], $msg, $date, $num, $from, $term, $me['level']);
|
||||
ShowMsg($bgcolor, $category, $sndr['picture'], $sndr['imgsvr'], "{$sndr['name']}:{$sndrnation['name']}▶", $sndrnation['color'], $rcvrnation['name'], $rcvrnation['color'], $msg, $date, $num, $from, $term, $me['level']);
|
||||
} elseif($category <= 11) {
|
||||
$query = "select name,picture,nation from general where no='$to'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
@@ -328,7 +328,7 @@ function DecodeMsg($connect, $msg, $type, $who, $date, $bg, $num=0) {
|
||||
} else {
|
||||
$rcvrnation = getNationStaticInfo($rcvr['nation']);
|
||||
}
|
||||
ShowMsg($me['skin'], $bgcolor, $category, $sndr['picture'], $sndr['imgsvr'], "{$sndr['name']}:{$sndrnation['name']}▶", $sndrnation['color'], "{$rcvr['name']}:{$rcvrnation['name']}", $rcvrnation['color'], $msg, $date, $num, $from, $term);
|
||||
ShowMsg($bgcolor, $category, $sndr['picture'], $sndr['imgsvr'], "{$sndr['name']}:{$sndrnation['name']}▶", $sndrnation['color'], "{$rcvr['name']}:{$rcvrnation['name']}", $rcvrnation['color'], $msg, $date, $num, $from, $term);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -355,7 +355,7 @@ function MsgDip($connect, $bg) {
|
||||
if($nation['dip4']) { echo "\n"; DecodeMsg($connect, $nation['dip4'], $nation['dip4_type'], $nation['dip4_who'], $nation['dip4_when'], $bg, 4); }
|
||||
}
|
||||
|
||||
function ShowMsg($skin, $bgcolor, $type, $picture, $imgsvr, $me, $mycolor, $you, $youcolor, $msg, $date, $num=0, $who=0, $when=0, $level=0, $note="") {
|
||||
function ShowMsg($bgcolor, $type, $picture, $imgsvr, $me, $mycolor, $you, $youcolor, $msg, $date, $num=0, $who=0, $when=0, $level=0, $note="") {
|
||||
if($msg == "") return;
|
||||
|
||||
$msg = Tag2Code($msg);
|
||||
@@ -382,14 +382,9 @@ function ShowMsg($skin, $bgcolor, $type, $picture, $imgsvr, $me, $mycolor, $you,
|
||||
case 10: $sign = ""; $corebutton = ""; break;
|
||||
case 11: $sign = ""; $site = "d_scout.php"; break;
|
||||
}
|
||||
if($skin == 0) {
|
||||
$bgcolor = "000000"; $picture = "";
|
||||
$naming = "[{$me}{$sign}{$you}]";
|
||||
} else {
|
||||
$imageTemp = GetImageURL($imgsvr);
|
||||
$naming = "[<font color=$mycolor>$me</font>{$sign}<font color=$youcolor>$you</font>]";
|
||||
$picture = "<img src={$imageTemp}/{$picture}>";
|
||||
}
|
||||
$imageTemp = GetImageURL($imgsvr);
|
||||
$naming = "[<font color=$mycolor>$me</font>{$sign}<font color=$youcolor>$you</font>]";
|
||||
$picture = "<img src={$imageTemp}/{$picture}>";
|
||||
if($site != "") {
|
||||
$form = "<form name=scout method=post action={$site}>";
|
||||
$form2 = "</form>";
|
||||
|
||||
@@ -96,7 +96,7 @@ function commandButton() {
|
||||
}
|
||||
$db = DB::db();
|
||||
|
||||
$me = $db->queryFirstRow("select skin,no,nation,level,belong from general where no=%i", $generalID);
|
||||
$me = $db->queryFirstRow("select no,nation,level,belong from general where no=%i", $generalID);
|
||||
|
||||
$nation = $db->queryFirstRow("select nation,color,secretlimit from nation where nation=%i",$me['nation']);
|
||||
|
||||
|
||||
+10
-10
@@ -23,7 +23,7 @@ if(!$userID){
|
||||
die();
|
||||
}
|
||||
|
||||
$me = $db->queryFirstRow('select no,skin,con,turntime,newmsg,newvote,map from general where owner = %i', $userID);
|
||||
$me = $db->queryFirstRow('select no,con,turntime,newmsg,newvote,map from general where owner = %i', $userID);
|
||||
|
||||
//그새 사망이면
|
||||
if($me === null) {
|
||||
@@ -87,7 +87,7 @@ $(function(){
|
||||
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 style=font-size:13px;word-break:break-all; id=bg0>
|
||||
<tr><td colspan=5><?=allButton()?></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=cyan><?=$scenario;?></font>)</font></td>
|
||||
</tr>
|
||||
<?php
|
||||
$valid = 0;
|
||||
@@ -110,10 +110,10 @@ if($valid == 1) {
|
||||
?>
|
||||
|
||||
<tr height=30>
|
||||
<td width=198 align=center><?php info($connect, 2, $me['skin']); ?></td>
|
||||
<td width=198 align=center><?php info($connect, 2); ?></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=398 colspan=2 align=center><?php info($connect, 3); ?></td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td align=center>
|
||||
@@ -164,8 +164,8 @@ 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); ?></td></tr>
|
||||
<tr><td colspan=5>【 국가방침 】<?php nationMsg($connect); ?></td></tr>
|
||||
<tr><td colspan=5>【 접속자 】<?=onlinegen($connect);?></td></tr>
|
||||
<?php
|
||||
if(Session::getUserGrade() >= 5) {
|
||||
@@ -201,7 +201,7 @@ if(Session::getUserGrade() >= 5) {
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=646 align=right>
|
||||
<font color=<?=$me['skin']>0?"cyan":"white";?>><b>←</b> Ctrl, Shift, 드래그로 복수선택 가능 반복&수정<b>→</b></font>
|
||||
<font color=cyan><b>←</b> Ctrl, Shift, 드래그로 복수선택 가능 반복&수정<b>→</b></font>
|
||||
<select name=sel size=1 style=color:white;background-color:black;font-size:13px;>
|
||||
<option value=1>1턴</option>
|
||||
<option value=2>2턴</option>
|
||||
@@ -239,11 +239,11 @@ if(Session::getUserGrade() >= 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); ?></td>
|
||||
<td width=498 ><?php MyLog($me['no'], 15); ?></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); ?></td></tr>
|
||||
</table>
|
||||
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 style=font-size:13px;word-break:break-all; id=bg0>
|
||||
<tr>
|
||||
|
||||
@@ -89,7 +89,6 @@ if($admin['npcmode'] != 1) {
|
||||
conmsg='',
|
||||
npc=1,
|
||||
killturn=6,
|
||||
skin=1,
|
||||
mode=2,
|
||||
map=0,
|
||||
owner='$userID',
|
||||
|
||||
@@ -79,7 +79,6 @@ CREATE TABLE `general` (
|
||||
`specage` INT(2) NULL DEFAULT '0',
|
||||
`special2` INT(2) NULL DEFAULT '0',
|
||||
`specage2` INT(2) NULL DEFAULT '0',
|
||||
`skin` INT(3) NULL DEFAULT '1',
|
||||
`mode` INT(1) NULL DEFAULT '2',
|
||||
`tnmt` INT(1) NULL DEFAULT '1',
|
||||
`map` INT(1) NULL DEFAULT '0',
|
||||
|
||||
Reference in New Issue
Block a user