mir ist erst vor kurzem aufgefallen, dass ich schon länger einen Fehler auf meiner Hp habe.
Leider kann ich diesen Fehler nicht finden, und hoffe das ihr mir helfen könnt.
Hier der Fehler:
Warning: Cannot modify header information - headers already sent by (output started at C:\mein Link\include\contents\teams.php:1) in C:\mein Link\include\includes\class\design.php on line 23
<?php # Copyright by: Manuel # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); function show_members ($gid,$tpl) { global $allgAr; $q = "SELECT b.uid, a.avatar, a.status, a.name, c.name as posi, staat FROM prefix_groupusers b LEFT JOIN prefix_user a ON a.id = b.uid LEFT JOIN prefix_groupfuncs c ON b.fid = c.id WHERE b.gid = ".$gid." ORDER BY c.pos ASC, a.name ASC"; $erg = db_query($q); if (db_num_rows($erg) < 1) { return false; } $tpl->out(1); $class = 'Cnorm'; while($row = db_fetch_assoc($erg) ) { $class = ( $class == 'Cmite' ? 'Cnorm' : 'Cmite' ); $row['class'] = $class; if ( $row['staat'] != '' ) { $row['staat'] = '<img src="include/images/flags/'.$row['staat'].'" alt="" border="0" style="position:relative;">'; // style hinzugefügt } else { $row['staat'] = 'n/a'; } $row['status'] = ($row['status']? 'aktiv' : 'inaktiv' ); if($allgAr['teams_show_list']==1){ if(empty($row['avatar'])){ $row['avatar'] = 'n/a'; } else { list($w, $h, , ) = getimagesize($row['avatar']); ################################### $width = 130; // Hier Größe der Avatare eintragen, wie sie in der Team-Übersicht angezeigt werden sollen $height = 168; ################################### // Neue Bildgröße errechnen if ($h > $height) { $factor = $height / $h; $new_height = round($factor * $h); $new_width = round($factor * $w); } else { $new_width = $w; $new_height = $h; } if ($new_width > $width) { $factor = $width / $new_width; $new_height = round($factor * $new_height); $new_width = round($factor * $new_width); } $style_width = "width:".$new_width."px; "; $style_height = "height:".$new_height."px; "; // Padding errechnen -> $new_width == $width ? $padding_left = "padding-left:0px;" : $padding_left = "padding-left:".($width - $new_width) / 2 . "px; "; $new_height == $height ? $padding_top = "pading-top:0px;" : $rpadding_top = "padding-top:".($height - $new_height) / 2 . "px; "; $row['avatar'] = '<img src="'.$row['avatar'].'" style="'.$style_width.$style_height.$padding_left.$padding_top.'" alt="Avatar von '.$row['name'].'" border="0" >'; // errechnete Werte in style einsetzten } $tpl->set_ar_out($row,2); } else { $tpl->set_ar_out($row,3); } } $tpl->out(4); } if ($menu->get(1) == 'show') { $groups = array(); #collect given teams $i = 2; while($gid = escape($menu->get($i), 'integer')){ $groups[] = $gid; $i++; } #$gid = escape($menu->get(2), 'integer'); if(count($groups) == 1){ #only 1 group to show $gid=$groups[0]; $name = @db_result (db_query("SELECT name FROM prefix_groups WHERE id =".$gid)); $bild = @db_result (db_query("SELECT img FROM prefix_groups WHERE id =".$gid)); $title = $allgAr['title'].' :: Teams :: '.$name; $hmenu = '<a class="smalfont" href="?teams">Teams</a> » '.$name; $design = new design ( $title , $hmenu ); $design->header(); $tpl = new tpl ('teams'); if (!empty($bild) ) { $show = '<img src="'.$bild.'" title="'.$name.'" alt="'.$name.'" border="0"></a>'; } else { $show = '<b>'.$name.'</b>'; } $tpl->set_out('show', $show,0); show_members ($gid,$tpl); }else{ #more groups to show $title = $allgAr['title'].' :: Teams :: '; $hmenu = '<a class="smalfont" href="?teams">Teams</a>'; $design = new design ( $title , $hmenu ); $design->header(); $tpl = new tpl ('teams'); foreach($groups as $gid){ $sql = db_query("SELECT name, img FROM prefix_groups WHERE id =".$gid); if (db_num_rows($sql) < 1) { continue; } $row = db_fetch_assoc ($sql); if (!empty($row['img']) ) { $show = '<img src="'.$row['img'].'" title="'.$row['name'].'" alt="'.$row['name'].'" border="0"></a>'; } else { $show = '<b>'.$row['name'].'</b>'; } $tpl->set_out('show', $show,0); show_members ($gid,$tpl); } } } else { $title = $allgAr['title'].' :: Teams'; $hmenu = 'Teams'; $design = new design ( $title , $hmenu ); $design->header(); $tpl = new tpl ('teams'); $erg1 = db_query("SELECT name,img,id as gid FROM prefix_groups WHERE zeigen = 1 ORDER BY pos"); while ($row = db_fetch_assoc($erg1) ) { if (!empty($row['img']) ) { $row['show'] = '<a href="index.php?teams-show-'.$row['gid'].'"><img src="'.$row['img'].'" title="'.$row['name'].'" alt="'.$row['name'].'" border="0"></a>'; } else { $row['show'] = '<a href="index.php?teams-show-'.$row['gid'].'"><b>'.$row['name'].'</b></a>'; } $tpl->set_ar_out($row,0); if ($allgAr['teams_show_cat'] == 0) { show_members ($row['gid'],$tpl); } } } $design->footer(0); ?>
verwendete ilch Version: 1.1 O
betroffene Homepage: externer Link