diff --git a/common.inc.php b/common.inc.php index eacc22c..2692ad6 100644 --- a/common.inc.php +++ b/common.inc.php @@ -492,6 +492,14 @@ if(count($config['languages'])>1)
"; if($title) echo "

".i18n($title)."

"; @@ -843,6 +851,36 @@ function generatePassword() } +//config specific warning +function config_warnings() +{ + +} + +//admin specific warnings +function admin_warnings() +{ + +} + +//warnings to show to both config and/or admin people +function committee_warnings() +{ + global $config; + //it is vital that each year the system be rolled over before we start it again + //we should do this, say, 4 months after the FAIRDATE, so its soon enough that they should see + //the message as soon as they login to start preparing for hte new year, but not too late to do it + //properly :) + + $q=mysql_query("SELECT DATE_ADD('".$config['dates']['fairdate']."', INTERVAL 4 MONTH) < NOW() AS rollovercheck"); + $r=mysql_fetch_object($q); + if($r->rollovercheck) + { + echo error(i18n("It has been more than 4 months since your fair. In order to prepare the system for the next year's fair, you should go to the SFIAB Configuration page, and click on 'Rollover Fair Year'. Do not start updating the system with new information until the year has been properly rolled over.")); + + } +} + $CWSFDivisions=array( 1=>"Biotechnology & Pharmaceutical Sciences", 2=>"Computing & Information Technology",