Rev 702 | Rev 801 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 702 | Rev 800 | ||
---|---|---|---|
Line 203... | Line 203... | ||
203 | 203 | ||
204 | public function gui($id, &$out, &$handled) { |
204 | public function gui($id, &$out, &$handled) { |
205 | if ($id === 'oidplus:login_ldap') { |
205 | if ($id === 'oidplus:login_ldap') { |
206 | $handled = true; |
206 | $handled = true; |
207 | $out['title'] = _L('Login using LDAP / ActiveDirectory'); |
207 | $out['title'] = _L('Login using LDAP / ActiveDirectory'); |
208 | $out['icon'] = OIDplus::webpath(__DIR__).'icon_big.png'; |
208 | $out['icon'] = OIDplus::webpath(__DIR__,true).'img/main_icon.png'; |
209 | 209 | ||
210 | if (!OIDplus::baseConfig()->getValue('LDAP_ENABLED', false)) { |
210 | if (!OIDplus::baseConfig()->getValue('LDAP_ENABLED', false)) { |
211 | $out['icon'] = 'img/error_big.png'; |
211 | $out['icon'] = 'img/error.png'; |
212 | $out['text'] = _L('LDAP authentication is disabled on this system.'); |
212 | $out['text'] = _L('LDAP authentication is disabled on this system.'); |
213 | return; |
213 | return; |
214 | } |
214 | } |
215 | 215 | ||
216 | if (!function_exists('ldap_connect')) { |
216 | if (!function_exists('ldap_connect')) { |
217 | $out['icon'] = 'img/error_big.png'; |
217 | $out['icon'] = 'img/error.png'; |
218 | $out['text'] = _L('PHP extension "%1" not installed','LDAP'); |
218 | $out['text'] = _L('PHP extension "%1" not installed','LDAP'); |
219 | return; |
219 | return; |
220 | } |
220 | } |
221 | 221 | ||
222 | $out['text'] = ''; |
222 | $out['text'] = ''; |
Line 313... | Line 313... | ||
313 | $logins = array(); |
313 | $logins = array(); |
314 | if (OIDplus::baseConfig()->getValue('LDAP_ENABLED', false)) { |
314 | if (OIDplus::baseConfig()->getValue('LDAP_ENABLED', false)) { |
315 | $logins[] = array( |
315 | $logins[] = array( |
316 | 'oidplus:login_ldap', |
316 | 'oidplus:login_ldap', |
317 | _L('Login using LDAP / ActiveDirectory'), |
317 | _L('Login using LDAP / ActiveDirectory'), |
318 | OIDplus::webpath(__DIR__).'treeicon.png' |
318 | OIDplus::webpath(__DIR__,true).'img/main_icon16.png' |
319 | ); |
319 | ); |
320 | } |
320 | } |
321 | return $logins; |
321 | return $logins; |
322 | } |
322 | } |
323 | } |
323 | } |