Hallo,
Gibt es evtl ein Radiomodul für 1.1 P? Falls ja wo finde ich es?
Falls es nicht gibt, kann es mir einer evtl anpassen?
Danke im Voraus!
verwendete ilch Version: 1.1 P
betroffene Homepage: externer Link
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
| Geschlossen | ||



1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=InnoDB' at line 4 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=InnoDB' at line 8 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 4 1146: Table 'radio.ic1_radio_settings' doesn't exist 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 10


MySQL Error:
1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=InnoDB' at line 4
in Query:
CREATE TABLE `ic1_radio_djs` ( `userid` int(10) NOT NULL, PRIMARY KEY (`userid`) ) TYPE=InnoDB
Debug backtrace:
@ mysql.php:46 -- debug_bt()
@ mysql.php:64 -- db_check_error(...)
@ installation.php:82 -- db_query(...)
@ index.php:18 -- require_once(...)
MySQL Error:
1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=InnoDB' at line 8
in Query:
CREATE TABLE IF NOT EXISTS `ic1_radio_sendeplan` ( `id` int(11) NOT NULL AUTO_INCREMENT, `date` date NOT NULL DEFAULT '0000-00-00', `time` varchar(20) NOT NULL, `dj_id` int(10) NOT NULL, `content` text NOT NULL, PRIMARY KEY (`id`) ) TYPE=InnoDB
Debug backtrace:
@ mysql.php:46 -- debug_bt()
@ mysql.php:64 -- db_check_error(...)
@ installation.php:82 -- db_query(...)
@ index.php:18 -- require_once(...)
MySQL Error:
1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 4
in Query:
CREATE TABLE`ic1_radio_settings` ( `auswahl` char(50) DEFAULT NULL, `einstellung` varchar(50) DEFAULT NULL ) TYPE=MyISAM
Debug backtrace:
@ mysql.php:46 -- debug_bt()
@ mysql.php:64 -- db_check_error(...)
@ installation.php:82 -- db_query(...)
@ index.php:18 -- require_once(...)
MySQL Error:
1146 : Table 'radio.ic1_radio_settings' doesn't exist
in Query:
INSERT INTO `ic1_radio_settings` (`auswahl`, `einstellung`) VALUES ('sendeplanlink', 'Ja'), ('wunschip', 'Ja'), ('showpeak', 'Ja'), ('showlistener', 'Ja'), ('showbitrate', 'Ja'), ('showsong', 'Ja'), ('hostip', '87.118.124.28'), ('hostport', '8000'), ('showgrusscount', 'Ja'), ('grusscontentlink', 'Ja'), ('phpverbindung', 'Fopen'), ('confpath', 'include/admin/config_404.txt'), ('tunewinamp', 'http///radio.uodaw.de/listen.pls'), ('tunereal', 'http://radio.uodaw.de/wm/8000.ram'), ('tunewindoof', 'http://radio.uodaw.de/wm/8000.asx')
Debug backtrace:
@ mysql.php:46 -- debug_bt()
@ mysql.php:64 -- db_check_error(...)
@ installation.php:82 -- db_query(...)
@ index.php:18 -- require_once(...)
MySQL Error:
1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 10
in Query:
CREATE TABLE IF NOT EXISTS `ic1_radio_wunsch` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uid` varchar(50) NOT NULL, `wunsch` varchar(100) NOT NULL, `gruss` varchar(250) NOT NULL, `created` int(20) NOT NULL, `ip` varchar(20) NOT NULL DEFAULT '0.0.0.0', PRIMARY KEY (`id`), KEY `id` (`id`) ) TYPE=MyISAM
Debug backtrace:
@ mysql.php:46 -- debug_bt()
@ mysql.php:64 -- db_check_error(...)
@ installation.php:82 -- db_query(...)
@ index.php:18 -- require_once(...)






Fatal error: Call-time pass-by-reference has been removed in /var/www/include/includes/class/scRadioModul.php on line 26



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

$connect = @fsockopen($ip, $port, &$errno, &$errstr, 1);
$connect = @fsockopen($ip, $port, $errno, $errstr, 1);







<?php
# Copyright by Manuel
# Support www.ilch.de
defined ('main') or die ( 'no direct access' );
$count_query_xyzXYZ = 0;
function db_connect () {
if (defined('CONN')) {
return;
}
define ( 'CONN', @mysql_pconnect(DBHOST, DBUSER, DBPASS));
$db = @mysql_select_db(DBDATE, CONN);
if (!CONN) {
die('Verbindung nicht möglich, bitte prüfen Sie ihre mySQL Daten wie Passwort, Username und Host<br />');
}
if ( !$db ) {
die ('Kann Datenbank "'.DBDATE.'" nicht benutzen : ' . mysql_error(CONN));
}
if (function_exists('mysql_set_charset') and version_compare(mysql_get_server_info(CONN), '5.0.7') !== -1) {
//Für ältere Installation die init.php nachladen
if (!defined('ILCH_DB_CHARSET') && file_exists('include/includes/init.php')) {
require_once 'include/includes/init.php';
}
mysql_set_charset(ILCH_DB_CHARSET, CONN);
}
$timeZoneSetted = false;
if (function_exists('date_default_timezone_get')) {
$timeZoneSetted = mysql_query('SET time_zone = "' . date_default_timezone_get() . '"');
}
if (!$timeZoneSetted && version_compare(PHP_VERSION, '5.1.3')) {
$timeZoneSetted = mysql_query('SET time_zone = "' . date('P') . '"');
}
}
function db_close () {
mysql_close ( CONN );
}
function db_check_error (&$r, $q) {
if (!$r AND mysql_errno(CONN) <> 0 AND function_exists('is_coadmin') AND is_coadmin()) {
// var_export (debug_backtrace(), true)
}
return ($r);
}
function db_query ($q) {
global $count_query_xyzXYZ;
$count_query_xyzXYZ++;
if (preg_match ("/^UPDATE `?prefix_\S+`?\s+SET/is", $q)) {
$q = preg_replace("/^UPDATE `?prefix_(\S+?)`?([\s\.,]|$)/i","UPDATE `".DBPREF."\\1`\\2", $q);
} elseif (preg_match ("/^INSERT INTO `?prefix_\S+`?\s+[a-z0-9\s,\)\(]*?VALUES/is", $q)) {
$q = preg_replace("/^INSERT INTO `?prefix_(\S+?)`?([\s\.,]|$)/i", "INSERT INTO `".DBPREF."\\1`\\2", $q);
} else {
$q = preg_replace("/prefix_(\S+?)([\s\.,]|$)/", DBPREF."\\1\\2", $q);
}
return (db_check_error(@mysql_query($q, CONN), $q));
}
function db_result ($erg, $zeile=0, $spalte=0) {
}
function db_fetch_assoc ($erg) {
return (mysql_fetch_assoc($erg));
}
function db_fetch_row ($erg) {
return (mysql_fetch_row($erg));
}
function db_fetch_object ($erg) {
return (mysql_fetch_object($erg));
}
function db_num_rows ($erg) {
return (mysql_num_rows ($erg));
}
function db_last_id () {
return ( mysql_insert_id (CONN));
}
function db_count_query ( $query ) {
return (db_result(db_query($query),0));
}
function db_list_tables ( $db ) {
return (mysql_list_tables ($db, CONN));
}
function db_tablename ($db, $i) {
return (mysql_tablename ($db, $i));
}
function db_check_erg ($erg) {
if ($erg == false OR @db_num_rows($erg) == 0) {
exit ('Es ist ein Fehler aufgetreten');
}
}
function db_make_sites ($page ,$where ,$limit ,$link ,$table, $anzahl = NULL) {
$hvmax = 4; // hinten und vorne links nach page
$maxpage = ''; if ( empty ($MPL) ) { $MPL = ''; }
if ( is_null ( $anzahl ) ) {
$resultID = db_query ( "SELECT COUNT(*) FROM prefix_".$table." ".$where );
$total = db_result($resultID,0);
} else {
$total = $anzahl;
}
if ($limit < $total) {
$maxpage = $total / $limit;
if (is_double($maxpage)) {
$maxpage = ceil($maxpage);
}
$ibegin = $page - $hvmax;
$iende = $page + $hvmax ;
$vgl1 = $iende + $ibegin;
$vgl2 = ($hvmax * 2) + 1;
if ( $vgl1 <= $vgl2 ) {
$iende = $vgl2;
}
$vgl3 = $maxpage - ($vgl2 -1);
if ($vgl3 < $ibegin ) {
$ibegin = $vgl3;
}
if ($ibegin < 1) {
$ibegin = 1;
}
if ($iende > $maxpage) {
$iende = $maxpage;
}
$vMPL = '';
if ($ibegin > 1) {
$vMPL = '<a href="'.$link.'-p1">«</a> ';
}
$MPL = $vMPL.'[ ';
for($i=$ibegin; $i <= $iende; $i++) {
if($i == $page) {
$MPL .= $i;
} else {
$MPL .= '<a href="'.$link.'-p'.$i.'">'.$i.'</a>';
}
if ($i != $iende) {
$MPL .= ' | ';
}
}
$MPL .= ' ]';
if ($iende < $maxpage) {
$MPL .= ' <a href="'.$link.'-p'.$maxpage.'">»</a>';
}
}
return $MPL;
}
?>

| Geschlossen | ||
![]() |
Zurück zu Module und Modifikationen | |