Rev 635 | Rev 801 | Go to most recent revision | Show entire file | Ignore 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_google') { |
33 | if ($id === 'oidplus:login_google') { |
34 | $handled = true; |
34 | $handled = true; |
35 | $out['title'] = _L('Login using Google'); |
35 | $out['title'] = _L('Login using Google'); |
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('GOOGLE_OAUTH2_ENABLED', false)) { |
38 | if (!OIDplus::baseConfig()->getValue('GOOGLE_OAUTH2_ENABLED', false)) { |
39 | $out['icon'] = 'img/error_big.png'; |
39 | $out['icon'] = 'img/error.png'; |
40 | $out['text'] = _L('Google OAuth authentication is disabled on this system.'); |
40 | $out['text'] = _L('Google OAuth authentication is disabled on this system.'); |
41 | return; |
41 | return; |
42 | } |
42 | } |
43 | 43 | ||
44 | $target = |
44 | $target = |
Line 73... | Line 73... | ||
73 | $logins = array(); |
73 | $logins = array(); |
74 | if (OIDplus::baseConfig()->getValue('GOOGLE_OAUTH2_ENABLED', false)) { |
74 | if (OIDplus::baseConfig()->getValue('GOOGLE_OAUTH2_ENABLED', false)) { |
75 | $logins[] = array( |
75 | $logins[] = array( |
76 | 'oidplus:login_google', |
76 | 'oidplus:login_google', |
77 | _L('Login using Google'), |
77 | _L('Login using Google'), |
78 | OIDplus::webpath(__DIR__).'treeicon.png' |
78 | OIDplus::webpath(__DIR__,true).'img/main_icon16.png' |
79 | ); |
79 | ); |
80 | } |
80 | } |
81 | return $logins; |
81 | return $logins; |
82 | } |
82 | } |
83 | } |
83 | } |