Commit Graph

802 Commits

Author SHA1 Message Date
james
325c909432 Dont check CURL support inside the loop and dont allow checking to be called without CURL support
Remove awards that were previously added but now dissappeared from the XML import
2007-11-28 18:46:32 +00:00
james
4917bc3a75 Fix postback field on award update 2007-11-27 23:02:40 +00:00
james
c7a3628f4a Update the sponsor if it changes for an existing award
Dont check year on the sponsors table
2007-11-27 22:55:45 +00:00
james
0f198346aa Update fake scripts for 2008
Add external award downloader functionality
2007-11-27 22:47:06 +00:00
dave
55983aca38 - Change the user editor, read the fields and required fields from a config
variable, this will allow the committee to specify exactly what they
  wish to collect (and which fields are requried)
- Insert config variables for volunteers and committee
2007-11-26 02:28:45 +00:00
dave
9eca885410 - Allow multiselect to select nothing 2007-11-26 02:25:39 +00:00
dave
57f62f7ab4 - Add a multiselect option to the config editor 2007-11-25 23:30:51 +00:00
dave
f6cc5d7326 - Cleanup how variables are handled/rolled/etc. Convert the require_vars
function in the config editor to one that checks where ALL variables marked
  with year=-1 exist for FAIRYEAR.  If it doesn't, it creates them.  This
  function gets called in three places:
 	- On installation
	- On rollover
	- Whenever the database is updated
 We should, now, be able to just insert new variables with year=-1, and they
 will be automatically updated for the current year with the default value.
 (no more going into the variable editor to make sure the copy is done).

- Fix the superuser account creation in the install script
2007-11-25 19:53:15 +00:00
james
33471e80ee Add award source configuration
Add stub for award downloader
2007-11-23 22:07:55 +00:00
james
2305a44d57 Rollover award description
Rollover award prizes trophies
2007-11-23 21:25:52 +00:00
james
7619a8fed5 Update DB version 2007-11-23 21:21:55 +00:00
james
0551a65e93 Add trophy selection (student keeper, student return, school keeper, school return) to prizes
Add description to award & update awards ceremony script to include description if available
2007-11-23 21:21:37 +00:00
dave
3479ab4e7f - Add missing i18n() to the top bar 2007-11-23 20:56:59 +00:00
dave
071ded90b0 - Remove "Home >>" from the top nav bar, and simplify the logic 2007-11-23 20:55:29 +00:00
dave
68f52562e5 - Fix the header and top navbar on the awards management/editor page 2007-11-23 20:23:46 +00:00
dave
30d944f968 - Fix a typo 2007-11-21 22:31:34 +00:00
dave
44205d5039 - Disable the save and delete option for system reports, and print a message
saying that the report can only be saved as a new report.
- Add checks to the report_save and report_delete fucntions to ensure system
  reports cannot be saved/deleted.
