hier der ganze code vom profil_edit.php, hab die profil_edit.html richtig angepasst;)
<?php # Copyright by: Manuel # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); $title = $allgAr['title'].' :: Users :: Profil'; $hmenu = '<a class="smalfont" href="?m=user">Users</a><b> » </b> Profil'; $design = new design ( $title , $hmenu ); if ( $_SESSION['authright'] <= -1 ) { if ( empty ($_POST['submit']) ) { $design->header(); $abf = 'SELECT email FROM `prefix_user` WHERE id = "'.$_SESSION['authid'].'"'; $erg = db_query($abf); if ( db_num_rows($erg) > 0 ) { $row = db_fetch_assoc($erg); $avatar = ''; $avatar_exists = @db_result(db_query("SELECT val FROM prefix_userfields WHERE fid = 6 AND uid = ".$_GET['uid']),0); if ( $avatar_exists != '' ) { $avatar = '<img src="'.$avatar_exists.'" border="0">'; } $ar = array ( 'EMAIL' => $row['email'], 'Avatar' => $avatar, ); $tpl = new tpl ('forum/user/profil_edit'); $tpl->set_ar_out($ar,0); profilefields ( 'change' , $_SESSION['authid'] ); $tpl->out(1); } else { $tpl = new tpl ( 'forum/user/login.htm' ); $tpl->set_out('WDLINK','index.php',0); } } else { # submit # change poassword if ( !empty($_POST['np1']) AND !empty($_POST['np2']) AND !empty($_POST['op'])) { if ($_POST['np1'] == $_POST['np2']) { $akpw = db_result(db_query("SELECT pass FROM prefix_user WHERE id = ".$_SESSION['authid']),0); if ($akpw == md5($_POST['op'])) { $newpw = md5($_POST['np1']); db_query("UPDATE prefix_user SET pass = '".$newpw."' WHERE id = ".$_SESSION['authid']); $coki1 = 'ic_'.DBPREF.'1'; $coki2 = 'ic_'.DBPREF.'2'; setcookie($coki1, $_SESSION['authid'], time() + 31104000, "/"); setcookie($coki2, $newpw, time() + 31104000, "/"); $fmsg = 'Das Password wurde erfolgreich geändert'; } else { $fmsg = 'Das Alte Password Stimmt leider nicht!'; } } else { $fmsg = 'Die beiden neuen Passwörter müssen übereinstimmen'; } } # change other profil fields profilefields ( 'save', $_SESSION['authid'] ); $design->header(); # definie and print msg $fmsg = ( isset($fmsg) ? $fmsg : 'Erfolgreich geändert' ); wd('?m=user&um=8' , $fmsg , 3 ); } } else { echo '<br>Meiner Meinung nach bist du ein Gast! (Gäste haben kein Profil)'; $tpl = new tpl ( 'forum/user/login' ); $tpl->set_out('WDLINK', '?m=user&um=8', 0); } $design->footer(); ?>
Mfg Nero