Subversion Repositories oidplus

Rev

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

Rev 723 Rev 724
Line 65... Line 65...
65
 
65
 
66
        if (!function_exists('gmp_init')) {
66
        if (!function_exists('gmp_init')) {
67
                // GMP Required for includes/uuid_functions.inc.php
67
                // GMP Required for includes/uuid_functions.inc.php
68
                //                  includes/ipv6_functions.inc.php
68
                //                  includes/ipv6_functions.inc.php
69
                //                  plugins/viathinksoft/adminPages/400_oidinfo_export/oidinfo_api.inc.php (if GMP is not available, BC will be used)
69
                //                  plugins/viathinksoft/adminPages/400_oidinfo_export/oidinfo_api.inc.php (if GMP is not available, BC will be used)
70
                // Note that gmp_supplement.inc.php will implement the GMP functions if BCMath is present.
70
                // Note that vendor/danielmarschall/php_utils/gmp_supplement.inc.php will implement the GMP functions if BCMath is present.
71
                // This is the reason why we use function_exists('gmp_init') instead of extension_loaded('gmp')
71
                // This is the reason why we use function_exists('gmp_init') instead of extension_loaded('gmp')
72
                if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
72
                if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
73
                        $install_hint1 = _L('On Windows, install it by enabling the line %1 in your PHP.ini',
73
                        $install_hint1 = _L('On Windows, install it by enabling the line %1 in your PHP.ini',
74
                                'extension=php_gmp.dll');
74
                                'extension=php_gmp.dll');
75
                        $install_hint2 = _L('On Windows, it should be installed by default');
75
                        $install_hint2 = _L('On Windows, it should be installed by default');
Line 89... Line 89...
89
        if (!function_exists('mb_substr')) {
89
        if (!function_exists('mb_substr')) {
90
                // Required for includes/classes/OIDplusSessionHandler.class.php
90
                // Required for includes/classes/OIDplusSessionHandler.class.php
91
                //              includes/oid_utils.inc.php
91
                //              includes/oid_utils.inc.php
92
                //              vendor/matthiasmullie/path-converter/src/Converter.php
92
                //              vendor/matthiasmullie/path-converter/src/Converter.php
93
                //              vendor/n-other/php-sha3/src/Sha3.php
93
                //              vendor/n-other/php-sha3/src/Sha3.php
94
                // Note that mbstring_supplement.inc.php will implement the MBString functions if iconv is present.
94
                // Note that vendor/symfony/polyfill-mbstring/ will implement the MBString functions if iconv is present.
95
                // This is the reason why we use function_exists('mb_substr') instead of extension_loaded('mbstring')
95
                // This is the reason why we use function_exists('mb_substr') instead of extension_loaded('mbstring')
96
                if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
96
                if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
97
                        $install_hint1 = _L('On Windows, install it by enabling the line %1 in your PHP.ini',
97
                        $install_hint1 = _L('On Windows, install it by enabling the line %1 in your PHP.ini',
98
                                'extension=php_mbstring.dll');
98
                                'extension=php_mbstring.dll');
99
                        $install_hint2 = _L('On Windows, it should be installed by default');
99
                        $install_hint2 = _L('On Windows, it should be installed by default');
Line 111... Line 111...
111
        if (!function_exists('simplexml_load_file')) {
111
        if (!function_exists('simplexml_load_file')) {
112
                // Required for includes/classes/OIDplusPluginManifest.class.php (Plugins)
112
                // Required for includes/classes/OIDplusPluginManifest.class.php (Plugins)
113
                //              includes/classes/OIDplus.class.php (Translation)
113
                //              includes/classes/OIDplus.class.php (Translation)
114
                //              plugins/viathinksoft/adminPages/400_oidinfo_export/OIDplusPageAdminOIDInfoExport.class.php (Import OID from oid-info.com)
114
                //              plugins/viathinksoft/adminPages/400_oidinfo_export/OIDplusPageAdminOIDInfoExport.class.php (Import OID from oid-info.com)
115
                //              dev/translation/*.phps (only for developers)
115
                //              dev/translation/*.phps (only for developers)
116
                // Note: This should not happen because of simplexml_supplement.inc.php
116
                // Note: This should not happen because of vendor/danielmarschall/php_utils/simplexml_supplement.inc.php
117
                if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
117
                if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
118
                        $install_hint = _L('On Windows, it should be installed by default');
118
                        $install_hint = _L('On Windows, it should be installed by default');
119
                } else {
119
                } else {
120
                        $install_hint = _L('On Linux, install it by running e.g. %1, and then restart your webserver service, e.g. by running %2',
120
                        $install_hint = _L('On Linux, install it by running e.g. %1, and then restart your webserver service, e.g. by running %2',
121
                                '<code>sudo apt-get update && sudo apt-get install php-xml</code>',
121
                                '<code>sudo apt-get update && sudo apt-get install php-xml</code>',