Ich habe in problem mit meiner Seite.
Wenn ich meine Homepage öffne steht über den Header eine Fehlermeldung
unzwar die hier:
Warning: Call-time pass-by-reference has been deprecated in /var/www/web478/html/include/includes/func/forum.php on line 27
Warning: Call-time pass-by-reference has been deprecated in /var/www/web478/html/include/includes/func/forum.php on line 27
Hier ist meine forum.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | <?php # Copyright by Manuel Staechele # Support www.ilch.de defined ( 'main' ) or die ( 'no direct access' ); function getmods ( $fid ) { $erg = db_query( "SELECT b.id,b.name FROM prefix_forummods a LEFT JOIN prefix_user b ON b.id = a.uid WHERE a.fid = " . $fid ); if ( db_num_rows( $erg ) > 0 ) { $mods = '<br /><u>Moderators:</u> ' ; while ( $row = db_fetch_assoc( $erg ) ) { $mods .= '<a class="smalfont" href="index.php?user-details-' . $row [ 'id' ]. '">' . $row [ 'name' ]. '</a>, ' ; } $mods = substr ( $mods , 0 , -2 ); return ( $mods ); } else { return ( '' ); } } # forum oder topic las update zeit # id ( forum oder topic id ) # fid ( 0 is forum, > 0 is forum_id_vom_topic ) function icq_status( $icq ) { $fp = fsockopen ( "status.icq.com" , 80, & $errno , & $errstr , 1) or $online = "0" ; fputs ( $fp , "GET /online.gif?icq=$icq&img=5&online= HTTP/1.0\n\n" ); while (! feof ( $fp ) && ! $icq_finished ) { $line = fgets ( $fp ,128); if ( substr ( $line ,0,9) == 'Location:' ) { if ( substr ( $line ,13,11) == 'online1.gif' ) { $online = "1" ; $icq_finished = true;} elseif ( substr ( $line ,13,11) == 'online0.gif' ) { $online = "0" ; $icq_finished = true;} elseif ( substr ( $line ,13,11) == 'online2.gif' ) { $online = "2" ; $icq_finished = true;} } } fclose( $fp ); if ( $online == "1" ) { return "1" ; } elseif ( $online == "0" ) { return "0" ;; } elseif ( $online == "2" ) { return "2" ; } else { echo ( "da stimmt was nicht" ); } } function forum_get_ordner ( $ftime , $id , $fid =0 ) { if ( $ftime >= $_SESSION [ 'lastlogin' ] ) { if ( $fid == 0 ) { $anzOpenTopics = db_result(db_query( "SELECT COUNT(*) FROM prefix_topics LEFT JOIN prefix_posts ON prefix_posts.id = prefix_topics.last_post_id WHERE prefix_topics.fid = " . $id . " AND prefix_posts.time >= " . $_SESSION [ 'lastlogin' ] ),0); if ( (( $anzOpenTopics > 0 ) AND !isset( $_SESSION [ 'forumSEE' ][ $id ])) OR $anzOpenTopics > count ( $_SESSION [ 'forumSEE' ][ $id ]) OR max ( $_SESSION [ 'forumSEE' ][ $id ] ) <= ( $ftime - 4 ) ) { return ( 'nord' ); } else { return ( 'ord' ); } } else { if ( isset ( $_SESSION [ 'forumSEE' ][ $fid ][ $id ]) AND $ftime <= $_SESSION [ 'forumSEE' ][ $fid ][ $id ] ) { return ( 'ord' ); } else { return ( 'nord' ); } } } else { return ( 'ord' ); } } function check_for_pm_popup () { # opt_pm_popup if (1 == db_result(db_query( "SELECT COUNT(*) FROM prefix_user where id = " . $_SESSION [ 'authid' ]. " AND opt_pm_popup = 1" ),0,0) AND 1 <= db_result(db_query( "SELECT COUNT(*) FROM prefix_pm WHERE gelesen = 0 AND status < 1 AND eid = " . $_SESSION [ 'authid' ] ),0) ) { $x = <<< html <script language= "JavaScript" type= "text/javascript" ><!-- function closeNewPMdivID () { document.getElementById( "newPMdivID" ).style.display = "none" ; } //--></script> <div id= "newPMdivID" style= "position:absolute; top:200px; left:300px; display:inline; width:200px;" > <table width= "100%" class = "border" border= "0" cellspacing= "1" cellpadding= "4" > <tr> <td class = "Cdark" align= "left" > <a href= "javascript:closeNewPMdivID()" ><img style= "float:right; border: 0" src= "include/images/icons/del.gif" alt= "schliessen" title= "schliessen" ></a> <b>neue private Nachricht</b> bitte deinen <a href= "?forum-privmsg" >Posteingang</a> kontrolieren. Damit dieses Fenster dauerhaft verschwindet musst du alle neuen Nachrichten lesen, oder die Option in deinem <a href= "?user-profil" >Profil</a> abschalten. </td> </tr> </table> </div> html; return ( $x ); } } function forum_user_is_mod ( $fid ) { if (is_siteadmin()) { return (true); } if (1 == db_result(db_query( "SELECT COUNT(*) FROM prefix_forummods WHERE uid = " . $_SESSION [ 'authid' ]. " AND fid = " . $fid ),0)) { return (true); } return (false); } function check_forum_failure( $ar ) { if ( array_key_exists (0, $ar ) ) { $hmenu = '<a class="smalfont" href="?forum">Forum</a><b> » </b> Fehler aufgetreten' ; $title = 'Forum : Fehler aufgetreten' ; $design = new design ( $title , $hmenu ); $design ->header(); echo '<b>Es ist/sind folgende(r) Fehler aufgetreten</b><br />' ; foreach ( $ar as $v ) { echo $v . '<br />' ; } echo '<br /><a href="javascript:history.back(-1)">zurück</a>' ; $design ->footer(); exit (); } return (true); } ?> |