1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-11-23 17:42:15 -05:00

revert routing bad deleting

This commit is contained in:
tcit 2014-09-27 19:47:50 +02:00
parent a1b31d93b6
commit 6fc2c29daa

View File

@ -119,8 +119,21 @@ class Routing
} elseif (isset($_GET['deluser'])) { } elseif (isset($_GET['deluser'])) {
$this->wallabag->deleteUser($_POST['password4deletinguser']); $this->wallabag->deleteUser($_POST['password4deletinguser']);
} elseif (isset($_GET['epub'])) { } elseif (isset($_GET['epub'])) {
$epub = new WallabagEpub($this->wallabag, $_GET['method'], $_GET['id'], $_GET['value']); $epub = new WallabagEpub($this->wallabag, $_GET['method'], $_GET['value']);
$epub->run(); $epub->prepareData();
$epub->produceEpub();
} elseif (isset($_GET['mobi'])) {
$mobi = new WallabagMobi($this->wallabag, $_GET['method'], $_GET['value']);
$mobi->prepareData();
$mobi->produceMobi();
} elseif (isset($_GET['send2kindle'])) {
$mobi = new WallabagMobi($this->wallabag, $_GET['method'], $_GET['value']);
$mobi->prepareData();
$mobi->produceMobi(TRUE);
} elseif (isset($_GET['pdf'])) {
$pdf = new WallabagPDF($this->wallabag, $_GET['method'], $_GET['value']);
$pdf->prepareData();
$pdf->producePDF();
} elseif (isset($_GET['import'])) { } elseif (isset($_GET['import'])) {
$import = $this->wallabag->import(); $import = $this->wallabag->import();
$tplVars = array_merge($this->vars, $import); $tplVars = array_merge($this->vars, $import);