From 7d30454d909bd9b7b5040d941c66b3770ff12366 Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Sat, 6 Apr 2024 11:02:48 -0400 Subject: [PATCH] WIP on add/edit feed page (#4) --- src/Caddyfile | 2 +- src/lib/Data.php | 8 +++++--- src/public/assets/style.css | 35 +++++++++++++++++++++++++++++++++++ src/public/feed.php | 30 ++++++++++++++++++++++++++++++ src/public/index.php | 8 +++++++- src/start.php | 18 ++++++++++++++++-- 6 files changed, 94 insertions(+), 7 deletions(-) create mode 100644 src/public/assets/style.css create mode 100644 src/public/feed.php diff --git a/src/Caddyfile b/src/Caddyfile index ea7cbbf..96e6cbc 100644 --- a/src/Caddyfile +++ b/src/Caddyfile @@ -4,6 +4,6 @@ } http://localhost:8205 { root ./public - try_files {uri} {uri}.php + try_files {path} {path}.php php_server } diff --git a/src/lib/Data.php b/src/lib/Data.php index ee9062b..2bd5e7a 100644 --- a/src/lib/Data.php +++ b/src/lib/Data.php @@ -23,7 +23,7 @@ class Data { $tableQuery = $db->query("SELECT name FROM sqlite_master WHERE type = 'table'"); while ($table = $tableQuery->fetchArray(SQLITE3_NUM)) $tables[] = $table[0]; if (!in_array('frc_user', $tables)) { - $query = <<exec('CREATE INDEX idx_user_email ON frc_user (email)'); } if (!in_array('feed', $tables)) { - $query = <<exec($query); } if (!in_array('item', $tables)) { - $query = << $_GET['id'], 'url' => '' ]; +} +?> +

Add/Edit Feed

+
+ + +
+ -

User ID - e-mail

+ <?=$title?> | Feed Reader Central + - +
+
Feed Reader Central
+
Add Feed'; + if ($_REQUEST['FRC_USER_EMAIL'] != 'solouser@example.com') { + echo " | {$_REQUEST['FRC_USER_EMAIL']}"; + } + } ?> +
+
+
+