Revision 3102,
937 bytes
checked in by nicofrand, 11 years ago
(diff) |
Version 1.0: Initial commit
|
Line | |
---|
1 | <?php |
---|
2 | /** |
---|
3 | * This file is part of socialLogin, a plugin for Dotclear. |
---|
4 | * |
---|
5 | * @author Nicolas Frandeboeuf <nicofrand@gmail.com> |
---|
6 | * @version 1.0 |
---|
7 | * @package socialLogin |
---|
8 | * Licensed under the GPL version 3 license. |
---|
9 | * http://www.gnu.org/licenses/gpl-3.0.html |
---|
10 | */ |
---|
11 | |
---|
12 | if (!defined('DC_RC_PATH')) |
---|
13 | return; |
---|
14 | |
---|
15 | require_once(dirname(__FILE__) . "/inc/class.SocialLoginWidget.php"); |
---|
16 | require_once(dirname(__FILE__) . "/inc/class.SocialLoginPublic.php"); |
---|
17 | require_once(dirname(__FILE__) . "/inc/class.SocialLoginConnexion.php"); |
---|
18 | |
---|
19 | $core->url->register("socialLoginOff", "socialLogin", "^socialLogin/deco$", array("SocialLoginConnexion", "deconnect")); |
---|
20 | $core->url->register("socialLoginOn", "socialLogin", "^socialLogin-[0-9a-z]*$", array("SocialLoginConnexion", "connect")); |
---|
21 | |
---|
22 | $core->addBehavior("initWidgets", array("SocialLoginWidget", "init")); |
---|
23 | $core->addBehavior("publicHeadContent",array("SocialLoginPublic", "getScript")); |
---|
24 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.