diff --git a/drupal/sites/default/boinc/modules/boincwork/boincwork.module b/drupal/sites/default/boinc/modules/boincwork/boincwork.module index 7d03822144..2d03d5d9b5 100644 --- a/drupal/sites/default/boinc/modules/boincwork/boincwork.module +++ b/drupal/sites/default/boinc/modules/boincwork/boincwork.module @@ -132,6 +132,12 @@ function boincwork_menu() { 'access arguments' => array('access content'), 'type' => MENU_CALLBACK ); + $items['get_project_config.php'] = array( + 'title' => 'Project config', + 'page callback' => 'boincwork_get_project_config', + 'access arguments' => array('access content'), + 'type' => MENU_CALLBACK + ); return $items; } @@ -1025,6 +1031,14 @@ function boincwork_server_status() { include_boinc('user/server_status.php'); } +/** + * Page callback for the project config RPC (get_project_config.php). + * Get the project configuration XML; used by client software + */ +function boincwork_get_project_config() { + include_boinc('user/get_project_config.php'); +} + /** * Generic page callback