ja ne is doch egal.. ich will trotzdem ne seperate aus prinzip..
denn es sollen nicht immer die orginal datein überschreiben werden, find ich mist! nur wenns unbedingt notwendig ist.. und im moment ises net!
Gibts hier wer mit ahnung der mir fachlich helfen kann? bin leider mit php noch nicht so weit, bzw. hab schon verglichen meine beiden datein mit den org kann aber nix feststellen...
noch mal die codes:
include/templates/user/boxes_loginsof.htm
<html>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" class="loginbody">
<tr>
<td align="left" valign="middle" style="padding-top:6px; padding-left:5px;" nowrap><span class="loginbody">Hi<b> {NAME}</b> [</span><a class="login" href="index.php?user-3">{_lang_logout}</a><span class="loginbody">]</span><br>
<span class="loginbody">{NACHRICHTEN} |</span> <a class="login" href="index.php?user-8">{_lang_profil}</a><br><a class="login" href="admin.php">Admin Bereich</a></td>
</tr>
</table>
{EXPLODE}
<table width="200" height="50" border="0" align="center" cellpadding="10" cellspacing="0" style="margin-left:5px">
<tr>
<td width="100" align="right" valign="top" style="padding-top:2px; padding-right:0px">
<form style="margin-right:0px; padding-left:20px " method="POST">
<div align="center">
<input type="text" name="name" size="9" onFocus="if (value == '') {value = ''}" onBlur="if (value == '') {value = ''}" maxlength="50" class="login_1" style="margin-top:3px; " /><br><input type="password" size="9" onFocus="if (value == '') {value = ''}" onBlur="if (value == '') {value = ''}" maxlength="25" name="pass" class="login_2" style="margin-top:1px; " />
</div>
</form>
</td>
<td width="60" align="left" valign="top" style="padding-top:0px; padding-left:0px">
<input type="hidden" name="wdlink" value="{wdlink}" />
<input type="submit" name="user_login_sub" value="" class="login_s" style="margin-top:5px; " /><br><a href="?user-regist"><img src="include/designs/sof/images/login_04.png" width="55" height="19" border="0"></a></td>
</tr>
</table>
</html>
include/boxes/loginsof.php
<?php
# CMS Copyright by Manuel
# Loginbox by Gfx-4-life.de
# Support www.ilch.de
defined ('main') or die ( 'no direct access' );
$tpl = new tpl ( 'user/boxen_loginsof.htm' );
if ( loggedin() ) {
if ( user_has_admin_right($menu,false) ) {
$tpl->set ( 'ADMIN', '<a class="box" href="admin.php?admin">| '.$lang['adminarea'].'</a>' );
} else {
$tpl->set ( 'ADMIN', '' );
}
if ( $allgAr['Fpmf'] == 1 ) {
$erg = db_query("SELECT COUNT(id) FROM `prefix_pm` WHERE gelesen = 0 AND status < 1 AND eid = ".$_SESSION['authid']);
$check_pm = db_result($erg,0);
$nachrichten_link = '<a class="box" href="index.php?forum-privmsg">'.$lang['messages'].'</a> ('.$check_pm.')';
} else {
$nachrichten_link = '';
}
$tpl->set ( 'SID' , session_id() );
$tpl->set ( 'NACHRICHTEN' , $nachrichten_link );
$tpl->set ( 'NAME', $_SESSION['authname'] );
$tpl->out (0);
} else {
if (empty($_POST['login_name'])) { $_POST['login_name'] = ''; }
if (empty($_POST['login_pw'])) { $_POST['login_pw'] = ''; }
$regist = '';
if ( $allgAr['forum_regist'] == 1 ) {
$regist = '<a href="index.php?user-regist">Register</a>';
}
$tpl->set_ar_out ( array ( 'regist' => $regist, 'wdlink' => '?'.$allgAr['smodul'], 'PASS' => $_POST['login_pw'], 'NAME' => $_POST['login_name'] ) , 1 );
}
unset($tpl);
?>
und noch meine regist.php
im ordner:
include/contents/user/regist.php
<?php
# Copyright by: Manuel
# Support: www.ilch.de
defined ('main') or die ( 'no direct access' );
if ( !isset($_GET['step']) ) { $_GET['step'] = 1; }
if ( $allgAr['forum_regist'] == 0 ) {
# user duerfen sich nicht registrieren.
$title = $allgAr['title'].' :: Users :: Keine registrierung möglich';
$hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">User</a><b> » </b>Keine Registrierung möglich'.$extented_forum_menu_sufix;
$design = new design ( $title , $hmenu, 1);
$design->header();
$tpl = new tpl ( 'user/login' );
echo '<b> Der Administrator hat festgelegt das man sich nicht registrieren kann </b>';
$tpl->set_out('WDLINK','?'.$allgAr['smodul'],0);
$design->footer();
exit ();
}
switch ( $menu->get(2) ) {
default :
$title = $allgAr['title'].' :: Users :: Registrieren :: Step 1 von 3';
$hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">User</a><b> » </b><a class="smalfont" href="?user-regist">Registrieren</a><b> » </b>Step 1 von 3'.$extented_forum_menu_sufix;
$design = new design ( $title , $hmenu,1);
$design->header();
$tpl = new tpl ( 'user/regist' );
$tpl->set_out('regeln', bbcode($allgAr['allg_regeln']),0);
$design->footer();
break;
case 2 :
$name = '';
$email = '';
if (!empty($_POST['nutz'])) {
$name = escape($_POST['nutz'],'string');
}
if (!empty($_POST['email'])) {
$email = escape($_POST['email'],'string');
}
$ch_name = false;
$xname = escape_nickname($name);
if (!empty($name) AND $xname == $name AND 0 == db_result(db_query("SELECT COUNT(*) FROM prefix_user WHERE name = BINARY '".$name."'"),0)) {
$ch_name = true;
}
if ( empty($name) OR empty($email) OR $name != $xname OR $ch_name == false ) {
$title = $allgAr['title'].' :: Users :: Registrieren :: Step 2 von 3';
$hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">User</a><b> » </b><a class="smalfont" href="?user-regist">Registrieren</a><b> » </b>Step 2 von 3'.$extented_forum_menu_sufix;
$design = new design ( $title , $hmenu, 1);
$design->header();
if (empty($name) OR empty($email)) {
$fehler = $lang['yourdata'];
} elseif ($name != $xname) {
$fehler = $lang['wrongnickname'];
} elseif ($ch_name == false) {
$fehler = $lang['namealreadyinuse'];
}
$tpl = new tpl ( 'user/regist' );
$tpl->set('name', $name);
$tpl->set('email', $email);
$tpl->set_out('FEHLER', $fehler, 1);
if ( $allgAr['forum_regist_user_pass'] == 1 ) {
$tpl->out(2);
}
$tpl->out(3);
} else {
$pass = genkey(8);
if (!empty($_POST['pass'])) {
$pass = escape($_POST['pass'], 'string');
}
user_regist ($name,$email,$pass);
$tpl = new tpl ('user/regist' );
$title = $allgAr['title'].' :: Users :: Registrieren :: Step 3 von 3';
$hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">User</a><b> » </b><a class="smalfont" href="?user-regist">Registrieren</a><b> » </b>Step 3 von 3'.$extented_forum_menu_sufix;
$design = new design ( $title , $hmenu, 1);
$design->header();
$tpl->set_out ( 'NAME', $name, 4 );
}
$design->footer();
break;
}
?>