diff --git a/hwe/_119_b.php b/hwe/_119_b.php
index 84495ea7..e6dfe110 100644
--- a/hwe/_119_b.php
+++ b/hwe/_119_b.php
@@ -7,8 +7,8 @@ include "func.php";
$session = Session::requireGameLogin()->setReadOnly();
if($session->userGrade < 5){
- //echo "";
- echo '_119.php';//TODO:debug all and replace
+ header('location:_119.php');
+ die();
}
$v = new Validator($_POST);
@@ -68,6 +68,4 @@ case "락풀기":
break;
}
-//echo "";
-//echo '_119.php';//TODO:debug all and replace
header('Location:_119.php');
\ No newline at end of file
diff --git a/hwe/_admin1_submit.php b/hwe/_admin1_submit.php
index 2ae49504..6d09c214 100644
--- a/hwe/_admin1_submit.php
+++ b/hwe/_admin1_submit.php
@@ -7,8 +7,8 @@ include "func.php";
$session = Session::requireGameLogin()->setReadOnly();
if ($session->userGrade < 5) {
- //echo "";
- echo '_admin1.php';//TODO:debug all and replace
+ header('location:_admin1.php');
+ die();
}
$v = new Validator($_POST);
diff --git a/hwe/_admin2_submit.php b/hwe/_admin2_submit.php
index 45947fdc..e9ad6652 100644
--- a/hwe/_admin2_submit.php
+++ b/hwe/_admin2_submit.php
@@ -8,7 +8,7 @@ include "func.php";
$weap = Util::getReq('weap', 'int');
//로그인 검사
-$session = Session::requireLogin()->loginGame();
+$session = Session::requireLogin()->loginGame()->setReadOnly();
if($session->userGrade < 5) {
header('location:_admin2.php');
@@ -303,6 +303,4 @@ switch($btn) {
break;
}
-//echo "";
-echo '_admin2.php';//TODO:debug all and replace
-
+header('location:_admin2.php');
\ No newline at end of file
diff --git a/hwe/_admin4_submit.php b/hwe/_admin4_submit.php
index 09ea4402..c663b50a 100644
--- a/hwe/_admin4_submit.php
+++ b/hwe/_admin4_submit.php
@@ -7,8 +7,8 @@ include "func.php";
$session = Session::requireGameLogin()->setReadOnly();
if($session->userGrade < 5) {
- //echo "";
- echo '_admin4.php';//TODO:debug all and replace
+ header('location:_admin4.php');
+ die();
}
$db = DB::db();
@@ -57,6 +57,5 @@ switch($btn) {
break;
}
-//echo "";
-echo '_admin4.php'; //TODO:debug all and replace
+header('location:_admin4.php');
diff --git a/hwe/_admin5_submit.php b/hwe/_admin5_submit.php
index fdd9ca2d..0520e0cd 100644
--- a/hwe/_admin5_submit.php
+++ b/hwe/_admin5_submit.php
@@ -11,8 +11,8 @@ $session = Session::requireGameLogin()->setReadOnly();
$userID = Session::getUserID();
if($session->userGrade < 5) {
- //echo "";
- echo '_admin5.php';//TODO:debug all and replace
+ header('location:_admin5.php');
+ die();
}
$db = DB::db();
@@ -34,7 +34,6 @@ switch($btn) {
break;
}
-//echo "";
-echo '_admin5.php';//TODO:debug all and replace
+header('location:_admin5.php');
diff --git a/hwe/b_myPage.php b/hwe/b_myPage.php
index 85d6774a..32bf8e55 100644
--- a/hwe/b_myPage.php
+++ b/hwe/b_myPage.php
@@ -52,8 +52,7 @@ $me = MYDB_fetch_array($result);
diff --git a/hwe/b_tournament.php b/hwe/b_tournament.php
index 77df1b18..743514e9 100644
--- a/hwe/b_tournament.php
+++ b/hwe/b_tournament.php
@@ -377,10 +377,11 @@ $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "
$betting = MYDB_fetch_array($result);
$bet = [];
for ($i=0; $i < 16; $i++) {
- $bet[$i] = @round($betting['bet'] / $betting["bet{$i}"], 2);
- if ($bet[$i] == 0) {
- $bet[$i] = "∞";
+ if($betting['bet'] == 0){
+ $bet[$i] = '∞';
+ continue;
}
+ $bet[$i] = round($betting['bet'] / $betting["bet{$i}"], 2);
}
echo "
diff --git a/hwe/c_chiefboard.php b/hwe/c_chiefboard.php
index f62968fb..b830d829 100644
--- a/hwe/c_chiefboard.php
+++ b/hwe/c_chiefboard.php
@@ -52,10 +52,4 @@ if(getBlockLevel() != 1 && getBlockLevel() != 3) {
}
}
-//echo "";
-echo 'b_chiefboard.php';//TODO:debug all and replace
-?>
-
-