diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -8,10 +8,9 @@ | |||
8 | * @license http://www.wtfpl.net/ see COPYING file | 8 | * @license http://www.wtfpl.net/ see COPYING file |
9 | */ | 9 | */ |
10 | 10 | ||
11 | define ('POCHE', '1.5.2'); | 11 | define ('POCHE', '1.5.3'); |
12 | require 'check_setup.php'; | 12 | require 'check_setup.php'; |
13 | require_once 'inc/poche/global.inc.php'; | 13 | require_once 'inc/poche/global.inc.php'; |
14 | session_start(); | ||
15 | 14 | ||
16 | # Start Poche | 15 | # Start Poche |
17 | $poche = new Poche(); | 16 | $poche = new Poche(); |
@@ -30,7 +29,7 @@ $tpl_vars = array( | |||
30 | 'referer' => $referer, | 29 | 'referer' => $referer, |
31 | 'view' => $view, | 30 | 'view' => $view, |
32 | 'poche_url' => Tools::getPocheUrl(), | 31 | 'poche_url' => Tools::getPocheUrl(), |
33 | 'title' => _('poche, a read it later open source system'), | 32 | 'title' => _('wallabag, a read it later open source system'), |
34 | 'token' => Session::getToken(), | 33 | 'token' => Session::getToken(), |
35 | 'theme' => $poche->getTheme() | 34 | 'theme' => $poche->getTheme() |
36 | ); | 35 | ); |
@@ -75,6 +74,8 @@ if (isset($_GET['login'])) { | |||
75 | $poche->updateTheme(); | 74 | $poche->updateTheme(); |
76 | } elseif (isset($_GET['updatelanguage'])) { | 75 | } elseif (isset($_GET['updatelanguage'])) { |
77 | $poche->updateLanguage(); | 76 | $poche->updateLanguage(); |
77 | } elseif (isset($_GET['uploadfile'])) { | ||
78 | $poche->uploadFile(); | ||
78 | } elseif (isset($_GET['feed'])) { | 79 | } elseif (isset($_GET['feed'])) { |
79 | if (isset($_GET['action']) && $_GET['action'] == 'generate') { | 80 | if (isset($_GET['action']) && $_GET['action'] == 'generate') { |
80 | $poche->generateToken(); | 81 | $poche->generateToken(); |