Пример #1
0
    }
} else {
    echo "was nun ?!";
}
?>

<?php 
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
// SONG-HISTORY -- DIE MENGE DER ANGEZEIGTEN TITEL KANN NUR IN DER CONFIG DES SERVERS SELBER GEÄNDERT WERDEN! //
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
?>

<br><br>
Song History:<br>
<?php 
$history = $shoutcast->GetSongHistory();
if (is_array($history)) {
    //////////////////////////////////////////
    // UMWANDLUNG VON FEHLERHAFTEN UMLAUTEN //
    //////////////////////////////////////////
    for ($i = 0; $i < sizeof($history); $i++) {
        $uml = array("ä", "ö", "ü", "Ä", "Ö", "Ü", "ß", "´");
        $ohne_uml = array("ae", "oe", "ue", "Ae", "Oe", "Ue", "ss", "'");
        $history[$i]["title"] = str_replace($uml, $ohne_uml, $history[$i]["title"]);
        /////////////////////////////////////////////////////////////////////////////////////////
        // JEDER ERSTE BUCHSTABE GROSS -- FALLs UNGEWÜNSCHT, DIE FOLGENDE ZEILE AUSKOMMENTIREN //
        /////////////////////////////////////////////////////////////////////////////////////////
        $history[$i]["title"] = ucwords($history[$i]["title"]);
        echo "<font class='historyfont'>", $history[$i]["title"] = ucwords(strtolower($history[$i]["title"])) . "</font><br>\n";
    }
} else {