forked from mi-lauer/DNS-CP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
66 lines (65 loc) · 3.83 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/* config.php - myDNS-WI
* Copyright (C) 2012-2013 Nexus-IRC project
* http://nexus-irc.de
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
session_start();
ini_set('display_errors', 1); // only for development, will be removed later
ini_set('error_reporting', E_ALL); // only for development, will be removed later
$database = array(); // init database array
$database["typ"] = "mysql"; // Database typ (available mysql and pgsql)
$database["host"] = "localhost"; // Database host
$database["user"] = "mydns"; // Database user
$database["pw"] = "mydns"; // Database password
$database["db"] = "mydns"; // MyDNS Database
$conf = array(); // init config array
$conf["typearray"] = array( // available record type
'A', // A record
'AAAA', // AAAA record
'CNAME', // CNAME record
'MX', // MX record
'NS', // NS record
'PTR', // PTR record
'SRV', // SRV record
'TXT' // TXT record
);
$conf["name"] = "Nexus-IRC DNS"; // Name of Page
$conf["soa"] = "dns_soa"; // SOA Table
$conf["rr"] = "dns_rr"; // RR Table
$conf["users"] = "dns_users"; // Users Table
$conf["mbox"] = "info.webhostmax.de."; // mbox for SOA
$conf["soans"] = "ns1.webhostmax.de."; // NS for SOA
$conf["ns"] = array( // NameServers for new zone
"ns1.webhostmax.de.", // NS1
"ns2.webhostmax.de.", // NS2
"ns3.webhostmax.de.", // NS3
"ns3.webhostmax.de.", // NS4
"ns3.webhostmax.de." // NS5
);
$conf["a"] = "84.200.248.52"; // A record for new zone
$conf["aaaa"] = Null; // AAAA record for new zone
$conf["txt"] = "v=spf1 mx -all"; // TXT record for new zone
$conf["ttl"] = 86400; // TTL of soa record
$conf["refresh"] = 28800; // Refresh of soa record
$conf["retry"] = 7200; // Retry of soa record
$conf["expire"] = 604800; // Expire of soa record
$conf["minimum_ttl"] = 60; // Minimum ttl for some records
$conf["version"] = "0.1.4-Beta"; // Version
require_once("lib/".$database["typ"].".class.php");
DB::connect($database["host"], $database["user"], $database["pw"], $database["db"]);
require_once("lib/func.class.php");
require_once("lib/dns.class.php");
?>