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']}"; + } + } ?> +
+
+
+