From 8be519a61635f96c563f2a1dd711e4363d6e46bd Mon Sep 17 00:00:00 2001 From: Oliver Bock Date: Tue, 14 Jul 2015 14:47:31 +0200 Subject: [PATCH] HTML: Make various variables accessible to Drupal by declaring them as global --- html/inc/countries.inc | 1 + html/inc/prefs.inc | 5 +++++ html/inc/prefs_project.inc | 2 ++ html/inc/result.inc | 2 ++ html/inc/stats_sites.inc | 2 ++ 5 files changed, 12 insertions(+) diff --git a/html/inc/countries.inc b/html/inc/countries.inc index 1879199983..fef79a60cf 100644 --- a/html/inc/countries.inc +++ b/html/inc/countries.inc @@ -2,6 +2,7 @@ // $Id$ // list of countries taken from http://www.cia.gov +global $countries; $countries = array( "None", "International", diff --git a/html/inc/prefs.inc b/html/inc/prefs.inc index 8240e85be9..51e633511b 100644 --- a/html/inc/prefs.inc +++ b/html/inc/prefs.inc @@ -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( diff --git a/html/inc/prefs_project.inc b/html/inc/prefs_project.inc index 0a264d053e..61644673c3 100644 --- a/html/inc/prefs_project.inc +++ b/html/inc/prefs_project.inc @@ -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"), diff --git a/html/inc/result.inc b/html/inc/result.inc index c3562d9cb7..043af47e1e 100644 --- a/html/inc/result.inc +++ b/html/inc/result.inc @@ -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(); diff --git a/html/inc/stats_sites.inc b/html/inc/stats_sites.inc index 80ac93f456..6fb9653297 100644 --- a/html/inc/stats_sites.inc +++ b/html/inc/stats_sites.inc @@ -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/",