james
96f36d4681
Implement project\/view
2011-02-18 16:56:35 +00:00
jacob
340a45127b
Added code preventing users from creating more than one registration/project
2011-02-18 16:46:44 +00:00
james
3c0151263f
Convert project/edit to pass a 'project' object as JSON instead of individual fields
2011-02-18 16:37:11 +00:00
jacob
ef4a14a386
modified the project/add API to not expect any data, but simply create the project.
2011-02-18 16:14:23 +00:00
jacob
3745d8cfd9
Added api functionality for creating and saving projects
2011-02-17 22:04:47 +00:00
james
e0f0a5dd90
Re-do user_invite to allow users to be invited by admin/config's - its not complete, but its working, it still needs to send emails though to tell the user of their new role, but i need to think on how to do that because if its a new account then it could be just a username/password without an email, but if its invited then the email __IS__ the username, but we shouldnt rely on the email being valid until its been confirmed via the email confirmation.. ugh?!?!
2010-12-21 23:16:20 +00:00
james
459eb17e98
Add a hidden config option (put it in data/config.inc.php) to not require API access over SSL
2010-12-08 21:18:07 +00:00
jacob
77a3c77e69
oops - forgot to remove debugging remarks
2010-12-02 17:54:01 +00:00
jacob
dfd468505c
Modified the api loging for better readability and to include the output
2010-12-02 17:50:16 +00:00
jacob
128fc6a3b5
Added logging to the API, and separated the log file creation into a common function
2010-12-02 17:25:23 +00:00
jacob
6b94ef5c76
Added abillity to uninvite a user from a particular role where allowed, and api function (/user/uninvite)
...
Added function user_list_modifiable, which returns a list of user info that the current user is allowed to modify (users.inc.php)
Added api for calling user_list_modifiable (/user/list)
2010-12-01 19:40:45 +00:00
jacob
39f53e4168
Added teacher abillity to add/remove students
...
Updated the user_save to output more meaningful errors
Updates on 'questions' and 'pagetext' tables to change the 0 conference ID to -1, matching the -1 year
2010-11-29 22:54:12 +00:00
james
57561c829d
Add copyoriginal and copyparent to API
2010-11-25 20:47:32 +00:00
james
46b39f81e0
Add copyoriginal, copyparent, and notes(currently unused) to conferences table
...
Add code in create conference and copy conference to set copyoriginal and copyparent
Add missing json_decode to API (we expect ALL arrays being POSTED to be json encoded)
2010-11-25 20:45:44 +00:00
jacob
e9f46edb0e
Added code for inviting users, access to it through the api
2010-11-23 20:58:38 +00:00
jacob
8b15620f69
Added the api/registration/dictionary functionality
2010-11-18 17:00:26 +00:00
jacob
31baeaa715
SQL error fix
2010-11-18 15:59:22 +00:00
jacob
1b098f85b3
The API depends on a return value from the user_save function, which was not being generated.
...
Updated user_save to return 'ok' on success, and an error message otherwise.
Updated api.php to make use of user_save's retun value.
2010-11-17 21:02:32 +00:00
james
61fba8a93c
json_decode always returns an object unless you tell it to give you an associative array (2nd parameter)
...
give multi-select-lists as full object's where appropriate (might be more too? special awards?)
2010-11-16 21:19:16 +00:00
james
7113a3df95
Oops, i never committed this before - add configerence id as an optional parameter to /auth/login
2010-11-16 04:29:16 +00:00
jacob
4f35702bbf
Added API function for modifying account information
2010-10-28 21:22:12 +00:00
jacob
d0d3c7b7c4
Separated the functionality of school selection from the pages, implemented it in the API
2010-10-27 16:40:17 +00:00
james
0bcd811101
Fix passing in role list by ids
2010-10-25 23:58:48 +00:00
james
3971df267f
Add registration field roles to testapi.php page
...
Fix char(2) field detection
2010-10-25 23:55:38 +00:00
james
19e146547f
Fix api registration fields when roles ar epassed in
...
roles can be passed in as array of ids or array of types
2010-10-25 23:12:35 +00:00
james
a5887bdf96
Oops fix the docs
2010-10-22 15:12:45 +00:00
james
a035a6f8e3
Add registration/fields API
...
Fix $roles array use colliding with global $roles array ($roles should never be used anywhere! its a master list of all of the roles set in the bootstrap!)
2010-10-22 15:06:49 +00:00
jacob
b9bcb127a6
Updated these tables to include the conference id:
...
award_awards
award_prizes
award_types
award_awards_projectcategories
award_awards_projectdivisions
winners
students
projects
registrations
Also modified all code that uses those tables to work with the conference id
instead of the year, with the exception of these files:
communication.inc.php
reports_students.inc.php
rerollprizes.php
remote.php
The "rerollprizes.php" probably doesn't matter, having been a one-time usage
file anyway. The others will need to be modified in the future to correctly
use the conference id instead of the year.
2010-10-20 21:58:26 +00:00
james
f225787e39
Properly update the session roles from the API side
...
Allow (u) to be empty if we dont have it, we can get it from the session users_id
2010-10-14 20:38:48 +00:00
jacob
607834bc0e
updating _SESSION when user roles are modified
2010-10-08 20:28:56 +00:00
james
fce116316e
Implement the role/* functions
2010-10-06 21:01:17 +00:00
james
e590c94690
Fix api for categories (projectcategories_load wouldnt have ever worked!)
2010-10-05 20:24:43 +00:00
james
4f42407073
migrate categories/divisions/subdivisions from FAIRYEAR to conferences_id
...
rename API call /config to /config/variables
update API with /config members for divisions/subdivisions/categories
2010-10-05 19:43:30 +00:00
james
898bdaacfc
Oops put account/edit APIDOCS back in
2010-10-01 21:06:57 +00:00
james
f0b362eff7
Add account/view api
2010-10-01 21:04:05 +00:00
james
a92544bbea
Implement user/edit
...
Remove saving some stuff from user_save
2010-10-01 19:42:52 +00:00
james
895bcc36e2
Add user/view API
...
Change user_load() to explicitly load specific values instead of all values, as there's now some fields that need to be deleted but we cant delete them yet...
2010-10-01 19:28:26 +00:00
james
e0eef7effa
Add /api/config
2010-10-01 17:13:48 +00:00
jacob
88055eb6a6
oops - committed with some code remarked
2010-09-30 14:41:08 +00:00
jacob
637a35ca60
Separated (un)registering teams for events into schedule.inc.php and added it to the api
2010-09-29 21:23:54 +00:00
james
8b2de95005
Be a bit smarter with "notimplemented", add API impelmentation status, and basic details to the apidocs page
2010-09-28 20:37:44 +00:00
james
b5ed7c174f
use 'events' and 'locations' instead of 'list' in the return object
2010-09-28 20:24:32 +00:00
jacob
0a02525d14
Added some API functionality used in schoolschedule.php
2010-09-28 20:09:31 +00:00
james
eb3c8f0d77
Add not implemented API comments of what still needs to get done
2010-09-28 19:48:03 +00:00
james
0f9588cdf4
Add APIDOC for the rest of the existing api
2010-09-27 20:45:57 +00:00
james
08340544d9
Add api documentation
2010-09-27 20:38:49 +00:00
james
55bdb2aec5
Add account/create API
...
Start adding some basic APIDOC comments to be parsed out into documentation later
2010-09-27 19:52:43 +00:00
james
3913bb397d
List all conferences with status in the api call, instead of just the running ones
2010-09-07 19:59:37 +00:00
james
146f557759
Add science olympics teams api to testapi page
2010-09-02 19:01:49 +00:00
james
959843d4c4
Add a simple API test page for checking some api calls
...
Update /api/dates to use current conference id if one isnt specificed
2010-09-02 18:53:48 +00:00