mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-27 11:22:17 -05:00
fix #70: if demo mode, fields are filled
This commit is contained in:
parent
70b5d24f72
commit
538cdfa883
@ -8,13 +8,13 @@
|
||||
* @license http://www.wtfpl.net/ see COPYING file
|
||||
*/
|
||||
|
||||
define ('POCHE_VERSION', '0.2.1');
|
||||
define ('POCHE_VERSION', '0.3');
|
||||
|
||||
if (!is_dir('db/')) {
|
||||
@mkdir('db/',0705);
|
||||
}
|
||||
|
||||
define ('MODE_DEMO', FALSE);
|
||||
define ('MODE_DEMO', TRUE);
|
||||
define ('ABS_PATH', 'assets/');
|
||||
define ('CONVERT_LINKS_FOOTNOTES', TRUE);
|
||||
define ('REVERT_FORCED_PARAGRAPH_ELEMENTS',FALSE);
|
||||
|
@ -54,7 +54,7 @@ elseif (isset($_GET['config'])) {
|
||||
if (isset($_POST['password']) && isset($_POST['password_repeat'])) {
|
||||
if ($_POST['password'] == $_POST['password_repeat'] && $_POST['password'] != "") {
|
||||
logm('password updated');
|
||||
if (!DEMO) {
|
||||
if (!MODE_DEMO) {
|
||||
$store->updatePassword(encode_string($_POST['password'] . $_SESSION['login']));
|
||||
$msg->add('s', 'your password has been updated');
|
||||
}
|
||||
@ -79,6 +79,7 @@ $tpl->assign('isLogged', Session::isLogged());
|
||||
$tpl->assign('referer', $ref);
|
||||
$tpl->assign('view', $view);
|
||||
$tpl->assign('poche_url', myTool::getUrl());
|
||||
$tpl->assign('demo', MODE_DEMO);
|
||||
$tpl->assign('title', 'poche, a read it later open source system');
|
||||
|
||||
if (Session::isLogged()) {
|
||||
@ -86,5 +87,6 @@ if (Session::isLogged()) {
|
||||
display_view($view, $id, $full_head);
|
||||
}
|
||||
else {
|
||||
|
||||
$tpl->draw('login');
|
||||
}
|
||||
|
@ -9,11 +9,11 @@
|
||||
<h2 class="mbs txtcenter">login to your poche</h2>
|
||||
<div class="row">
|
||||
<label class="col w150p" for="login">Login</label>
|
||||
<input class="col" type="text" id="login" name="login" placeholder="Login" tabindex="1" autofocus />
|
||||
<input class="col" type="text" id="login" name="login" placeholder="Login" tabindex="1" autofocus {if="$demo == '1'"}value="poche"{/if} />
|
||||
</div>
|
||||
<div class="row">
|
||||
<label class="col w150p" for="password">Password</label>
|
||||
<input class="col" type="password" id="password" name="password" placeholder="Password" tabindex="2">
|
||||
<input class="col" type="password" id="password" name="password" placeholder="Password" tabindex="2" {if="$demo == '1'"}value="poche"{/if} />
|
||||
</div>
|
||||
<div class="row">
|
||||
<label class="col w150p">Stay signed in</label>
|
||||
|
Loading…
Reference in New Issue
Block a user