Ich poste mal beides.
hier die
user_regist.php
<?php
# Copyright by: Manuel Staechele
# 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 = '';
$icq = $_POST['icq'];
$homepage = $_POST['homepage'];
$geschlecht = $_POST['geschlecht'];
$sig = $_POST['sig'];
$gebdatum = escape($_POST['gebdatum'], 'string');
$arr = explode('.', $gebdatum);
if ( checkdate( $arr[1], $arr[0], $arr[2] )) { $gebdatum = '".$arr[2]."-".$arr[1]."-".$arr[0]."'; } else { $gebdatum = ''; }
if (!empty($_POST['nutz'])) {
$name = escape($_POST['nutz'],'string');
}
if (!empty($_POST['email'])) {
$email = escape($_POST['email'],'string');
}
$ch_name = false;
$xname = escape($name, 'string');
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('icq', $icq);
$tpl->set('homepage', $homepage);
$tpl->set('geschlecht', $geschlecht);
$tpl->set('sig', $sig);
$tpl->set('gebdatum', $gebdatum);
$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,$icq,$homepage,$geschlecht,$gebdatum,$sig);
$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;
}
?>
regist.htm
<center>
<!-- REGELN -->
<form action="index.php?user-regist-2" method="POST"><br><br><br><br>
<font size="+1"><b><font color="#140905">{_lang_attentionplease}:</font></b></font>
<br />
{regeln}
<br /><br /><input type="submit" value="{_lang_readandok}" name="Yes"> </center>
</form>
{EXPLODE}
<form action="index.php?user-regist-2" method="POST">
<input type="hidden" value="Gelesen und einverstanden" name="checked">
<table width="100%" border="0" cellspacing="1" cellpadding="6" class="border">
<th colspan="2"><b>{_lang_REGISTER}</b></th>
</tr><tr>
<td colspan="2" class="Cdark">{FEHLER}</td>
</tr><tr>
<td class="Cmite" width="60">{_lang_nickname}</td>
<td class="Cnorm"><input type="text" name="nutz" value="{name}" maxlength="15"> <b>*Pflichtfeld</b></td>
</tr>
</tr>
</tr>
<tr>
<td class="Cmite" width="60">Homepage</td>
<td class="Cnorm"><input type="text" name="homepage" value="{homepage}" maxlength="40"></td>
</tr>
<tr>
<td class="Cmite" width="60">Geschlecht</td>
<td class="Cnorm"><p>
<label>
<input type="radio" name="geschlecht" value="0" />
Unentschieden</label>
<label>
<input type="radio" name="geschlecht" value="1" />
Männlich</label>
<label>
<input type="radio" name="geschlecht" value="2" />
Weiblich</label>
<br />
</p></td>
</tr>
<tr>
<td class="Cmite" width="60">Geburtsdatum</td>
<td class="Cnorm"><input type="text" name="gebdatum" value="{gebdatum}" maxlength="15"> Format: TT.MM.JJJJ (Tag.Monat.Jahr) </td>
</tr>
<tr>
<td class="Cmite" width="60" valign="top">Signatur<br />
für das Forum </td>
<td class="Cnorm"><textarea name="sig" cols="40" rows="4">{sig}</textarea></td>
</tr><tr>
<td class="Cmite">{_lang_mail}</td>
<td class="Cnorm"><input type="text" maxlength="100" value="{email}" name="email"> <b>*Pflichtfeld</b></td>
</tr>{EXPLODE}<tr>
<td class="Cmite">{_lang_password}</td>
<td class="Cnorm"><input type="password" name="pass"><b> *</b> <font size="-2"> (Passwort wird generiert wenn leer gelassen)</font></td>
</tr>{EXPLODE}<tr class="Cdark">
<td></td>
<td><input type="submit" value="{_lang_register}"></td>
</tr>
</table>
</form>
{EXPLODE}<br><br><br><br>
<p align="center"><b><font size="5">{_lang_hello} {NAME}</font><br><br>
{_lang_yourregistrationwassuccessful}!<br>
{_lang_amailhasbeensenttoyouwithmailandpass}!<br>
{_lang_afteryoureceivedthemail} {_lang_login2}</b><br><br>
Bitte beachte unsere <a href="index.php?rules"target="_blank"><b>Regeln</b></a> und bearbeite Dein persönliches Profil.<br>Gib Deine Zugangsdaten niemals an dritte weiter.<br> Dein Passwort wird verschlüsselt in der Datenbank gespeichert.<br> Selbst ein Administrator hat darauf KEINEN Zugriff.</p><br><br><br><br><center>
Ich weiß wirklich nich mehr weiter