added MAC OS detection

This commit is contained in:
slawkens 2017-08-23 08:56:08 +02:00
parent ec6584555f
commit 55e8507cac

View File

@ -31,7 +31,7 @@ define('MYAAC_VERSION', '0.2.4');
define('DATABASE_VERSION', 4); define('DATABASE_VERSION', 4);
define('TABLE_PREFIX', 'myaac_'); define('TABLE_PREFIX', 'myaac_');
define('START_TIME', microtime(true)); define('START_TIME', microtime(true));
define('MYAAC_OS', (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') ? 'WINDOWS' : 'LINUX'); define('MYAAC_OS', (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') ? 'WINDOWS' : (strtoupper(PHP_OS) == 'DARWIN' ? 'MAC' : 'LINUX'));
// account flags // account flags
define('FLAG_ADMIN', 1); define('FLAG_ADMIN', 1);