]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
better URLs for OpenID stuff
authorEvan Prodromou <evan@prodromou.name>
Wed, 18 Jun 2008 16:07:33 +0000 (12:07 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 18 Jun 2008 16:07:33 +0000 (12:07 -0400)
darcs-hash:20080618160733-84dde-cb233a9b2073b6333f2944682bb3ab0c1a7a547a.gz

actions/openidsettings.php
htaccess.sample
lib/util.php

index 0355534d79631167cc1240f932536656bf0df465..91f9ab4c75da1eae14fcb6626949ddd75dae5e85 100644 (file)
@@ -83,7 +83,7 @@ class OpenidsettingsAction extends SettingsAction {
                                common_element('input', array('type' => 'submit',
                                                                                          'id' => 'remove'.$idx,
                                                                                          'name' => 'remove',
-                                                                                         'value' => _t('Add')));
+                                                                                         'value' => _t('Remove')));
                                common_element_end('p');
                                common_element_end('form');
                                $idx++;
index 92edce2f4ce03f3a3400f5a0006b1d3cfd2d66b6..14da3ba826bbce3fc959530224d2b9360a622b8f 100644 (file)
@@ -11,6 +11,7 @@ RewriteRule ^doc/source$ index.php?action=doc&title=source [L,QSA]
 RewriteRule ^main/login$ index.php?action=login [L,QSA]
 RewriteRule ^main/logout$ index.php?action=logout [L,QSA]
 RewriteRule ^main/register$ index.php?action=register [L,QSA]
+RewriteRule ^main/openid$ index.php?action=openidlogin [L,QSA]
 
 RewriteRule ^main/subscribe$ index.php?action=subscribe [L,QSA]
 RewriteRule ^main/unsubscribe$ index.php?action=unsubscribe [L,QSA]
@@ -18,6 +19,7 @@ RewriteRule ^main/unsubscribe$ index.php?action=unsubscribe [L,QSA]
 RewriteRule ^settings/avatar$ index.php?action=avatar [L,QSA]
 RewriteRule ^settings/password$ index.php?action=password [L,QSA]
 RewriteRule ^settings/profile$ index.php?action=profilesettings [L,QSA]
+RewriteRule ^settings/openid$ index.php?action=openidsettings [L,QSA]
 
 RewriteRule ^notice/new$ index.php?action=newnotice [L,QSA]
 RewriteRule ^notice/(\d+)$ index.php?action=shownotice&notice=$1 [L,QSA]
index b78edc93cc4ef4158fbc999e8e43a98f881cd9ac..072ab0047b425981be298f489b0c842921dad6bf 100644 (file)
@@ -266,6 +266,7 @@ function common_nav_menu() {
        } else {
                common_menu_item(common_local_url('login'), _t('Login'));
                common_menu_item(common_local_url('register'), _t('Register'));
+               common_menu_item(common_local_url('openidlogin'), _t('OpenID'));
        }
        common_element_end('ul');
 }
@@ -529,6 +530,8 @@ function common_fancy_url($action, $args=NULL) {
         case 'subscribe':
         case 'unsubscribe':
                return common_path('main/'.$action);
+        case 'openidlogin':
+               return common_path('main/openid');
         case 'avatar':
         case 'password':
                return common_path('settings/'.$action);