diff --git a/db/migrations/20260220_license_server_schema.sql b/db/migrations/20260220_license_server_schema.sql new file mode 100644 index 0000000..63042aa --- /dev/null +++ b/db/migrations/20260220_license_server_schema.sql @@ -0,0 +1,23 @@ +-- Migration: Create server-side license tables +-- Target: u128023052_meezan_license (Remote Server) +-- Created at: 2026-02-20 + +CREATE TABLE IF NOT EXISTS licenses ( + id INT AUTO_INCREMENT PRIMARY KEY, + license_key VARCHAR(255) NOT NULL UNIQUE, + max_activations INT DEFAULT 1, + status ENUM('active', 'suspended', 'expired') DEFAULT 'active', + owner VARCHAR(255) DEFAULT NULL, + address TEXT DEFAULT NULL, + created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP +); + +CREATE TABLE IF NOT EXISTS activations ( + id INT AUTO_INCREMENT PRIMARY KEY, + license_id INT NOT NULL, + fingerprint VARCHAR(255) NOT NULL, + domain VARCHAR(255) DEFAULT NULL, + product VARCHAR(255) DEFAULT NULL, + activated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, + FOREIGN KEY (license_id) REFERENCES licenses(id) ON DELETE CASCADE +); diff --git a/index.php b/index.php index e310475..fccf787 100644 --- a/index.php +++ b/index.php @@ -7353,7 +7353,42 @@ $projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Accounting System'; - + +
Please enter the management password to continue.
+ + +