ich habe ein kleines Problem mit der Anzeige der Onairbox.
Die Onairbox zeigt Umlaute nicht richtig an.
Wenn ich in der Design.php von ISO auf UTF-8 umstelle funktioniert es.
Das habe ich natürlich nur gemacht um zu testen ob es daran liegt.
Wie ich festgestellt hatte war es das Problem.
Könnt ihr mir sagen wie ich die PHP ändern muss damit es mit ISO-8859-1 funktioniert und richtig angezeigt wird?
Lg
<?php ##################################################### # RadioModul by DjGeCk0 # http://gecko.ilch.de # On Air - Box # Support: http://www.ilch.de/forum-showposts-37650.html ###################################################### defined ('main') or die ( 'no direct access' ); require_once('./include/includes/class/scRadioModul.php'); $stream = new scRadioModul(); $ip = @db_result(db_query("SELECT `einstellung` FROM `prefix_radio_settings` WHERE `auswahl` = 'hostip'")); $port = @db_result(db_query("SELECT `einstellung` FROM `prefix_radio_settings` WHERE `auswahl` = 'hostport'")); $status = $stream->isOnline($ip, $port, $stream->getPassword()) && $stream->getStatus() ? true : false; //if ($status) //{ $dj = $stream->getAIM(); echo '<strong>LIVE On Air:</strong><br />'; $djname = @db_result(db_query("SELECT `avatar` FROM `prefix_user` WHERE `name` = '$dj'")); if ($dj=="N/A"){ echo '<div align="center" style="margin-top:4px;color:#FF0000;font-style:italic;">AutoDJ<br />';} else{ echo '<div align="center" style="margin-top:4px;color:#FF0000;font-style:italic;">'.$dj.'<br />';} if ($dj=="N/A"){ echo '<br /><img src="./include/images/nopic.png" title="Playlist" alt="IMAGE" width="80px" heigth="120px" /></div><br />'; } elseif (!$djname){ echo '<br /><img src="./include/images/autodj.png" title="Playlist" alt="IMAGE" width="80px" heigth="120px"/></div><br />';} else{ echo '<br /><img src="'.$djname.'" title="Playlist" alt="IMAGE" width="80px" heigth="120px" /></div><br />';} $show = $stream->getIRC(); if (empty($show)) $show = @db_result(db_query("SELECT `sendung` FROM `prefix_radio_onair` WHERE `id` = '1' LIMIT 1")); if (!empty($show)) { echo '<strong>mit der Show:</strong><br />'; if ($dj=="N/A"){ echo '<div align="center" style="margin-top:4px;color:#FF0000;font-style:italic;">AutoDJ || Querbeet</div>'; } else{ echo '<div align="center" style="margin-top:4px;color:#FF0000;font-style:italic;">'.output($show).'</div>';} } $title = trim($stream->getTitle()); if (!empty($title)) { echo '<strong>und dem Song:</strong><br />'; echo '<div align="center" style="margin-top:4px;color:#FF0000;font-style:italic;"><marquee scrollamount="1" scrolldelay="1" direction="left">'.output($title).'</marquee></div>'; } if (@db_result(db_query("SELECT `einstellung` FROM `prefix_radio_settings` WHERE `auswahl` = 'showlistener'")) == "Ja") { echo '<br /><strong>Zuhörer:</strong> <font style="color:#FF0000;font-style:italic">'.$stream->getListeners().'</font>'; } //} //else // echo '<div align="center" style="color:#FF0000;font-weight:bold;">Zur Zeit ist das Radio offline.<br /><img src="include/images/radio/offline.png" title="Zur Zeit offline!" alt="OFFLINE_IMAGE" /></div>'; if (@db_result(db_query("SELECT `einstellung` FROM `prefix_radio_settings` WHERE `auswahl` = 'sendeplanlink'")) == 'Ja') echo '<hr /><div align="center"><a href="index.php?sendeplan" title="Sendeplan">Zum Sendeplan</a></div>'; function output($text) { return preg_replace( '/([^\s]{10})(?=[^\s])/', "$1-\n", $text); } ?>
verwendete ilchClan Version: 1.1 O
Zuletzt modifiziert von STRUWA am 03.07.2013 - 03:38:30