From 922e90890865eaf77c70240040b5a592c979071a Mon Sep 17 00:00:00 2001 From: Grischa Brockhaus Date: Mon, 26 Mar 2012 03:08:31 +0200 Subject: [PATCH] plugin_openid: * Added AOL shortcut * Added description about the shortcuts to the configuration screen. --- serendipity_event_openid/ChangeLog | 5 +++++ serendipity_event_openid/UTF-8/lang_de.inc.php | 6 +++++- serendipity_event_openid/common.inc.php | 3 +++ serendipity_event_openid/img/aol.png | Bin 0 -> 1754 bytes serendipity_event_openid/img/aol_small.png | Bin 0 -> 2632 bytes serendipity_event_openid/lang_de.inc.php | 6 +++++- serendipity_event_openid/lang_en.inc.php | 6 +++++- serendipity_event_openid/openind.endpoints.txt | 8 ++++++++ .../serendipity_event_openid.php | 17 +++++++++++++++-- 9 files changed, 46 insertions(+), 5 deletions(-) create mode 100644 serendipity_event_openid/img/aol.png create mode 100644 serendipity_event_openid/img/aol_small.png create mode 100644 serendipity_event_openid/openind.endpoints.txt diff --git a/serendipity_event_openid/ChangeLog b/serendipity_event_openid/ChangeLog index 0a80419f..9f2a9f16 100644 --- a/serendipity_event_openid/ChangeLog +++ b/serendipity_event_openid/ChangeLog @@ -1,3 +1,8 @@ +Version 0.8 (brockhaus) +--------------------------------- +* Added AOL shortcut +* Added description about the shortcuts to the configuration screen. + Version 0.7 (brockhaus) --------------------------------- * Was not able to change users OpenID url, if logged in with another external login (like BrowserID) diff --git a/serendipity_event_openid/UTF-8/lang_de.inc.php b/serendipity_event_openid/UTF-8/lang_de.inc.php index 7c64509b..c497fb96 100644 --- a/serendipity_event_openid/UTF-8/lang_de.inc.php +++ b/serendipity_event_openid/UTF-8/lang_de.inc.php @@ -12,7 +12,9 @@ '

OpenID benutzen, um in Dein Blog einzuloggen

' . '

Das Plugin benötigt keinerlei Konfiguration, um ein OpenID Login zu implementieren (OpenID konfiguriert sich selbstständig)

' . '

Aber Benutzer, die OpenID als Login verwenden wollen, müssen einmal angeben, welche OpenID URL sie identifizieren soll. ' . -'Wenn Du also OpenID als Login Option benutzen möchtest, gehe zu Deiner Profilseite in Serendipity und konfiguriere Deine OpenID URL (im unteren Bereich der Seite).

' +'Wenn Du also OpenID als Login Option benutzen möchtest, gehe zu Deiner Profilseite in Serendipity und konfiguriere Deine OpenID URL (im unteren Bereich der Seite).

' . +'

Hier findest Du auch Knöpfe für Google, Yahoo und Aol Accounts. Diese Services sind ebenfalls OpenID Provider und die Knöpfe helfen Dir beim Setup der Verbindung.
' . +'Es kann jedoch immer nur eine OpenID Verbindung pro Benutzer aktiviert werden.

' ); @define('PLUGIN_OPENID_DELEGATION_DESCRIPTION', @@ -41,3 +43,5 @@ @define('PLUGIN_OPENID_SET_GOOGLE_OID', 'Deinen Google Account als OpenID setzen'); @define('PLUGIN_OPENID_LOGIN_WITH_YAHOO', 'Mit Deinem Yahoo Account einloggen'); @define('PLUGIN_OPENID_SET_YAHOO_OID', 'Deinen Yahoo Account als OpenID setzen'); +@define('PLUGIN_OPENID_LOGIN_WITH_AOL', 'Mit Deinem Aol Account einloggen'); +@define('PLUGIN_OPENID_SET_AOL_OID', 'Deinen Aol Account als OpenID setzen'); diff --git a/serendipity_event_openid/common.inc.php b/serendipity_event_openid/common.inc.php index 5c559355..273bd56a 100644 --- a/serendipity_event_openid/common.inc.php +++ b/serendipity_event_openid/common.inc.php @@ -207,6 +207,8 @@ class serendipity_common_openid { $imgopenid = $serendipity['baseURL'] . 'index.php?/plugin/openid.png'; $imggoogle = $serendipity['baseURL'] . 'index.php?/plugin/oid_google.png'; $imgyahoo = $serendipity['baseURL'] . 'index.php?/plugin/oid_yahoo.png'; + $imgaol = $serendipity['baseURL'] . 'index.php?/plugin/oid_aol.png'; + $form = ''; if (! empty($instructions)) { $form = $instructions . '

