diff --git a/db/migrations/009_add_deleted_at_to_attendees.sql b/db/migrations/009_add_deleted_at_to_attendees.sql new file mode 100644 index 0000000..1f8758e --- /dev/null +++ b/db/migrations/009_add_deleted_at_to_attendees.sql @@ -0,0 +1 @@ +ALTER TABLE attendees ADD COLUMN deleted_at TIMESTAMP NULL DEFAULT NULL; \ No newline at end of file diff --git a/login.php b/login.php index 9cbbc86..96f80ea 100644 --- a/login.php +++ b/login.php @@ -11,7 +11,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['email'])) { $password = isset($_POST['password']) ? $_POST['password'] : ''; // Admin Login - if ($email === 'admin@gmail.com' && $password === 'admin') { + // Hardcoded admin credentials (consider a more secure solution) + if ($email === 'admin@example.com' && $password === 'admin') { $_SESSION['user'] = 'admin'; header('Location: admin.php'); exit; diff --git a/register.php b/register.php index 7baafc9..6ce79f3 100644 --- a/register.php +++ b/register.php @@ -74,9 +74,84 @@ try { } // --- SEND CONFIRMATION EMAIL --- - $webinar_date_obj = new DateTime('2025-11-19 10:00:00', new DateTimeZone('America/New_York')); + $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http'; + $host = $_SERVER['HTTP_HOST']; + $logo_url = $protocol . '://' . $host . '/assets/pasted-20251030-095744-1b7c02ab.png'; $subject = "Confirmation: You're Registered for Building Scalable Apps with AppWizzy"; - $body_html = "
Thanks for registering for our webinar: Building Scalable Apps with AppWizzy.
Professional Vibe-Coding Webinar
It will take place on " . $webinar_date_obj->format('l, F j, Y \a\t g:i A T') . ".
You can now log in to your dashboard to see the details.
"; + $webinar_date_obj = new DateTime('2025-11-19 10:00:00', new DateTimeZone('America/New_York')); + + $body_html = << + + + + +
+
|
+