* @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
$poche->updatePassword();
}
elseif (isset($_GET['import'])) {
- $poche->import($_GET['from']);
+ $import = $poche->import($_GET['from']);
}
elseif (isset($_GET['export'])) {
$poche->export();
$tpl_vars = array_merge($tpl_vars, $poche->displayView($view, $id));
}
else {
- # login
$tpl_file = 'login.twig';
}