added windows check

This commit is contained in:
daeks
2015-03-21 00:38:10 +01:00
parent 337de8aed2
commit cf45e7cc3e

View File

@@ -282,6 +282,14 @@
public static function isAbsPath( $path ) {
return ($path[0] === '/' || $path[1] === ':')?true:false;
}
//////////////////////////////////////////////////////////////////
// Check If WIN based system
//////////////////////////////////////////////////////////////////
public static function isWINOS( ) {
return (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN');
}
}