HTML: Make various variables accessible to Drupal by declaring them as global

This commit is contained in:
Oliver Bock 2015-07-14 14:47:31 +02:00
parent 1896036dda
commit 8be519a616
5 changed files with 12 additions and 0 deletions

View File

@ -2,6 +2,7 @@
// $Id$
// list of countries taken from http://www.cia.gov
global $countries;
$countries = array(
"None",
"International",

View File

@ -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(

View File

@ -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"),

View File

@ -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();

View File

@ -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/",