diff --git a/drupal/sites/default/boinc/modules/boinccore/boinccore.module b/drupal/sites/default/boinc/modules/boinccore/boinccore.module index 79f100bcc0..ce5790a142 100644 --- a/drupal/sites/default/boinc/modules/boinccore/boinccore.module +++ b/drupal/sites/default/boinc/modules/boinccore/boinccore.module @@ -106,6 +106,13 @@ function boinccore_menu() { 'access callback' => TRUE, 'type' => MENU_CALLBACK ); + $items['apps.php'] = array( + 'title' => 'Apps RPC', + 'description' => 'RPC for getting the applications in the system.', + 'page callback' => 'boinccore_apps', + 'access callback' => TRUE, + 'type' => MENU_CALLBACK + ); return $items; } @@ -609,6 +616,16 @@ function boinccore_pending_credit() { include_boinc('user/pending.php'); } +/** + * Page callback for the applications RPC (apps.php). + * Get information on applications in the system + */ +function boinccore_apps() { + // Remove q from the GET request or BOINC will panic + unset($_GET['q']); + include_boinc('user/apps.php'); +} + /** * Controller for handling direct linking to paginated content. * Because pagination settings are user configurable, it is impossible to know