initial import

This commit is contained in:
Alchemy
2011-02-16 16:09:48 +01:00
parent 399a584b6f
commit 339d23c06d
5539 changed files with 2028637 additions and 1 deletions

View File

@@ -0,0 +1,31 @@
<?php
class server
{
private $_server_software;
function __construct()
{
$this->_server_software = isset($_SERVER['SERVER_SOFTWARE']) ? strtolower($_SERVER['SERVER_SOFTWARE']) : "";
}
public function is_nginx()
{
if(strpos($this->_server_software, 'nginx') !== false)
return true;
return false;
}
public function is_lighttpd()
{
if(strpos($this->_server_software, 'lighttpd') !== false)
return true;
return false;
}
public function is_apache()
{
if(strpos($this->_server_software, 'apache') !== false)
return true;
return false;
}
}