@@ 1870-1873 (lines=4) @@ | ||
1867 | $http_modules = array(); |
|
1868 | $httpd = null; |
|
1869 | if ( function_exists( 'apache_get_modules' ) ) { |
|
1870 | if ( isset( $_POST['apache_modules'] ) && $_POST['apache_modules'] == 1 ) |
|
1871 | $http_modules = apache_get_modules(); |
|
1872 | else |
|
1873 | $http_modules = null; |
|
1874 | if ( function_exists( 'apache_get_version' ) ) { |
|
1875 | $version_pieces = explode( ' ', apache_get_version() ); |
|
1876 | $httpd = array_shift( $version_pieces ); |
|
@@ 1882-1885 (lines=4) @@ | ||
1879 | if ( !$httpd && 0 === stripos( $_SERVER['SERVER_SOFTWARE'], 'Apache' ) ) { |
|
1880 | $software_pieces = explode( ' ', $_SERVER['SERVER_SOFTWARE'] ); |
|
1881 | $httpd = array_shift( $software_pieces ); |
|
1882 | if ( isset( $_POST['apache_modules'] ) && $_POST['apache_modules'] == 1 ) |
|
1883 | $http_modules = 'unknown'; |
|
1884 | else |
|
1885 | $http_modules = null; |
|
1886 | } |
|
1887 | if ( !$httpd && defined( 'IIS_SCRIPT' ) && IIS_SCRIPT ) { |
|
1888 | $httpd = 'IIS'; |