Ist es möglich den Login Modul so zu erweitern, dass ich bei ein logen vom Frontend in das Backend zu gelange????
Code: Alles auswählen
<?php
/***********************************************
* CONTENIDO MODUL - OUTPUT
*
* Modulname : Loginbox
* Author(s) : Andreas Lindner
* Copyright : Contenido - four for business, Andreas Lindner
* Created : 05.08.2005
************************************************/
#Includes
cInclude('classes', 'class.template.php');
if ( !is_object($tpl) ) {
$tpl = new Template;
}
$tpl->reset();
if ($auth->auth["uid"] == "nobody"){
$template = 'login.html';
$tpl->set('s', 'FORM_ACTION', 'front_content.php?idcatart='.$idcatart);
$tpl->set('s', 'USERNAME', mi18n("Username"));
$tpl->set('s', 'PASSWORD', mi18n("Passwort"));
$tpl->set('s', 'GO', mi18n("Go"));
$tpl->set('s', 'LOGIN', mi18n("Login"));
} else {
echo"Bearbeiten";
$template = 'logout.html';
$tpl->set('s', 'CURRENT_USERNAME', mi18n("Sie sind angemeldet als"));
$tpl->set('s', 'USERNAME', $auth->auth["uname"]);
$tpl->set('s', 'HREF', 'front_content.php?idcatart='.$idcatart.'&logout=yes');
$tpl->set('s', 'LOGOUT', mi18n("Logout"));
}
$tpl->generate('templates/'.$template);
?>