// fetch feed from source
if (!$feed_data) {
_debug("fetching [$fetch_url]...", $debug_enabled);
+
+ if (ini_get("open_basedir") && function_exists("curl_init")) {
+ _debug("not using CURL due to open_basedir restrictions");
+ }
+
_debug("If-Modified-Since: ".gmdate('D, d M Y H:i:s \G\M\T', $last_article_timestamp), $debug_enabled);
$feed_data = fetch_file_contents($fetch_url, false,
db_query("UPDATE ttrss_entries SET date_updated = NOW()
WHERE id = '$base_entry_id'");
- // if we allow duplicate posts, we have to continue to
- // create the user entries for this feed (if needed)
- if (get_pref("ALLOW_DUPLICATE_POSTS", $owner_uid, false)) {
-
- $query = "SELECT int_id FROM ttrss_user_entries WHERE
- ref_id = '$base_entry_id' AND owner_uid = '$owner_uid'
- AND (feed_id = '$feed' OR feed_id IS NULL) LIMIT 1";
-
- $result = db_query($query);
-
- if (db_num_rows($result) == 0) {
- _debug("allow duplicate posts is enabled and user record is not found, continuing.");
- } else {
- continue;
- }
-
- } else {
- continue;
- }
+ continue;
}
_debug("hash differs, applying plugin filters:", $debug_enabled);
// check for user post link to main table
- // do we allow duplicate posts with same GUID in different feeds?
- if (get_pref("ALLOW_DUPLICATE_POSTS", $owner_uid, false)) {
- $dupcheck_qpart = "AND (feed_id = '$feed' OR feed_id IS NULL)";
- } else {
- $dupcheck_qpart = "";
- }
-
$query = "SELECT ref_id, int_id FROM ttrss_user_entries WHERE
- ref_id = '$ref_id' AND owner_uid = '$owner_uid'
- $dupcheck_qpart";
+ ref_id = '$ref_id' AND owner_uid = '$owner_uid'";
// if ($_REQUEST["xdebug"]) print "$query\n";