summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-12-24 15:03:19 +0400
committerAndrew Dolgov <[email protected]>2012-12-24 15:03:19 +0400
commit6c2637d973a8887bdccf4cdbd15e30643605c576 (patch)
treefe07fbeb43c375b8c2ec74ebf36225440ef4eca1 /update.php
parent41b82aa4b98bc0e2004e7d28c2f5933fbe3ad7a3 (diff)
move data import/export to a separate plugin
Diffstat (limited to 'update.php')
-rwxr-xr-xupdate.php30
1 files changed, 0 insertions, 30 deletions
diff --git a/update.php b/update.php
index f1396f6e6..0da46647a 100755
--- a/update.php
+++ b/update.php
@@ -51,7 +51,6 @@
print " -feedbrowser - update feedbrowser\n";
print " -daemon - start single-process update daemon\n";
print " -cleanup-tags - perform tags table maintenance\n";
- print " -import USER FILE - import articles from XML\n";
print " -quiet - don't show messages\n";
print " -indexes - recreate missing schema indexes\n";
print " -convert-filters - convert type1 filters to type2\n";
@@ -146,35 +145,6 @@
_debug("$rc tags deleted.\n");
}
- if (in_array("-import",$op)) {
- $username = $argv[count($argv) - 2];
- $filename = $argv[count($argv) - 1];
-
- if (!$username) {
- print "error: please specify username.\n";
- return;
- }
-
- if (!is_file($filename)) {
- print "error: input filename ($filename) doesn't exist.\n";
- return;
- }
-
- _debug("importing $filename for user $username...\n");
-
- $result = db_query($link, "SELECT id FROM ttrss_users WHERE login = '$username'");
-
- if (db_num_rows($result) == 0) {
- print "error: could not find user $username.\n";
- return;
- }
-
- $owner_uid = db_fetch_result($result, 0, "id");
-
- perform_data_import($link, $filename, $owner_uid);
-
- }
-
if (in_array("-indexes", $op)) {
_debug("PLEASE BACKUP YOUR DATABASE BEFORE PROCEEDING!");
_debug("Type 'yes' to continue.");