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