summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-09-17 19:02:27 +0300
committerAndrew Dolgov <[email protected]>2020-09-17 19:02:27 +0300
commita4525d31b2536bc8ad9da013f4ed5168fac87d0a (patch)
tree9ae00d19d362a74693800b45efbbf6ffaddcdbb9 /plugins
parent57fac845166a2efa7244c61cce31442fc5600232 (diff)
replace FALSE with false so that static analyzer shuts up about it
Diffstat (limited to 'plugins')
-rw-r--r--plugins/af_comics/filters/af_comics_cad.php4
-rw-r--r--plugins/af_comics/filters/af_comics_comicclass.php2
-rwxr-xr-xplugins/af_comics/filters/af_comics_comicpress.php14
-rw-r--r--plugins/af_comics/filters/af_comics_darklegacy.php2
-rw-r--r--plugins/af_comics/filters/af_comics_dilbert.php4
-rw-r--r--plugins/af_comics/filters/af_comics_explosm.php2
-rw-r--r--plugins/af_comics/filters/af_comics_pa.php4
-rw-r--r--plugins/af_comics/filters/af_comics_pvp.php2
-rw-r--r--plugins/af_comics/filters/af_comics_tfd.php4
-rw-r--r--plugins/af_comics/filters/af_comics_twp.php2
-rw-r--r--plugins/af_comics/filters/af_comics_whomp.php2
-rwxr-xr-xplugins/af_comics/init.php2
-rw-r--r--plugins/af_psql_trgm/init.php8
-rwxr-xr-xplugins/af_readability/init.php8
-rwxr-xr-xplugins/af_redditimgur/init.php16
-rwxr-xr-xplugins/af_unburn/init.php8
16 files changed, 42 insertions, 42 deletions
diff --git a/plugins/af_comics/filters/af_comics_cad.php b/plugins/af_comics/filters/af_comics_cad.php
index d2eb38caf..cbd9ae3fb 100644
--- a/plugins/af_comics/filters/af_comics_cad.php
+++ b/plugins/af_comics/filters/af_comics_cad.php
@@ -6,8 +6,8 @@ class Af_Comics_Cad extends Af_ComicFilter {
}
function process(&$article) {
- if (strpos($article["link"], "cad-comic.com") !== FALSE) {
- if (strpos($article["title"], "News:") === FALSE) {
+ if (strpos($article["link"], "cad-comic.com") !== false) {
+ if (strpos($article["title"], "News:") === false) {
global $fetch_last_error_content;
diff --git a/plugins/af_comics/filters/af_comics_comicclass.php b/plugins/af_comics/filters/af_comics_comicclass.php
index b4b3a962c..07b4be712 100644
--- a/plugins/af_comics/filters/af_comics_comicclass.php
+++ b/plugins/af_comics/filters/af_comics_comicclass.php
@@ -6,7 +6,7 @@ class Af_Comics_ComicClass extends Af_ComicFilter {
}
function process(&$article) {
- if (strpos($article["guid"], "loadingartist.com") !== FALSE) {
+ if (strpos($article["guid"], "loadingartist.com") !== false) {
// lol at people who block clients by user agent
// oh noes my ad revenue Q_Q
diff --git a/plugins/af_comics/filters/af_comics_comicpress.php b/plugins/af_comics/filters/af_comics_comicpress.php
index 7755bcb1a..6a2036645 100755
--- a/plugins/af_comics/filters/af_comics_comicpress.php
+++ b/plugins/af_comics/filters/af_comics_comicpress.php
@@ -7,13 +7,13 @@ class Af_Comics_ComicPress extends Af_ComicFilter {
}
function process(&$article) {
- if (strpos($article["guid"], "bunicomic.com") !== FALSE ||
- strpos($article["guid"], "buttersafe.com") !== FALSE ||
- strpos($article["guid"], "extrafabulouscomics.com") !== FALSE ||
- strpos($article["guid"], "happyjar.com") !== FALSE ||
- strpos($article["guid"], "nedroid.com") !== FALSE ||
- strpos($article["guid"], "stonetoss.com") !== FALSE ||
- strpos($article["guid"], "csectioncomics.com") !== FALSE) {
+ if (strpos($article["guid"], "bunicomic.com") !== false ||
+ strpos($article["guid"], "buttersafe.com") !== false ||
+ strpos($article["guid"], "extrafabulouscomics.com") !== false ||
+ strpos($article["guid"], "happyjar.com") !== false ||
+ strpos($article["guid"], "nedroid.com") !== false ||
+ strpos($article["guid"], "stonetoss.com") !== false ||
+ strpos($article["guid"], "csectioncomics.com") !== false) {
// lol at people who block clients by user agent
// oh noes my ad revenue Q_Q
diff --git a/plugins/af_comics/filters/af_comics_darklegacy.php b/plugins/af_comics/filters/af_comics_darklegacy.php
index 0882514d0..ee9ce2d77 100644
--- a/plugins/af_comics/filters/af_comics_darklegacy.php
+++ b/plugins/af_comics/filters/af_comics_darklegacy.php
@@ -7,7 +7,7 @@ class Af_Comics_DarkLegacy extends Af_ComicFilter {
function process(&$article) {
- if (strpos($article["guid"], "darklegacycomics.com") !== FALSE) {
+ if (strpos($article["guid"], "darklegacycomics.com") !== false) {
$res = fetch_file_contents($article["link"], false, false, false,
false, false, 0,
diff --git a/plugins/af_comics/filters/af_comics_dilbert.php b/plugins/af_comics/filters/af_comics_dilbert.php
index a40f8a9ba..6b194960c 100644
--- a/plugins/af_comics/filters/af_comics_dilbert.php
+++ b/plugins/af_comics/filters/af_comics_dilbert.php
@@ -7,8 +7,8 @@ class Af_Comics_Dilbert extends Af_ComicFilter {
}
function process(&$article) {
- if (strpos($article["link"], "dilbert.com") !== FALSE ||
- strpos($article["link"], "/DilbertDailyStrip") !== FALSE) {
+ if (strpos($article["link"], "dilbert.com") !== false ||
+ strpos($article["link"], "/DilbertDailyStrip") !== false) {
$res = fetch_file_contents($article["link"], false, false, false,
false, false, 0,
diff --git a/plugins/af_comics/filters/af_comics_explosm.php b/plugins/af_comics/filters/af_comics_explosm.php
index c47014da4..dd1c8e723 100644
--- a/plugins/af_comics/filters/af_comics_explosm.php
+++ b/plugins/af_comics/filters/af_comics_explosm.php
@@ -7,7 +7,7 @@ class Af_Comics_Explosm extends Af_ComicFilter {
function process(&$article) {
- if (strpos($article["link"], "explosm.net/comics") !== FALSE) {
+ if (strpos($article["link"], "explosm.net/comics") !== false) {
$doc = new DOMDocument();
diff --git a/plugins/af_comics/filters/af_comics_pa.php b/plugins/af_comics/filters/af_comics_pa.php
index 7a60feabb..c70a39f6e 100644
--- a/plugins/af_comics/filters/af_comics_pa.php
+++ b/plugins/af_comics/filters/af_comics_pa.php
@@ -6,7 +6,7 @@ class Af_Comics_Pa extends Af_ComicFilter {
}
function process(&$article) {
- if (strpos($article["link"], "penny-arcade.com") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) {
+ if (strpos($article["link"], "penny-arcade.com") !== false && strpos($article["title"], "Comic:") !== false) {
$doc = new DOMDocument();
@@ -22,7 +22,7 @@ class Af_Comics_Pa extends Af_ComicFilter {
return true;
}
- if (strpos($article["link"], "penny-arcade.com") !== FALSE && strpos($article["title"], "News Post:") !== FALSE) {
+ if (strpos($article["link"], "penny-arcade.com") !== false && strpos($article["title"], "News Post:") !== false) {
$doc = new DOMDocument();
if ($doc->loadHTML(fetch_file_contents($article["link"]))) {
diff --git a/plugins/af_comics/filters/af_comics_pvp.php b/plugins/af_comics/filters/af_comics_pvp.php
index cf0b79d78..e3a92de6b 100644
--- a/plugins/af_comics/filters/af_comics_pvp.php
+++ b/plugins/af_comics/filters/af_comics_pvp.php
@@ -6,7 +6,7 @@ class Af_Comics_Pvp extends Af_ComicFilter {
}
function process(&$article) {
- if (strpos($article["guid"], "pvponline.com") !== FALSE) {
+ if (strpos($article["guid"], "pvponline.com") !== false) {
$res = fetch_file_contents($article["link"], false, false, false,
false, false, 0,
diff --git a/plugins/af_comics/filters/af_comics_tfd.php b/plugins/af_comics/filters/af_comics_tfd.php
index 376ec0714..38ac054c0 100644
--- a/plugins/af_comics/filters/af_comics_tfd.php
+++ b/plugins/af_comics/filters/af_comics_tfd.php
@@ -6,8 +6,8 @@ class Af_Comics_Tfd extends Af_ComicFilter {
}
function process(&$article) {
- if (strpos($article["link"], "toothpastefordinner.com") !== FALSE ||
- strpos($article["link"], "marriedtothesea.com") !== FALSE) {
+ if (strpos($article["link"], "toothpastefordinner.com") !== false ||
+ strpos($article["link"], "marriedtothesea.com") !== false) {
$res = fetch_file_contents($article["link"], false, false, false,
false, false, 0,
"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)");
diff --git a/plugins/af_comics/filters/af_comics_twp.php b/plugins/af_comics/filters/af_comics_twp.php
index f53b89b63..84e5ce428 100644
--- a/plugins/af_comics/filters/af_comics_twp.php
+++ b/plugins/af_comics/filters/af_comics_twp.php
@@ -7,7 +7,7 @@ class Af_Comics_Twp extends Af_ComicFilter {
function process(&$article) {
- if (strpos($article["link"], "threewordphrase.com") !== FALSE) {
+ if (strpos($article["link"], "threewordphrase.com") !== false) {
$doc = new DOMDocument();
diff --git a/plugins/af_comics/filters/af_comics_whomp.php b/plugins/af_comics/filters/af_comics_whomp.php
index d574bf5d3..ddd80a0ee 100644
--- a/plugins/af_comics/filters/af_comics_whomp.php
+++ b/plugins/af_comics/filters/af_comics_whomp.php
@@ -6,7 +6,7 @@ class Af_Comics_Whomp extends Af_ComicFilter {
}
function process(&$article) {
- if (strpos($article["guid"], "whompcomic.com") !== FALSE) {
+ if (strpos($article["guid"], "whompcomic.com") !== false) {
$res = fetch_file_contents($article["link"], false, false, false,
false, false, 0,
diff --git a/plugins/af_comics/init.php b/plugins/af_comics/init.php
index d07220894..c99d4b1d8 100755
--- a/plugins/af_comics/init.php
+++ b/plugins/af_comics/init.php
@@ -27,7 +27,7 @@ class Af_Comics extends Plugin {
foreach ($filters as $file) {
$filter_name = preg_replace("/\..*$/", "", basename($file));
- if (array_search($filter_name, $names) === FALSE) {
+ if (array_search($filter_name, $names) === false) {
if (!class_exists($filter_name)) {
require_once $file;
}
diff --git a/plugins/af_psql_trgm/init.php b/plugins/af_psql_trgm/init.php
index dbc99cfe4..b6aea67fb 100644
--- a/plugins/af_psql_trgm/init.php
+++ b/plugins/af_psql_trgm/init.php
@@ -228,7 +228,7 @@ class Af_Psql_Trgm extends Plugin {
if (!array($enabled_feeds)) $enabled_feeds = array();
$key = array_search($feed_id, $enabled_feeds);
- $checked = $key !== FALSE ? "checked" : "";
+ $checked = $key !== false ? "checked" : "";
print "<fieldset>";
@@ -248,11 +248,11 @@ class Af_Psql_Trgm extends Plugin {
$key = array_search($feed_id, $enabled_feeds);
if ($enable) {
- if ($key === FALSE) {
+ if ($key === false) {
array_push($enabled_feeds, $feed_id);
}
} else {
- if ($key !== FALSE) {
+ if ($key !== false) {
unset($enabled_feeds[$key]);
}
}
@@ -272,7 +272,7 @@ class Af_Psql_Trgm extends Plugin {
if (!$enable_globally) {
$enabled_feeds = $this->host->get($this, "enabled_feeds");
$key = array_search($article["feed"]["id"], $enabled_feeds);
- if ($key === FALSE) return $article;
+ if ($key === false) return $article;
}
$similarity = (float) $this->host->get($this, "similarity");
diff --git a/plugins/af_readability/init.php b/plugins/af_readability/init.php
index 9c62a4772..ce8f8d2a4 100755
--- a/plugins/af_readability/init.php
+++ b/plugins/af_readability/init.php
@@ -133,7 +133,7 @@ class Af_Readability extends Plugin {
if (!is_array($enabled_feeds)) $enabled_feeds = array();
$key = array_search($feed_id, $enabled_feeds);
- $checked = $key !== FALSE ? "checked" : "";
+ $checked = $key !== false ? "checked" : "";
print "<fieldset>";
@@ -153,11 +153,11 @@ class Af_Readability extends Plugin {
$key = array_search($feed_id, $enabled_feeds);
if ($enable) {
- if ($key === FALSE) {
+ if ($key === false) {
array_push($enabled_feeds, $feed_id);
}
} else {
- if ($key !== FALSE) {
+ if ($key !== false) {
unset($enabled_feeds[$key]);
}
}
@@ -250,7 +250,7 @@ class Af_Readability extends Plugin {
if (!is_array($enabled_feeds)) return $article;
$key = array_search($article["feed"]["id"], $enabled_feeds);
- if ($key === FALSE) return $article;
+ if ($key === false) return $article;
return $this->process_article($article);
diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php
index 8158538b2..b332ec588 100755
--- a/plugins/af_redditimgur/init.php
+++ b/plugins/af_redditimgur/init.php
@@ -94,7 +94,7 @@ class Af_RedditImgur extends Plugin {
//$debug = 1;
foreach ($entries as $entry) {
- if ($entry->hasAttribute("href") && strpos($entry->getAttribute("href"), "reddit.com") === FALSE) {
+ if ($entry->hasAttribute("href") && strpos($entry->getAttribute("href"), "reddit.com") === false) {
Debug::log("processing href: " . $entry->getAttribute("href"), Debug::$LOG_VERBOSE);
@@ -140,7 +140,7 @@ class Af_RedditImgur extends Plugin {
$content_type = $this->get_content_type($source_stream);
- if (strpos($content_type, "video/") !== FALSE) {
+ if (strpos($content_type, "video/") !== false) {
$this->handle_as_video($doc, $entry, $source_stream, $poster_url);
$found = 1;
}
@@ -230,7 +230,7 @@ class Af_RedditImgur extends Plugin {
$source_stream = str_replace(".gifv", ".mp4", $entry->getAttribute("href"));
- if (strpos($source_stream, "imgur.com") !== FALSE)
+ if (strpos($source_stream, "imgur.com") !== false)
$poster_url = str_replace(".mp4", "h.jpg", $source_stream);
$this->handle_as_video($doc, $entry, $source_stream, $poster_url);
@@ -265,8 +265,8 @@ class Af_RedditImgur extends Plugin {
}
if (!$found && (preg_match("/\.(jpg|jpeg|gif|png)(\?[0-9][0-9]*)?[$\?]/i", $entry->getAttribute("href")) ||
- mb_strpos($entry->getAttribute("href"), "i.reddituploads.com") !== FALSE ||
- mb_strpos($this->get_content_type($entry->getAttribute("href")), "image/") !== FALSE)) {
+ mb_strpos($entry->getAttribute("href"), "i.reddituploads.com") !== false ||
+ mb_strpos($this->get_content_type($entry->getAttribute("href")), "image/") !== false)) {
Debug::log("Handling as a picture", Debug::$LOG_VERBOSE);
@@ -393,7 +393,7 @@ class Af_RedditImgur extends Plugin {
function hook_article_filter($article) {
- if (strpos($article["link"], "reddit.com/r/") !== FALSE) {
+ if (strpos($article["link"], "reddit.com/r/") !== false) {
$doc = new DOMDocument();
@$doc->loadHTML($article["content"]);
$xpath = new DOMXPath($doc);
@@ -543,7 +543,7 @@ class Af_RedditImgur extends Plugin {
// do not try to embed posts linking back to other reddit posts
// readability.php requires PHP 5.6
- if ($url && strpos($url, "reddit.com") === FALSE && version_compare(PHP_VERSION, '5.6.0', '>=')) {
+ if ($url && strpos($url, "reddit.com") === false && version_compare(PHP_VERSION, '5.6.0', '>=')) {
/* link may lead to a huge video file or whatever, we need to check content type before trying to
parse it which p much requires curl */
@@ -551,7 +551,7 @@ class Af_RedditImgur extends Plugin {
$useragent_compat = "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)";
$content_type = $this->get_content_type($url, $useragent_compat);
- if ($content_type && strpos($content_type, "text/html") !== FALSE) {
+ if ($content_type && strpos($content_type, "text/html") !== false) {
foreach ($this->host->get_hooks(PluginHost::HOOK_GET_FULL_TEXT) as $p) {
$extracted_content = $p->hook_get_full_text($url);
diff --git a/plugins/af_unburn/init.php b/plugins/af_unburn/init.php
index bfd0f66e1..d867e83be 100755
--- a/plugins/af_unburn/init.php
+++ b/plugins/af_unburn/init.php
@@ -24,9 +24,9 @@ class Af_Unburn extends Plugin {
if (defined('NO_CURL') || !function_exists("curl_init") || ini_get("open_basedir"))
return $article;
- if ((strpos($article["link"], "feedproxy.google.com") !== FALSE ||
- strpos($article["link"], "/~r/") !== FALSE ||
- strpos($article["link"], "feedsportal.com") !== FALSE)) {
+ if ((strpos($article["link"], "feedproxy.google.com") !== false ||
+ strpos($article["link"], "/~r/") !== false ||
+ strpos($article["link"], "feedsportal.com") !== false)) {
$ch = curl_init($article["link"]);
@@ -52,7 +52,7 @@ class Af_Unburn extends Plugin {
$query = parse_url($real_url, PHP_URL_QUERY);
- if ($query && strpos($query, "utm_source") !== FALSE) {
+ if ($query && strpos($query, "utm_source") !== false) {
$args = array();
parse_str($query, $args);