%s.", $feed_url));
break;
case 1:
print_notice(T_sprintf("Subscribed to %s.", $feed_url));
break;
case 2:
print_error(T_sprintf("Could not subscribe to %s.", $feed_url));
break;
case 3:
print_error(T_sprintf("No feeds found in %s.", $feed_url));
break;
case 4:
$feed_urls = $rc["feeds"];
break;
case 5:
print_error(T_sprintf("Could not subscribe to %s.
Can't download the Feed URL.", $feed_url));
break;
}
if ($feed_urls) {
print "";
}
$tp_uri = get_self_url_prefix() . "/prefs.php";
if ($rc['code'] <= 2){
$sth = $this->pdo->prepare("SELECT id FROM ttrss_feeds WHERE
feed_url = ? AND owner_uid = ?");
$sth->execute([$feed_url, $_SESSION['uid']]);
$row = $sth->fetch();
$feed_id = $row["id"];
} else {
$feed_id = 0;
}
if ($feed_id) {
print "";
}
}
print "