From 922e90890865eaf77c70240040b5a592c979071a Mon Sep 17 00:00:00 2001
From: Grischa Brockhaus 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).OpenID benutzen, um in Dein Blog einzuloggen
' .
'
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.
=^LL%4-ByPeZ4rq62)TZDKCaXUu`Zrd znoc*-^pb^eGtuc0XS=JP>6ys`4UgH-a3k-_zjd zftn)|lf3!4sui{lt0U(B>fxJ2?eU0o=^tA1 =J!ceVoeK!rgmGYnDW|%F`Ns9|}iw6z!6Dx<$MEQ|yU%qb@ci-tC zJD)`a`Hwx+8SQ^@XPM2dp93%I{wue1`mk9P8UuHbUb=Xk^f>p?&5v9{%m AVd#6@OCw6Z8+D&wAMfo6OxcoLZwO_p#<1-)A8+7tuG>)|u_R zn>9bV;f>;+$zMyB?((tY)xYYk(z%v!U%=`nbY8aD=z`}VOU60OQEF=78Qk$(OOPIM z&z)Z%r?RGBO_qAnqU4QlV!YO7`I!*Xf`5@y&x2Q%mA+A8hjjY`b?B|N+FkmFsD0kU zSk1nb<~EQ=%j;@xD_Qw@XI xu`FIf{Y)wu&ba;%VLL3J&Rrm2vsWWRymd zW}_3B-F)nAa?aGj$u(<{fi82EMaax!)YPTfX>soE=N`T5K2R*Jn1JH>Ydu*sw1KOc zhhiB>zSN3eB`oPn*UX`Zg%$EfKCjcxJCc$fx5c@(_9*s7t&ucZANNqJsG X$I13RW7zSVm~a*Y&4xv+H49kVr%%t znAK&VS3NDfJ{~;xlAWfbzn#D$By)94RtpIOWgJ*zY;50kZgcoZ3E5Jn84y}_x H6>De`SE9`_U!pRyz*4arglfpi~Pl+6H jp4=&CB<2Wg3#lp_!7L~=JC7Ven&X+vw)3LX&?(o0X agAY-R#*HK&QU4*rU;(}%)C%wDwEqBHlT;P} literal 0 HcmV?d00001 diff --git a/serendipity_event_openid/lang_de.inc.php b/serendipity_event_openid/lang_de.inc.php index 27ce2c32..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.
' ); @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 @@ '
' . +'Es kann jedoch immer nur eine OpenID Verbindung pro Benutzer aktiviert werden.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.
' ); @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 '
' . +'But there can only be one OpenID connection for an account configured at a time.'; echo '' . htmlspecialchars(PLUGIN_EVENT_OPENID_SELECT) . '
'; @@ -213,6 +225,7 @@ class serendipity_event_openid extends serendipity_event echo ''; echo ' '; echo ' '; + echo ' '; echo ''; echo '
';