From 46ad90b2ea8e3fdb2b4ae2b145b29ba2a5f7d08d Mon Sep 17 00:00:00 2001 From: Stricted Date: Mon, 16 Feb 2015 06:32:07 +0100 Subject: [PATCH] prepare domain add page --- database.sql | 13 +++++++++++-- index.php | 5 ----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/database.sql b/database.sql index 02ac60c..422514a 100644 --- a/database.sql +++ b/database.sql @@ -80,8 +80,17 @@ ALTER TABLE dns_soa_to_user ADD FOREIGN KEY (soaID) REFERENCES dns_soa (id) ON D ALTER TABLE dns_template ADD FOREIGN KEY (userID) REFERENCES dns_user (userID) ON DELETE CASCADE; INSERT INTO dns_options VALUES (1, 'dns_api_key', 'aa'); -INSERT INTO dns_options VALUES (3, 'enable_debug_mode', '1'); INSERT INTO dns_options VALUES (2, 'offline', '0'); -INSERT INTO dns_options VALUES (4, 'dns_soa_minimum_ttl', '60'); +INSERT INTO dns_options VALUES (3, 'enable_debug_mode', '1'); +INSERT INTO dns_options VALUES (4, 'dns_default_records', '{domain}:NS:ns1.stricted.de.\n{domain}:NS:ns2.stricted.de.\n{domain}:NS:ns3.stricted.de.\n{domain}:NS:ns4.stricted.de.\n{domain}:NS:ns5.stricted.de.\n{domain}:MX:mail.{domain}\n{domain}:A:84.200.248.52\n{domain}:AAAA:2001:1608:12:1::def\n*.{domain}:A:84.200.248.52\n*.{domain}:AAAA:2001:1608:12:1::def\n{domain}:TXT:\"v=spf1 mx -all\"'); +INSERT INTO dns_options VALUES (5, 'dns_soa_mbox', 'info.stricted.de.'); +INSERT INTO dns_options VALUES (6, 'dns_soa_ns', 'ns1.stricted.de.'); +INSERT INTO dns_options VALUES (7, 'dns_soa_ttl', '86400'); +INSERT INTO dns_options VALUES (8, 'dns_soa_refresh', '28800'); +INSERT INTO dns_options VALUES (9, 'dns_soa_retry', '7200'); +INSERT INTO dns_options VALUES (10, 'dns_soa_expire', '604800'); +INSERT INTO dns_options VALUES (11, 'dns_soa_minimum_ttl', '60'); + + INSERT INTO `dns_user` VALUES (1, 'admin', 'example@example.net', '$2a$08$XfcfTGc1LlmOHWUt/2sfNeFLEwqESy6wmrIIJMyQS1j5pwembqiae', '0', '2'); diff --git a/index.php b/index.php index dfc5200..54d9dc9 100644 --- a/index.php +++ b/index.php @@ -10,10 +10,5 @@ session_start(); * @copyright 2014-2015 Jan Altensen (Stricted) */ define("DNS_DIR", dirname(__FILE__)); -define("ENABLE_DEBUG_MODE", false); -// remove this later -define('DNS_API_KEY', 'aa'); -define('OFFLINE', false); -define('DNS_SOA_MINIMUM_TTL', 60); require_once("lib/system/DNS.class.php"); new DNS(); -- 2.20.1