From 0cf74df8d6551e630cae2ca4d5492efe51f2783a Mon Sep 17 00:00:00 2001 From: Tristan Olive Date: Thu, 25 Jun 2015 23:57:50 -0400 Subject: [PATCH] Added pass-through support for apps.php RPC (DBOINCP-184) --- .../boinc/modules/boinccore/boinccore.module | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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