diff --git a/partials/header.php b/partials/header.php
index d91d584..e1109bd 100644
--- a/partials/header.php
+++ b/partials/header.php
@@ -24,19 +24,20 @@ $profile = getTwtsFromTwtxtString($config['public_txt_url']);
diff --git a/partials/timeline.php b/partials/timeline.php
index 462f309..2e9e469 100644
--- a/partials/timeline.php
+++ b/partials/timeline.php
@@ -49,4 +49,11 @@
-
\ No newline at end of file
+Comment via email';
+ }
+
+?>
\ No newline at end of file
diff --git a/private/config_template.ini b/private/config_template.ini
index 4c443cc..eab8646 100644
--- a/private/config_template.ini
+++ b/private/config_template.ini
@@ -39,5 +39,9 @@ totp_secret = "1234567890"
; In case it's in HTTP (not secure), set this to false
secure_cookies = true
+; E-mail for comments
+email = ""
+
+
; Simple password for unnamed user
password = ""
\ No newline at end of file
diff --git a/style.css b/style.css
index f913ecd..af3fac8 100644
--- a/style.css
+++ b/style.css
@@ -31,6 +31,9 @@ header > nav a {
/* border: none;*/
}
+header > nav select {
+ padding: 0.4rem;
+}
/* === Timeline Style === */
@@ -97,10 +100,6 @@ header a {
/* line-height: 1.5;*/
}
-nav form {
- margin: 0;
-}
-
nav .link-btn {
background: none;
border: none;
diff --git a/views/add_feed.php b/views/add_feed.php
index e88d256..8e76f20 100644
--- a/views/add_feed.php
+++ b/views/add_feed.php
@@ -11,7 +11,10 @@ if ($config['debug_mode']) {
$txt_file_path = $config['txt_file_path'];
-
+if (!isset($_SESSION['password'])) {
+ header('Location: ./login');
+ exit();
+}
/*
if (!has_valid_session()) {
diff --git a/views/home.php b/views/home.php
index 06e0570..abf6d9b 100644
--- a/views/home.php
+++ b/views/home.php
@@ -3,7 +3,7 @@ require_once("partials/base.php");
//$title = "Login - ".$title;
-include 'partials/header.php';
+include_once 'partials/header.php';
?>
@@ -31,7 +31,7 @@ if( isset($_SESSION['password'])) {
}
?>
-
+
-
+
diff --git a/views/load_twt_files.php b/views/load_twt_files.php
index 450123e..81abab6 100644
--- a/views/load_twt_files.php
+++ b/views/load_twt_files.php
@@ -8,6 +8,11 @@ require_once('libs/hash.php');
$config = parse_ini_file('private/config.ini');
+if (!isset($_SESSION['password'])) {
+ header('Location: ./login');
+ exit();
+}
+
$max_execution_time = intval($config['max_execution_time']);
if ($max_execution_time < 1) {
$max_execution_time = 1;