$getstr));
$d->get_data_to_string();
$icecast_shitty_page = preg_replace('/<\?xml.*?\?>/', '', $d->get_data());
$doc = phpQuery::newDocument($icecast_shitty_page);
$list = $doc->find('table.servers-list')->find('tr');
$page_title = $doc->find('#content')->children('h2')->text();
logger::log("ICESCRAPER", "Page Title Is ".$page_title);
$count = 0;
directoryControlHeader('icecastlist', get_int_text('label_icecast'));
print '
';
foreach ($pager as $page) {
$link = pq($page)->children('a')->attr('href');
print '
'.pq($page)->children('a')->text().'
';
}
print '
';
} else {
print '';
print albumHeader(array(
'id' => 'icecastlist',
'Image' => 'newimages/icecast.svg',
'Searched' => 1,
'AlbumUri' => null,
'Year' => null,
'Artistname' => '',
'Albumname' => get_int_text('label_icecast'),
'why' => null,
'ImgKey' => 'none',
'class' => 'radio',
'expand' => true
));
print '';
print '
';
}
function munge_ice_text($text) {
$monkeyjesus = preg_replace('/(?