mirror of https://github.com/BOINC/boinc.git
HTML: Make various variables accessible to Drupal by declaring them as global
This commit is contained in:
parent
1896036dda
commit
8be519a616
|
@ -2,6 +2,7 @@
|
|||
// $Id$
|
||||
// list of countries taken from http://www.cia.gov
|
||||
|
||||
global $countries;
|
||||
$countries = array(
|
||||
"None",
|
||||
"International",
|
||||
|
|
|
@ -41,6 +41,11 @@
|
|||
|
||||
include_once("../inc/prefs_util.inc");
|
||||
|
||||
global $cpu_prefs;
|
||||
global $disk_prefs;
|
||||
global $mem_prefs;
|
||||
global $net_prefs;
|
||||
|
||||
$cpu_prefs = array(
|
||||
tra("Usage limits"),
|
||||
new PREF_NUM(
|
||||
|
|
|
@ -45,8 +45,10 @@
|
|||
include_once("../inc/prefs_util.inc");
|
||||
include_once("../project/project_specific_prefs.inc");
|
||||
|
||||
global $app_types;
|
||||
$app_types = get_app_types();
|
||||
|
||||
global $project_pref_descs;
|
||||
$project_pref_descs = array(
|
||||
new PREF_NUM(
|
||||
tra("Resource share"),
|
||||
|
|
|
@ -22,6 +22,8 @@ require_once("../inc/common_defs.inc");
|
|||
|
||||
// used by app_version_string(), see below
|
||||
//
|
||||
global $apps;
|
||||
global $app_versions;
|
||||
$apps = array();
|
||||
$app_versions = array();
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
|
||||
// the following sites generate stats for a given CPID
|
||||
//
|
||||
global $cpid_stats_sites;
|
||||
$cpid_stats_sites = array(
|
||||
array("Free-DC",
|
||||
"http://stats.free-dc.org/stats.php?page=userbycpid&cpid=%s"
|
||||
|
@ -168,6 +169,7 @@ $team_name_sites = array(
|
|||
),
|
||||
);
|
||||
|
||||
global $host_sites;
|
||||
$host_sites = array(
|
||||
array(
|
||||
"http://boincstats.com/en/stats/-1/host/detail/",
|
||||
|
|
Loading…
Reference in New Issue