]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/poche/Routing.class.php
merge epub with all the dev evolutions
[github/wallabag/wallabag.git] / inc / poche / Routing.class.php
index 6ae93d21d7622d552709d98ccd5ce743bcfc7a71..5acd08ba608d0704b8d6a76e2152363ba4afe808 100755 (executable)
@@ -120,7 +120,16 @@ class Routing
                 $this->wallabag->deleteUser($_POST['password4deletinguser']);
             } elseif (isset($_GET['epub'])) {
                 $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['pdf'])) {
+                $pdf = new WallabagPDF($this->wallabag, $_GET['method'], $_GET['value']);
+                $pdf->prepareData();
+                $pdf->producePDF();
             } elseif (isset($_GET['import'])) {
                 $import = $this->wallabag->import();
                 $tplVars = array_merge($this->vars, $import);
@@ -148,4 +157,4 @@ class Routing
     {
         echo $this->wallabag->tpl->render($file, $vars);
     }
-} 
\ No newline at end of file
+}