Subversion Repositories oidplus

Rev

Rev 463 | Rev 468 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 463 Rev 467
Line 46... Line 46...
46
        if (!function_exists('mb_substr')) {
46
        if (!function_exists('mb_substr')) {
47
                // Required for includes/classes/OIDplusSessionHandler.class.php
47
                // Required for includes/classes/OIDplusSessionHandler.class.php
48
                //              includes/oid_utils.inc.php
48
                //              includes/oid_utils.inc.php
49
                //              3p/minify/path-converter/Converter.php
49
                //              3p/minify/path-converter/Converter.php
50
                //              3p/0xbb/Sha3.class.php
50
                //              3p/0xbb/Sha3.class.php
-
 
51
                // Note that mbstring_supplement.inc.php will implement the MBString functions if iconv is present.
-
 
52
                // This is the reason why we use function_exists('mb_substr') instead of extension_loaded('mbstring')
51
                if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
53
                if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
52
                        $install_hint = _L('On Windows, install it by enabling the line %1 in your PHP.ini',
54
                        $install_hint1 = _L('On Windows, install it by enabling the line %1 in your PHP.ini',
53
                                'extension=php_mbstring.dll');
55
                                'extension=php_mbstring.dll');
-
 
56
                        $install_hint2 = _L('On Windows, it should be installed by default');
54
                } else {
57
                } else {
55
                        $install_hint = _L('On Linux, install it by running e.g. %1, and then restart your webserver service, e.g. by running %2',
58
                        $install_hint1 = _L('On Linux, install it by running e.g. %1, and then restart your webserver service, e.g. by running %2',
56
                                '<code>sudo apt-get update && sudo apt-get install php-mbstring</code>',
59
                                '<code>sudo apt-get update && sudo apt-get install php-mbstring</code>',
57
                                '<code>sudo service apache2 restart</code>');
60
                                '<code>sudo service apache2 restart</code>');
-
 
61
                        $install_hint2 = _L('On Linux, it should be installed by default');
58
                }
62
                }
59
                $missing_dependencies[] = 'MBString ('.$install_hint.')';
63
                $missing_dependencies[] = 'MBString ('.$install_hint1.')'.
-
 
64
                                          '<br>'._L('or alternatively').'<br>' .
-
 
65
                                          'iconv ('.$install_hint2.')';
60
        }
66
        }
61
 
67
 
62
        if (!function_exists('simplexml_load_file')) {
68
        if (!function_exists('simplexml_load_file')) {
63
                // Required for includes/functions.inc.php (Translation)
69
                // Required for includes/functions.inc.php (Translation)
64
                //              includes/classes/OIDplusPluginManifest.class.php (Plugins)
70
                //              includes/classes/OIDplusPluginManifest.class.php (Plugins)