From 8575d7509f51d98abf1250d0032bb46ec8ff2d9a Mon Sep 17 00:00:00 2001 From: josch Date: Sun, 28 Oct 2007 20:58:25 +0000 Subject: [PATCH] fixed login dialogue git-svn-id: http://yolanda.mister-muffin.de/svn@150 7eef14d0-6ed0-489d-bf55-20463b2d70db --- trunk/login.pl | 7 ++-- trunk/site/gnutube.xml | 8 ++-- trunk/xsl/xhtml.xsl | 95 ++++++++++++++++++++++++++---------------- 3 files changed, 65 insertions(+), 45 deletions(-) diff --git a/trunk/login.pl b/trunk/login.pl index ff32e7c..44ff9e7 100644 --- a/trunk/login.pl +++ b/trunk/login.pl @@ -144,9 +144,8 @@ if($query->param('action')) } else { - #someone is messing with the args - $page->{'message'}->{'type'} = "error"; - $page->{'message'}->{'text'} = "error_202c"; + #if not, print login form + $page->{'loginform'}->{'action'} = 'openid'; #print xml http header along with session cookie print $session->header(-type=>'text/xml', -charset=>'UTF-8'); @@ -183,7 +182,7 @@ elsif($username) else { #if not, print login form - $page->{loginform} = ['']; + $page->{'loginform'} = ['']; #print xml http header along with session cookie print $session->header(-type=>'text/xml', -charset=>'UTF-8'); diff --git a/trunk/site/gnutube.xml b/trunk/site/gnutube.xml index 0d2a89d..385b0e8 100755 --- a/trunk/site/gnutube.xml +++ b/trunk/site/gnutube.xml @@ -13,13 +13,13 @@ --> /account.pl - login.pl - login-openid.pl - login.pl?action=logout + /login.pl + /login.pl?action=openid + /login.pl?action=logout INSERT LINK TO GNUTUBE AUTHORS HERE http://gplv3.fsf.org/agplv3-dd1.html http://mister-muffin.de/proj/browser - register.pl + /register.pl search.pl?query= /upload.pl uploader.pl diff --git a/trunk/xsl/xhtml.xsl b/trunk/xsl/xhtml.xsl index b578d59..f694725 100755 --- a/trunk/xsl/xhtml.xsl +++ b/trunk/xsl/xhtml.xsl @@ -358,45 +358,66 @@
- -
- - - -
- - : -
- -
- : -
- -
- - - + + + + + - -
-
-
- - - -
- - : -
- -
- - - +
+ + OpenID: +
+ +
+ e.g. http://username.myopenid.com +
+ + + + + +
+ + + + + login with normal account + +
+ + + +
+ + - -
- +
+ + : +
+ +
+ : +
+ +
+ + + + + +
+ + + + + login with openid + +
+ + +