mirror of https://github.com/BOINC/boinc.git
Added pass-through support for pending.php RPC
(DBOINCP-184)
This commit is contained in:
parent
62b8788695
commit
67286068ce
|
@ -99,6 +99,13 @@ function boinccore_menu() {
|
|||
'access callback' => TRUE,
|
||||
'type' => MENU_CALLBACK
|
||||
);
|
||||
$items['pending.php'] = array(
|
||||
'title' => 'Pending credit RPC',
|
||||
'description' => 'RPC for getting pending credit for a given account.',
|
||||
'page callback' => 'boinccore_pending_credit',
|
||||
'access callback' => TRUE,
|
||||
'type' => MENU_CALLBACK
|
||||
);
|
||||
|
||||
return $items;
|
||||
}
|
||||
|
@ -592,6 +599,16 @@ function boinccore_show_user() {
|
|||
print save_configuration($xml);
|
||||
}
|
||||
|
||||
/**
|
||||
* Page callback for the pending credit RPC (pending.php).
|
||||
* Get pending credit information for a given account
|
||||
*/
|
||||
function boinccore_pending_credit() {
|
||||
// Remove q from the GET request or BOINC will panic
|
||||
unset($_GET['q']);
|
||||
include_boinc('user/pending.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