A signup form in the closing section posts to subscribe.php (ships in the build): PDO/MySQL, honeypot, idempotent insert, optional mail() notify. DB creds live in a gitignored config kept above the web root; schema and setup in server/. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
8 lines
337 B
SQL
8 lines
337 B
SQL
-- Launch-list table for subscribe.php. Run once against the green-tea DB.
|
|
CREATE TABLE IF NOT EXISTS subscribers (
|
|
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
|
|
email VARCHAR(254) NOT NULL UNIQUE,
|
|
created_at DATETIME NOT NULL,
|
|
ip VARCHAR(45) DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|