'; @@ -229,6 +231,7 @@ class serendipity_common_openid { } $form .= ' '; $form .= ' '; + $form .= ' '; $form .= ''; return $form; diff --git a/serendipity_event_openid/img/aol.png b/serendipity_event_openid/img/aol.png new file mode 100644 index 0000000000000000000000000000000000000000..fcb5c7b9c5109d7ea19dd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ce2c32..9f3eda27 100644 --- a/serendipity_event_openid/lang_de.inc.php +++ b/serendipity_event_openid/lang_de.inc.php @@ -12,7 +12,9 @@ '

OpenID benutzen, um in Dein Blog einzuloggen

' . '

Das Plugin benötigt keinerlei Konfiguration, um ein OpenID Login zu implementieren (OpenID konfiguriert sich selbstständig)

' . '

Aber Benutzer, die OpenID als Login verwenden wollen, müssen einmal angeben, welche OpenID URL sie identifizieren soll. ' . -'Wenn Du also OpenID als Login Option benutzen möchtest, gehe zu Deiner Profilseite in Serendipity und konfiguriere Deine OpenID URL (im unteren Bereich der Seite).

' +'Wenn Du also OpenID als Login Option benutzen möchtest, gehe zu Deiner Profilseite in Serendipity und konfiguriere Deine OpenID URL (im unteren Bereich der Seite).

' . +'

Hier findest Du auch Knöpfe für Google, Yahoo und Aol Accounts. Diese Services sind ebenfalls OpenID Provider und die Knöpfe helfen Dir beim Setup der Verbindung.
' . +'Es kann jedoch immer nur eine OpenID Verbindung pro Benutzer aktiviert werden.

' ); @define('PLUGIN_OPENID_DELEGATION_DESCRIPTION', @@ -41,3 +43,5 @@ @define('PLUGIN_OPENID_SET_GOOGLE_OID', 'Deinen Google Account als OpenID setzen'); @define('PLUGIN_OPENID_LOGIN_WITH_YAHOO', 'Mit Deinem Yahoo Account einloggen'); @define('PLUGIN_OPENID_SET_YAHOO_OID', 'Deinen Yahoo Account als OpenID setzen'); +@define('PLUGIN_OPENID_LOGIN_WITH_AOL', 'Mit Deinem Aol Account einloggen'); +@define('PLUGIN_OPENID_SET_AOL_OID', 'Deinen Aol Account als OpenID setzen'); diff --git a/serendipity_event_openid/lang_en.inc.php b/serendipity_event_openid/lang_en.inc.php index 617100e8..9162725e 100644 --- a/serendipity_event_openid/lang_en.inc.php +++ b/serendipity_event_openid/lang_en.inc.php @@ -12,7 +12,9 @@ '

Using OpenID to log into your blog

' . '

This plugin does not need any configuration to enable login into your blog using OpenID (OpenID is self configuring)

' . '

But users, who want to use OpenID for login have to configure the OpenID URL they want to be identified with. ' . -'So if you want to use OpenID as a login option, go to your Serendipity profile page and configure your OpenID URL (at the bottom of the page).

' +'So if you want to use OpenID as a login option, go to your Serendipity profile page and configure your OpenID URL (at the bottom of the page).

' . +'

There are buttons for Google, Yahoo and Aol accounts, too. These services are also OpenID providers and the buttons will assist you while setting up.
' . +'But there can only be one OpenID connection for an account configured at a time.

