4 Commits
Author SHA1 Message Date
Hide_D 10e7e65acd 새 병종 이미지 반영. 전콘
병종 이미지가 64px보다 크더라도 64px에 맞춰 보이도록 변경
2018-04-14 04:00:38 +09:00
Hide_D 71af68f2a5 (임시)HiDCHe섭 이미지 경로와 동일하게 변경 2018-04-14 03:38:47 +09:00
Hide_D c45e411ca9 필살 확률 추가 감소. 2018-04-14 01:36:35 +09:00
Hide_D 37f56f05b6 SQLInjection 대응을 위해 파일 상단부에 $_POST, $_GET의 원하는 변수 타입명 지정 2018-04-14 01:32:13 +09:00
60 changed files with 420 additions and 72 deletions
+4
View File
@@ -2,6 +2,10 @@
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$btn = Util::getReq('btn');
$minute = Util::getReq('minute', 'int');
$minute2 = Util::getReq('minute2', 'int');
$connect=dbConn(); $connect=dbConn();
$query = "select userlevel from general where user_id='$_SESSION[p_id]'"; $query = "select userlevel from general where user_id='$_SESSION[p_id]'";
+9
View File
@@ -1,6 +1,15 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$msg = Util::getReq('msg');
$btn = Util::getReq('btn');
$log = Util::getReq('log');
$starttime = Util::getReq('starttime', 'string', date('Y-m-d H:i:s'));
$maxgeneral = Util::getReq('maxgeneral', 'int');
$maxnation = Util::getReq('maxnation', 'int');
$startyear = Util::getReq('startyear', 'int');
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
+4
View File
@@ -1,6 +1,10 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$btn = Util::getReq('btn');
$weap = Util::getReq('weap', 'int');
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
+6
View File
@@ -1,6 +1,12 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$btn = Util::getReq('btn');
$notice = Util::getReq('notice');
$genlist = Util::getReq('genlist', 'array_int');
$msg = Util::getReq('msg');
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
+5
View File
@@ -1,6 +1,11 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$btn = Util::getReq('btn');
$genlist = Util::getReq('genlist', 'array_int');
$msg = Util::getReq('msg');
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
+11 -6
View File
@@ -1,6 +1,17 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$type = Util::getReq('type', 'int', 0);
$type2 = Util::getReq('type2', 'int', 0);
if($type < 0 || $type > 17){
$type = 0;
}
if($type2 < 0 || $type2 > 6){
$type2 = 0;
}
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
@@ -28,12 +39,6 @@ if($me[userlevel] < 5) {
exit(); exit();
} }
if($type == 0) {
$type = 0;
}
if($type2 == 0) {
$type2 = 0;
}
$sel[$type] = "selected"; $sel[$type] = "selected";
$sel2[$type2] = "selected"; $sel2[$type2] = "selected";
+4
View File
@@ -1,6 +1,10 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$btn = Util::getReq('btn');
$nation = Util::getReq('nation', 'int');
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
+6
View File
@@ -1,6 +1,12 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$type = Util::getReq('type', 'int', 0);
if($type < 0 || $type > 4){
$type = 0;
}
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
+10 -3
View File
@@ -1,6 +1,16 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$btn = Util::getReq('btn');
$gen = Util::getReq('gen', 'int', 0);
$type = Util::getReq('type', 'int', 0);
if($type < 0 || $type > 3){
$type = 0;
}
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
@@ -32,9 +42,6 @@ if($btn == '정렬하기') {
$gen = 0; $gen = 0;
} }
if($type == 0) {
$type = 0;
}
$sel[$type] = "selected"; $sel[$type] = "selected";
?> ?>
<html> <html>
+5 -3
View File
@@ -1,6 +1,11 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$btn = Util::getReq('btn');
$gen = Util::getReq('gen', 'int', 0);
$type = 0;
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
@@ -32,9 +37,6 @@ if($btn == '정렬하기') {
$gen = 0; $gen = 0;
} }
if($type == 0) {
$type = 0;
}
$sel[$type] = "selected"; $sel[$type] = "selected";
?> ?>
<html> <html>
+6 -3
View File
@@ -1,6 +1,9 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$btn = Util::getReq('btn');
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
@@ -129,7 +132,7 @@ for($i=0; $i < 21; $i++) {
echo "<td align=center>&nbsp;</td>"; echo "<td align=center>&nbsp;</td>";
} else { } else {
$imageTemp = GetImageURL($gen[imgsvr]); $imageTemp = GetImageURL($gen[imgsvr]);
echo "<td align=center><img src={$imageTemp}/{$pic[$k]}></img></td>"; echo "<td align=center><img width='64' height='64' src={$imageTemp}/{$pic[$k]}></img></td>";
} }
} }
@@ -207,7 +210,7 @@ for($i=0; $i < 4; $i++) {
echo "<td align=center>&nbsp;</td>"; echo "<td align=center>&nbsp;</td>";
} else { } else {
$imageTemp = GetImageURL($gen[imgsvr]); $imageTemp = GetImageURL($gen[imgsvr]);
echo "<td align=center><img src={$imageTemp}/{$pic[$k]}></img></td>"; echo "<td align=center><img width='64' height='64' src={$imageTemp}/{$pic[$k]}></img></td>";
} }
} }
@@ -248,7 +251,7 @@ for($i=0; $i < 4; $i++) {
echo "<td align=center>&nbsp;</td>"; echo "<td align=center>&nbsp;</td>";
} else { } else {
$imageTemp = GetImageURL($gen[imgsvr]); $imageTemp = GetImageURL($gen[imgsvr]);
echo "<td align=center><img src={$imageTemp}/{$pic[$k]}></img></td>"; echo "<td align=center><img width='64' height='64' src={$imageTemp}/{$pic[$k]}></img></td>";
} }
} }
+3
View File
@@ -1,6 +1,9 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$select = Util::getReq('select', 'int', 0);
$connect = dbConn(); $connect = dbConn();
increaseRefresh($connect, "왕조일람", 2); increaseRefresh($connect, "왕조일람", 2);
?> ?>
+3
View File
@@ -1,6 +1,9 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$select = Util::getReq('select', 'int', 0);
$connect = dbConn(); $connect = dbConn();
increaseRefresh($connect, "왕조일람", 2); increaseRefresh($connect, "왕조일람", 2);
?> ?>
+7 -1
View File
@@ -1,6 +1,12 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$type = Util::getReq('type', 'int', 9);
if ($type <= 0 || $type > 16) {
$type = 9;
}
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
@@ -148,7 +154,7 @@ for($j=0; $j < $gencount; $j++) {
$imageTemp = GetImageURL($general[imgsvr]); $imageTemp = GetImageURL($general[imgsvr]);
echo " echo "
<tr> <tr>
<td align=center><img src={$imageTemp}/{$general[picture]}></img></td> <td align=center><img width='64' height='64' src={$imageTemp}/{$general[picture]}></img></td>
<td align=center>$name</td> <td align=center>$name</td>
<td align=center>$general[age]세</td> <td align=center>$general[age]세</td>
<td align=center>".getGenChar($general[personal])."</td> <td align=center>".getGenChar($general[personal])."</td>
+1 -1
View File
@@ -65,7 +65,7 @@ for($i=0; $i < 21; $i++) {
echo "<td align=center>&nbsp;</td>"; echo "<td align=center>&nbsp;</td>";
} else { } else {
$imageTemp = GetImageURL($gen[imgsvr]); $imageTemp = GetImageURL($gen[imgsvr]);
echo "<td align=center><img src={$imageTemp}/{$pic[$k]}></img></td>"; echo "<td align=center><img width='64' height='64' src={$imageTemp}/{$pic[$k]}></img></td>";
} }
*/ */
} }
+6 -2
View File
@@ -3,6 +3,10 @@ $yearmonth = $_POST['yearmonth'];
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$btn = Util::getReq('btn');
$yearmonth = Util::getReq('yearmonth', 'int');
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
@@ -33,8 +37,8 @@ if(!$yearmonth) {
$year = $admin['year']; $year = $admin['year'];
$month = $admin['month'] - 1; $month = $admin['month'] - 1;
} else { } else {
$year = substr($yearmonth, 0, 3) - 0; $year = intdiv($yearmonth, 100);
$month = substr($yearmonth, 3, 2) - 0; $month = $yearmonth % 100;
if($btn == "◀◀ 이전달") { if($btn == "◀◀ 이전달") {
$month -= 1; $month -= 1;
+3 -1
View File
@@ -4,9 +4,11 @@ include "func.php";
$connect = dbConn(); $connect = dbConn();
increaseRefresh($connect, "빙의일람", 2); increaseRefresh($connect, "빙의일람", 2);
if($type == 0) { $type = Util::getReq('type', 'int', 1);
if($type <= 0 || $type > 8){
$type = 1; $type = 1;
} }
$sel[$type] = "selected"; $sel[$type] = "selected";
?> ?>
+4
View File
@@ -1,6 +1,10 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$msg = Util::getReq('msg');
$msg2 = Util::getReq('msg2');
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
+9
View File
@@ -1,6 +1,15 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$btn = Util::getReq('btn');
$gen = Util::getReq('gen', 'int', 0);
$type = Util::getReq('type', 'int', 0);
if ($type < 0 || $type > 3) {
$type = 0;
}
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
+4 -1
View File
@@ -1,6 +1,9 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$citylist = Util::getReq('citylist', 'int');
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
@@ -280,7 +283,7 @@ for($j=0; $j < $gencount; $j++) {
$imageTemp = GetImageURL($general[imgsvr]); $imageTemp = GetImageURL($general[imgsvr]);
echo " echo "
<tr> <tr>
<td align=center"; echo $me[skin]==2?" background={$imageTemp}/{$general[picture]}":""; echo " height=64></td> <td align=center"; echo $me[skin]==2?" style='background:no-repeat center url(\"{$imageTemp}/{$general['picture']}\");background-size:64px;'":""; echo " height=64></td>
<td align=center>$general[name]</td> <td align=center>$general[name]</td>
<td align=center>$leader</td> <td align=center>$leader</td>
<td align=center>$power</td> <td align=center>$power</td>
+6
View File
@@ -1,6 +1,12 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$type = Util::getReq('type', 'int', 7);
if ($type <= 0 || $type > 8) {
$type = 7;
}
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
+2 -2
View File
@@ -82,10 +82,10 @@ for($i=12; $i >= $lv; $i-=2) {
echo " echo "
<tr> <tr>
<td width=98 align=center id=bg1><font size=4>".getLevel($i1, $nation[level])."</font></td> <td width=98 align=center id=bg1><font size=4>".getLevel($i1, $nation[level])."</font></td>
<td width=64 height=64 background={$imageTemp1}/{$level[$i1][picture]}>&nbsp;</td> <td width=64 height=64 style='background:no-repeat center url(\"{$imageTemp1}/{$level[$i1]['picture']}\");background-size:64px;'>&nbsp;</td>
<td width=332><font size=4>";echo $level[$i1][name]==''?"-":$level[$i1][name]; echo " ({$level[$i1][belong]}년)</font></td> <td width=332><font size=4>";echo $level[$i1][name]==''?"-":$level[$i1][name]; echo " ({$level[$i1][belong]}년)</font></td>
<td width=98 align=center id=bg1><font size=4>".getLevel($i2, $nation[level])."</font></td> <td width=98 align=center id=bg1><font size=4>".getLevel($i2, $nation[level])."</font></td>
<td width=64 height=64 background={$imageTemp2}/{$level[$i2][picture]}>&nbsp;</td> <td width=64 height=64 style='background:no-repeat center url(\"{$imageTemp2}/{$level[$i2]['picture']}\");background-size:64px;'>&nbsp;</td>
<td width=332><font size=4>";echo $level[$i2][name]==''?"-":$level[$i2][name]; echo " ({$level[$i2][belong]}년)</font></td> <td width=332><font size=4>";echo $level[$i2][name]==''?"-":$level[$i2][name]; echo " ({$level[$i2][belong]}년)</font></td>
</tr> </tr>
"; ";
+6
View File
@@ -1,6 +1,12 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$type = Util::getReq('type', 'int', 10);
if ($type <= 0 || $type > 12) {
$type = 10;
}
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
+7 -1
View File
@@ -1,6 +1,12 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$type = Util::getReq('type', 'int', 1);
if($type <= 0 || $type > 15) {
$type = 1;
}
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
@@ -139,7 +145,7 @@ for($j=0; $j < $gencount; $j++) {
$imageTemp = GetImageURL($general[imgsvr]); $imageTemp = GetImageURL($general[imgsvr]);
echo " echo "
<tr> <tr>
<td align=center"; echo $me[skin]>0?" background={$imageTemp}/{$general[picture]}":""; echo " height=64></td> <td align=center"; echo $me[skin]>0?" style='background:no-repeat center url(\"{$imageTemp}/{$general['picture']}\");background-size:64px;'":""; echo " height=64></td>
<td align=center>$name</td> <td align=center>$name</td>
<td align=center>"; echo getLevel($general[level], $nation[level]); echo "</td> <td align=center>"; echo getLevel($general[level], $nation[level]); echo "</td>
<td align=center>".getDed($general[dedication])."</td> <td align=center>".getDed($general[dedication])."</td>
+23
View File
@@ -1,6 +1,29 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$btn = Util::getReq('btn');
$map = Util::getReq('map', 'int', 0);
$mode = Util::getReq('mode', 'int', 2);
$tnmt = Util::getReq('tnmt', 'int', 1);
$skin = Util::getReq('skin', 'int', 1);
if($map < 0 || $map > 2){
$map = 0;
}
if($mode < 0 || $mode > 2){
$mode = 2;
}
if($tnmt < 0 || $tnmt > 1){
$tnmt = 1;
}
if($skin < 0 || $skin > 17){
$skin = 1;
}
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
+2 -2
View File
@@ -78,7 +78,7 @@ for($i=0; $i < $troopcount; $i++) {
<tr> <tr>
<td align=center rowspan=2><input "; echo $i==0?"checked ":""; echo "type=radio name=troop value='{$troop[troop]}'></td> <td align=center rowspan=2><input "; echo $i==0?"checked ":""; echo "type=radio name=troop value='{$troop[troop]}'></td>
<td align=center >$troop[name]<br>【 $cityname 】</td> <td align=center >$troop[name]<br>【 $cityname 】</td>
<td height=64 background={$imageTemp}/{$picture}>&nbsp;</td> <td height=64 style='background:no-repeat center url(\"{$imageTemp}/{$picture}\");background-size:64px;'>&nbsp;</td>
<td rowspan=2 width=662>$genlist</td> <td rowspan=2 width=662>$genlist</td>
<td rowspan=2>$turn</td> <td rowspan=2>$turn</td>
</tr> </tr>
@@ -89,7 +89,7 @@ for($i=0; $i < $troopcount; $i++) {
<tr> <tr>
<td align=center rowspan=2>&nbsp;</td> <td align=center rowspan=2>&nbsp;</td>
<td align=center >$troop[name]<br>【 $cityname 】</td> <td align=center >$troop[name]<br>【 $cityname 】</td>
<td height=64 background={$imageTemp}/{$picture}>&nbsp;</td> <td height=64 style='background:no-repeat center url(\"{$imageTemp}/{$picture}\");background-size:64px;'>&nbsp;</td>
<td rowspan=2 width=662>$genlist</td> <td rowspan=2 width=662>$genlist</td>
<td rowspan=2>"; <td rowspan=2>";
+10
View File
@@ -1,6 +1,16 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$btn = Util::getReq('btn');
$amount = Util::getReq('amount', 'int');
$cost = Util::getReq('cost', 'int');
$topv = Util::getReq('topv', 'int');
$value = Util::getReq('value', 'int');
$term = Util::getReq('term', 'int');
$stuff = Util::getReq('stuff', 'int');
$sel = Util::getReq('sel', 'int');
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
+1 -1
View File
@@ -23,7 +23,7 @@ $me = MYDB_fetch_array($result);
for($i=0; $i < 16; $i++) { for($i=0; $i < 16; $i++) {
if(${"btn{$i}"} == "베팅!") { if(${"btn{$i}"} == "베팅!") {
$gold = ${"gold{$i}"}; $gold = (int)${"gold{$i}"};
$mebet = $me["bet{$i}"]; $mebet = $me["bet{$i}"];
if($gold >= 10 && $gold <= 1000) { if($gold >= 10 && $gold <= 1000) {
if($gold + 500 <= $me[gold] && $gold + $mebet <= 1000 && $gold + $me[bet] <= 1000) { if($gold + 500 <= $me[gold] && $gold + $mebet <= 1000 && $gold + $me[bet] <= 1000) {
+6
View File
@@ -3,6 +3,12 @@
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$title = Util::getReq('title');
$msg = Util::getReq('msg');
$num = Util::getReq('num', 'int');
$reply = Util::getReq('reply');
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
+8
View File
@@ -3,6 +3,14 @@
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$btn = Util::getReq('btn');
$msg = Util::getReq('msg');
$scoutmsg = Util::getReq('scoutmsg');
$rate = Util::getReq('rate', 'int');
$bill = Util::getReq('bill', 'int');
$secretlimit = Util::getReq('secretlimit', 'int');
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
+11
View File
@@ -3,6 +3,17 @@
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$turn = Util::getReq('turn', 'array_int');
$command = Util::getReq('command', 'int', 0);
$cost = Util::getReq('cost', 'int');
$name = Util::getReq('name');
$nationname = Util::getReq('nationname', 'string', '');
$note = Util::getReq('note', 'string', '');
$double = Util::getReq('double', 'int', 0);
$third = Util::getReq('third', 'int', 0);
$fourth = Util::getReq('fourth', 'int', 0);
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
+4
View File
@@ -3,6 +3,10 @@
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$msg = Util::getReq('msg');
$genlist = Util::getReq('genlist', 'int');
//로그인 검사 //로그인 검사
CheckLogin(1); CheckLogin(1);
$connect = dbConn(); $connect = dbConn();
+17
View File
@@ -3,6 +3,13 @@
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$btn = Util::getReq('btn');
$level = Util::getReq('level', 'int');
$genlist = Util::getReq('genlist', 'int');
$outlist = Util::getReq('outlist', 'int');
$citylist = Util::getReq('citylist', 'int');
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
@@ -25,6 +32,11 @@ if($btn == "임명") {
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$general = MYDB_fetch_array($result); $general = MYDB_fetch_array($result);
if(!$general){
echo "<script>location.replace('b_myBossInfo.php');</script>";
exit();
}
//임명할사람이 군주이면 불가, 내가 수뇌부이어야함, 공석아닌때는 국가가 같아야함 //임명할사람이 군주이면 불가, 내가 수뇌부이어야함, 공석아닌때는 국가가 같아야함
if($general[level] == 12 || $meLevel < 5 || ($general[nation] != $me[nation] && $genlist != 0)) { if($general[level] == 12 || $meLevel < 5 || ($general[nation] != $me[nation] && $genlist != 0)) {
echo "<script>location.replace('b_myBossInfo.php');</script>"; echo "<script>location.replace('b_myBossInfo.php');</script>";
@@ -35,6 +47,11 @@ if($btn == "임명") {
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$general = MYDB_fetch_array($result); $general = MYDB_fetch_array($result);
if(!$general){
echo "<script>location.replace('b_myBossInfo.php');</script>";
exit();
}
//추방할사람이 군주이면 불가, 내가 수뇌부이어야함, 공석아닌때는 국가가 같아야함 //추방할사람이 군주이면 불가, 내가 수뇌부이어야함, 공석아닌때는 국가가 같아야함
if($general[level] == 12 || $meLevel < 5 || ($general[nation] != $me[nation] && $outlist != 0)) { if($general[level] == 12 || $meLevel < 5 || ($general[nation] != $me[nation] && $outlist != 0)) {
echo "<script>location.replace('b_myBossInfo.php');</script>"; echo "<script>location.replace('b_myBossInfo.php');</script>";
+5
View File
@@ -3,6 +3,11 @@
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$title = Util::getReq('title');
$msg = Util::getReq('msg');
$num = Util::getReq('num', 'int');
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
+3
View File
@@ -3,6 +3,9 @@
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$msg = Util::getReq('msg');
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
+12
View File
@@ -3,6 +3,18 @@
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
// $btn, $msg
$btn = Util::getReq('btn');
$msg = Util::getReq('msg');
//관리자용
$auto = Util::getReq('auto', 'int');
$type = Util::getReq('type', 'int');
$gen = Util::getReq('gen', 'int');
$sel = Util::getReq('sel', 'int');
$trig = Util::getReq('trig', 'int');
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
+6
View File
@@ -3,6 +3,12 @@
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$btn = Util::getReq('btn');
$name = Util::getReq('name');
$gen = Util::getReq('gen', 'int');
$troop = Util::getReq('troop', 'int');
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
+7
View File
@@ -1,6 +1,13 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$btn = Util::getReq('btn');
$sel = Util::getReq('sel', 'int');
$comment = Util::getReq('comment');
$title = Util::getReq('title');
$str = Util::getReq('str');
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
+5
View File
@@ -1,6 +1,11 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$ok = Util::getReq('ok');
$when = Util::getReq('when', 'int');
$gen = Util::getReq('gen', 'int');
//로그인 검사 //로그인 검사
CheckLogin(1); CheckLogin(1);
$connect = dbConn(); $connect = dbConn();
+4
View File
@@ -1,6 +1,10 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$ok = Util::getReq('ok');
$gen = Util::getReq('gen', 'int');
//로그인 검사 //로그인 검사
CheckLogin(1); CheckLogin(1);
$connect = dbConn(); $connect = dbConn();
+4
View File
@@ -1,6 +1,10 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$ok = Util::getReq('ok');
$gen = Util::getReq('gen', 'int');
//로그인 검사 //로그인 검사
CheckLogin(1); CheckLogin(1);
$connect = dbConn(); $connect = dbConn();
+4
View File
@@ -1,6 +1,10 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$ok = Util::getReq('ok');
$gen = Util::getReq('gen', 'int');
//로그인 검사 //로그인 검사
CheckLogin(1); CheckLogin(1);
$connect = dbConn(); $connect = dbConn();
+3
View File
@@ -1,6 +1,9 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$gen = Util::getReq('gen', 'int');
//로그인 검사 //로그인 검사
CheckLogin(1); CheckLogin(1);
$connect = dbConn(); $connect = dbConn();
+4
View File
@@ -1,6 +1,10 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$ok = Util::getReq('ok');
$gen = Util::getReq('gen', 'int');
//로그인 검사 //로그인 검사
CheckLogin(1); CheckLogin(1);
$connect = dbConn(); $connect = dbConn();
+96 -4
View File
@@ -7,6 +7,98 @@ include "func_auction.php";
include "func_string.php"; include "func_string.php";
include "func_history.php"; include "func_history.php";
class Util{
private function __construct(){
}
private static function _parseReq($value, $type)
{
if (is_array($value)) {
if ($type === 'array_int') {
return array_map('intval', $value);
}
if ($type === 'array_string') {
return array_map(function ($item) {
return (string)$item;
}, $value);
}
if ($type === 'array') {
return $value;
}
throw new \InvalidArgumentException('지원할 수 없는 type 지정. array 가 붙은 type이어야 합니다');
}
if ($type === 'bool') {
$value = strtolower($value);
if ($value === 'false' || $value === 'no' || $value === 'n' || $value === 'x' || $value === 'null') {
return false;
}
return !!$value;
}
if ($type === 'int') {
return (int)$value;
}
if ($type === 'float') {
return (float)$value;
}
if ($type === 'string') {
return (string)$value;
}
throw new \InvalidArgumentException('올바르지 않은 type 지정');
}
/**
* $_POST, $_GET에서 값을 가져오는 함수. Util::array_get($_POST[$name]) 축약 가능.
* 타입이 복잡해질 경우 함수를 통하지 않고 json으로 요청할 것을 권장.
*
* @param string $name 가져오고자 하는 key 이름.
* @param string $type 가져오고자 하는 type. [string, int, float, bool, array, array_string, array_int]
* @param mixed $ifNotExists 만약 $_POST와 $_GET에 값이 없을 경우 반환하는 변수. 값은 $type을 검사하지 않음.
* @return int|float|string|array|null
* @throws \InvalidArgumentException
*/
public static function getReq($name, $type = 'string', $ifNotExists = null)
{
if (isset($_POST[$name])) {
$value = $_POST[$name];
} elseif (isset($_GET[$name])) {
$value = $_GET[$name];
} else {
return $ifNotExists;
}
return static::_parseReq($value, $type);
}
/**
* $_POST에서 값을 가져오는 함수. Util::array_get($_POST[$name]) 축약 가능. $_GET에서도 가져올 있다면 getReq 사용.
* 타입이 복잡해질 경우 함수를 통하지 않고 json으로 요청할 것을 권장.
*
* @param string $name 가져오고자 하는 key 이름.
* @param string $type 가져오고자 하는 type. [string, int, float, bool, array, array_string, array_int]
* @param mixed $ifNotExists 만약 $_GET과 $_POST에 값이 없을 경우 반환하는 변수. 값은 $type을 검사하지 않음.
* @return int|float|string|array|null
* @throws \InvalidArgumentException
*/
public static function getPost($name, $type = 'string', $ifNotExists = null)
{
if (isset($_POST[$name])) {
$value = $_POST[$name];
} else {
return $ifNotExists;
}
return static::_parseReq($value, $type);
}
}
/// 0.0~1.0 사이의 랜덤 float /// 0.0~1.0 사이의 랜덤 float
function randF(){ function randF(){
return mt_rand() / mt_getrandmax(); return mt_rand() / mt_getrandmax();
@@ -2690,7 +2782,7 @@ function generalInfo($connect, $no, $skin) {
$general[mode] = unfont($general[mode]); $general[mode] = unfont($general[mode]);
} }
$weapImage = "{$images}/weap{$general[crewtype]}.jpg"; $weapImage = "{$images}/weap{$general[crewtype]}.png";
if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; }; if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; };
$imageTemp = GetImageURL($general[imgsvr]); $imageTemp = GetImageURL($general[imgsvr]);
echo "<table width=498 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg2> echo "<table width=498 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg2>
@@ -2718,7 +2810,7 @@ function generalInfo($connect, $no, $skin) {
<td align=center colspan=2><font size=1>$bookname</font></td> <td align=center colspan=2><font size=1>$bookname</font></td>
</tr> </tr>
<tr> <tr>
<td align=center height=64 rowspan=3"; echo $skin>0?" background={$weapImage}":""; echo ">&nbsp;</td> <td align=center height=64 rowspan=3"; echo $skin>0?" style='background:no-repeat center url(\"{$weapImage}\");background-size:64px;background-color:#222222;'":""; echo ">&nbsp;</td>
<td align=center id=bg1><b>자금</b></td> <td align=center id=bg1><b>자금</b></td>
<td align=center colspan=2>$general[gold]</td> <td align=center colspan=2>$general[gold]</td>
<td align=center id=bg1><b>군량</b></td> <td align=center id=bg1><b>군량</b></td>
@@ -3480,7 +3572,7 @@ function ShowMsg($skin, $bgcolor, $type, $picture, $imgsvr, $me, $mycolor, $you,
} else { } else {
$imageTemp = GetImageURL($imgsvr); $imageTemp = GetImageURL($imgsvr);
$naming = "[<font color=$mycolor>$me</font>{$sign}<font color=$youcolor>$you</font>]"; $naming = "[<font color=$mycolor>$me</font>{$sign}<font color=$youcolor>$you</font>]";
$picture = "<img src={$imageTemp}/{$picture}>"; $picture = "<img width='64' height='64' src={$imageTemp}/{$picture}>";
} }
if($site != "") { if($site != "") {
$form = "<form name=scout method=post action={$site}>"; $form = "<form name=scout method=post action={$site}>";
@@ -3529,7 +3621,7 @@ function msgprint($connect, $msg, $name, $picture, $imgsvr, $when, $num, $type)
<td width=148 align=center id=bg1>$when</td> <td width=148 align=center id=bg1>$when</td>
</tr> </tr>
<tr> <tr>
<td width=64 height=64 valign=top><img src={$imageTemp}/{$picture} width=64 height=64 border=0></td> <td width=64 height=64 valign=top><img width='64' height='64' src={$imageTemp}/{$picture} border=0></td>
<td width=932 colspan=2>$message[1]</td> <td width=932 colspan=2>$message[1]</td>
</tr>"; </tr>";
for($i=0; $i < $count; $i++) { for($i=0; $i < $count; $i++) {
+1 -1
View File
@@ -1,7 +1,7 @@
<? <?
include "lib.php"; include "lib.php";
$justReset = isset($_GET['just_reset'])?intval($_GET['just_reset']):0; $justReset = Util::getReq('just_reset', 'int', 0);
if(file_exists("d_setting/set.php")){ if(file_exists("d_setting/set.php")){
//DB 리셋만 하려는 것인지 검사 필요. //DB 리셋만 하려는 것인지 검사 필요.
+1 -1
View File
@@ -3,7 +3,7 @@ include "lib.php";
include "schema.sql"; include "schema.sql";
include "func.php"; include "func.php";
$justReset = isset($_POST['just_reset'])?intval($_POST['just_reset']):0; $justReset = Util::getReq('just_reset', 'int', 0);
if(file_exists("d_setting/set.php")){ if(file_exists("d_setting/set.php")){
+1 -1
View File
@@ -236,7 +236,7 @@ if($admin[img] >= 1 && $member[grade] >= 1 && $member[picture] != "") {
<tr> <tr>
<td align=right id=bg1>전콘 사용 여부</td> <td align=right id=bg1>전콘 사용 여부</td>
<td width=64 height=64> <td width=64 height=64>
<img src={$imageTemp}/{$member[picture]} border=0> <img width='64' height='64' src={$imageTemp}/{$member[picture]} border=0>
</td> </td>
<td> <td>
<input type=checkbox name=pic value=1 checked>사용 <input type=checkbox name=pic value=1 checked>사용
+2 -2
View File
@@ -6,8 +6,8 @@ $id = $_POST[id];
$pw = $_POST[pw]; $pw = $_POST[pw];
$name = $_POST[name]; $name = $_POST[name];
$name = _String::NoSpecialCharacter($name); $name = _String::NoSpecialCharacter($name);
$pic = $_POST[pic]; $pic = (int)$_POST[pic];
$character = $_POST[character]; $character = (int)$_POST[character];
$leader = floor($_POST['leader']); $leader = floor($_POST['leader']);
$power = floor($_POST['power']); $power = floor($_POST['power']);
+2 -2
View File
@@ -53,8 +53,8 @@ $_basegold = 0; // 기본 국고
$_baserice = 2000; // 기본 병량 $_baserice = 2000; // 기본 병량
$_taxrate = 0.01; // 군량 매매시 세율 $_taxrate = 0.01; // 군량 매매시 세율
$image1 = "../d_pic"; $image1 = "../d_pic";
$images = "/images"; $images = "/image/game";
$image = "/image"; $image = "/image/icons";
unset($member); unset($member);
unset($setup); unset($setup);
+5
View File
@@ -1,6 +1,11 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$turn = Util::getReq('turn', 'array_int');
$sel = Util::getReq('sel', 'int');
$commandtype = Util::getReq('commandtype', 'int');
//로그인 검사 //로그인 검사
CheckLogin(1); CheckLogin(1);
$connect = dbConn(); $connect = dbConn();
+2 -2
View File
@@ -1473,10 +1473,10 @@ function CriticalRatio3($general) {
$ratio = max($mainstat - 65, 0); $ratio = max($mainstat - 65, 0);
if ($crewtype >= 3) { if ($crewtype >= 3) {
$ratio /= 2; $ratio *= 0.4;
} }
else{ else{
$ratio *= 0.7; $ratio *= 0.5;
} }
$ratio = round($ratio); $ratio = round($ratio);
+24 -20
View File
@@ -1,6 +1,10 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$commandtype = Util::getReq('commandtype', 'int', 0);
$turn = Util::getReq('turn', 'array_int', array(0));
//로그인 검사 //로그인 검사
CheckLogin(); CheckLogin();
$connect = dbConn(); $connect = dbConn();
@@ -395,11 +399,11 @@ function calc(cost, formnum) {
$ric = round($ric); $ric = round($ric);
$cst = round($cst); $cst = round($cst);
$l = $color[$i]; $l = $color[$i];
$weapImage = "{$images}/weap{$i}.jpg"; $weapImage = "{$images}/weap{$i}.png";
if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; } if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; }
echo " echo "
<tr height=64 bgcolor=$l> <tr height=64 bgcolor=$l>
<td background={$weapImage} align=center></td> <td style='background:no-repeat center url(\"{$weapImage}\");background-size:64px;background-color:#222222;' align=center></td>
<td align=center>".getTypename($i)."</td> <td align=center>".getTypename($i)."</td>
<td align=center>{$att}</td> <td align=center>{$att}</td>
<td align=center>{$def}</td> <td align=center>{$def}</td>
@@ -445,11 +449,11 @@ function calc(cost, formnum) {
$ric = round($ric); $ric = round($ric);
$cst = round($cst); $cst = round($cst);
$l = $color[$i]; $l = $color[$i];
$weapImage = "{$images}/weap{$i}.jpg"; $weapImage = "{$images}/weap{$i}.png";
if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; } if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; }
echo " echo "
<tr height=64 bgcolor=$l> <tr height=64 bgcolor=$l>
<td background={$weapImage} align=center></td> <td style='background:no-repeat center url(\"{$weapImage}\");background-size:64px;background-color:#222222;' align=center></td>
<td align=center>".getTypename($i)."</td> <td align=center>".getTypename($i)."</td>
<td align=center>{$att}</td> <td align=center>{$att}</td>
<td align=center>{$def}</td> <td align=center>{$def}</td>
@@ -495,11 +499,11 @@ function calc(cost, formnum) {
$ric = round($ric); $ric = round($ric);
$cst = round($cst); $cst = round($cst);
$l = $color[$i]; $l = $color[$i];
$weapImage = "{$images}/weap{$i}.jpg"; $weapImage = "{$images}/weap{$i}.png";
if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; } if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; }
echo " echo "
<tr height=64 bgcolor=$l> <tr height=64 bgcolor=$l>
<td background={$weapImage} align=center></td> <td style='background:no-repeat center url(\"{$weapImage}\");background-size:64px;background-color:#222222;' align=center></td>
<td align=center>".getTypename($i)."</td> <td align=center>".getTypename($i)."</td>
<td align=center>{$att}</td> <td align=center>{$att}</td>
<td align=center>{$def}</td> <td align=center>{$def}</td>
@@ -545,11 +549,11 @@ function calc(cost, formnum) {
$ric = round($ric); $ric = round($ric);
$cst = round($cst); $cst = round($cst);
$l = $color[$i]; $l = $color[$i];
$weapImage = "{$images}/weap{$i}.jpg"; $weapImage = "{$images}/weap{$i}.png";
if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; } if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; }
echo " echo "
<tr height=64 bgcolor=$l> <tr height=64 bgcolor=$l>
<td background={$weapImage} align=center></td> <td style='background:no-repeat center url(\"{$weapImage}\");background-size:64px;background-color:#222222;' align=center></td>
<td align=center>".getTypename($i)."</td> <td align=center>".getTypename($i)."</td>
<td align=center>{$att}</td> <td align=center>{$att}</td>
<td align=center>{$def}</td> <td align=center>{$def}</td>
@@ -595,11 +599,11 @@ function calc(cost, formnum) {
$ric = round($ric); $ric = round($ric);
$cst = round($cst); $cst = round($cst);
$l = $color[$i]; $l = $color[$i];
$weapImage = "{$images}/weap{$i}.jpg"; $weapImage = "{$images}/weap{$i}.png";
if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; } if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; }
echo " echo "
<tr height=64 bgcolor=$l> <tr height=64 bgcolor=$l>
<td background={$weapImage} align=center></td> <td style='background:no-repeat center url(\"{$weapImage}\");background-size:64px;background-color:#222222;' align=center></td>
<td align=center>".getTypename($i)."</td> <td align=center>".getTypename($i)."</td>
<td align=center>{$att}</td> <td align=center>{$att}</td>
<td align=center>{$def}</td> <td align=center>{$def}</td>
@@ -829,11 +833,11 @@ function calc(cost, formnum) {
$ric = round($ric); $ric = round($ric);
$cst = round($cst); $cst = round($cst);
$l = $color[$i]; $l = $color[$i];
$weapImage = "{$images}/weap{$i}.jpg"; $weapImage = "{$images}/weap{$i}.png";
if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; } if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; }
echo " echo "
<tr height=64 bgcolor=$l> <tr height=64 bgcolor=$l>
<td background={$weapImage} align=center></td> <td style='background:no-repeat center url(\"{$weapImage}\");background-size:64px;background-color:#222222;' align=center></td>
<td align=center>".getTypename($i)."</td> <td align=center>".getTypename($i)."</td>
<td align=center>{$att}</td> <td align=center>{$att}</td>
<td align=center>{$def}</td> <td align=center>{$def}</td>
@@ -879,11 +883,11 @@ function calc(cost, formnum) {
$ric = round($ric); $ric = round($ric);
$cst = round($cst); $cst = round($cst);
$l = $color[$i]; $l = $color[$i];
$weapImage = "{$images}/weap{$i}.jpg"; $weapImage = "{$images}/weap{$i}.png";
if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; } if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; }
echo " echo "
<tr height=64 bgcolor=$l> <tr height=64 bgcolor=$l>
<td background={$weapImage} align=center></td> <td style='background:no-repeat center url(\"{$weapImage}\");background-size:64px;background-color:#222222;' align=center></td>
<td align=center>".getTypename($i)."</td> <td align=center>".getTypename($i)."</td>
<td align=center>{$att}</td> <td align=center>{$att}</td>
<td align=center>{$def}</td> <td align=center>{$def}</td>
@@ -929,11 +933,11 @@ function calc(cost, formnum) {
$ric = round($ric); $ric = round($ric);
$cst = round($cst); $cst = round($cst);
$l = $color[$i]; $l = $color[$i];
$weapImage = "{$images}/weap{$i}.jpg"; $weapImage = "{$images}/weap{$i}.png";
if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; } if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; }
echo " echo "
<tr height=64 bgcolor=$l> <tr height=64 bgcolor=$l>
<td background={$weapImage} align=center></td> <td style='background:no-repeat center url(\"{$weapImage}\");background-size:64px;background-color:#222222;' align=center></td>
<td align=center>".getTypename($i)."</td> <td align=center>".getTypename($i)."</td>
<td align=center>{$att}</td> <td align=center>{$att}</td>
<td align=center>{$def}</td> <td align=center>{$def}</td>
@@ -979,11 +983,11 @@ function calc(cost, formnum) {
$ric = round($ric); $ric = round($ric);
$cst = round($cst); $cst = round($cst);
$l = $color[$i]; $l = $color[$i];
$weapImage = "{$images}/weap{$i}.jpg"; $weapImage = "{$images}/weap{$i}.png";
if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; } if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; }
echo " echo "
<tr height=64 bgcolor=$l> <tr height=64 bgcolor=$l>
<td background={$weapImage} align=center></td> <td style='background:no-repeat center url(\"{$weapImage}\");background-size:64px;background-color:#222222;' align=center></td>
<td align=center>".getTypename($i)."</td> <td align=center>".getTypename($i)."</td>
<td align=center>{$att}</td> <td align=center>{$att}</td>
<td align=center>{$def}</td> <td align=center>{$def}</td>
@@ -1029,11 +1033,11 @@ function calc(cost, formnum) {
$ric = round($ric); $ric = round($ric);
$cst = round($cst); $cst = round($cst);
$l = $color[$i]; $l = $color[$i];
$weapImage = "{$images}/weap{$i}.jpg"; $weapImage = "{$images}/weap{$i}.png";
if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; } if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; }
echo " echo "
<tr height=64 bgcolor=$l> <tr height=64 bgcolor=$l>
<td background={$weapImage} align=center></td> <td style='background:no-repeat center url(\"{$weapImage}\");background-size:64px;background-color:#222222;' align=center></td>
<td align=center>".getTypename($i)."</td> <td align=center>".getTypename($i)."</td>
<td align=center>{$att}</td> <td align=center>{$att}</td>
<td align=center>{$def}</td> <td align=center>{$def}</td>
+1 -1
View File
@@ -92,7 +92,7 @@ if($admin[img] >= 3) {
?> ?>
<tr> <tr>
<td width=498 align=right rowspan=2 height=64 id=bg1>장수</td> <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 width='64' height='64' src=<?=$image;?>/1001.jpg border=0 name=picture></td>
</tr> </tr>
<? <?
} }
+1 -1
View File
@@ -4,7 +4,7 @@ include "func.php";
$id = $_POST[id]; $id = $_POST[id];
$pw = $_POST[pw]; $pw = $_POST[pw];
$face = $_POST[face]; $face = (int)$_POST[face];
$pwTemp = substr($pw, 0, 32); $pwTemp = substr($pw, 0, 32);
+4
View File
@@ -1,6 +1,10 @@
<? <?
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$type = Util::getReq('type', 'int', 0);
$sel = Util::getReq('sel', 'int', 1);
//로그인 검사 //로그인 검사
CheckLogin(1); CheckLogin(1);
$connect = dbConn(); $connect = dbConn();
+3 -3
View File
@@ -48,9 +48,9 @@ button {
font-family: '맑은 고딕'; font-family: '맑은 고딕';
font-size: 13px; font-size: 13px;
} }
.bg0 { background-image:url(/images/back_walnut.jpg); } .bg0 { background-image:url(/image/game/back_walnut.jpg); }
.bg1 { background-image:url(/images/back_green.jpg); } .bg1 { background-image:url(/image/game/back_green.jpg); }
.bg2 { background-image:url(/images/back_blue.jpg); } .bg2 { background-image:url(/image/game/back_blue.jpg); }
.font0 { font-size: 10px; } .font0 { font-size: 10px; }
.font1 { font-size: 13px; } .font1 { font-size: 13px; }
+2 -2
View File
@@ -5,8 +5,8 @@ ob_start();
// 주요 환경변수들 // 주요 환경변수들
define(W, '/'); define(W, '/');
define(IMAGE, '../../image'); define(IMAGE, '/image/icons');
define(IMAGES, '../../images'); define(IMAGES, '/image/game');
//define(IMAGE, 'http://115.68.28.99/image'); //define(IMAGE, 'http://115.68.28.99/image');
//define(IMAGES, 'http://115.68.28.99/images'); //define(IMAGES, 'http://115.68.28.99/images');
+3 -3
View File
@@ -4,10 +4,10 @@
// $_POST['notice'] : 공지 // $_POST['notice'] : 공지
// $_POST['server'] : 서버 인덱스 // $_POST['server'] : 서버 인덱스
// $_POST['select'] : 0: 폐쇄, 1: 리셋, 2: 오픈 // $_POST['select'] : 0: 폐쇄, 1: 리셋, 2: 오픈
$action = $_POST['action']; $action = (int)$_POST['action'];
$notice = $_POST['notice']; $notice = $_POST['notice'];
$server = $_POST['server']; $server = (int)$_POST['server'];
$select = $_POST['select']; $select = (int)$_POST['select'];
require_once('_common.php'); require_once('_common.php');
require_once(ROOT.W.F_FUNC.W.'class._JSON.php'); require_once(ROOT.W.F_FUNC.W.'class._JSON.php');
+2 -2
View File
@@ -2,8 +2,8 @@
// 외부 파라미터 // 외부 파라미터
// $_POST['select'] : 처리종류 // $_POST['select'] : 처리종류
// $_POST['no'] : NO // $_POST['no'] : NO
$select = $_POST['select']; $select = (int)$_POST['select'];
$no = $_POST['no']; $no = (int)$_POST['no'];
require_once('_common.php'); require_once('_common.php');
require_once(ROOT.W.F_FUNC.W.'class._JSON.php'); require_once(ROOT.W.F_FUNC.W.'class._JSON.php');