Rev 635 | Rev 1050 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 635 | Rev 1000 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | 30 | ||
31 | const LOGPROVIDER = 'OIDplus'; // "Source name" (should be registered in the registry = mapped to a message file DLL) |
31 | const LOGPROVIDER = 'OIDplus'; // "Source name" (should be registered in the registry = mapped to a message file DLL) |
32 | 32 | ||
33 | public static function available(&$reason)/*: bool*/ { |
33 | public static function available(&$reason)/*: bool*/ { |
34 | if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') { |
34 | if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') { |
35 | $reason = _L('Functionality only available on Windows servers'); |
35 | $reason = _L('Functionality only available on Windows systems'); |
36 | return false; |
36 | return false; |
37 | } |
37 | } |
38 | 38 | ||
39 | if (!class_exists('COM')) { |
39 | if (!class_exists('COM')) { |
40 | $reason = _L('To use %1, please enable the lines "extension=%2" and "extension_dir=ext" in your PHP.ini file.','ViaThinkSoftSimpleEventLog','com_dotnet'); |
40 | $reason = _L('To use %1, please enable the lines "extension=%2" and "extension_dir=ext" in your PHP.ini file.','ViaThinkSoftSimpleEventLog','com_dotnet'); |