diff options
| author | Michael Larabel <michael@phx-laptop.(none)> | 2008-04-25 07:42:36 -0400 |
|---|---|---|
| committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-04-25 07:42:36 -0400 |
| commit | a739a4f9cefe13b737991c4664ecea39a203cef9 (patch) | |
| tree | ccd13b66ae24a4f17c5dd28d3b6cae59b47fb978 | |
| parent | 5f5eadce84e3c7fae63fbb6adbcbeb1f797b650e (diff) | |
| download | phoronix-test-suite-upstream-a739a4f9cefe13b737991c4664ecea39a203cef9.tar.gz phoronix-test-suite-upstream-a739a4f9cefe13b737991c4664ecea39a203cef9.tar.xz phoronix-test-suite-upstream-a739a4f9cefe13b737991c4664ecea39a203cef9.zip | |
More changes
| -rw-r--r-- | pts-core/functions/pts-functions-install.php | 4 | ||||
| -rw-r--r-- | pts-core/functions/pts-functions-merge.php | 2 | ||||
| -rw-r--r-- | pts-core/pts-run-benchmark.php | 4 | ||||
| -rw-r--r-- | pts-core/pts-run-cmd.php | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/pts-core/functions/pts-functions-install.php b/pts-core/functions/pts-functions-install.php index 709996e..1677d2b 100644 --- a/pts-core/functions/pts-functions-install.php +++ b/pts-core/functions/pts-functions-install.php @@ -31,9 +31,9 @@ function pts_recurse_install_benchmark($TO_INSTALL, &$INSTALL_OBJ) pts_recurse_install_benchmark($benchmark, $INSTALL_OBJ); } } - else if(trim(file_get_contents("http://www.phoronix-test-suite.com/global/profile-check.php?id=$TO_INSTALL")) == "REMOTE_FILE") + else if(trim(@file_get_contents("http://www.phoronix-test-suite.com/global/profile-check.php?id=$TO_INSTALL")) == "REMOTE_FILE") { - $xml_parser = new tandem_XmlReader(file_get_contents("http://www.phoronix-test-suite.com/global/pts-results-viewer.php?id=$TO_INSTALL")); + $xml_parser = new tandem_XmlReader(@file_get_contents("http://www.phoronix-test-suite.com/global/pts-results-viewer.php?id=$TO_INSTALL")); $suite_benchmarks = $xml_parser->getXMLArrayValues("PhoronixTestSuite/Benchmark/TestName"); foreach($suite_benchmarks as $benchmark) diff --git a/pts-core/functions/pts-functions-merge.php b/pts-core/functions/pts-functions-merge.php index aa9c546..b6576d9 100644 --- a/pts-core/functions/pts-functions-merge.php +++ b/pts-core/functions/pts-functions-merge.php @@ -8,7 +8,7 @@ function pts_find_file($file) $USE_FILE = $file; else if(is_file(SAVE_RESULTS_DIR . $file . "/composite.xml")) $USE_FILE = SAVE_RESULTS_DIR . $file . "/composite.xml"; - else if(trim(file_get_contents("http://www.phoronix-test-suite.com/global/profile-check.php?id=$file")) == "REMOTE_FILE") + else if(trim(@file_get_contents("http://www.phoronix-test-suite.com/global/profile-check.php?id=$file")) == "REMOTE_FILE") $USE_FILE = "http://www.phoronix-test-suite.com/global/pts-results-viewer.php?id=$file"; else { diff --git a/pts-core/pts-run-benchmark.php b/pts-core/pts-run-benchmark.php index 006fb08..bd463da 100644 --- a/pts-core/pts-run-benchmark.php +++ b/pts-core/pts-run-benchmark.php @@ -62,7 +62,7 @@ if(!$TO_RUN_TYPE) $RESULTS = new tandem_XmlWriter(); } - else if(trim(file_get_contents("http://www.phoronix-test-suite.com/global/profile-check.php?id=$TO_RUN")) == "REMOTE_FILE") + else if(trim(@file_get_contents("http://www.phoronix-test-suite.com/global/profile-check.php?id=$TO_RUN")) == "REMOTE_FILE") { $SAVE_RESULTS = true; $TO_RUN_TYPE = "GLOBAL_COMPARISON"; @@ -70,7 +70,7 @@ if(!$TO_RUN_TYPE) $RES_NULL = null; define("GLOBAL_COMPARISON", 1); - pts_save_result($PROPOSED_FILE_NAME . "/composite.xml", file_get_contents("http://www.phoronix-test-suite.com/global/pts-results-viewer.php?id=$TO_RUN")); + pts_save_result($PROPOSED_FILE_NAME . "/composite.xml", @file_get_contents("http://www.phoronix-test-suite.com/global/pts-results-viewer.php?id=$TO_RUN")); if(!defined("PTS_BATCH_MODE") || pts_read_user_config("PhoronixTestSuite/Options/BatchMode/PromptForTestIdentifier", "TRUE") == "TRUE") do diff --git a/pts-core/pts-run-cmd.php b/pts-core/pts-run-cmd.php index c22e798..d416eed 100644 --- a/pts-core/pts-run-cmd.php +++ b/pts-core/pts-run-cmd.php @@ -75,7 +75,7 @@ switch($COMMAND) case "SHOW_RESULT": if(is_file(SAVE_RESULTS_DIR . $ARG_1 . "/composite.xml")) $URL = SAVE_RESULTS_DIR . $ARG_1 . "/composite.xml"; - //else if(trim(file_get_contents("http://www.phoronix-test-suite.com/global/profile-check.php?id=" . $ARG_1)) == "REMOTE_FILE") + //else if(trim(@file_get_contents("http://www.phoronix-test-suite.com/global/profile-check.php?id=" . $ARG_1)) == "REMOTE_FILE") // $URL = "http://global.phoronix-test-suite.com/index.php?k=profile&u=" . trim($ARG_1); else $URL = false; |
