누락된 getReq 추가. 버그 수정

This commit is contained in:
2018-04-14 02:42:58 +09:00
parent a03d2cee63
commit b797bab7e0
13 changed files with 40 additions and 40 deletions
+4 -7
View File
@@ -6,7 +6,7 @@ include "func.php";
$btn = Util::getReq('btn');
$gen = Util::getReq('gen', 'int', 0);
$type = Util::getReq('type', 'int');
$type = 0;
extractMissingPostToGlobals();
@@ -40,9 +40,6 @@ if ($btn == '정렬하기') {
$gen = 0;
}
if ($type == 0) {
$type = 0;
}
$sel[$type] = "selected";
?>
<!DOCTYPE html>
@@ -84,9 +81,9 @@ foreach (getAllNationStaticInfo() as $nation) {
$nationColor[$nation['nation']] = $nation['color'];
}
switch ($type) {
case 0: $query = "select * from diplomacy where me < you order by state desc"; break;
}
$query = "select * from diplomacy where me < you order by state desc";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$dipcount = MYDB_num_rows($result);
for ($i=0; $i < $dipcount; $i++) {