seit dem Serverumzug habe ich Probleme mit meiner Homepage.
Unter dem Strich habe ich alles beheben können, jedoch bleibt ein Fehler erhalten den ich nicht weg bekomme.
(Radiomodul)
Fatal error: Call-time pass-by-reference has been removed in /var/www/vhosts/.../include/includes/class/scRadioModul.php on line 26
Hat einer eine Idee wie ich das beheben kann?
Ich persönlich glaube das es an der PHP-Umstellung liegt.
LG
verwendete ilch Version: 1.1 O
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 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | <?php defined ( 'main' ) or die ( 'no direct access' ); class scRadioModul { var $error ; var $datas ; function getPassword() { $ar = explode ( "\n" , file_get_contents (@db_result(db_query( "SELECT `einstellung` FROM `prefix_radio_settings` WHERE `auswahl` = 'confpath'" )))); foreach ( $ar as $line ) { $line = trim( $line ); if (! empty ( $line ) && ! strstr ( $line , "AdminPassword" ) && strstr ( $line , "Password=" )) { return substr ( $line , 9); } } } function isOnline( $ip , $port , $pass ) { $connect = @ fsockopen ( $ip , $port , & $errno , & $errstr , 1); if ( $connect ) { stream_set_timeout( $connect , 2); fputs ( $connect , "GET /admin.cgi?pass=$pass&mode=viewxml HTTP/1.1\r\n" ); fputs ( $connect , "User-Agent: Mozilla\r\n\r\n" ); while (! feof ( $connect )) { $this ->datas .= fgets ( $connect , 512); } fclose( $connect ); if ( stristr ( $this ->datas, "HTTP/1.0 200 OK" )) { $this ->datas = trim( substr ( $this ->datas, 42)); } else { $this ->error = "<fieldset>Error:<br />Wrong Login Information</fieldset>" ; return false; } $output = xml_parser_create(); if (!xml_parse_into_struct( $output , $this ->datas, $this ->values, $this ->indexes)) { $this ->error = "<fieldset>Error:<br />XML File is interrupted</fieldset>" ; return false; } xml_parser_free( $output ); return true; } else { $this ->error = '<fieldset>Error Nr ' . $errno . ':<br />' . $errstr . '</fieldset>' ; return false; } } function getListeners() { return (@ $this ->values[ $this ->indexes[ "CURRENTLISTENERS" ][0]][ "value" ]); } function getPeakListeners() { return (@ $this ->values[ $this ->indexes[ "PEAKLISTENERS" ][0]][ "value" ]); } function getMaxListeners() { return (@ $this ->values[ $this ->indexes[ "MAXLISTENERS" ][0]][ "value" ]); } function getGenre() { return (@ $this ->values[ $this ->indexes[ "SERVERGENRE" ][0]][ "value" ]); } function getServerLink() { return (@ $this ->values[ $this ->indexes[ "SERVERURL" ][0]][ "value" ]); } function getServerName() { return (@ $this ->values[ $this ->indexes[ "SERVERTITLE" ][0]][ "value" ]); } function getTitle() { return (@ $this ->values[ $this ->indexes[ "SONGTITLE" ][0]][ "value" ]); } function getIRC() { return (@ $this ->values[ $this ->indexes[ "IRC" ][0]][ "value" ]); } function getAIM() { return (@ $this ->values[ $this ->indexes[ "AIM" ][0]][ "value" ]); } function getICQ() { return (@ $this ->values[ $this ->indexes[ "ICQ" ][0]][ "value" ]); } function getStatus() { return (@ $this ->values[ $this ->indexes[ "STREAMSTATUS" ][0]][ "value" ]); } function getBitRate() { return (@ $this ->values[ $this ->indexes[ "BITRATE" ][0]][ "value" ]); } function getSongHistory() { for ( $i =1; $i <sizeof( $this ->indexes[ 'TITLE' ]); $i ++) { $temparray [ $i -1] = array ( "playedat" => $this ->values[ $this ->indexes[ 'PLAYEDAT' ][ $i ]][ 'value' ], "title" => $this ->values[ $this ->indexes[ 'TITLE' ][ $i ]][ 'value' ] ); } return @ $temparray ; } function getLastError() { return $this ->error; } } function getCopyright( $box = false) { $copyright = '<div align="center" style="font-size:8px;">Radiomodul © by<br /><a href="http://djgecko.kilu.de" target="_blank">GeCk0</a> & <a href="http://www.3st-live.de/" target="_blank">Ithron</a>' ; if (! $box ) $copyright .= '<br /><a href="http://www.ilch.de/forum-showposts-37650.html" target="_blank">Support</a> - <a href="http://djgecko.kilu.de/index.php?articles-show-A1" target="_blank">Doku</a>' ; $copyright .= '</div>' ; return $copyright ; } function isPremium( $host , $key ) # gibt bei Erfolg '1' und bei Misserfolg '0' zurück { $getpremium = '' ; # Hierzu wird noch eine Abfrage erstellt -> BETA -> DB STRUKTUR FEHLT NOCH if (isset( $getpremium )) { $ispremium = '1' ; } else { $ispremium = '0' ; } return $ispremium ; } ?> |
Zuletzt modifiziert von STRUWA am 22.03.2014 - 16:32:53