Habe durch einen blöden Fehler ( Daten hochladen ) jetzt bei der Anzeige Meine Beiträge und Neue Beiträge dieses stehen ({MYPOSTS})
Siehe Bild
Wie bekomme ich den Fehler wieder weg ?
ich denke der Fehler könnte in der cfx-35-login liegen ?
Hier mal der Code
<?php # Copyright by: Manuel Staechele # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); $tpl = new tpl ( 'user/cfx-35-boxen_login.htm' ); if ( loggedin() ) { if ( user_has_admin_right($menu,false) ) { $tpl->set ( 'ADMIN', ' | <a class="login" href="admin.php?admin">'.$lang['adminarea'].'</a>' ); } else { $tpl->set ( 'ADMIN', '' ); } $posts = db_query('SELECT posts from `prefix_user` WHERE id= "' . $_SESSION['authid'].'"' ); if($posts = mysql_fetch_row($posts)) $posts = $posts[0]; else $posts = 0; $galerie = db_query('SELECT count(id) from `prefix_usergallery` WHERE uid= "' . $_SESSION['authid'].'"' ); if($galerie = mysql_fetch_row($galerie)) $galerie = $galerie[0]; else $galerie = 0; $q = "SELECT COUNT(DISTINCT a.id) FROM prefix_topics a LEFT JOIN prefix_forums b ON b.id = a.fid LEFT JOIN prefix_posts c ON c.tid = a.id LEFT JOIN prefix_user d ON c.erstid = d.id LEFT JOIN prefix_groupusers vg ON vg.uid = ".$_SESSION['authid']." AND vg.gid = b.view LEFT JOIN prefix_groupusers rg ON rg.uid = ".$_SESSION['authid']." AND rg.gid = b.reply LEFT JOIN prefix_groupusers sg ON sg.uid = ".$_SESSION['authid']." AND sg.gid = b.start WHERE (((b.view >= ".$_SESSION['authright']." AND b.view <= 0) OR (b.reply >= ".$_SESSION['authright']." AND b.reply <= 0) OR (b.start >= ".$_SESSION['authright']." AND b.start <= 0)) OR (vg.fid IS NOT NULL OR rg.fid IS NOT NULL OR sg.fid IS NOT NULL OR ".$_SESSION['authright']." = -9)) AND c.time >= ". (time() - (3600 * 24 * 360)) ." AND c.time >= {$_SESSION['lastlogin']} ORDER BY c.time DESC"; $lpost = db_query($q); if($lpost = mysql_fetch_row($lpost)) $lpost = $lpost[0]; else $lpost = 0; 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="login" href="index.php?forum-privmsg">'.$lang['messages'].'</a> <span class="loginz">('.$check_pm.')</span>'; } else { $nachrichten_link = ''; } $tpl->set ( 'UGALLERY', '<a class="login" href="index.php?user-usergallery-'.$_SESSION['authid'].'">My Gallery</a> <span class="loginz">('.$galerie.')</span>'); $tpl->set ( 'PROFILANSICHT', '<a class="login" href="index.php?user-details-'.$_SESSION['authid'].'">ansehen</a> '); $tpl->set ( 'SID' , session_id() ); $tpl->set ( 'NACHRICHTEN' , $nachrichten_link ); $tpl->set ( 'NAME', $_SESSION['authname'] ); $tpl->set('POSTS', $posts); $tpl->set('LPOSTS', $lpost); $tpl->set ( 'POPUP', check_for_pm_popup() ); $tpl->out (0); } else { if (empty($_POST['login_name'])) { $_POST['login_name'] = 'Benutzername'; } if (empty($_POST['login_pw'])) { $_POST['login_pw'] = 'ההההההההההה'; } $regist = ''; if ( $allgAr['forum_regist'] == 1 ) { $regist = '<a class="login" href="index.php?user-regist"><img src="include/designs/CFX_free_35_blau/Bilder/login/login-regist.png" onmouseover="this.src=\'include/designs/CFX_free_35_blau/Bilder/login/login-regist_h.png\'" onmouseout="this.src=\'include/designs/CFX_free_35_blau/Bilder/login/login-regist.png\'" width="132" height="42" border="0"></a>'; } if($ip['try'] >= 5){$loginbutton = 'Login Closed';} else{$loginbutton = '<input type="submit" name="user_login_sub" value="Login"/>';} $tpl->set_ar_out ( array ( 'LOGINBUTTON' => $loginbutton,'regist' => $regist, 'wdlink' => '?'.$allgAr['smodul'], 'PASS' => $_POST['login_pw'], 'NAME' => $_POST['login_name'] ) , 1 ); } unset($tpl); ?>
verwendete ilch Version: 1.1 P
betroffene Homepage: freiezocker.de/