ich habe da ein Request Problem in der admin/history.php, das ich nicht in den Griff bekomme.
Nach dem ein Eintrag editiert wurde, und via Klick auf Absenden in die DB eingetragen wurde, erhalte ich immer dieses Bild oben.
Vielleicht kann mir hier einer weiterhelfen, wie ich die geschweiften Klammern rausbringe.
<?php # Copyright by: Manuel # Support: www.ilch.de # modded by MagistYata V 1.02 defined ('main') or die ( 'no direct access' ); defined ('admin') or die ( 'only admin access' ); $design = new design ( 'Admins Area', 'Admins Area', 2 ); $design->header(); $tpl = new tpl ( 'history', 1); # delete if ( !empty ( $_GET['delete'] ) ) { db_query("DELETE FROM prefix_history WHERE id = '".$_GET['delete']."'"); } if (isset($_REQUEST['pkey'])) { $_REQUEST['pkey'] = escape($_REQUEST['pkey'], 'integer'); } if ( !empty($_POST['sub']) ) { list ( $d,$m,$y ) = explode('.',$_POST['date']); if ( @checkdate ( $m, $d, $y ) ) { $date = $y.'-'.$m.'-'.$d; $hispic= escape($_POST['hispic'],'string'); $txt = escape($_POST['txt'],'textarea'); if ( !empty($_POST['newtitle']) ) { $_POST['title'] = $_POST['newtitle']; } $_POST['title'] = escape($_POST['title'], 'string'); if ( empty ($_POST['pkey']) ) { db_query("INSERT INTO prefix_history (date,title,hispic,txt) VALUES ('".$date."','" . $_POST['title'] . "','".$hispic."','".$txt."')"); } else { db_query("UPDATE prefix_history SET date = '".$date."', title ='" . $_POST['title'] . "', hispic = '".$hispic."', txt = '".$txt."' WHERE id = '".$_REQUEST['pkey']."'"); } } else { echo 'Das Datum hat ein falsches Format. Bitte im Format DD.MM.YYYY eingeben also z.B. 29.12.2011<br />'; } } if ( !empty ($_REQUEST['pkey']) ) { $erg = db_query("SELECT id,DATE_FORMAT(date,'%d.%m.%Y') as date,title, hispic, txt FROM prefix_history WHERE id = '".$_GET['pkey']."'"); $_ilch = db_fetch_assoc($erg); $_ilch['pkey'] = $_REQUEST['pkey']; } else { $_ilch = array ('pkey'=>'','date'=>date('d.m.Y'),'title'=>'','hispic'=>'','txt'=>''); } $_ilch['title'] = dblistee ( $_ilch['title'], "SELECT DISTINCT `title`,`title` FROM prefix_history ORDER BY `id`desc " ); $tpl->set_ar_out($_ilch,0); if(empty($_GET['page'])) { $_GET['page'] = 1; } $limit = 10; $class = ''; $page = ($menu->getA(1) == 'p' ? $menu->getE(1) : 1); $anfang = ($page - 1) * $limit; $MPL = db_make_sites ($page , '' , $limit , "?history" , 'history'); $abf = "SELECT id, DATE_FORMAT(date,'%Y.%m.%d') as date,title FROM prefix_history ORDER BY date desc LIMIT ".$anfang.",".$limit; $erg = db_query($abf); while ($row = db_fetch_assoc($erg) ) { $class = ($class == 'Cmite' ? 'Cnorm' : 'Cmite' ); $row['class'] = $class; $tpl->set_ar ( $row ); $tpl->out(1); } $tpl->set ( 'MPL', $MPL ); $tpl->out(2); $design->footer(); ?>