Commit Graph

37 Commits

Author SHA1 Message Date
dave
ad27a96874 - Use the unique user id (users_uid) instead of the user id (that changes every year) when linking users to committees.
- Also use the uid when displaying committees and contact info.
2009-02-03 22:45:11 +00:00
dave
94d0e5022a - Add a user_load_by_uid() to load a user by their unique id (users are now cloned for each year);
- Fixup the committees.php page to always show the users from the latest year.
2009-02-03 08:19:15 +00:00
dave
f39b01d4c2 - Use NULL properly 2009-01-21 18:33:25 +00:00
dave
b102731ac2 - $config needs to be global, or the year doesn't work :) 2009-01-21 09:04:36 +00:00
dave
d5676576a7 - Fix the user dupe code, now that username,year is unique 2009-01-21 08:59:39 +00:00
dave
9c40cc91f8 A working user editor. It uses the same pages that the user actually sees (via
a $_SESSION['embed'] variable to change the behaviour).  It uses tabs to switch
between the various sections.  Converted committee, volunteer, and judge
editor.  Relies on using a popup window, don't know if that's a good idea or
not, but it sure looks cool.
2009-01-19 23:33:54 +00:00
james
0f3f5dd26c Re-implement award_contacts as sponsor_contacts, will full editor using the new user system 2008-11-03 04:48:48 +00:00
dave
881d6b9be4 - fix the message in the config editor
- add a convenience $user['name'] setting
- update the judge SA
2008-11-02 06:15:05 +00:00
dave
43d58fb17f - missing line to last update 2008-10-26 19:42:49 +00:00
dave
4789bd4d60 - update the user_load routine to use the new method. 2008-10-26 17:21:26 +00:00
james
bf3942bc04 Make salutation work in user editor 2008-10-22 20:47:45 +00:00
james
bce2cef92e Add some user sponsor stubs
Fix some multi-year user stuff
Add sponsor main page
2008-10-22 20:35:35 +00:00
dave
d1c7fa968e - more unneeded user code 2008-10-19 23:14:02 +00:00
dave
a0d27df91e - use the newer (faster) user load, and always load a full user.
- delete now deprecated code because of the new user loader
2008-10-19 21:42:57 +00:00
dave
f9d3913697 - remove old user_update_complete function, each user type now updates their
individual complete entry.
2008-10-19 15:49:28 +00:00
dave
81c211c913 - add judge special awards selection
- fixup the judge_complete detection
- rename judges_id to users_id in the 117 db update, so it's done after the 116
  update converts everything
2008-10-18 03:30:58 +00:00
dave
4b247de611 - implement the judge_other selection for years of experience and willing_chair and whatnot. 2008-10-17 22:44:33 +00:00
dave
b021805246 - conversion of judges to new user system. Mostly works. 2008-10-17 19:34:11 +00:00
dave
986ce4ef44 - user.inc.php needs to generate a password without including common.inc.php
(install3 doesn't like including that file).  That's ok, because eventually
  all passwd handling will be done through user.inc.php (and the generate could
  even be inlined into set_password). But for now, just copy the existing
  generatePassword, and call it something different so the function names don't
  clash.
2008-07-09 18:24:49 +00:00
dave
a9318b6303 - Move all the password handling code into one function (not duplicated/spread
over 3 files)
- Fix a bug to always save the old password (unless it was a reset password)
- Fix a bug to save the old password even when the user sets a new one
2008-07-09 17:02:11 +00:00
james
5ed0135442 Better fix for the password expiration problem 2008-07-09 14:51:48 +00:00
james
e1055150c9 Dont make newly created users passwords expire as soon as they login
Allow firstname and lastname to be POSTed through on the install3 script so the name can be set instead of using 'Superuser Account'
2008-07-08 19:29:02 +00:00
dave
15a56ce13f - Add First Aid and CPR data collection to the user table.
- Modify the config so a committee can enable it for volutneers and committee
  members
2008-02-23 03:28:43 +00:00
james
3b55ddd4a7 Use single quotes for consistency 2008-02-15 23:11:16 +00:00
james
a118acc21c Add the missing 'Gender' field to the user personal profile page, as well as save it :) 2008-02-15 23:08:33 +00:00
dave
7f7c3c53e1 - Change the password expiry mechanism to always check
{$type}_password_expiry_days.  This allows the $config variable to be updated
  and everyones password will expire based on the new value.  To implement
  this, the password expiry column in the users table has been changed to
  passwordset, and a PHP script is used to convert the expiry dates to set
  dates (based on the _password_expiry_days)
- Cleanup the password entry checking
- Load all config variables for the db_update.php script.  Just in case an
  update script wants access to $config
2007-12-21 08:38:13 +00:00
james
337d5acac2 Close php 2007-12-20 22:47:21 +00:00
dave
89675213bf - Make address2 never required, and setup the system so we can easily add more
fields that shoudl never be required.  I do it this way so I don't have to duplicate
  the field select array in user.inc.php for the requried fields too.
- Swap the City and Address2 locations so that Address1 and Address2 are on top
  of each other, instead of beside each other.
2007-12-12 22:50:54 +00:00
dave
9fffa6755d - Call them 'fair's not 'region's.. to assist linking fairs together.
- This patch references some config variables that don't exist yet, that's ok,
  we dont' want anyone turning these on yet.
2007-12-12 04:15:17 +00:00
dave
1dc1b47d05 - Fix multirole creation. If a user tries to create an account, and they
already exist, they will be guided through the process of adding a role to
  their existing account.
- Do a database update, and merge anyone who has managed to create 2 accounts
  into a single account.
- Still testing this, but it seems to be working
2007-12-12 03:01:44 +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
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
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
1a246cba5d - Fixup the location: redirections in user_auth_required() 2007-11-19 07:01:51 +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
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
93c05cbe2f - New user and volunteer signup system 2007-11-16 06:30:42 +00:00