aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/index.php b/index.php
index a26c42e1..5ca8bef5 100644
--- a/index.php
+++ b/index.php
@@ -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
11define ('POCHE', '1.5.2'); 11define ('POCHE', '1.5.3');
12require 'check_setup.php'; 12require 'check_setup.php';
13require_once 'inc/poche/global.inc.php'; 13require_once 'inc/poche/global.inc.php';
14session_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();