Rev 511 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 511 | Rev 532 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | require_once __DIR__ . '/../../../includes/oidplus.inc.php'; |
24 | require_once __DIR__ . '/../../../includes/oidplus.inc.php'; |
25 | 25 | ||
26 | OIDplus::init(true); |
26 | OIDplus::init(true); |
27 | set_exception_handler(array('OIDplusGui', 'html_exception_handler')); |
27 | set_exception_handler(array('OIDplusGui', 'html_exception_handler')); |
28 | 28 | ||
- | 29 | if (OIDplus::baseConfig()->getValue('DISABLE_PLUGIN_OIDplusPagePublicLoginFacebook', false)) { |
|
- | 30 | throw new OIDplusException(_L('This plugin was disabled by the system administrator!')); |
|
- | 31 | } |
|
- | 32 | ||
29 | if (!OIDplus::baseConfig()->getValue('FACEBOOK_OAUTH2_ENABLED', false)) { |
33 | if (!OIDplus::baseConfig()->getValue('FACEBOOK_OAUTH2_ENABLED', false)) { |
30 | throw new OIDplusException(_L('Facebook OAuth authentication is disabled on this system.')); |
34 | throw new OIDplusException(_L('Facebook OAuth authentication is disabled on this system.')); |
31 | } |
35 | } |
32 | 36 | ||
33 | if (!isset($_GET['code'])) die(); |
37 | if (!isset($_GET['code'])) die(); |