X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=index.php;h=7b775c41609868000250babef09c7e1cd77006ca;hb=48207b6814eeaef30a0baf64c3ed1e1d148de6fe;hp=a60e4e941704c14a64f9a66c24a2cb7b9dea01e8;hpb=07ee09f49ad3a6ac567f123b338ccb75b1464164;p=github%2Fwallabag%2Fwallabag.git diff --git a/index.php b/index.php index a60e4e94..7b775c41 100644 --- a/index.php +++ b/index.php @@ -8,6 +8,12 @@ * @license http://www.wtfpl.net/ see COPYING file */ +if (file_exists(__DIR__ . '/inc/poche/myconfig.inc.php')) { + require_once __DIR__ . '/inc/poche/myconfig.inc.php'; +} +require_once './inc/poche/Tools.class.php'; +Tools::createMyConfig(); + include dirname(__FILE__).'/inc/poche/config.inc.php'; # Parse GET & REFERER vars @@ -37,6 +43,10 @@ elseif (isset($_GET['import'])) { elseif (isset($_GET['export'])) { $poche->export(); } +elseif (isset($_GET['plainurl']) && !empty($_GET['plainurl'])) { + $plain_url = new Url(base64_encode($_GET['plainurl'])); + $poche->action('add', $plain_url); +} # vars to send to templates $tpl_vars = array(