diff --git a/api.php b/api.php index b4c1fd9..1ead7df 100644 --- a/api.php +++ b/api.php @@ -37,6 +37,20 @@ $request=explode("/",$_GET['request']); $ret=array(); switch($request[0]) { + /* APIDOC: config + description(retreives the entire configuration variables, minus ones that cant be included (like passwords) + return(config array) + */ + case 'config': + $exclude=array("judge_registration_singlepassword","volunteer_registration_singlepassword","participant_registration_singlepassword","fairmanageremail"); + $configapi=$config; + foreach($exclude AS $e) { + unset($configapi[$e]); + } + $ret['status']="ok"; + $ret['config']=$configapi; + break; + case 'locations': switch($request[1]){ case 'list':