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
This commit is contained in:
james 2006-12-15 21:18:27 +00:00
parent b38dfe33cc
commit 0bd7ab8a93
3 changed files with 16 additions and 2 deletions

View File

@ -46,6 +46,13 @@ ogram; see the file COPYING. If not, write to
echo "<hr />"; echo "<hr />";
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") if($config['judge_scheduler_percent']=="-1")
{ {
@ -122,6 +129,13 @@ else
echo "<br />"; echo "<br />";
echo "<br />"; echo "<br />";
echo "<a href=\"judges_scheduler_status.php\">".i18n("Click here to check the judging scheduler progress")."</a>"; echo "<a href=\"judges_scheduler_status.php\">".i18n("Click here to check the judging scheduler progress")."</a>";
echo "<br />";
echo "<br />";
echo "<br />";
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 "<br />";
echo "<a href=\"judges_schedulerconfig.php?action=reset\">".i18n("Reset judge scheduler status")."</a>";;
} }

View File

@ -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 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 "<br />"; echo "<br />";
echo "<br />"; echo "<br />";
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 "<br />"; echo "<br />";
echo "<br />"; echo "<br />";

View File

@ -1 +1 @@
2.0.3 2.0.4