$ohne_uml = array("ae", "oe", "oe", "ue", "Ae", "Oe", "Ue", "ss", "'"); $aktuellertitel_g = str_replace($uml, $ohne_uml, $aktuellertitel); ///////////////////////////////////////////////////////////////////////////////////////// // JEDER ERSTE BUCHSTABE GROSS -- FALLs UNGEWÜNSCHT, DIE FOLGENDE ZEILE AUSKOMMENTIREN // ///////////////////////////////////////////////////////////////////////////////////////// $aktuellertitel_n = ucwords($aktuellertitel_g); echo "<br>"; echo " nach der ausbesserung: " . $aktuellertitel_n; echo "<br>"; /////////////////////// // MÖGLICHE AUSGABEN // /////////////////////// ?> <!--Stream Title: <?php echo $shoutcast->GetServerTitle(); ?> <br> Aktuelle Hörerzahl: <?php echo $shoutcast->GetCurrentListenersCount(); ?> <br> Maximale Hörerzahl: <?php echo $shoutcast->GetMaxListenersCount(); ?> <br> Hörer Peak: <?php echo $shoutcast->GetPeakListenersCount(); ?> <br> Genre: <?php
$found = 0; while ($List = mysqli_fetch_assoc($Query)) { if (preg_match('@' . $todayis . '@Ui', $List['activedays'])) { $timeslot = explode("-", $List["activetime"]); $start_time = explode(":", $timeslot[0]); $end_time = explode(":", $timeslot[1]); $start_timestamp = mktime($start_time[0], $start_time[1], 0); $end_timestamp = mktime((int) $end_time[0], (int) $end_time[1], 0); if (time() >= $start_timestamp && time() <= $end_timestamp) { $found = 1; echo "<tr><td class=header><b>" . $language['BL_DJ'] . ":</b></td><td class=lista> <a href=index.php?page=userdetails&id=" . $List["realid"] . "><b>" . unesc($List["prefixcolor"]) . $List["username"] . unesc($List["suffixcolor"]) . "</b></a></td></tr>"; } } } if ($found == 0) { $djname = mysqli_real_escape_string($DBDT, $shoutcast->GetServerTitle()); $petr1 = do_sqlquery("SELECT `u`.`id`, `ul`.`prefixcolor`, `ul`.`suffixcolor` FROM `{$TABLE_PREFIX}users` `u` LEFT JOIN `{$TABLE_PREFIX}users_level` `ul` ON `u`.`id_level`=`ul`.`id` WHERE `u`.`username`='" . $djname . "'"); if (@mysqli_num_rows($petr1) > 0) { $fied = mysqli_fetch_assoc($petr1); $djname = "<a href='index.php?page=userdetails&id=" . $fied["id"] . "'>" . unesc($fied["prefixcolor"] . $djname . $fied["suffixcolor"]) . "</a>"; } else { $djname = unesc($djname); } echo "<tr><td class=header><b>" . $language['BL_DJ'] . ":</b></td><td class=lista> <b>" . $djname . "</b></td></tr>"; } } else { $djname = mysqli_real_escape_string($DBDT, $shoutcast->GetServerTitle()); $petr1 = do_sqlquery("SELECT `u`.`id`, `ul`.`prefixcolor`, `ul`.`suffixcolor` FROM `{$TABLE_PREFIX}users` `u` LEFT JOIN `{$TABLE_PREFIX}users_level` `ul` ON `u`.`id_level`=`ul`.`id` WHERE `u`.`username`='" . $djname . "'"); if (@mysqli_num_rows($petr1) > 0) { $fied = mysqli_fetch_assoc($petr1); $djname = "<a href='index.php?page=userdetails&id=" . $fied["id"] . "'>" . unesc($fied["prefixcolor"] . $djname . $fied["suffixcolor"]) . "</a>";