]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - index.php
Merge pull request #853 from wallabag/fix-for-#797
[github/wallabag/wallabag.git] / index.php
index 1cb32f58ca9ca5358abecafb21ab4f5da9ed364a..39990d55a7c59292f1a7ba78caa5dcbc146189e3 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -1,26 +1,22 @@
 <?php
 /**
- * poche, a read it later open source system
+ * wallabag, self hostable application allowing you to not miss any content anymore
  *
- * @category   poche
- * @author     Nicolas LÅ“uillet <support@inthepoche.com>
+ * @category   wallabag
+ * @author     Nicolas LÅ“uillet <nicolas@loeuillet.org>
  * @copyright  2013
- * @license    http://www.wtfpl.net/ see COPYING file
+ * @license    http://opensource.org/licenses/MIT see COPYING file
  */
 
-include dirname(__FILE__).'/inc/config.php';
+define ('POCHE', '1.8.0');
+require 'check_essentials.php';
+require 'check_setup.php';
+require_once 'inc/poche/global.inc.php';
 
-$action = (isset ($_GET['action'])) ? htmlspecialchars($_GET['action']) : '';
-$view   = (isset ($_GET['view'])) ? htmlspecialchars($_GET['view']) : 'index';
-$id     = (isset ($_GET['id'])) ? htmlspecialchars($_GET['id']) : '';
-$url    = (isset ($_GET['url'])) ? $_GET['url'] : '';
+// Start session
+Session::$sessionName = 'wallabag';
+Session::init();
 
-action_to_do($action, $id);
-$entries = display_view($view);
-
-$tpl->assign('title', 'poche, a read it later open source system');
-$tpl->assign('view', $view);
-$tpl->assign('poche_url', get_poche_url());
-$tpl->assign('entries', $entries);
-$tpl->assign('load_all_js', 1);
-$tpl->draw('home');
\ No newline at end of file
+// Let's rock !
+$wallabag = new Poche();
+$wallabag->run();
\ No newline at end of file