$proxy_host = $config->get("proxy.host"); $proxy_port = $config->get("proxy.port"); if ($proxy_host != undefined && $proxy_port != undefined) { $proxy_exclude = $config->get("proxy.exclude"); if ($proxy_exclude == "undefined") { $proxy_exclude = ""; } $proxy_user = $config->get("proxy.username"); if ($proxy_user == "undefined") { $proxy_user = ""; } $proxy_passwd = $config->get("proxy.password"); if ($proxy_passwd == "undefined") { $proxy_passwd = ""; } $ff->SetProxy($proxy_host, $proxy_port, $proxy_exclude, $proxy_user, $proxy_passwd); } $ff->Find($url, false, false, 60); $feeds = $ff->GetList(); if ($feeds != NULL) { $ret = "<br/><strong>Select RSS feeds you want to add (" . $ff->GetPageReadCount() . "found):</strong><br/><br/>"; $ret .= "<form id='scan-rss-dialog-rss-add'><table style='margin-left:auto; margin-right:auto; width:700px'>"; foreach ($feeds as $feed) { $count++; $title = trim($feed['title']); if ($title == "") { $title = $feed['url']; } $ret .= "<tr><td style='width:25px'><input type='checkbox' id='scan-rss-dialog-rss-add-val1' value='" . $feed['url'] . "' checked='checked'></td><td>" . $title . " <span style='font-size: 0.8em;'>(" . $feed['url'] . ")</span></td></tr>"; } $ret .= "</table>";