forked from science-ation/science-ation
whoops, the code for the fairmanager was messed up - should be fixed now
also set the fair manager to the superuser on installation
This commit is contained in:
parent
3c621ece84
commit
bd4f8b6739
@ -754,7 +754,7 @@ INSERT INTO `config` (`var`, `val`, `description`, `year`) VALUES ('committee_pu
|
||||
INSERT INTO `config` (`var`, `val`, `description`, `year`) VALUES ('judges_password_expiry_days', '365', 'Judges passwords expire and they are forced to choose a new one after this many days. (0 for no expiry)', -1);
|
||||
INSERT INTO `config` (`var`, `val`, `description`, `year`) VALUES ('maxspecialawardsperproject', '7', 'The maximum number of self-nominated special awards a project can sign-up for', -1);
|
||||
INSERT INTO `config` (`var`, `val`, `description`, `year`) VALUES ('specialawardnomination', 'date', 'Self nominations for special awards are due either with registration or on a specific date. (date|registration). If "date" is used, it must be configured under "Important Dates" section.', -1);
|
||||
INSERT INTO `config` (`var`, `val`, `description`, `year`) VALUES ('fairmanageremail', '', 'The email address of the ''fair manager''. Any important emails etc generated by the system will be sent here', -1);
|
||||
INSERT INTO `config` (`var`, `val`, `description`, `year`) VALUES ('fairmanageremail', '', 'The email address of the fair manager. Any important emails etc generated by the system will be sent here', -1);
|
||||
INSERT INTO `dates` (`date`, `name`, `description`, `year`) VALUES ('', 'fairdate', 'Date of the fair', -1);
|
||||
INSERT INTO `dates` (`date`, `name`, `description`, `year`) VALUES ('', 'regopen', 'Registration system opens', -1);
|
||||
INSERT INTO `dates` (`date`, `name`, `description`, `year`) VALUES ('', 'regclose', 'Registration system closes', -1);
|
||||
|
@ -19,7 +19,7 @@ INSERT INTO `config` (`var`, `val`, `description`, `year`) VALUES ('committee_pu
|
||||
INSERT INTO `config` (`var`, `val`, `description`, `year`) VALUES ('judges_password_expiry_days', '365', 'Judges passwords expire and they are forced to choose a new one after this many days. (0 for no expiry)', -1);
|
||||
INSERT INTO `config` (`var`, `val`, `description`, `year`) VALUES ('maxspecialawardsperproject', '7', 'The maximum number of self-nominated special awards a project can sign-up for', -1);
|
||||
INSERT INTO `config` (`var`, `val`, `description`, `year`) VALUES ('specialawardnomination', 'date', 'Self nominations for special awards are due either with registration or on a specific date. (date|registration). If "date" is used, it must be configured under "Important Dates" section.', -1);
|
||||
INSERT INTO `config` (`var`, `val`, `description`, `year`) VALUES ('fairmanageremail', '', 'The email address of the ''fair manager''. Any important emails etc generated by the system will be sent here', -1);
|
||||
INSERT INTO `config` (`var`, `val`, `description`, `year`) VALUES ('fairmanageremail', '', 'The email address of the fair manager. Any important emails etc generated by the system will be sent here', -1);
|
||||
INSERT INTO `dates` (`date`, `name`, `description`, `year`) VALUES ('', 'fairdate', 'Date of the fair', -1);
|
||||
INSERT INTO `dates` (`date`, `name`, `description`, `year`) VALUES ('', 'regopen', 'Registration system opens', -1);
|
||||
INSERT INTO `dates` (`date`, `name`, `description`, `year`) VALUES ('', 'regclose', 'Registration system closes', -1);
|
||||
|
@ -116,6 +116,9 @@ if($_POST['action']=="save")
|
||||
//add the actual fair name, and just insert the defaults of everything else
|
||||
if($r->var=="fairname")
|
||||
mysql_query("INSERT INTO config (var,val,description,year) VALUES ('$r->var','".mysql_escape_string(stripslashes($_POST['fairname']))."','$r->description','".$_POST['fairyear']."')");
|
||||
//add the fair manager as well
|
||||
else if($r->var=="fairmanager")
|
||||
mysql_query("INSERT INTO config (var,val,description,year) VALUES ('$r->var','".mysql_escape_string(stripslashes($_POST['email']))."','$r->description','".$_POST['fairyear']."')");
|
||||
else
|
||||
mysql_query("INSERT INTO config (var,val,description,year) VALUES ('$r->var','$r->val','$r->description','".$_POST['fairyear']."')");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user