M config.sample.php +3 -3
@@ 1,8 1,8 @@
<?php
# database
-define('DB_NAME', 'piclog');
-define('DB_USER', 'piclog');
+define('DB_NAME', 'lipuli');
+define('DB_USER', 'lipuli');
define('DB_PASSWORD', '');
define('DB_HOST', 'localhost');
@@ 14,4 14,4 @@ define('FROM_EMAIL', 'foo@bar.com');
# other
define('URL', 'https://localhost/lipuli');
-define('KEY', 'kama pona!');
No newline at end of file
+define('KEY', 'insert key here');
M +4 -0
@@ 8,3 8,7 @@
<link type="application/atom+xml" rel="alternate" href="feed.php">
</head>
<body>
<?php if ($flash = $App->getSession()->getFlash()): ?>
<p class="flash"><?= $flash ?></p>
<?php endif; ?>
No newline at end of file
M +4 -0
@@ 20,3 20,7 @@
</nav>
</header>
<?php if ($flash = $App->getSession()->getFlash()): ?>
<p class="flash"><?= $flash ?></p>
<?php endif; ?>
M page_update.php +0 -2
@@ 10,8 10,6 @@ is_member($User) or redirect("login.php"
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$form['content'] = $_POST['content'];
- // todo validation
-
if (!count($errors)) {
$App->getPage()->update($User['id'], $p, $form['content']);
}
M password-lost.php +1 -1
@@ 4,7 4,7 @@ require 'includes/app.php';
$errors = [];
-$title = 'piclog - Recover password';
+$title = 'lipu li - Recover password';
function get_body($token)
{
M password-update.php +3 -3
@@ 7,7 7,7 @@ is_member($User) or redirect("login.php"
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$password = $_POST['password'];
- $repeat = $_POST['repeat'];
+ $repeat = $_POST['repeat'];
Validate::isPassword($password) or $errors[] = "Password must be 6 or more characters";
@@ 30,8 30,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST
<form action="<?= $_SERVER['PHP_SELF'] ?>" method="post">
<?php include 'includes/csrf.php' ?>
- <label for="password">New password:</label>
- <input type="password" id="password" name="password" class="form-control"required/>
+ <label for="password">New password:</label>
+ <input type="password" id="password" name="password" class="form-control" required/>
<label for="repeat">Repeat:</label>
<input type="password" id="repeat" name="repeat" class="form-control" required/>
M register.php +0 -1
@@ 31,7 31,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST
], $errors);
if ($id !== false) {
$App->getSession()->login($id, true);
- $App->getSession()->setFlash("Thanks for registering!");
redirect("index.php");
}
}
M settings.php +0 -1
@@ 14,7 14,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST
Validate::isName($form['name']) or $errors[] = "Name must be 2-20 letters using [A-z0-9\_]";
Validate::isEmail($form['email']) or $errors[] = "Email format not recognized";
Validate::isAcceptableHTML($form['style']) or $errors [] = "Style has a forbidden HTML tag";
- !empty($form['cover']) or $errors[] = "Tell us a few words about you";
if (!count($errors)) {
if ($App->getUser()->update($form, $errors)) {