mirror of https://github.com/BOINC/boinc.git
Web: read-only RPCs should use the replica DB
This commit is contained in:
parent
4b0dafc425
commit
dff8fcffc6
|
@ -19,6 +19,7 @@
|
|||
require_once("../inc/boinc_db.inc");
|
||||
require_once("../inc/xml.inc");
|
||||
|
||||
BoincDb::get(true);
|
||||
xml_header();
|
||||
|
||||
$retval = db_init_xml();
|
||||
|
|
|
@ -20,6 +20,7 @@ require_once("../inc/util.inc");
|
|||
|
||||
check_get_args(array("xml"));
|
||||
|
||||
BoincDb::get(true);
|
||||
$platforms = BoincPlatform::enum("deprecated=0");
|
||||
|
||||
$xml = get_str('xml', true);
|
||||
|
|
|
@ -20,6 +20,7 @@ require_once("../inc/forum_db.inc");
|
|||
require_once("../inc/util.inc");
|
||||
require_once("../inc/xml.inc");
|
||||
|
||||
BoincDb::get(true);
|
||||
xml_header();
|
||||
|
||||
if (DISABLE_FORUMS) {
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
require_once("../inc/util.inc");
|
||||
require_once("../inc/xml.inc");
|
||||
|
||||
BoincDb::get(true);
|
||||
xml_header();
|
||||
|
||||
// This all needs to work even when DB is down.
|
||||
|
|
|
@ -56,6 +56,7 @@ function result_xml($r) {
|
|||
";
|
||||
}
|
||||
|
||||
BoincDb::get(true);
|
||||
xml_header();
|
||||
echo "<results>\n";
|
||||
foreach ($ids as $id) {
|
||||
|
|
|
@ -34,6 +34,7 @@ if (DISABLE_TEAMS) {
|
|||
}
|
||||
}
|
||||
|
||||
BoincDb::get(true);
|
||||
if ($xml) {
|
||||
$creditonly = get_int('creditonly', true);
|
||||
xml_header();
|
||||
|
@ -52,7 +53,7 @@ if ($xml) {
|
|||
//$users = BoincUser::enum("teamid=$team->id");
|
||||
foreach($users as $user) {
|
||||
show_team_member($user, $show_email, $creditonly);
|
||||
}
|
||||
}
|
||||
echo "</users>\n";
|
||||
exit();
|
||||
}
|
||||
|
@ -81,7 +82,7 @@ foreach($users as $user) {
|
|||
$e = $user->send_email?"$user->email_addr":"";
|
||||
table_row(user_links($user, BADGE_HEIGHT_MEDIUM), $e, format_credit($user->total_credit), format_credit($user->expavg_credit), $user->country);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!$plain) {
|
||||
end_table();
|
||||
echo "<p><a href=\"team_email_list.php?teamid=".$teamid."&plain=1\">".tra("Show as plain text")."</a></p>";
|
||||
|
|
|
@ -28,6 +28,8 @@ $format = get_str("format", true);
|
|||
$team_id = get_int("team_id", true);
|
||||
$team_ids = get_str("team_ids", true);
|
||||
|
||||
BoincDb::get(true);
|
||||
|
||||
if ($team_id || $team_ids || ($format == 'xml')) {
|
||||
require_once ('../inc/xml.inc');
|
||||
xml_header();
|
||||
|
|
Loading…
Reference in New Issue