mirror of
https://github.com/Codiad/Codiad.git
synced 2026-03-14 04:56:56 +01:00
added windows check
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user