2007-11-21 22:30:19 +00:00
dave
ac3e50f94e - Fix a bug in the student report generation
- Simplify the report generation logic for report types.
2007-11-21 21:55:31 +00:00
dave
311d9475dc - Add a system_report_id field to the reports, and set it to the reports.id
for ids <= 34 (all the reports the system inserts by default)
2007-11-21 21:21:10 +00:00
james
edcf42443c Fix wording for open or invite registration type on schoolaccess page.
Bug #0132
2007-11-21 21:09:16 +00:00
dave
f864826ee4 - Add user.inc.php here too 2007-11-21 17:04:35 +00:00
dave
0ff8489d58 - include user.inc.php before using user_auth_required() 2007-11-21 17:02:09 +00:00
james
e0b50f8128 revert my last chaange 2007-11-21 16:48:10 +00:00
dave
f61dbd294e - Fix another one 2007-11-21 16:46:19 +00:00
james
012939f975 Need to require user.inc.php or else required functions dont exist. 2007-11-21 16:45:35 +00:00
dave
5eb9c81f36 - Add a missing header 2007-11-21 16:44:50 +00:00
dave
3ba0d061f7 - Remove auth_has_access($access) completely, use
committee_auth_has_access($access) now.
- Remove unused committee_login and committee_auth.php
- Simplify the left bar logic for the committee links
2007-11-21 07:41:09 +00:00
dave
9a2c37f7f0 - Add text boxes for order and title for each member on each committee 2007-11-20 20:46:05 +00:00
james
7e45665d6c This should be an error, not a notice 2007-11-19 21:52:56 +00:00
james
cf2c345e03 cannot use $users_id since its a session variable, and with register_globals ON $users_id overwrites $_SESSION['users_id'] 2007-11-19 21:45:08 +00:00
james
1937045874 Fix the "My Profile" link 2007-11-19 21:29:32 +00:00
james
93011c9883 Cannot check for valid password when authenticating, because people might have passwords that dont match the "new" requirements
Also simplify some of the code (why bother assigning temp vars just to compare?)
2007-11-19 21:28:15 +00:00
james
25de3ace41 only go through the columns if there are columns to go through 2007-11-19 21:14:56 +00:00
james
8a0a3dbc74 Save organization in users table
Dont save emailprivate in users table (its in users_committee)
2007-11-19 21:12:09 +00:00
dave
82b957eee4 - Fix a bug in multirole 2007-11-19 17:11:47 +00:00
dave
1a246cba5d - Fixup the location: redirections in user_auth_required() 2007-11-19 07:01:51 +00:00
dave
4aa73784bb - Fix a typo and make the location of user_login not relative. 2007-11-19 06:58:04 +00:00
dave
689369d460 - Don't collide emails with the existing user being saved 2007-11-19 06:45:25 +00:00
dave
5a4daf5580 - Remove the auth_required() function, nothing should call it anymore. Use
user_auth_required  instead.
2007-11-19 00:37:48 +00:00
dave
5d56e802a0 - Change auth_required to user_auth_required to check for committee access too
- Add a top navbar to every page
2007-11-19 00:33:38 +00:00
dave
04e70ceb33 - Use user_auth_required() for authentication to check for committee access
(needed for multirole users)
- Add the top navbar to all pages
2007-11-18 23:50:23 +00:00
dave
9882ca09c6 - Fix a missing ')' 2007-11-18 23:20:00 +00:00
dave
ad9f954f68 - Correctly copy over NULL password expiry dates (passwords never expire) 2007-11-18 08:20:51 +00:00
dave
190adc2a6d - Update the way php scripts are called.. we need to avoid collisions if the
updater runs in a loop.
- Fix the 62 update script to use the new format
2007-11-18 08:01:05 +00:00
dave
2715d67aef - Fix login check for an expired password
- Allow user_personal.php to handle committee members
- Add password field if the editer in user_personal has access_super
- Allow a committee member to edit anyone in user_personal.php
- Convert auth_required to user_auth_required, and check for both a user type
  and an access level (if committee)
- Convert the committee to the new user system (BIG change :)
- Remove the ^M from admin/committees.php
2007-11-17 21:59:59 +00:00
dave
1d7f5f9871 - Add support for an already logged in message in multirole
- Change how multirole works
2007-11-17 21:46:18 +00:00
dave
009af97420 - Fix some text in volunteer main 2007-11-17 21:45:38 +00:00
dave
0d8f704cd8 - remember when a full load on a user is done
- user mysql_escape_string on all fields before saving (oops!) :)
- add a committee login function to set SESSION variables.
2007-11-16 22:19:58 +00:00
dave
3904e2d9d8 - Allow the update script to include a PHP script too. The PHP script, called
db.update.$num.php, may contain 2 functions  db_update_pre() and
  db_update_post()  which are run before(pre) and after(post) the SQL file is
  applied.  If the php script doesn't exist, the behaviour of the update script
  is unchanged.
2007-11-16 21:42:45 +00:00
james
40fe6cb88c Do some checks for system() and error out where applicable 2007-11-16 17:58:59 +00:00