Added pass-through support for apps.php RPC

(DBOINCP-184)
This commit is contained in:
Tristan Olive 2015-06-25 23:57:50 -04:00
parent 67286068ce
commit 0cf74df8d6
1 changed files with 17 additions and 0 deletions

View File

@ -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