# HG changeset patch # User m15o # Date 1682963403 -7200 # Mon May 01 19:50:03 2023 +0200 # Node ID 19c23993c5d9899148691aac5dda26eace765c0a # Parent f86d4a415a1165626f5605ed56c12e2bb0171955 few things really! diff --git a/activate.php b/activate.php --- a/activate.php +++ b/activate.php @@ -14,7 +14,7 @@ $errors[] = "Can't find user"; } else { if ($App->getUser()->setRole($id, 2)) { - $subject = "plog - Welcome!"; + $subject = "piclog - Welcome!"; $message = "Hello $selected[name]! Your account has been activated. You can now post messages on " . URL . ".\n\nTalk to you soon!"; $App->getEmail()->send($selected['email'], $subject, $message); } @@ -33,12 +33,12 @@ - - + + diff --git a/includes/footer.php b/includes/footer.php --- a/includes/footer.php +++ b/includes/footer.php @@ -1,2 +1,8 @@ - + + + diff --git a/includes/header.php b/includes/header.php --- a/includes/header.php +++ b/includes/header.php @@ -11,11 +11,13 @@
- -
- You account is pending activation. You will be notified by email when activated. -
- getSession()->getFlash()): ?>

\ No newline at end of file diff --git a/index.php b/index.php --- a/index.php +++ b/index.php @@ -9,6 +9,9 @@

piclog

+ +

You account is pending activation. You will be notified by email when activated.

+

Hi! Here you can share your JPEG pictures with your friends. You can customize the CSS of your profile, and even add a little widget to your site! The pictures are heavily compressed to keep the file size small.

diff --git a/password-lost.php b/password-lost.php --- a/password-lost.php +++ b/password-lost.php @@ -4,7 +4,7 @@ $errors = []; -$title = NAME . ' - Recover password'; +$title = 'piclog - Recover password'; function get_body($token) { @@ -13,7 +13,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { $email = $_POST['email']; - Validate::isEmail($email) or $errors[] = "Please provide a valide email address"; + Validate::isEmail($email) or $errors[] = "Please provide a valid email address"; if (!count($errors)) { $id = $App->getUser()->getIdFromEmail($email); diff --git a/settings.php b/settings.php --- a/settings.php +++ b/settings.php @@ -1,17 +1,17 @@
- +
- +
- + diff --git a/style.css b/style.css --- a/style.css +++ b/style.css @@ -8,7 +8,7 @@ background-color: midnightblue; } -.main-header, main { +.main-header, main, .main-footer { max-width: 45em; margin: 0 auto; background-color: aliceblue; @@ -26,6 +26,7 @@ .title { margin-bottom: 0; + word-wrap: anywhere; } .meta { @@ -50,3 +51,17 @@ box-sizing: border-box; margin-bottom: 1em; } + +.main-footer { + background-color: palegoldenrod; +} + +.flash { + background-color: palegreen; + padding: 1em; +} + +.is-visitor { + color: darkblue; + font-style: oblique; +} \ No newline at end of file diff --git a/widget.php b/widget.php --- a/widget.php +++ b/widget.php @@ -6,7 +6,8 @@

Widget

Add the following snippet to your site to show your latest picture. Feel free to customize how it looks like!

-

+ style="width: 100%;"> +

+

-
+ - +