mirror of https://github.com/BOINC/boinc.git
Added pass-through support for apps.php RPC
(DBOINCP-184)
This commit is contained in:
parent
67286068ce
commit
0cf74df8d6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue