summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-10-18 02:31:31 +0200
committersijanec <sijanecantonluka@gmail.com>2020-10-18 02:31:31 +0200
commit8f36b9404a1f5c2437ff71a3ba86dfaa4d75a5a5 (patch)
tree65f80579ccecafaf5b512d241478ebbb7a48ad08
parentfix bot (diff)
downloadoldredditclient-8f36b9404a1f5c2437ff71a3ba86dfaa4d75a5a5.tar
oldredditclient-8f36b9404a1f5c2437ff71a3ba86dfaa4d75a5a5.tar.gz
oldredditclient-8f36b9404a1f5c2437ff71a3ba86dfaa4d75a5a5.tar.bz2
oldredditclient-8f36b9404a1f5c2437ff71a3ba86dfaa4d75a5a5.tar.lz
oldredditclient-8f36b9404a1f5c2437ff71a3ba86dfaa4d75a5a5.tar.xz
oldredditclient-8f36b9404a1f5c2437ff71a3ba86dfaa4d75a5a5.tar.zst
oldredditclient-8f36b9404a1f5c2437ff71a3ba86dfaa4d75a5a5.zip
Diffstat (limited to '')
-rw-r--r--mentions.php21
1 files changed, 0 insertions, 21 deletions
diff --git a/mentions.php b/mentions.php
deleted file mode 100644
index 66d35e1..0000000
--- a/mentions.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
- require_once("../main.php");
- $o = new oldredditclient();
- $o->setusername($_ENV["orc_user"]);
- $o->setpasword($_ENV["orc_pass"]);
- while (true) {
- $mentions = $o->get("mentions");
- if ($mentions < 0) {
- echo "\n".'[mentions.php] ERROR in $mentions';
- continue;
- }
- foreach($mentions["data"]["children"] as $mention) {
- if (in_array(explode("\n", file_get_contents("banned_subs.txt")), $mention["subreddit"])) {
- continue;
- }
- if (in_array(explode("\n", file_get_contents("banned_authors.txt")), $mention["author"])) {
- continue;
- }
- }
- }
-?>