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