summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-08-13 15:59:24 +0300
committerAndrew Dolgov <[email protected]>2018-08-13 15:59:24 +0300
commit069aea5989ec7fe4090cf3f1151f99476fa038be (patch)
tree23c48c13d8baf5d9dc72e2c7fe6615e2ae32d6c6 /update.php
parenteb43d9f4a8a8609b7f30ef4e2add425b9c91fe00 (diff)
remove FEED_CRYPT_KEY and everything related to it
always assume auth_pass_encrypted is false
Diffstat (limited to 'update.php')
-rwxr-xr-xupdate.php33
1 files changed, 0 insertions, 33 deletions
diff --git a/update.php b/update.php
index 553175c8c..2abb756ba 100755
--- a/update.php
+++ b/update.php
@@ -417,39 +417,6 @@
exit($rc);
}
- if (isset($options["decrypt-feeds"])) {
-
- if (!function_exists("mcrypt_decrypt")) {
- _debug("mcrypt functions not available.");
- return;
- }
-
- $res = $pdo->query("SELECT id, auth_pass FROM ttrss_feeds WHERE auth_pass_encrypted = true");
-
- require_once "crypt.php";
-
- $total = 0;
-
- $pdo->beginTransaction();
-
- $usth = $pdo->prepare("UPDATE ttrss_feeds SET auth_pass_encrypted = false, auth_pass = ?
- WHERE id = ?");
-
- while ($line = $res->fetch()) {
- _debug("processing feed id " . $line["id"]);
-
- $auth_pass = decrypt_string($line["auth_pass"]);
-
- $usth->execute([$auth_pass, $line['id']]);
-
- ++$total;
- }
-
- $pdo->commit();
-
- _debug("$total feeds processed.");
- }
-
PluginHost::getInstance()->run_commands($options);
if (file_exists(LOCK_DIRECTORY . "/$lock_filename"))