summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-07-04 11:24:09 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-03 11:49:18 -0400
commit31aeed35360ddd7f44344b459acde679e194ff7b (patch)
tree7d45d78a6e27c7b1ed0d305928255ab47d8b3523 /pts-core/functions/pts.php
parent609209877781ba5e2fd4fcc3d6ce99c51426f7be (diff)
downloadphoronix-test-suite-upstream-31aeed35360ddd7f44344b459acde679e194ff7b.tar.gz
phoronix-test-suite-upstream-31aeed35360ddd7f44344b459acde679e194ff7b.tar.xz
phoronix-test-suite-upstream-31aeed35360ddd7f44344b459acde679e194ff7b.zip
More OS detection work
Diffstat (limited to 'pts-core/functions/pts.php')
-rw-r--r--pts-core/functions/pts.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/pts-core/functions/pts.php b/pts-core/functions/pts.php
index 7720f8e..96faed1 100644
--- a/pts-core/functions/pts.php
+++ b/pts-core/functions/pts.php
@@ -35,14 +35,19 @@ function pts_init()
if(strpos($uname_o, "linux") !== FALSE)
{
define("OPERATING_SYSTEM", "Linux");
- define("IS_LINUX", "1");
+ define("IS_LINUX", true);
}
else
{
define("OPERATING_SYSTEM", "Unknown");
- define("IS_UNKNOWN", "1");
+ define("IS_UNKNOWN", true);
}
+ // Set the OSes that aren't the OS being used...
+ if(!defined("IS_LINUX"))
+ define("IS_LINUX", false);
+ if(!defined("IS_UNKNOWN"))
+ define("IS_UNKNOWN", false);
}
?>