Subversion Repositories oidplus

Rev

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

Rev 1131 Rev 1149
Line 128... Line 128...
128
         */
128
         */
129
        public function getNotifications(string $user=null): array {
129
        public function getNotifications(string $user=null): array {
130
                $notifications = array();
130
                $notifications = array();
131
                if ((!$user || ($user == 'admin')) && OIDplus::authUtils()->isAdminLoggedIn()) {
131
                if ((!$user || ($user == 'admin')) && OIDplus::authUtils()->isAdminLoggedIn()) {
132
                        if (OIDplus::baseConfig()->getValue('GOOGLE_OAUTH2_ENABLED', false)) {
132
                        if (OIDplus::baseConfig()->getValue('GOOGLE_OAUTH2_ENABLED', false)) {
133
                                if (!function_exists('curl_init')) {
133
                                if (!url_post_contents_available()) {
134
                                        $title = _L('Google OAuth Login');
134
                                        $title = _L('Google OAuth Login');
135
                                        $notifications[] = array('ERR', _L('OIDplus plugin "%1" is enabled, but the required PHP extension "%2" is not installed.', htmlentities($title), 'php_curl'));
135
                                        $notifications[] = array('ERR', _L('OIDplus plugin "%1" is enabled, but the required PHP extension "%2" is not installed.', htmlentities($title), 'php_curl'));
136
                                }
136
                                }
137
                        }
137
                        }
138
                }
138
                }