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
<?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


