- web: use read-only replica when possible

svn path=/trunk/boinc/; revision=18146
This commit is contained in:
David Anderson 2009-05-18 16:58:11 +00:00
parent 315b25f526
commit de0bf5ad83
5 changed files with 17 additions and 0 deletions

View File

@ -4625,3 +4625,12 @@ David 17 May 2009
db_update.php
py/Boinc
setup_project.py
David 17 May 2009
- web: use read-only replica when possible
html/user/
pending.php
results.php
show_host_detail.php
workunit.php

View File

@ -22,6 +22,8 @@ require_once("../inc/util.inc");
require_once("../inc/boinc_db.inc");
require_once("../inc/xml.inc");
BoincDb::get(true);
$config = get_config();
if (!parse_bool($config, "show_results")) {
error_page("This feature is turned off temporarily");

View File

@ -27,6 +27,8 @@ if (!parse_bool($config, "show_results")) {
error_page(tra("This feature is turned off temporarily"));
}
BoincDb::get(true);
$results_per_page = 20;
$hostid = get_int("hostid", true);

View File

@ -21,6 +21,8 @@ require_once("../inc/util.inc");
require_once("../inc/user.inc");
require_once("../inc/host.inc");
BoincDb::get(true);
$hostid = get_int("hostid");
$ipprivate = get_str("ipprivate", true);
$host = BoincHost::lookup_id($hostid);

View File

@ -22,6 +22,8 @@ require_once("../inc/util.inc");
require_once("../inc/boinc_db.inc");
require_once("../inc/result.inc");
BoincDb::get(true);
$wuid = get_int("wuid");
$wu = BoincWorkunit::lookup_id($wuid);
if (!$wu) {