From 0bd7ab8a93827f230e20528b6dbbd026854af790 Mon Sep 17 00:00:00 2001 From: james Date: Fri, 15 Dec 2006 21:18:27 +0000 Subject: [PATCH] Add an option to forcibly reset the judge scheduelr incase it gets stuck in an inconsistent state Bump version number Correct wording on judges expertise page --- admin/judges_schedulerconfig.php | 14 ++++++++++++++ register_judges_expertise.php | 2 +- version.txt | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/admin/judges_schedulerconfig.php b/admin/judges_schedulerconfig.php index 8de2155..7751a3e 100644 --- a/admin/judges_schedulerconfig.php +++ b/admin/judges_schedulerconfig.php @@ -46,6 +46,13 @@ ogram; see the file COPYING. If not, write to echo "
"; + if($_GET['action']=="reset") + { + mysql_query("UPDATE config SET `val`='-1' WHERE `var`='judge_scheduler_percent' AND `year`=0"); + $config['judge_scheduler_percent']=="-1"; + echo happy(i18n("Judge scheduler status forcibly reset")); + } + if($config['judge_scheduler_percent']=="-1") { @@ -122,6 +129,13 @@ else echo "
"; echo "
"; echo "".i18n("Click here to check the judging scheduler progress").""; + echo "
"; + echo "
"; + echo "
"; + echo i18n("If the scheduler is not running (and you are 100% sure that it is not!) click the link below to reset the scheduler status"); + echo "
"; + echo "".i18n("Reset judge scheduler status")."";; + } diff --git a/register_judges_expertise.php b/register_judges_expertise.php index 61b1675..6376ecd 100644 --- a/register_judges_expertise.php +++ b/register_judges_expertise.php @@ -82,7 +82,7 @@ else echo i18n("Please rank the following divisions according to the amount of knowledge you have of each subject. A '1' indicates very little knowledge, and a '5' indicates you are very knowledgeable of the subject"); echo "
"; echo "
"; - echo i18n("Once you save, any division that you specified as 3 or more will offer sub-divisions for you to choose from."); + echo i18n("Once you save, any division that you specified as 3 or more might offer sub-divisions for you to choose from."); echo "
"; echo "
"; diff --git a/version.txt b/version.txt index 50ffc5a..2165f8f 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -2.0.3 +2.0.4