Commit 8be519a6 authored by Oliver Bock's avatar Oliver Bock

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

parent 1896036d
......@@ -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/",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment