diff --git a/eval/dashboard.eval.php b/eval/dashboard.eval.php
index ff3ae97d..c1edbb96 100644
--- a/eval/dashboard.eval.php
+++ b/eval/dashboard.eval.php
@@ -497,6 +497,8 @@ function count_future($arr,$needle,$diff) {
$table_assignment_post .= "";
$table_assignment_post .= "";
+ $table_assignment_post .= "
Top
";
+
// If places have been awarded at the table, but there are duplicates, list them for admins
if (($admin) && (!empty($table_places))) {
diff --git a/eval/judging_admin.eval.php b/eval/judging_admin.eval.php
index a9e94fa3..4954da0c 100644
--- a/eval/judging_admin.eval.php
+++ b/eval/judging_admin.eval.php
@@ -176,7 +176,7 @@
$eval_place_actions .= "";
if ($mini_bos_count_flag) {
$eval_place_actions .= "";
- $eval_place_actions .= sprintf("
%s %s ",$mini_bos_alert_css,$mini_bos_alert_icon,$evaluation_info_104);
+ $eval_place_actions .= sprintf("
%s %s Top",$mini_bos_alert_css,$mini_bos_alert_icon,$evaluation_info_104);
$eval_place_actions .= "
";
}
$eval_place_actions .= "";
diff --git a/eval/judging_dashboard.eval.php b/eval/judging_dashboard.eval.php
index 5b97f220..999baaae 100644
--- a/eval/judging_dashboard.eval.php
+++ b/eval/judging_dashboard.eval.php
@@ -108,9 +108,14 @@
}
+// Mini BOS
$mini_bos_count_flag = FALSE;
$mini_bos_count = 0;
$eval_count = 0;
+$mini_bos_alert_css = "";
+$mini_bos_alert_icon = "";
+$mini_bos_checked_yes = "";
+$mini_bos_checked_no = "";
foreach ($eval_scores as $key => $value) {
@@ -124,6 +129,16 @@
if (($mini_bos_count > 0) && ($eval_count > $mini_bos_count)) $mini_bos_count_flag = TRUE;
+if ($mini_bos_count_flag) {
+ $mini_bos_alert_css = "text-danger";
+ $mini_bos_alert_icon = " ";
+}
+
+if ($mini_bos_count == 0) $mini_bos_checked_no = "CHECKED";
+if ($mini_bos_count > 0) {
+ if ($eval_count == $mini_bos_count) $mini_bos_checked_yes = "CHECKED";
+}
+
if (($judging_open) && (strpos($row_table_assignments['assignRoles'], "HJ") !== false)) {
if ($score_previous_other) {
@@ -169,38 +184,29 @@
$actions .= "";
$actions .= "";
- // Mini BOS
- $mini_bos_alert_css = "";
- $mini_bos_alert_icon = "";
- $mini_bos_checked = "";
- if ($mini_bos_count_flag) {
- $mini_bos_alert_css = "text-danger";
- $mini_bos_alert_icon = " ";
- }
-
- if ($mini_bos_count == $eval_count) $mini_bos_checked = "CHECKED";
+ // Mini-BOS
$actions .= "";
- $actions .= "
";
- $actions .= "
";
- $actions .= " ".$evaluation_info_054." ";
- if ($mini_bos_count_flag) $actions .= "".$mini_bos_alert_icon." Not all judges indicated this entry advanced to the mini-BOS round. Please verify and check or uncheck the box above appropriately. ";
- $actions .= " ";
- $actions .= " ";
- $actions .= "
";
+ $actions .= "
";
+ $actions .= $label_mini_bos;
$actions .= "
";
+ $actions .= "
";
+ if ($mini_bos_count_flag) {
+ $actions .= "
";
+ $actions .= "".$mini_bos_alert_icon." Not all judges indicated this entry advanced to the mini-BOS round. Please verify and select Yes or No above. ";
+ $actions .= "
";
+ }
$actions .= "
";
}
@@ -293,12 +299,6 @@
$actions .= "
";
}
- if (!empty($user_submitted_eval['evalMiniBOS'])) {
- $actions .= "";
- $actions .= " ".$label_mini_bos." ";
- $actions .= "
";
- }
-
if ($judging_open) $notes .= " ".$evaluation_info_006;
}
@@ -376,7 +376,6 @@
$actions .= $label_view_other_judge_eval;
$actions .= " (";
$actions .= $label_score.": ".$score_previous;
- if (!empty($value['mini_bos'])) $actions .= " - ".$label_mini_bos;
$actions .= ")";
$actions .= "";
$actions .= "";
diff --git a/includes/process.inc.php b/includes/process.inc.php
index c9cc5a96..cd9ffc46 100644
--- a/includes/process.inc.php
+++ b/includes/process.inc.php
@@ -89,19 +89,23 @@
if ($request_method === "POST") {
- $token_hash = FALSE;
- $token = filter_input(INPUT_POST,'token',FILTER_SANITIZE_STRING);
- if (hash_equals($_SESSION['token'],$token)) $token_hash = TRUE;
-
- if ((!$token) || (!$token_hash) || (!$process_allowed)) {
- session_unset();
- session_destroy();
- session_write_close();
- $redirect = $base_url."403.php";
- $redirect = prep_redirect_link($redirect);
- $redirect_go_to = sprintf("Location: %s", $redirect);
- header($redirect_go_to);
- exit();
+ if ($action != "paypal") {
+
+ $token_hash = FALSE;
+ $token = filter_input(INPUT_POST,'token',FILTER_SANITIZE_STRING);
+ if (hash_equals($_SESSION['token'],$token)) $token_hash = TRUE;
+
+ if ((!$token) || (!$token_hash) || (!$process_allowed)) {
+ session_unset();
+ session_destroy();
+ session_write_close();
+ $redirect = $base_url."403.php";
+ $redirect = prep_redirect_link($redirect);
+ $redirect_go_to = sprintf("Location: %s", $redirect);
+ header($redirect_go_to);
+ exit();
+ }
+
}
}
diff --git a/index.php b/index.php
index 6062c42a..13726bf8 100644
--- a/index.php
+++ b/index.php
@@ -184,6 +184,8 @@
+
+
diff --git a/maintenance.php b/maintenance.php
index 08b9afde..9d3d411f 100644
--- a/maintenance.php
+++ b/maintenance.php
@@ -4,6 +4,14 @@
* Description: This page displays if the site is in maintenance mode.
*
*/
+
+// Kill any session that was started.
+// Just in case admin puts into maint mode while users are logged in.
+if (session_status() !== PHP_SESSION_NONE) {
+ session_unset();
+ session_destroy();
+}
+
require_once ('paths.php');
require_once (CONFIG.'bootstrap.php');
if (!MAINT) {
@@ -13,7 +21,8 @@
exit();
}
-$competition_logo = "
";
+$competition_logo = "";
+if ((isset($_SESSION['contestLogo'])) && (!empty($_SESSION['contestLogo'])) && (file_exists(USER_IMAGES.$_SESSION['contestLogo']))) $competition_logo = "
";
?>
@@ -22,7 +31,7 @@
-
+
-
+
-
+
+
+