diff --git a/admin.php b/admin.php index 1a1cf7c..373afbf 100644 --- a/admin.php +++ b/admin.php @@ -1,6 +1,13 @@ My Awesome Blog Admin + Logout diff --git a/db/migrate.php b/db/migrate.php new file mode 100644 index 0000000..6f6f98d --- /dev/null +++ b/db/migrate.php @@ -0,0 +1,14 @@ +exec($sql); + echo "Migration 001: Users table created successfully.\n"; + } catch (PDOException $e) { + die("Migration 001 failed: " . $e->getMessage() . "\n"); + } +} + diff --git a/editor.php b/editor.php index 65eb820..f21a10b 100644 --- a/editor.php +++ b/editor.php @@ -1,6 +1,13 @@ null, 'title' => '', @@ -79,6 +86,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
diff --git a/index.php b/index.php index 410a073..3387fe7 100644 --- a/index.php +++ b/index.php @@ -1,4 +1,5 @@