summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_config.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-07-09 21:40:55 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-03 11:49:19 -0400
commit2e3a2856b708593bc510d1205677a0786be1b6f9 (patch)
treeeff3f23a8ea0017627e9ded024dc811678445b7a /pts-core/functions/pts-functions_config.php
parent38d8cd096963cfce3b669f728240adc783f7738a (diff)
downloadphoronix-test-suite-upstream-2e3a2856b708593bc510d1205677a0786be1b6f9.tar.gz
phoronix-test-suite-upstream-2e3a2856b708593bc510d1205677a0786be1b6f9.tar.xz
phoronix-test-suite-upstream-2e3a2856b708593bc510d1205677a0786be1b6f9.zip
pts-core: move general initialization code to pts-init.php and other
code moving around
Diffstat (limited to 'pts-core/functions/pts-functions_config.php')
-rw-r--r--pts-core/functions/pts-functions_config.php24
1 files changed, 0 insertions, 24 deletions
diff --git a/pts-core/functions/pts-functions_config.php b/pts-core/functions/pts-functions_config.php
index 62de9f6..ae455d7 100644
--- a/pts-core/functions/pts-functions_config.php
+++ b/pts-core/functions/pts-functions_config.php
@@ -31,30 +31,6 @@ function pts_config_init()
pts_user_config_init();
pts_graph_config_init();
}
-function pts_extended_init()
-{
- if(!is_dir(PTS_DOWNLOAD_CACHE_DIR))
- {
- mkdir(PTS_DOWNLOAD_CACHE_DIR);
- file_put_contents(PTS_DOWNLOAD_CACHE_DIR . "make-cache-howto", "A download cache is used for conserving time and bandwidth by eliminating the need for the Phoronix Test Suite to download files that have already been downloaded once. A download cache can also be transferred between PCs running the Phoronix Test Suite. For more information on this feature, view the included documentation. To generate a download cache, run:\n\nphoronix-test-suite make-download-cache\n");
- }
-
- $opengl_driver = opengl_version();
-
- if(strpos($opengl_driver, "NVIDIA") !== FALSE)
- define("IS_NVIDIA_GRAPHICS", true);
- else if(strpos($opengl_driver, "fglrx") !== FALSE)
- define("IS_ATI_GRAPHICS", true);
- else if(strpos($opengl_driver, "Mesa") !== FALSE)
- define("IS_MESA_GRAPHICS", true);
-
- if(!defined("IS_NVIDIA_GRAPHICS"))
- define("IS_NVIDIA_GRAPHICS", false);
- if(!defined("IS_ATI_GRAPHICS"))
- define("IS_ATI_GRAPHICS", false);
- if(!defined("IS_MESA_GRAPHICS"))
- define("IS_MESA_GRAPHICS", false);
-}
function pts_user_config_init($UserName = NULL, $UploadKey = NULL, $BatchOptions = NULL)
{
if(is_file(PTS_USER_DIR . "user-config.xml"))