~eapl/mebo-es

523946ad6c021f7de0f32bbfcdf3c31287816156 — eapl.mx 10 months ago ab9d6c9
Fixed missed translations
M TODO.md => TODO.md +6 -1
@@ 1,2 1,7 @@
# From the original repo
- [ ] Replace the PHP `mail()` function with something else
\ No newline at end of file
- [ ] Replace the PHP `mail()` function with something else

# From current implementation
- [X] Translate all remaining texts to spanish
- [X] Change session time to 30 days
- [ ] Implement Atom Feed
\ No newline at end of file

M public/account-update.php => public/account-update.php +1 -1
@@ 22,7 22,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
?>

<?php include 'includes/header.php'; ?>
<h1>Edit account</h1>
<h1>Editar cuenta</h1>

<?php form_errors($errors) ?>


M public/atom.php => public/atom.php +0 -2
@@ 19,8 19,6 @@ function url($thread)
?>
<?php echo '<?xml version="1.0" encoding="utf-8"?>'; ?>
<?php echo "\n"; ?>
<?php echo '<?xml-stylesheet href="pretty-feed-v3.xsl" type="text/xsl"?>'; ?>
<?php echo "\n"; ?>

<feed xmlns="http://www.w3.org/2005/Atom">
	<title><?= NAME ?></title>

M public/includes/header.php => public/includes/header.php +1 -1
@@ 12,7 12,7 @@
		<header class="main-header">
			<a href="/" class="logo"><?= NAME ?></>
				<nav>
				<a href="feed.php">rss</a> |
				<a href="feed.php">rss</a> <a href="atom.php">atom</a> |
			<?php if ($user): ?>
				<?php if (is_admin($user)): ?>
					<a href="/roles.php">maneja roles</a>

M public/password-lost.php => public/password-lost.php +4 -4
@@ 4,7 4,7 @@ require 'includes/app.php';

$errors = [];

$title = NAME . ' - Recover password';
$title = NAME . ' - Reiniciar contraseña';

function get_body($token)
{


@@ 13,7 13,7 @@ function get_body($token)

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    $email = $_POST['email'];
    Validate::isEmail($email) or $errors[] = "Please provide a valide email address";
    Validate::isEmail($email) or $errors[] = "Ingresa una dirección de correo válida";

    if (!count($errors)) {
        $id = $BBS->getUser()->getIdFromEmail($email);


@@ 26,7 26,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
}
?>
<?php include 'includes/header.php'; ?>
<h1>Password lost</h1>
<h1>¿Olvidaste tu contraseña?</h1>

<?php form_errors($errors) ?>



@@ 37,7 37,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
        <input type="email" id="email" name="email" class="form-control" required/>
    </div>

    <input type="submit" value="Submit"/></td>
    <input type="submit" value="Enviar"/></td>
</form>

<?php include 'includes/footer.php'; ?>

M public/password-reset.php => public/password-reset.php +7 -8
@@ 13,39 13,38 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    $password = $_POST['password'];
    $repeat   = $_POST['repeat'];

    Validate::isPassword($password) or $errors[] = "Password must be 6 or more characters";
    Validate::isPassword($password) or $errors[] = "La contraseña debe tener 6 o más caracteres";

    if ($password != $repeat) {
        $errors[] = "Passwords don't match";
        $errors[] = "Las contraseñas no coinciden";
    }

    if (!count($errors)) {
        $BBS->getUser()->updatePassword($id, $password);
        $BBS->getSession()->setFlash("Password updated");
        $BBS->getSession()->setFlash("Contraseña actualizada");
        redirect("login.php");
    }
}
?>

<?php include 'includes/header.php'; ?>
<h1>New password</h1>
<h1>Reinicia tu contraseña</h1>

<?php form_errors($errors) ?>

<form action="<?= $_SERVER['REQUEST_URI'] ?>" method="post">
    <?php include 'includes/csrf.php' ?>
    <div class="form-group">
        <label for="password">New password:</label>
        <label for="password">Nueva contraseña:</label>
        <input type="password" id="password" name="password" class="form-control" required/>
    </div>

    <div class="form-group">
        <label for="repeat">Repeat:</label>
        <label for="repeat">Repítela:</label>
        <input type="password" id="repeat" name="repeat" class="form-control" required/>
    </div>

    <input type="submit" value="Update"/></td>
    <input type="submit" value="Actualizar"/></td>
</form>


<?php include 'includes/footer.php'; ?>

M public/password-update.php => public/password-update.php +1 -1
@@ 23,7 23,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
?>

<?php include 'includes/header.php'; ?>
<h1>Edit password</h1>
<h1>Cambiar contraseña</h1>

<?php form_errors($errors) ?>


M public/reply_delete.php => public/reply_delete.php +3 -3
@@ 17,15 17,15 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {

<?php include 'includes/header.php'; ?>

<h1>Delete reply</h1>
<h1>Borrar respuesta</h1>

<?php form_errors($errors) ?>

<p>Are you sure you want to delete your reply?</p>
<p>¿Deseas borrar tu respuesta?</p>

<form action="<?= $_SERVER['REQUEST_URI'] ?>" method="post" class="editor">
    <?php include 'includes/csrf.php' ?>
    <p><input type="submit" value="Confirm"/></p>
    <p><input type="submit" value="Confirmar"/></p>
</form>

<?php include 'includes/footer.php'; ?>

M public/reply_update.php => public/reply_update.php +1 -1
@@ 24,7 24,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {

<?php include 'includes/header.php'; ?>

<h1>Edit reply</h1>
<h1>Editar respuesta</h1>

<?php require 'includes/reply_form.php'; ?>