aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2014-07-24 21:41:01 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2014-07-24 21:41:01 +0200
commit38cf3413dfe156ced4f5f3a8c792cef69e2735f7 (patch)
tree310f9fce4ae50d38fdb4fb1e0ec4dbffb1b91201 /index.php
parent800868e27ea9cb73b889537be6ff35c88fb9e443 (diff)
downloadwallabag-38cf3413dfe156ced4f5f3a8c792cef69e2735f7.tar.gz
wallabag-38cf3413dfe156ced4f5f3a8c792cef69e2735f7.tar.zst
wallabag-38cf3413dfe156ced4f5f3a8c792cef69e2735f7.zip
1.7.2
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php68
1 files changed, 34 insertions, 34 deletions
diff --git a/index.php b/index.php
index 2c532c0e..b2ab1461 100755
--- a/index.php
+++ b/index.php
@@ -8,7 +8,7 @@
8 * @license http://www.wtfpl.net/ see COPYING file 8 * @license http://www.wtfpl.net/ see COPYING file
9 */ 9 */
10 10
11define ('POCHE', '1.7.1'); 11define ('POCHE', '1.7.2');
12require 'check_setup.php'; 12require 'check_setup.php';
13require_once 'inc/poche/global.inc.php'; 13require_once 'inc/poche/global.inc.php';
14 14
@@ -72,39 +72,39 @@ if (isset($_GET['login'])) {
72 72
73if (Session::isLogged()) { 73if (Session::isLogged()) {
74 74
75 if (isset($_GET['logout'])) { 75 if (isset($_GET['logout'])) {
76 # see you soon ! 76 # see you soon !
77 $poche->logout(); 77 $poche->logout();
78 } elseif (isset($_GET['config'])) { 78 } elseif (isset($_GET['config'])) {
79 # Update password 79 # Update password
80 $poche->updatePassword(); 80 $poche->updatePassword();
81 } elseif (isset($_GET['newuser'])) { 81 } elseif (isset($_GET['newuser'])) {
82 $poche->createNewUser(); 82 $poche->createNewUser();
83 } elseif (isset($_GET['deluser'])) { 83 } elseif (isset($_GET['deluser'])) {
84 $poche->deleteUser(); 84 $poche->deleteUser();
85 } elseif (isset($_GET['epub'])) { 85 } elseif (isset($_GET['epub'])) {
86 $poche->createEpub(); 86 $poche->createEpub();
87 } elseif (isset($_GET['import'])) { 87 } elseif (isset($_GET['import'])) {
88 $import = $poche->import(); 88 $import = $poche->import();
89 $tpl_vars = array_merge($tpl_vars, $import); 89 $tpl_vars = array_merge($tpl_vars, $import);
90 } elseif (isset($_GET['download'])) { 90 } elseif (isset($_GET['download'])) {
91 Tools::download_db(); 91 Tools::download_db();
92 } elseif (isset($_GET['empty-cache'])) { 92 } elseif (isset($_GET['empty-cache'])) {
93 $poche->emptyCache(); 93 $poche->emptyCache();
94 } elseif (isset($_GET['export'])) { 94 } elseif (isset($_GET['export'])) {
95 $poche->export(); 95 $poche->export();
96 } elseif (isset($_GET['updatetheme'])) { 96 } elseif (isset($_GET['updatetheme'])) {
97 $poche->updateTheme(); 97 $poche->updateTheme();
98 } elseif (isset($_GET['updatelanguage'])) { 98 } elseif (isset($_GET['updatelanguage'])) {
99 $poche->updateLanguage(); 99 $poche->updateLanguage();
100 } elseif (isset($_GET['uploadfile'])) { 100 } elseif (isset($_GET['uploadfile'])) {
101 $poche->uploadFile(); 101 $poche->uploadFile();
102 } elseif (isset($_GET['feed']) && isset($_GET['action']) && $_GET['action'] == 'generate') { 102 } elseif (isset($_GET['feed']) && isset($_GET['action']) && $_GET['action'] == 'generate') {
103 $poche->generateToken(); 103 $poche->generateToken();
104 } 104 }
105 elseif (isset($_GET['plainurl']) && !empty($_GET['plainurl'])) { 105 elseif (isset($_GET['plainurl']) && !empty($_GET['plainurl'])) {
106 $plain_url = new Url(base64_encode($_GET['plainurl'])); 106 $plain_url = new Url(base64_encode($_GET['plainurl']));
107 $poche->action('add', $plain_url); 107 $poche->action('add', $plain_url);
108 } 108 }
109 109
110 $poche->action($action, $url, $id); 110 $poche->action($action, $url, $id);