Ich hab mal eine Light-Version der mod_login.php gebastelt. Vorher Backup machen!
Code:
<?php
// $Id: mod_login.php,v 1.29.1 2004/04/23 12:08:ff tbluem Exp $
/**
* Login Module
* @package Mambo Open Source
* @Copyright (C) 2000 - 2003 Miro International Pty Ltd
* @ All rights reserved
* @ Mambo Open Source is Free Software
* @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
* @version $Revision: 1.29.1 $
**/
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// module parameter may override the system configuration setting
$registration_enabled = $mainframe->getCfg( 'allowUserRegistration' );
$pretext = @$params->pretext ? $params->pretext : '';
$posttext = @$params->posttext ? $params->posttext : '';
$return = mosGetParam( $_SERVER, 'REQUEST_URI', null );
if ($my->id) {
echo _HI; ?><?php echo $my->username;?>
<br>
<a href="<?php echo sefRelToAbs("index.php?option=logout&return=$return"); ?>"><?php echo _BUTTON_LOGOUT; ?>?</a>
<?php
} else {
?>
<center>
<a href="index.php?option=com_login"><?php echo _BUTTON_LOGIN; ?></a> | <a href="index.php?option=com_registration&task=register">Registrieren</a>
<?php
}
?> auf meiner Beta-Seite unter
http://www.godesberg.net/MAMBO könnt ihr euch das ansehen.
Gruß Thomas