Subversion Repositories oidplus

Rev

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

Rev 635 Rev 800
Line 31... Line 31...
31
 
31
 
32
        public function gui($id, &$out, &$handled) {
32
        public function gui($id, &$out, &$handled) {
33
                if ($id === 'oidplus:login_facebook') {
33
                if ($id === 'oidplus:login_facebook') {
34
                        $handled = true;
34
                        $handled = true;
35
                        $out['title'] = _L('Login using Facebook');
35
                        $out['title'] = _L('Login using Facebook');
36
                        $out['icon']  = OIDplus::webpath(__DIR__).'icon_big.png';
36
                        $out['icon']  = OIDplus::webpath(__DIR__,true).'img/main_icon.png';
37
 
37
 
38
                        if (!OIDplus::baseConfig()->getValue('FACEBOOK_OAUTH2_ENABLED', false)) {
38
                        if (!OIDplus::baseConfig()->getValue('FACEBOOK_OAUTH2_ENABLED', false)) {
39
                                $out['icon'] = 'img/error_big.png';
39
                                $out['icon'] = 'img/error.png';
40
                                $out['text'] = _L('Facebook OAuth authentication is disabled on this system.');
40
                                $out['text'] = _L('Facebook OAuth authentication is disabled on this system.');
41
                                return;
41
                                return;
42
                        }
42
                        }
43
 
43
 
44
                        $target =
44
                        $target =
Line 72... Line 72...
72
                $logins = array();
72
                $logins = array();
73
                if (OIDplus::baseConfig()->getValue('FACEBOOK_OAUTH2_ENABLED', false)) {
73
                if (OIDplus::baseConfig()->getValue('FACEBOOK_OAUTH2_ENABLED', false)) {
74
                        $logins[] = array(
74
                        $logins[] = array(
75
                                'oidplus:login_facebook',
75
                                'oidplus:login_facebook',
76
                                _L('Login using Facebook'),
76
                                _L('Login using Facebook'),
77
                                OIDplus::webpath(__DIR__).'treeicon.png'
77
                                OIDplus::webpath(__DIR__,true).'img/main_icon16.png'
78
                        );
78
                        );
79
                }
79
                }
80
                return $logins;
80
                return $logins;
81
        }
81
        }
82
}
82
}