Joomla! Discussion Forums



It is currently Wed Nov 25, 2009 4:05 am (All times are UTC )

 




Post new topic Reply to topic  [ 4 posts ] 
Author Message
Posted: Thu Mar 02, 2006 9:14 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Mar 01, 2006 3:33 pm
Posts: 4
I already had this bug with Mambo and now I've tried Joomla and there's still the same bug. I don't know why i can't find it on the boards, because i can't imagine someone else hasn't noticed it.

It happens when people logout on the site (after being logged in ofcourse). When you press the logout button nothing happens! I fixed it by changing the code of mod_login.php a bit:

from line 47:
Code:
// Logout output
// ie HTML when already logged in and trying to logout
   if ( $name ) {
      $name = $my->username;
   }
   ?>
   <form action="<?php echo sefRelToAbs( 'index.php?option=logout' ); ?>" method="post" name="logout">
   <?php
   if ( $greeting ) {
      echo _HI;
      echo $name;
   }
   ?>
   <br />
   <div align="center">
      <input type="submit" name="Submit" class="button" value="<?php echo _BUTTON_LOGOUT; ?>" />
   </div>

   <input type="hidden" name="op2" value="logout" />
   <input type="hidden" name="option" value="logout" />
   <input type="hidden" name="lang" value="<?php echo $mosConfig_lang; ?>" />
   <input type="hidden" name="return" value="<?php echo sefRelToAbs( $logout ); ?>" />
   <input type="hidden" name="message" value="<?php echo $message_logout; ?>" />
   </form>
   <?php


The things I changed were:
Code:
<form action="<?php echo sefRelToAbs( 'index.php?option=logout' ); ?>" method="post" name="logout">

Because name was set to login and not to logout.

And I added
Code:
<input type="hidden" name="option" value="logout" />

I could've changed the name of op2 to option, but I didn't want to delete any lines.

Am I the only one with these problems? Or doesn't anyone use the login-script? :)
Anyhow..it's fixed now on my computer.


Last edited by stingrey on Mon Mar 06, 2006 7:19 pm, edited 1 time in total.

Top
   
 
 Post subject: Re: Logging out bug?
Posted: Thu Mar 02, 2006 9:31 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 11676
Location: **Translation Matters**
It would be useful if you stated your OS, Server characteristics (PHP, MySQL) as well as Joomla! version.
Thanks.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
---------------------------------
Joomla! Translation Coordination Team


Top
  E-mail  
 
 Post subject: Re: Logging out bug?
Posted: Thu Mar 02, 2006 11:51 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Mar 01, 2006 3:33 pm
Posts: 4
OS is Windows XP with IIS 5.1, but it also happens on Windows Server 2003 wth IIS 6.0.
They're both loaded with MySQL 4.1 and PHP4. It happens on the latest Mambo (I suppose it happens on the earlier ones too) and the latest Joomla (1.0.8 if I'm correct, but also the earlier ones).

Hope this helps.


Last edited by armageddon_2k1 on Thu Mar 02, 2006 11:59 am, edited 1 time in total.

Top
   
 
 Post subject: Re: Logging out bug?
Posted: Mon Mar 06, 2006 7:02 pm 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Mon Aug 15, 2005 4:36 pm
Posts: 2399
Location: Marikina, Metro Manila, Philippines
armageddon_2k1 wrote:
OS is Windows XP with IIS 5.1, but it also happens on Windows Server 2003 wth IIS 6.0.
They're both loaded with MySQL 4.1 and PHP4. It happens on the latest Mambo (I suppose it happens on the earlier ones too) and the latest Joomla (1.0.8 if I'm correct, but also the earlier ones).

This shouldnt have been an issue, but as I am still attempting to put together an IIS test server I cant say if this is true for IIS - it may well be.  All I know is that it doesnt affect functionality in Apache.

Anyway, as it doesnt hurt to add the extra input value I have added it to 1.0.9

_________________
God grant me the Serenity to Accept the things I cannot change, the Courage to change the things I can and the Wisdom to know the Difference.


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group