아이콘, 게임 이미지 경로를 일괄 지정 가능하도록 변경

This commit is contained in:
2018-04-08 16:56:26 +09:00
parent fe53fb9359
commit bc7efae08c
31 changed files with 515 additions and 346 deletions
+14 -8
View File
@@ -1,34 +1,40 @@
<?php
namespace sammo;
function MYDB_query($query, $connect) {
function MYDB_query($query, $connect)
{
return mysqli_query($connect, $query);
}
function MYDB_num_rows($result) {
function MYDB_num_rows($result) : int
{
return mysqli_num_rows($result);
}
/**
* @return mixed[]
*/
function MYDB_fetch_array($result) {
function MYDB_fetch_array($result)
{
return mysqli_fetch_array($result);
}
function MYDB_fetch_row($result) {
function MYDB_fetch_row($result)
{
return mysqli_fetch_row($result);
}
function MYDB_list_tables($db, $connect) {
function MYDB_list_tables($db, $connect)
{
return mysqli_query($connect, "show tables");
}
function MYDB_error($connect) {
function MYDB_error($connect)
{
return mysqli_error($connect);
}
function MYDB_close($connect) {
function MYDB_close($connect)
{
return mysqli_close($connect);
}
+62 -43
View File
@@ -13,15 +13,18 @@ $connect=$db->get();
increaseRefresh("명장일람", 2);
$query = "select conlimit from game limit 1";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$admin = MYDB_fetch_array($result);
$query = "select con,turntime from general where owner='{$userID}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$me = MYDB_fetch_array($result);
$con = checkLimit($me['con'], $admin['conlimit']);
if($con >= 2) { printLimitMsg($me['turntime']); exit(); }
if ($con >= 2) {
printLimitMsg($me['turntime']);
exit();
}
?>
<!DOCTYPE html>
<html>
@@ -47,13 +50,13 @@ if($con >= 2) { printLimitMsg($me['turntime']); exit(); }
</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>
<?php
if(isset($btn) && $btn == "NPC 보기") {
if (isset($btn) && $btn == "NPC 보기") {
$sel = "npc>=2";
} else {
$sel = "npc<2";
}
foreach(getAllNationStaticInfo() as $nation){
foreach (getAllNationStaticInfo() as $nation) {
$nationName[$nation['nation']] = $nation['name'];
$nationColor[$nation['nation']] = $nation['color'];
}
@@ -81,8 +84,8 @@ $type = array(
"베 팅 수 익 금",
"베 팅 수 익 률"
);
for($i=0; $i < 21; $i++) {
switch($i) {
for ($i=0; $i < 21; $i++) {
switch ($i) {
case 0: $query = "select nation,no,name,picture,imgsvr,experience as data from general where $sel order by data desc limit 0,10"; break;
case 1: $query = "select nation,no,name,picture,imgsvr,dedication as data from general where $sel order by data desc limit 0,10"; break;
case 2: $query = "select nation,no,name,picture,imgsvr,firenum as data from general where $sel order by data desc limit 0,10"; break;
@@ -105,24 +108,24 @@ for($i=0; $i < 21; $i++) {
case 19: $query = "select nation,no,name,picture,imgsvr,betwingold as data from general where $sel order by data desc limit 0,10"; break;
case 20: $query = "select nation,no,name,picture,imgsvr,betwingold/betgold*10000 as data from general where $sel and betgold >= 1000 order by data desc limit 0,10"; break;
}
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
echo "
<tr><td align=center colspan=10 id=bg1><font size=4>$type[$i]</font></td></tr>
<tr align=center id=bg2><td>1위</td><td>2위</td><td>3위</td><td>4위</td><td>5위</td><td>6위</td><td>7위</td><td>8위</td><td>9위</td><td>10위</td></tr>
<tr>";
for($k=0; $k < 10; $k++) {
for ($k=0; $k < 10; $k++) {
$gen = MYDB_fetch_array($result);
if($i != 2) {
if(isset($gen)) {
if ($i != 2) {
if (isset($gen)) {
$name[$k] = $gen['name'];
$nation[$k] = $gen['nation'] == 0 ? "재야" : $nationName[$gen['nation']];
$data[$k] = $gen['data'];
$color[$k] = $gen['nation'] == 0 ? "#FFFFFF" : $nationColor[$gen['nation']];
$pic[$k] = $gen['picture'];
}else{
} else {
$name[$k] = "-";
$nation[$k] = "-";
$data[$k] = "-";
@@ -137,9 +140,13 @@ for($i=0; $i < 21; $i++) {
$gen['imgsvr'] = 0;
$pic[$k] = "9999.jpg";
}
if($color[$k] == "") $color[$k] = GameConst::$basecolor4;
if($nation[$k] == "") $nation[$k] = "&nbsp;";
if($pic[$k] == "") {
if ($color[$k] == "") {
$color[$k] = GameConst::$basecolor4;
}
if ($nation[$k] == "") {
$nation[$k] = "&nbsp;";
}
if ($pic[$k] == "") {
echo "<td align=center>&nbsp;</td>";
} else {
$imageTemp = GetImageURL($gen['imgsvr']);
@@ -149,21 +156,25 @@ for($i=0; $i < 21; $i++) {
echo "</tr><tr>";
for($k=0; $k < 10; $k++) {
for ($k=0; $k < 10; $k++) {
echo "<td align=center style=background-color:{$color[$k]};color:".newColor($color[$k]).">{$nation[$k]}</td>";
}
echo "</tr><tr>";
for($k=0; $k < 10; $k++) {
for ($k=0; $k < 10; $k++) {
echo "<td align=center style=background-color:{$color[$k]};color:".newColor($color[$k]).">{$name[$k]}</td>";
}
echo "</tr><tr>";
for($k=0; $k < 10; $k++) {
if($i == 5 || $i == 7 || $i == 20) { $data[$k] = floor($data[$k]/100).".".($data[$k]%100)." %"; }
if($i >= 13 && $i <= 16) { $data[$k] = floor($data[$k]/100).".".($data[$k]%100)." %"; }
for ($k=0; $k < 10; $k++) {
if ($i == 5 || $i == 7 || $i == 20) {
$data[$k] = floor($data[$k]/100).".".($data[$k]%100)." %";
}
if ($i >= 13 && $i <= 16) {
$data[$k] = floor($data[$k]/100).".".($data[$k]%100)." %";
}
echo "<td align=center>{$data[$k]}</td>";
}
echo "</tr><tr><td colspan=10 height=5 id=bg1></td></tr>";
@@ -196,51 +207,55 @@ $func = array(
"getItemName"
);
for($i=0; $i < 4; $i++) {
for ($i=0; $i < 4; $i++) {
echo "
<tr><td align=center colspan=10 id=bg1><font size=4>$type[$i]</font></td></tr>
<tr align=center id=bg2>";
for($k=26; $k > 16; $k--) {
for ($k=26; $k > 16; $k--) {
$str = $func[$i]($k);
echo "<td>".$str."</td>";
}
echo "</tr><tr>";
for($k=26; $k > 16; $k--) {
for ($k=26; $k > 16; $k--) {
$query = "select nation,no,name,picture,imgsvr from general where {$call[$i]}={$k}";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$gen = MYDB_fetch_array($result);
if(isset($gen)) {
if (isset($gen)) {
$name[$k] = $gen['name'];
$nation[$k] = $gen['nation'] == 0 ? "재야" : $nationName[$gen['nation']];
$color[$k] = $gen['nation'] == 0 ? "#FFFFFF" : $nationColor[$gen['nation']];
$pic[$k] = $gen['picture'];
}else{
} else {
$name[$k] = "미발견";
$nation[$k] = "-";
$color[$k] = "";
$pic[$k] = "";
}
if($color[$k] == "") $color[$k] = GameConst::$basecolor4;
if($nation[$k] == "") $nation[$k] = "&nbsp;";
if($pic[$k] == "") {
if ($color[$k] == "") {
$color[$k] = GameConst::$basecolor4;
}
if ($nation[$k] == "") {
$nation[$k] = "&nbsp;";
}
if ($pic[$k] == "") {
echo "<td align=center>&nbsp;</td>";
} else {
$imageTemp = GetImageURL($gen['imgsvr']);
$imageTemp = GetImageURL($gen['imgsvr']??0);
echo "<td align=center><img src={$imageTemp}/{$pic[$k]}></img></td>";
}
}
echo "</tr><tr>";
for($k=26; $k > 16; $k--) {
for ($k=26; $k > 16; $k--) {
echo "<td align=center style=background-color:{$color[$k]};color:".newColor($color[$k]).">{$nation[$k]}</td>";
}
echo "</tr><tr>";
for($k=26; $k > 16; $k--) {
for ($k=26; $k > 16; $k--) {
echo "<td align=center style=background-color:{$color[$k]};color:".newColor($color[$k]).">{$name[$k]}</td>";
}
@@ -248,47 +263,51 @@ for($i=0; $i < 4; $i++) {
echo "
<tr align=center id=bg2>";
for($k=16; $k > 6; $k--) {
for ($k=16; $k > 6; $k--) {
$str = $func[$i]($k);
echo "<td>".$str."</td>";
}
echo "</tr><tr>";
for($k=16; $k > 6; $k--) {
for ($k=16; $k > 6; $k--) {
$query = "select nation,no,name,picture,imgsvr from general where {$call[$i]}={$k}";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$gen = MYDB_fetch_array($result);
if(isset($gen)) {
if (isset($gen)) {
$name[$k] = $gen['name'];
$nation[$k] = $gen['nation'] == 0 ? "재야" : $nationName[$gen['nation']];
$color[$k] = $gen['nation'] == 0 ? "#FFFFFF" : $nationColor[$gen['nation']];
$pic[$k] = $gen['picture'];
}else{
} else {
$name[$k] = "미발견";
$nation[$k] = "-";
$color[$k] = "";
$pic[$k] = "";
}
if($color[$k] == "") $color[$k] = GameConst::$basecolor4;
if($nation[$k] == "") $nation[$k] = "&nbsp;";
if($pic[$k] == "") {
if ($color[$k] == "") {
$color[$k] = GameConst::$basecolor4;
}
if ($nation[$k] == "") {
$nation[$k] = "&nbsp;";
}
if ($pic[$k] == "") {
echo "<td align=center>&nbsp;</td>";
} else {
$imageTemp = GetImageURL($gen['imgsvr']);
$imageTemp = GetImageURL($gen['imgsvr']??0);
echo "<td align=center><img src={$imageTemp}/{$pic[$k]}></img></td>";
}
}
echo "</tr><tr>";
for($k=16; $k > 6; $k--) {
for ($k=16; $k > 6; $k--) {
echo "<td align=center style=background-color:{$color[$k]};color:".newColor($color[$k]).">{$nation[$k]}</td>";
}
echo "</tr><tr>";
for($k=16; $k > 6; $k--) {
for ($k=16; $k > 6; $k--) {
echo "<td align=center style=background-color:{$color[$k]};color:".newColor($color[$k]).">{$name[$k]}</td>";
}
+6 -6
View File
@@ -4,6 +4,8 @@ namespace sammo;
include "lib.php";
include "func.php";
$select = Util::getReq('select', 'int', 0);
$db = DB::db();
$connect=$db->get();
@@ -28,12 +30,12 @@ increaseRefresh("왕조일람", 2);
<?php
if($select == 0) {
if ($select == 0) {
$query = "select * from emperior order by no desc";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$empcount = MYDB_num_rows($result);
for($i=0; $i < $empcount; $i++) {
for ($i=0; $i < $empcount; $i++) {
$emperior = MYDB_fetch_array($result);
echo "
@@ -76,11 +78,9 @@ if($select == 0) {
}
} else {
$query = "select * from emperior where no='$select'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$emperior = MYDB_fetch_array($result);
//background={$image}/{$emperior['l12pic']}
echo "
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style='font-size:13px;word-break:break-all;color:white;' id=bg0>
<tr>
+6 -6
View File
@@ -4,6 +4,8 @@ namespace sammo;
include "lib.php";
include "func.php";
$select = Util::getReq('select', 'int', 0);
$db = DB::db();
$connect=$db->get();
@@ -28,12 +30,12 @@ increaseRefresh("왕조일람", 2);
<?php
if($select == 0) {
if ($select == 0) {
$query = "select * from emperior_table order by no desc";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$empcount = MYDB_num_rows($result);
for($i=0; $i < $empcount; $i++) {
for ($i=0; $i < $empcount; $i++) {
$emperior = MYDB_fetch_array($result);
echo "
@@ -76,11 +78,9 @@ if($select == 0) {
}
} else {
$query = "select * from emperior_table where no='$select'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$emperior = MYDB_fetch_array($result);
//background={$image}/{$emperior['l12pic']}
echo "
<form action=a_emperior2.php method=post>
<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>
+94 -60
View File
@@ -10,11 +10,13 @@ $connect=$db->get();
increaseRefresh("갱신정보", 2);
$query = "select year,month,refresh,maxrefresh,maxonline from game limit 1";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$game = MYDB_fetch_array($result);
$log = [];
$curonline = getOnlineNum();
for($i=0; $i < 11; $i++) {
for ($i=0; $i < 11; $i++) {
$parse = explode("|", $log[count($log)-12+$i]);
$date[$i] = trim($parse[0]);
$year[$i] = trim($parse[1]);
@@ -22,10 +24,18 @@ for($i=0; $i < 11; $i++) {
$refresh[$i] = trim($parse[3]);
$online[$i] = trim($parse[4]);
}
if($game['maxrefresh'] == 0) { $game['maxrefresh'] = 1; }
if($game['maxrefresh'] < $game['refresh']) { $game['maxrefresh'] = $game['refresh']; }
if($game['maxonline'] == 0) { $game['maxonline'] = 1; }
if($game['maxonline'] < $curonline) { $game['maxonline'] = $curonline; }
if ($game['maxrefresh'] == 0) {
$game['maxrefresh'] = 1;
}
if ($game['maxrefresh'] < $game['refresh']) {
$game['maxrefresh'] = $game['refresh'];
}
if ($game['maxonline'] == 0) {
$game['maxonline'] = 1;
}
if ($game['maxonline'] < $curonline) {
$game['maxonline'] = $curonline;
}
?>
<!DOCTYPE html>
<html>
@@ -45,97 +55,119 @@ if($game['maxonline'] < $curonline) { $game['maxonline'] = $curonline; }
<table align=center border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0>
<tr><td colspan=4 align=center id=bg2><font size=5>접 속 량</font></td></tr>
<?php
for($i=0; $i < 11; $i++) {
for ($i=0; $i < 11; $i++) {
$w = round($refresh[$i] / $game['maxrefresh'] * 100, 1);
if($w >= 100) { $w -= 0.1; }
if($refresh[$i] < 10 && $w < 3) { $w = 3; }
elseif($refresh[$i] < 100 && $w < 6) { $w = 6; }
elseif($refresh[$i] < 1000 && $w < 9) { $w = 9; }
if ($w >= 100) {
$w -= 0.1;
}
if ($refresh[$i] < 10 && $w < 3) {
$w = 3;
} elseif ($refresh[$i] < 100 && $w < 6) {
$w = 6;
} elseif ($refresh[$i] < 1000 && $w < 9) {
$w = 9;
}
$w2 = round(100 - $w, 1);
$color = getColor($w);
$dt = substr($date[$i], 11, 5);
echo "
$color = getTrafficColor($w);
$dt = substr($date[$i], 11, 5); ?>
<tr height=30>
<td width=100 align=center>{$year[$i]}년 {$month[$i]}월</td>
<td width=60 align=center id=bg2>{$dt}</td>
<td width=100 align=center><?=$year[$i]?>년 <?=$month[$i]?>월</td>
<td width=60 align=center id=bg2><?=$dt?></td>
<td width=2 align=center id=bg1></td>
<td width=320 align=center>
<table align=center width=100% height=30 border=0 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0>
<tr>
<td width={$w}% bgcolor={$color} align=right>{$refresh[$i]}&nbsp;</td>
<td width={$w2}% id=bg0><font size=1>&nbsp;</font></td>
<td width=<?=$w?>% bgcolor=<?=$color?> align=right><?=$refresh[$i]?>&nbsp;</td>
<td width=<?=$w2?>% id=bg0><font size=1>&nbsp;</font></td>
</tr>
</table>
</td>
</tr>
";
<?php
}
$w = round($game['refresh'] / $game['maxrefresh'] * 100, 1);
if($w >= 100) { $w -= 0.1; }
if($game['refresh'] < 10 && $w < 3) { $w = 3; }
elseif($game['refresh'] < 100 && $w < 6) { $w = 6; }
elseif($game['refresh'] < 1000 && $w < 9) { $w = 9; }
if ($w >= 100) {
$w -= 0.1;
}
if ($game['refresh'] < 10 && $w < 3) {
$w = 3;
} elseif ($game['refresh'] < 100 && $w < 6) {
$w = 6;
} elseif ($game['refresh'] < 1000 && $w < 9) {
$w = 9;
}
$w2 = round(100 - $w, 1);
$color = getColor($w);
$color = getTrafficColor($w);
$dt = date('H:i');
echo "
?>
<tr height=30>
<td width=100 align=center>{$game['year']}년 {$game['month']}월</td>
<td width=60 align=center id=bg2>{$dt}</td>
<td width=100 align=center><?=$game['year']?>년 <?=$game['month']?>월</td>
<td width=60 align=center id=bg2><?=$dt?></td>
<td width=2 align=center id=bg1></td>
<td width=320 align=center>
<table align=center width=100% height=30 border=0 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0>
<tr>
<td width={$w}% bgcolor={$color} align=right>{$game['refresh']}&nbsp;</td>
<td width={$w2}% id=bg0><font size=1>&nbsp;</font></td>
<td width=<?=$w?>% bgcolor=<?=$color?> align=right><?=$game['refresh']?>&nbsp;</td>
<td width=<?=$w2?>% id=bg0><font size=1>&nbsp;</font></td>
</tr>
</table>
</td>
</tr>
<tr><td colspan=4 height=5 align=center id=bg1></td></tr>
<tr>
<td colspan=4 height=30 align=center id=bg0>최고기록: {$game['maxrefresh']}</td>
<td colspan=4 height=30 align=center id=bg0>최고기록: <?=$game['maxrefresh']?></td>
</tr>
";
?>
</table>
</td>
<td align=right>
<table align=center border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0>
<tr><td colspan=4 align=center id=bg2><font size=5>접 속 자</font></td></tr>
<?php
for($i=0; $i < 11; $i++) {
for ($i=0; $i < 11; $i++) {
$w = round($online[$i] / $game['maxonline'] * 100, 1);
if($w >= 100) { $w -= 0.1; }
if($online[$i] < 10 && $w < 3) { $w = 3; }
elseif($online[$i] < 100 && $w < 6) { $w = 6; }
elseif($online[$i] < 1000 && $w < 9) { $w = 9; }
if ($w >= 100) {
$w -= 0.1;
}
if ($online[$i] < 10 && $w < 3) {
$w = 3;
} elseif ($online[$i] < 100 && $w < 6) {
$w = 6;
} elseif ($online[$i] < 1000 && $w < 9) {
$w = 9;
}
$w2 = round(100 - $w, 1);
$color = getColor($w);
$dt = substr($date[$i], 11, 5);
echo "
$color = getTrafficColor($w);
$dt = substr($date[$i], 11, 5); ?>
<tr height=30>
<td width=100 align=center>{$year[$i]}년 {$month[$i]}월</td>
<td width=60 align=center id=bg2>{$dt}</td>
<td width=100 align=center><?=$year[$i]?>년 <?=$month[$i]?>월</td>
<td width=60 align=center id=bg2><?=$dt?></td>
<td width=2 align=center id=bg1></td>
<td width=320 align=center>
<table align=center width=100% height=30 border=0 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0>
<tr>
<td width={$w}% bgcolor={$color} align=right>{$online[$i]}&nbsp;</td>
<td width={$w2}% id=bg0><font size=1>&nbsp;</font></td>
<td width=<?=$w?>% bgcolor=<?=$color?> align=right><?=$online[$i]?>&nbsp;</td>
<td width=<?=$w2?>% id=bg0><font size=1>&nbsp;</font></td>
</tr>
</table>
</td>
</tr>
";
<?php
}
$w = round($curonline / $game['maxonline'] * 100, 1);
if($w >= 100) { $w -= 0.1; }
if($curonline < 10 && $w < 3) { $w = 3; }
elseif($curonline < 100 && $w < 6) { $w = 6; }
elseif($curonline < 1000 && $w < 9) { $w = 9; }
if ($w >= 100) {
$w -= 0.1;
}
if ($curonline < 10 && $w < 3) {
$w = 3;
} elseif ($curonline < 100 && $w < 6) {
$w = 6;
} elseif ($curonline < 1000 && $w < 9) {
$w = 9;
}
$w2 = round(100 - $w, 1);
$color = getColor($w);
$color = getTrafficColor($w);
$dt = date('H:i');
echo "
<tr height=30>
@@ -165,14 +197,14 @@ echo "
<tr><td colspan=3 align=center id=bg2><font size=5>주 의 대 상 자 (순간과도갱신)</font></td></tr>
<?php
$query = "select sum(refresh) as refresh,sum(connect) as connect from general";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$user = MYDB_fetch_array($result);
$user['connect'] = round($user['connect'], 1);
$maxrefresh = $user['refresh'];
$w = round($maxrefresh / $maxrefresh * 100, 1);
$w2 = round(100 - $w, 1);
$color = getColor($w);
$color = getTrafficColor($w);
echo "
<tr id=bg2>
<td width=98 align=center>주의대상자</td>
@@ -194,14 +226,14 @@ echo "
";
$query = "select name,refresh,connect from general order by refresh desc limit 0,5";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$count = MYDB_num_rows($result);
for($i=0; $i < $count; $i++) {
for ($i=0; $i < $count; $i++) {
$user = MYDB_fetch_array($result);
$w = round($user['refresh'] / $maxrefresh * 100, 1);
$w2 = round(100 - $w, 1);
$color = getColor($w);
$color = getTrafficColor($w);
echo "
<tr>
<td width=98 align=center>{$user['name']}</td>
@@ -229,26 +261,28 @@ for($i=0; $i < $count; $i++) {
</html>
<?php
function getColor($per) {
function getTrafficColor($per)
{
$r = getHex($per);
$b = getHex(100 - $per);
$color = $r . "00" . $b;
return $color;
}
function getHex($dec) {
function getHex($dec)
{
$hex = floor($dec * 255 / 100);
$code = getHexCode(floor($hex / 16));
$code .= getHexCode($hex % 16);
return $code;
}
function getHexCode($hex) {
switch($hex) {
function getHexCode($hex)
{
switch ($hex) {
case 0: return "0"; case 1: return "1"; case 2: return "2"; case 3: return "3";
case 4: return "4"; case 5: return "5"; case 6: return "6"; case 7: return "7";
case 8: return "8"; case 9: return "9"; case 10: return "A"; case 11: return "B";
case 12: return "C"; case 13: return "D"; case 14: return "E"; case 15: return "F";
}
}
+80 -58
View File
@@ -12,15 +12,15 @@ $connect=$db->get();
increaseRefresh("설문조사", 1);
$query = "select no,vote from general where owner='{$userID}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$me = MYDB_fetch_array($result);
$query = "select develcost,voteopen,vote,votecomment from game limit 1";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$admin = MYDB_fetch_array($result);
$vote = explode("|", $admin['vote']);
if($vote[0] == "") {
if ($vote[0] == "") {
$vote[0] = "-";
}
@@ -51,7 +51,7 @@ function captureKey(e) {
<tr><td colspan=3 align=center id=bg2><font size=5>설 문 조 사 (<?=$admin['develcost']*5?>금과 추첨으로 유니크템 증정!)</font></td></tr>
<?php
if($session->userGrade >= 5) {
if ($session->userGrade >= 5) {
echo "
<tr>
<td width=48 align=center><input type=submit name=btn value='알림'></td>
@@ -70,29 +70,29 @@ echo "
";
$query = "select no from general where vote>0 and npc<2";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$voteCount = MYDB_num_rows($result);
$query = "select no from general where npc<2";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$allCount = MYDB_num_rows($result);
$percentage = round($voteCount / $allCount * 100, 1);
$voteTypeCount = count($vote);
for($i=1; $i < $voteTypeCount; $i++) {
for ($i=1; $i < $voteTypeCount; $i++) {
echo "
<tr>
<td width=48 align=center style=color:".getNewColor($i)."; bgcolor=".getColor($i).">{$i}.</td>
<td width=48 align=center style=color:".getNewColor($i)."; bgcolor=".getVoteColor($i).">{$i}.</td>
<td width=98 align=center>
";
if($me['vote'] == 0 && $me['no'] > 0) {
if ($me['vote'] == 0 && $me['no'] > 0) {
echo "
<input type=radio name=sel value={$i}>
";
} elseif($admin['voteopen'] >= 1 || $session->userGrade >= 5) {
} elseif ($admin['voteopen'] >= 1 || $session->userGrade >= 5) {
$query = "select no from general where vote='{$i}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$vCount = MYDB_num_rows($result);
$per = @round($vCount / $voteCount * 100, 1);
@@ -111,7 +111,7 @@ for($i=1; $i < $voteTypeCount; $i++) {
echo "
<tr>
";
if($me['vote'] == 0 && $me['no'] > 0) {
if ($me['vote'] == 0 && $me['no'] > 0) {
echo "
<td align=center>투표</td>
<td align=center><input type=submit name=btn value='투표'></td>
@@ -126,7 +126,7 @@ echo "
</tr>
";
if($session->userGrade >= 5) {
if ($session->userGrade >= 5) {
echo "
<tr>
<td align=center><input type=submit name=btn value='리셋'></td>
@@ -136,7 +136,7 @@ if($session->userGrade >= 5) {
";
}
if($admin['votecomment'] != "") {
if ($admin['votecomment'] != "") {
$comment = explode("|", $admin['votecomment']);
$commentCount = count($comment);
} else {
@@ -149,7 +149,7 @@ echo "
<td colspan=4 align=center id=bg1>댓 글</td>
</tr>
";
for($i=0; $i < $commentCount; $i++) {
for ($i=0; $i < $commentCount; $i++) {
$cmt = explode(":", $comment[$i]);
$cmt[2] = Tag2Code($cmt[2]);
$j = $i+1;
@@ -162,7 +162,7 @@ for($i=0; $i < $commentCount; $i++) {
</tr>
";
}
if($me['no'] > 0) {
if ($me['no'] > 0) {
echo "
<tr>
<td width=108 colspan=2 align=center>-</td>
@@ -178,7 +178,7 @@ if($me['no'] > 0) {
<tr><td colspan=3 align=center id=bg2><font size=5>
전 체 통 계
<?php
if($session->userGrade >= 5) {
if ($session->userGrade >= 5) {
echo "
<input type=submit name=btn value='숨김'>
<input type=submit name=btn value='전체통계만'>
@@ -187,7 +187,7 @@ if($session->userGrade >= 5) {
echo "
</font></td></tr>";
if($admin['voteopen'] >= 1 || $session->userGrade >= 5) {
if ($admin['voteopen'] >= 1 || $session->userGrade >= 5) {
echo "
<tr>
<td width=98 align=center>전 체</td>
@@ -197,26 +197,43 @@ if($admin['voteopen'] >= 1 || $session->userGrade >= 5) {
<tr>
";
$query = "select no from general where npc<2";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$memCount = MYDB_num_rows($result);
$query = "select nation,vote from general where npc<2";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$count = MYDB_num_rows($result);
for($i=0; $i < $count; $i++) {
$vote = MYDB_fetch_array($result);
$totalVote[$vote['vote']]++;
if($vote['vote'] > 0) { $nationVoteCount[$vote['nation']]++; }
$nationVote[$vote['nation']][$vote['vote']]++;
$memCount = $db->queryFirstField('SELECT count(`no`) FROM general WHERE npc<2');
if ($memCount == 0) {
$memCount = 1;
}
for($i=0; $i < $voteTypeCount; $i++) {
$per = @round($totalVote[$i] / $memCount * 100, 1);
$totalVote = [];
$nationVoteCount = [[0]];
$nationVote = [[]];
foreach ($db->query("SELECT nation, vote, count(`no`) as cnt FROM general WHERE npc<2 GROUP BY nation, vote") as $row) {
$nation = $row['nation'];
$vote = $row['vote'];
$cnt = $row['cnt'];
if (!isset($totalVote[$vote])) {
$totalVote[$vote] = 0;
}
if (!isset($nationVoteCount[$nation])) {
$nationVoteCount[$nation] = 0;
$nationVote[$nation] = [];
}
if (!isset($nationVote[$nation][$vote])) {
$nationVote[$nation][$vote] = 0;
}
$totalVote[$vote] += $cnt;
$nationVoteCount[$nation] += $cnt;
$nationVote[$nation][$vote] += $cnt;
}
for ($i=0; $i < $voteTypeCount; $i++) {
$per = round(($totalVote[$i]??0) / $memCount * 100, 1);
// if($per < 5) { $vote['cnt'] = "&nbsp;"; }
echo "
<td width={$per}% align=center style=color:".getNewColor($i)."; bgcolor=".getColor($i).">{$totalVote[$i]}</td>
<td width={$per}% align=center style=color:".getNewColor($i)."; bgcolor=".getVoteColor($i).">{$totalVote[$i]}</td>
";
}
@@ -228,13 +245,18 @@ if($admin['voteopen'] >= 1 || $session->userGrade >= 5) {
";
}
if($admin['voteopen'] >= 2 || $session->userGrade >= 5) {
if ($admin['voteopen'] >= 2 || $session->userGrade >= 5) {
$query = "select no from general where nation=0 and npc<2";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$memCount = MYDB_num_rows($result);
if ($memCount == 0) {
$memCount = 1;
}
if(!$nationVoteCount[0]) { $nationVoteCount[0] = 0; }
$percentage = @round($nationVoteCount[0] / $memCount * 100, 1);
if (!isset($nationVoteCount[0])) {
$nationVoteCount[0] = 0;
}
$percentage = round($nationVoteCount[0] / $memCount * 100, 1);
echo "
<tr>
@@ -245,11 +267,11 @@ if($admin['voteopen'] >= 2 || $session->userGrade >= 5) {
<tr>
";
for($i=0; $i < $voteTypeCount; $i++) {
$per = @round($nationVote[0][$i] / $memCount * 100, 1);
for ($i=0; $i < $voteTypeCount; $i++) {
$per = round(Util::array_get($nationVote[0][$i], 0) / $memCount * 100, 1);
// if($per < 5) { $vote['cnt'] = "&nbsp;"; }
echo "
<td width={$per}% align=center style=color:".getNewColor($i)."; bgcolor=".getColor($i).">{$nationVote[0][$i]}</td>
<td width={$per}% align=center style=color:".getNewColor($i)."; bgcolor=".getVoteColor($i).">{$nationVote[0][$i]}</td>
";
}
@@ -261,32 +283,32 @@ if($admin['voteopen'] >= 2 || $session->userGrade >= 5) {
";
$query = "select nation,color,name,gennum from nation order by gennum desc";
$nationResult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$nationResult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$nationcount = MYDB_num_rows($nationResult);
for($i=0; $i < $nationcount; $i++) {
for ($i=0; $i < $nationcount; $i++) {
$nation = MYDB_fetch_array($nationResult);
$query = "select no from general where nation='{$nation['nation']}' and npc<2";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$memCount = MYDB_num_rows($result);
if(!$nationVoteCount[$nation['nation']]) { $nationVoteCount[$nation['nation']] = 0; }
$percentage = @round($nationVoteCount[$nation['nation']] / $memCount * 100, 1);
$voteCount = $nationVoteCount[$nation['nation']] ?? 0;
$percentage = round($voteCount / $memCount * 100, 1);
echo "
<tr>
<td align=center style=color:".newColor($nation['color'])."; bgcolor={$nation['color']}>{$nation['name']}</td>
<td align=center>{$nationVoteCount[$nation['nation']]} / {$memCount} ({$percentage} %)</td>
<td align=center>{$voteCount} / {$memCount} ({$percentage} %)</td>
<td align=center>
<table align=center width=100% height=100% border=0 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0>
<tr>
";
for($k=0; $k < $voteTypeCount; $k++) {
$per = @round($nationVote[$nation['nation']][$k] / $memCount * 100, 1);
for ($k=0; $k < $voteTypeCount; $k++) {
$per = round($nationVote[$nation['nation']][$k] / $memCount * 100, 1);
// if($per < 5) { $vote['cnt'] = "&nbsp;"; }
echo "
<td width={$per}% align=center style=color:".getNewColor($k)."; bgcolor=".getColor($k).">{$nationVote[$nation['nation']][$k]}</td>
<td width={$per}% align=center style=color:".getNewColor($k)."; bgcolor=".getVoteColor($k).">{$nationVote[$nation['nation']][$k]}</td>
";
}
@@ -310,12 +332,13 @@ if($admin['voteopen'] >= 2 || $session->userGrade >= 5) {
</html>
<?php
function getColor($type) {
if($type > 0) {
function getVoteColor($type)
{
if ($type > 0) {
$type = (($type - 1) % 7) + 1;
}
switch($type) {
switch ($type) {
case 0: $color = "black"; break;
case 1: $color = "red"; break;
case 2: $color = "orange"; break;
@@ -329,12 +352,13 @@ function getColor($type) {
return $color;
}
function getNewColor($type) {
if($type > 0) {
function getNewColor($type)
{
if ($type > 0) {
$type = (($type - 1) % 7) + 1;
}
switch($type) {
switch ($type) {
case 2: $color = "black"; break;
case 3: $color = "black"; break;
default:$color = "white"; break;
@@ -342,5 +366,3 @@ function getNewColor($type) {
return $color;
}
+5 -1
View File
@@ -3,6 +3,10 @@ namespace sammo;
include "lib.php";
include "func.php";
$msg = Util::getReq('msg');
$msg2 = Util::getReq('msg2');
//로그인 검사
$session = Session::requireGameLogin()->setReadOnly();
$userID = Session::getUserID();
@@ -105,7 +109,7 @@ for ($i=0; $i < $count; $i++) {
$chk = 1;
}
$pv = round($auction['value'] * 100 / $auction['amount']) / 100 + 0.001;
$pv = substr($pv, 0, 4);
$pv = substr((string)$pv, 0, 4);
if ($auction['stuff'] != 0) {
$pv = '-';
}
+3 -3
View File
@@ -53,9 +53,9 @@ table { font-family:'맑은 고딕'; line-height:110%; }
font { font-family:'맑은 고딕'; line-height:110%; }
input { font-family:'맑은 고딕'; line-height:110%; height:20px }
select { font-family:'굴림'; line-height:100%; }
#bg0 { background-image:url(<?=$images?>/back_walnut.jpg); }
#bg1 { background-image:url(<?=$images?>/back_green.jpg); }
#bg2 { background-image:url(<?=$images?>/back_blue.jpg); }
#bg0 { background-image:url(<?=ServConfig::$gameImagePath?>/back_walnut.jpg); }
#bg1 { background-image:url(<?=ServConfig::$gameImagePath?>/back_green.jpg); }
#bg2 { background-image:url(<?=ServConfig::$gameImagePath?>/back_blue.jpg); }
</style>
</head>
+3 -3
View File
@@ -49,9 +49,9 @@ table { font-family:'맑은 고딕'; line-height:110%; }
font { font-family:'맑은 고딕'; line-height:110%; }
input { font-family:'맑은 고딕'; line-height:110%; height:20px }
select { font-family:'굴림'; line-height:100%; }
#bg0 { background-image:url(<?=$images?>/back_walnut.jpg); }
#bg1 { background-image:url(<?=$images?>/back_green.jpg); }
#bg2 { background-image:url(<?=$images?>/back_blue.jpg); }
#bg0 { background-image:url(<?=ServConfig::$gameImagePath?>/back_walnut.jpg); }
#bg1 { background-image:url(<?=ServConfig::$gameImagePath?>/back_green.jpg); }
#bg2 { background-image:url(<?=ServConfig::$gameImagePath?>/back_blue.jpg); }
</style>
</head>
-2
View File
@@ -65,8 +65,6 @@ function myclock() {
myCommandList();
function myCommandList() {
global $images;
$db = DB::db();
$connect=$db->get();
$userID = Session::getUserID();
+5 -14
View File
@@ -68,11 +68,10 @@ function getAllNationStaticInfo(){
}
function GetImageURL($imgsvr) {
global $image, $image1;
if($imgsvr == 0) {
return $image;
return ServConfig::$sharedIconPath;
} else {
return $image1;
return AppConf::getUserIconPathWeb();
}
}
@@ -117,8 +116,6 @@ function getRandGenName() {
function cityInfo() {
global $images;
$db = DB::db();
$connect=$db->get();
$userID = Session::getUserID();
@@ -232,8 +229,6 @@ function cityInfo() {
}
function myNationInfo() {
global $images;
$db = DB::db();
$connect=$db->get();
$userID = Session::getUserID();
@@ -749,8 +744,6 @@ function myInfo() {
}
function generalInfo($no) {
global $image, $images;
$db = DB::db();
$connect=$db->get();
@@ -851,8 +844,8 @@ function generalInfo($no) {
elseif($general['mode'] == 1) { $general['mode'] = "<font color=limegreen>수비 함(훈사60)</font>"; }
else { $general['mode'] = "<font color=red>수비 안함</font>"; }
$weapImage = "{$images}/weap{$general['crewtype']}.jpg";
if($admin['show_img_level'] < 2) { $weapImage = "{$image}/default.jpg"; };
$weapImage = ServConfig::$gameImagePath."/weap{$general['crewtype']}.jpg";
if($admin['show_img_level'] < 2) { $weapImage = ServConfig::$sharedIconPath."/default.jpg"; };
$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>
@@ -940,7 +933,7 @@ function myInfo2() {
}
function generalInfo2($no) {
global $image, $images, $_dexLimit;
global $_dexLimit;
$db = DB::db();
$connect=$db->get();
@@ -1127,8 +1120,6 @@ function PushMsg($type, $nation, $picture, $imgsvr, $from, $fromcolor, $to, $toc
}
function msgprint($msg, $name, $picture, $imgsvr, $when, $num, $type) {
global $images;
$db = DB::db();
$connect=$db->get();
+2 -3
View File
@@ -23,14 +23,13 @@ function printLimitMsg($turntime) {
function bar($per, $h=7) {
global $images;
if($h == 7) { $bd = 0; $h = 7; $h2 = 5; }
else { $bd = 1; $h = 12; $h2 = 8; }
$per = round($per, 1);
if($per < 1 || $per > 99) { $per = round($per); }
$str1 = "<td width={$per}% background={$images}/pb{$h2}.gif></td>";
$str2 = "<td width=*% background={$images}/pr{$h2}.gif></td>";
$str1 = "<td width={$per}% background=".ServConfig::$gameImagePath."/pb{$h2}.gif></td>";
$str2 = "<td width=*% background=".ServConfig::$gameImagePath."/pr{$h2}.gif></td>";
if($per <= 0) { $str1 = ""; }
elseif($per >= 100) { $str2 = ""; }
$str = "
+1 -1
View File
@@ -31,7 +31,7 @@ if($general){
if($general['imgsvr'] == 0) {
$me['picture'] = '../../image/'.$general['picture'];
} else {
$me['picture'] = '../d_pic/'.$general['picture'];
$me['picture'] = AppConf::getUserIconPathWeb().'/'.$general['picture'];
}
}
+1 -1
View File
@@ -6,7 +6,7 @@ $(document).ready( function () {
db_port:"required",
db_id:"required",
db_pw:"required",
db_name:"required",
db_name:"required"
},
errorElement: "div",
errorPlacement: function ( error, element ) {
+4 -16
View File
@@ -5,11 +5,11 @@ namespace sammo;
$loader = require __dir__.'/../vendor/autoload.php';
$loader->addPsr4('sammo\\', __DIR__.'/sammo', true);
$loader->addClassMap((function(){
$loader->addClassMap((function () {
$d_settingMap = [];
foreach(glob(__dir__.'/d_setting/*.php') as $filepath){
foreach (glob(__dir__.'/d_setting/*.php') as $filepath) {
$filename = basename($filepath);
if(Util::ends_with($filename, '.orig.php')){
if (Util::ends_with($filename, '.orig.php')) {
continue;
}
$classname = explode('.', $filename)[0];
@@ -36,11 +36,6 @@ include "MYDB.php";
define('STEP_LOG', true);
define('PROCESS_LOG', true);
$_startTime = microtime(true);
$_ver = "서비스중";
$x_version = "삼국지 모의전투 PHP HideD v0.1";
$x_banner = "KOEI의 이미지를 사용, 응용하였습니다 / 제작 : 유기체(jwh1807@gmail.com), HideD(hided62@gmail.com)";
$x_helper = "도움 주신 분들";
$x_develrate = 50; // 내정시 최하 민심 설정
$_upgradeLimit = 30; // 능력치 상승 경험치
$_dexLimit = 1000000; // 숙련도 제한치
$_defaultatmos = 40; // 초기 사기치
@@ -61,13 +56,6 @@ $x_goodgenleader = 65; // 명장,지장에 사용될 통솔 제한
$x_goodgenpower = 65; // 명장에 사용될 무력 제한
$x_goodgenintel = 65; // 지장에 사용될 지력 제한
$_taxrate = 0.01; // 군량 매매시 세율
//$images = "http://115.68.28.99/images";
//$image = "http://115.68.28.99/image";
//$images = "http://jwh1807.vipweb.kr/images";
//$image = "http://jwh1807.vipweb.kr/image";
$image1 = "../d_pic";
$images = "/images";
$image = "/image";
ob_start();
session_cache_limiter('nocache');//NOTE: 캐시가 가능하도록 설정해야 할 수도 있음. 주의!
@@ -76,7 +64,7 @@ session_cache_limiter('nocache');//NOTE: 캐시가 가능하도록 설정해야
// 에러 메세지 출력
function Error($message, $url="")
{
if(!$url){
if (!$url) {
$url = $_SERVER['REQUEST_URI'];
}
file_put_contents(__dir__."/logs/_db_bug.txt", "{\"url\":\"$url\",\"msg\":\"$message\"}\n", FILE_APPEND);
+4 -10
View File
@@ -110,8 +110,6 @@ switch($commandtype) {
}
function starter($name, $type=0) {
//FIXME: 장기적으로 template로 변경해야함.
global $images;
echo '
<!DOCTYPE html>
<html>
@@ -238,7 +236,6 @@ function command_11($turn, $command) {
$connect=$db->get();
$userID = Session::getUserID();
global $images, $image;
starter("징병");
$query = "select * from game limit 1";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
@@ -400,8 +397,8 @@ function calc(cost, formnum) {
$defence = $this->defence + $abil;
$speed = $this->speed;
$avoid = $this->avoid;
$weapImage = "{$images}/weap{$i}.jpg";
if($admin['show_img_level'] < 2) { $weapImage = "{$image}/default.jpg"; }
$weapImage = ServConfig::$gameImagePath."/weap{$i}.jpg";
if($admin['show_img_level'] < 2) { $weapImage = ServConfig::$sharedIconPath."/default.jpg"; }
$baseRiceShort = round($baseRice, 1);
$baseCostShort = round($baseCost, 1);
@@ -447,7 +444,6 @@ function command_12($turn, $command) {
$connect=$db->get();
$userID = Session::getUserID();
global $images, $image;
starter("모병");
$query = "select * from game limit 1";
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
@@ -611,8 +607,8 @@ function calc(cost, formnum) {
$defence = $this->defence + $abil;
$speed = $this->speed;
$avoid = $this->avoid;
$weapImage = "{$images}/weap{$i}.jpg";
if($admin['show_img_level'] < 2) { $weapImage = "{$image}/default.jpg"; }
$weapImage = ServConfig::$gameImagePath."/weap{$i}.jpg";
if($admin['show_img_level'] < 2) { $weapImage = ServConfig::$sharedIconPath."/default.jpg"; }
$baseRiceShort = round($baseRice, 1);
$baseCostShort = round($baseCost, 1);
@@ -999,8 +995,6 @@ function command_24($turn, $command) {
}
function command_25($turn, $command) {
global $images;
$db = DB::db();
$connect=$db->get();
$userID = Session::getUserID();
+2 -2
View File
@@ -88,7 +88,7 @@ if($admin['show_img_level'] >= 3) {
?>
<tr>
<td width=498 align=right rowspan=2 height=64 id=bg1>장수</td>
<td width=498><img src=<?=$image?>/1001.jpg border=0 name=picture width=64 height=64></td>
<td width=498><img src=<?=ServConfig::$sharedIconPath?>/1001.jpg border=0 name=picture width=64 height=64></td>
</tr>
<?php
}
@@ -133,7 +133,7 @@ function changeGen() {
sel = Math.floor(Math.random() * <?=$count?>);
document.form1.face.selectedIndex = sel;
num = document.form1.face.value;
document.form1.picture.src="<?=$image?>" + "/"+ num +".jpg";
document.form1.picture.src="<?=ServConfig::$sharedIconPath?>" + "/"+ num +".jpg";
}
function selectGen() {