' ); @define('PLUGIN_OPENID_DELEGATION_DESCRIPTION', @@ -41,3 +43,5 @@ @define('PLUGIN_OPENID_SET_GOOGLE_OID', 'Set your Google account as OpenID'); @define('PLUGIN_OPENID_LOGIN_WITH_YAHOO', 'Login with your Yahoo account'); @define('PLUGIN_OPENID_SET_YAHOO_OID', 'Set your Yahoo account as OpenID'); +@define('PLUGIN_OPENID_LOGIN_WITH_AOL', 'Login with your Aol account'); +@define('PLUGIN_OPENID_SET_AOL_OID', 'Set your Aol account as OpenID'); diff --git a/serendipity_event_openid/openind.endpoints.txt b/serendipity_event_openid/openind.endpoints.txt new file mode 100644 index 00000000..2076e18b --- /dev/null +++ b/serendipity_event_openid/openind.endpoints.txt @@ -0,0 +1,8 @@ +Known OpenID endpoints + + Google : https://www.google.com/accounts/o8/id + Google profile : http://www.google.com/profiles/~YOURUSERNAME + Yahoo : https://me.yahoo.com + AOL : https://www.aol.com + Wordpress : http://YOURBLOG.wordpress.com + LiveJournal : http://www.livejournal.com/openid/server.bml diff --git a/serendipity_event_openid/serendipity_event_openid.php b/serendipity_event_openid/serendipity_event_openid.php index 6ff6706f..6715a943 100644 --- a/serendipity_event_openid/serendipity_event_openid.php +++ b/serendipity_event_openid/serendipity_event_openid.php @@ -13,7 +13,7 @@ class serendipity_event_openid extends serendipity_event $propbag->add('description', PLUGIN_OPENID_DESC); $propbag->add('stackable', false); $propbag->add('author', 'Grischa Brockhaus, Rob Richards'); - $propbag->add('version', '0.7'); + $propbag->add('version', '0.8'); $propbag->add('requirements', array( 'serendipity' => '1.2', 'smarty' => '2.6.7', @@ -110,6 +110,14 @@ class serendipity_event_openid extends serendipity_event header('Content-Type: image/png'); echo file_get_contents(dirname(__FILE__). '/img/yahoo_small.png'); } + elseif ($eventData=="oid_aol.png") { + header('Content-Type: image/png'); + echo file_get_contents(dirname(__FILE__). '/img/aol.png'); + } + elseif ($eventData=="oids_aol.png") { + header('Content-Type: image/png'); + echo file_get_contents(dirname(__FILE__). '/img/aol_small.png'); + } break; case 'frontend_header': $server = $this->get_config('server'); @@ -149,7 +157,10 @@ class serendipity_event_openid extends serendipity_event $openidurl = "https://www.google.com/accounts/o8/id"; } elseif (isset($_POST['openIDLoginYahoo_x']) || isset($_POST['openIDLoginYahoo_y'])) { // If the Google Button was pressed - $openidurl = "https://yahoo.com"; + $openidurl = "https://me.yahoo.com"; + } + elseif (isset($_POST['openIDLoginAol_x']) || isset($_POST['openIDLoginAol_y'])) { // If the Google Button was pressed + $openidurl = "https://www.aol.com"; } if ($_SESSION['serendipityAuthedUser'] == true) { @@ -194,6 +205,7 @@ class serendipity_event_openid extends serendipity_event $imgopenid = $serendipity['baseURL'] . 'index.php?/plugin/openid.png'; $imggoogle = $serendipity['baseURL'] . 'index.php?/plugin/oids_google.png'; $imgyahoo = $serendipity['baseURL'] . 'index.php?/plugin/oids_yahoo.png'; + $imgaol = $serendipity['baseURL'] . 'index.php?/plugin/oids_aol.png'; echo '
'; echo '' . htmlspecialchars(PLUGIN_EVENT_OPENID_SELECT) . '

'; @@ -213,6 +225,7 @@ class serendipity_event_openid extends serendipity_event echo ''; echo ' '; echo ' '; + echo ' '; echo ''; echo '


';