string 내의 $ 호출들 일괄 변환.
This commit is contained in:
+34
-34
@@ -6,7 +6,7 @@ CheckLogin();
|
||||
$connect = dbConn();
|
||||
increaseRefresh($connect, "거래장", 2);
|
||||
|
||||
$query = "select no,special,skin,userlevel,con,turntime from general where user_id='$_SESSION[p_id]'";
|
||||
$query = "select no,special,skin,userlevel,con,turntime from general where user_id='$_SESSION['p_id']'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
@@ -14,26 +14,26 @@ $query = "select conlimit from game where no=1";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$admin = MYDB_fetch_array($result);
|
||||
|
||||
$con = checkLimit($me[userlevel], $me[con], $admin[conlimit]);
|
||||
if($con >= 2) { printLimitMsg($me[turntime]); exit(); }
|
||||
$con = checkLimit($me['userlevel'], $me['con'], $admin['conlimit']);
|
||||
if($con >= 2) { printLimitMsg($me['turntime']); exit(); }
|
||||
|
||||
$query = "select no from auction where no1='$me[no]'";
|
||||
$query = "select no from auction where no1='$me['no']'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$tradeCount = MYDB_num_rows($result);
|
||||
|
||||
$query = "select no from auction where no2='$me[no]'";
|
||||
$query = "select no from auction where no2='$me['no']'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$bidCount = MYDB_num_rows($result);
|
||||
|
||||
$btCount = $tradeCount + $bidCount;
|
||||
|
||||
if($me[userlevel] >= 5 || ($me[special] != 30 && $btCount < 1) || ($me[special] == 30 && $btCount < 3)) {
|
||||
if($me['userlevel'] >= 5 || ($me['special'] != 30 && $btCount < 1) || ($me['special'] == 30 && $btCount < 3)) {
|
||||
$btn = "submit";
|
||||
} else {
|
||||
$btn = "hidden";
|
||||
}
|
||||
|
||||
if($me[skin] < 1) {
|
||||
if($me['skin'] < 1) {
|
||||
$tempColor = $_basecolor; $tempColor2 = $_basecolor2; $tempColor3 = $_basecolor3; $tempColor4 = $_basecolor4;
|
||||
$_basecolor = "000000"; $_basecolor2 = "000000"; $_basecolor3 = "000000"; $_basecolor4 = "000000";
|
||||
}
|
||||
@@ -77,28 +77,28 @@ $count = MYDB_num_rows($result);
|
||||
$chk = 0;
|
||||
for($i=0; $i < $count; $i++) {
|
||||
$auction = MYDB_fetch_array($result);
|
||||
$itemname = GetStuffName($auction[stuff]);
|
||||
$itemname = GetStuffName($auction['stuff']);
|
||||
$radio = ""; $alert = ""; $alert2 = "";
|
||||
if($auction[no1] == $me[no]) { $radio = " disabled"; }
|
||||
elseif($auction[no2] > 0 && $auction[amount] * 2 <= $auction[value] && $auction[stuff] == 0) { $radio = " disabled"; $alert = "<font color=red>"; $alert2 = "</font>"; }
|
||||
elseif($auction[no2] > 0 && $auction[topv] <= $auction[value]) { $radio = " disabled"; $alert = "<font color=red>"; $alert2 = "</font>"; }
|
||||
if($auction[no1] == $me['no']) { $radio = " disabled"; }
|
||||
elseif($auction[no2] > 0 && $auction['amount'] * 2 <= $auction['value'] && $auction['stuff'] == 0) { $radio = " disabled"; $alert = "<font color=red>"; $alert2 = "</font>"; }
|
||||
elseif($auction[no2] > 0 && $auction['topv'] <= $auction['value']) { $radio = " disabled"; $alert = "<font color=red>"; $alert2 = "</font>"; }
|
||||
elseif($chk == 0) { $radio = " checked"; $chk = 1; }
|
||||
$pv = round($auction[value] * 100 / $auction[amount]) / 100 + 0.001;
|
||||
$pv = round($auction['value'] * 100 / $auction['amount']) / 100 + 0.001;
|
||||
$pv = substr($pv, 0, 4);
|
||||
if($auction[stuff] != 0) { $pv = '-'; }
|
||||
if($auction['stuff'] != 0) { $pv = '-'; }
|
||||
echo "
|
||||
<tr align=center>
|
||||
<td>{$auction[no]}</td>
|
||||
<td><input type=radio name=sel value={$auction[no]}{$radio}></td>
|
||||
<td>{$auction['no']}</td>
|
||||
<td><input type=radio name=sel value={$auction['no']}{$radio}></td>
|
||||
<td>{$auction[name1]}</td>
|
||||
<td>{$itemname}</td>
|
||||
<td>{$auction[amount]}</td>
|
||||
<td>금 {$auction[cost]}</td>
|
||||
<td>{$alert}금 {$auction[value]}{$alert2}</td>
|
||||
<td>{$alert}금 {$auction[topv]}{$alert2}</td>
|
||||
<td>{$auction['amount']}</td>
|
||||
<td>금 {$auction['cost']}</td>
|
||||
<td>{$alert}금 {$auction['value']}{$alert2}</td>
|
||||
<td>{$alert}금 {$auction['topv']}{$alert2}</td>
|
||||
<td>{$alert}{$pv}{$alert2}</td>
|
||||
<td>{$alert}{$auction[name2]}{$alert2}</td>
|
||||
<td>{$auction[expire]}</td>
|
||||
<td>{$auction['expire']}</td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
@@ -161,28 +161,28 @@ $count = MYDB_num_rows($result);
|
||||
$chk = 0;
|
||||
for($i=0; $i < $count; $i++) {
|
||||
$auction = MYDB_fetch_array($result);
|
||||
$itemname = GetStuffName($auction[stuff]);
|
||||
$itemname = GetStuffName($auction['stuff']);
|
||||
$radio = ""; $alert = ""; $alert2 = "";
|
||||
if($auction[no1] == $me[no]) { $radio = " disabled"; }
|
||||
elseif($auction[no2] > 0 && $auction[amount] >= $auction[value] * 2 && $auction[stuff] == 0) { $radio = " disabled"; $alert = "<font color=red>"; $alert2 = "</font>"; }
|
||||
elseif($auction[no2] > 0 && $auction[topv] >= $auction[value]) { $radio = " disabled"; $alert = "<font color=red>"; $alert2 = "</font>"; }
|
||||
if($auction[no1] == $me['no']) { $radio = " disabled"; }
|
||||
elseif($auction[no2] > 0 && $auction['amount'] >= $auction['value'] * 2 && $auction['stuff'] == 0) { $radio = " disabled"; $alert = "<font color=red>"; $alert2 = "</font>"; }
|
||||
elseif($auction[no2] > 0 && $auction['topv'] >= $auction['value']) { $radio = " disabled"; $alert = "<font color=red>"; $alert2 = "</font>"; }
|
||||
elseif($chk == 0) { $radio = " checked"; $chk = 1; }
|
||||
$pv = round($auction[value] * 100 / $auction[amount]) / 100 + 0.001;
|
||||
$pv = round($auction['value'] * 100 / $auction['amount']) / 100 + 0.001;
|
||||
$pv = substr($pv, 0, 4);
|
||||
if($auction[stuff] != 0) { $pv = '-'; }
|
||||
if($auction['stuff'] != 0) { $pv = '-'; }
|
||||
echo "
|
||||
<tr align=center>
|
||||
<td>{$auction[no]}</td>
|
||||
<td><input type=radio name=sel value={$auction[no]}{$radio}></td>
|
||||
<td>{$auction['no']}</td>
|
||||
<td><input type=radio name=sel value={$auction['no']}{$radio}></td>
|
||||
<td>{$auction[name1]}</td>
|
||||
<td>{$itemname}</td>
|
||||
<td>{$auction[amount]}</td>
|
||||
<td>금 {$auction[cost]}</td>
|
||||
<td>{$alert}금 {$auction[value]}{$alert2}</td>
|
||||
<td>{$alert}금 {$auction[topv]}{$alert2}</td>
|
||||
<td>{$auction['amount']}</td>
|
||||
<td>금 {$auction['cost']}</td>
|
||||
<td>{$alert}금 {$auction['value']}{$alert2}</td>
|
||||
<td>{$alert}금 {$auction['topv']}{$alert2}</td>
|
||||
<td>{$alert}{$pv}{$alert2}</td>
|
||||
<td>{$alert}{$auction[name2]}{$alert2}</td>
|
||||
<td>{$auction[expire]}</td>
|
||||
<td>{$auction['expire']}</td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
@@ -224,7 +224,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:13;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, $me['skin']);?>
|
||||
</td></tr>
|
||||
<tr><td align=center id=bg2><font size=5>도 움 말</font></td></tr>
|
||||
<tr><td>
|
||||
|
||||
Reference in New Issue
Block a user