inc/config.inc.php
author rejo
Tue, 10 Apr 2007 22:40:43 +0000
changeset 1 58094faf794d
child 4 55ed92aa7cf5
permissions -rw-r--r--
[feladat @ 2] Creation of initial working branch.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     1
<?php
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     2
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     3
/* Edit all fields below here to your information */
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     4
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     5
/* MySQL Configuration */
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     6
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     7
//
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     8
// Host we should connect to.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     9
// This could be for example "localhost" or a sock file
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    10
$dbhost = 'localhost';
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    11
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    12
//
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    13
// Your user with SELECT/INSERT/UPDATE/DELETE/CREATE access to $dbdatabase
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    14
$dbuser = '';
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    15
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    16
//
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    17
// Youe password, the password for $dbuser
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    18
$dbpass = '';
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    19
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    20
// Your database, the database you want to use for PowerDNS (or are already using)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    21
$dbdatabase   = '';
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    22
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    23
// The dsn you want to use (which database you want to use)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    24
// Tested is mysql and pgsql default is mysql
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    25
$dbdsntype = 'mysql';
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    26
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    27
/* URI Configuration */
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    28
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    29
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    30
// $BASE_URL
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    31
// This will be the main URI you will use to connect to PowerAdmin.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    32
// For instance: "http://poweradmin.sjeemz.nl"
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    33
$BASE_URL = "http://";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    34
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    35
// $BASE_PATH
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    36
// If PowerAdmin is in a subdir. Specify this here
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    37
// For instance: "/admin/"
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    38
$BASE_PATH = "/admin/";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    39
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    40
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    41
/* DNS Record information */
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    42
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    43
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    44
// $HOSTMASTER
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    45
// The email address of the hostmaster you want to be mailed.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    46
// For instance: "hostmaster@sjeemz.nl"
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    47
$HOSTMASTER = "";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    48
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    49
// $NS1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    50
// Your first nameserver
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    51
// Should be a domainname! Not an IP.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    52
$NS1 = "";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    53
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    54
// $NS2
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    55
// Your second nameserver.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    56
// If you dont have a second nameserver, fill in the same value as $NS1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    57
$NS2 = "";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    58
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    59
/* You dont have to edit these fields. Change them if you want. */
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    60
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    61
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    62
// $EXPIRE
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    63
// Session timeout in seconds. This is 1800 seconds which is 30 minutes by default.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    64
// The information in this field should be in seconds.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    65
// After this $EXPIRE you are automatically logged out from the system.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    66
$EXPIRE = 1800;
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    67
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    68
// $ALLOW_SOA_EDIT
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    69
// Allow users with level 1 to edit/delete SOA records?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    70
$ALLOW_SOA_EDIT = 0;
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    71
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    72
// $ALLOW_NS_EDIT
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    73
// Allow users with level 1 to edit/delete pre-set NS records for their domain.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    74
$ALLOW_NS_EDIT = 1;
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    75
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    76
// $DEFAULT_TTL
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    77
// Default TTL for records.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    78
// Default time to live for all records. This notation is in seconds.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    79
$DEFAULT_TTL = 3600;      // (3600 seconds / 1 hour by default)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    80
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    81
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    82
// $NAME_LEVEL_X
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    83
// These directives allow you to change the statusnames of users on the system.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    84
$NAME_LEVEL_1 = "Normal user";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    85
$NAME_LEVEL_5 = "Administrator";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    86
$NAME_LEVEL_10 = "Administrator w/ user admin rights";
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    87
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    88
// Enable fancy records or not (http://doc.powerdns.com/fancy-records.html)? true/false
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    89
$FANCY_RECORDS = true;
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    90
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    91
// Master or slave functionality. Set this to either true or false.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    92
// This field indicates if you are running in a MASTER/SLAVE setup or in a NATIVE setup.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    93
// By toggling this function you will get some more selection features.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    94
// Default is false.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    95
// Use these features with care, they havent been tested much yet.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    96
$MASTER_SLAVE_FUNCTIONS = false;
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    97
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    98
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    99
/* ------------------------------------------ */
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   100
/* No need to make changes below this line... */
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   101
/* Which means, dont touch it		      */
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   102
/* ------------------------------------------ */
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   103
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   104
/* -------------------------------------------------------------------- */
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   105
/* NO REALLY DONT TOUCH IT! Unless you _REALLY_ know what you are doing */
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   106
/* -------------------------------------------------------------------- */
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   107
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   108
// $rtypes - array of possible record types
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   109
$rtypes = array('A', 'AAAA', 'CNAME', 'HINFO', 'MX', 'NAPTR', 'NS', 'PTR', 'SOA', 'TXT');
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   110
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   111
// If fancy records is enabled, extend this field.
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   112
if($FANCY_RECORDS)
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   113
{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   114
	$rtypes[10] = 'URL';
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   115
	$rtypes[11] = 'MBOXFW';
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   116
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   117
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   118
// $template - array of records that will be applied when adding a new zone file
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   119
$template = array(
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   120
                array(
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   121
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   122
                                "name"          =>              "##DOMAIN##",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   123
                                "type"          =>              "SOA",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   124
                                "content"       =>              "$NS1 $HOSTMASTER 1",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   125
                                "ttl"           =>              "$DEFAULT_TTL",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   126
                                "prio"          =>              ""
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   127
                ),
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   128
                array(
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   129
                                "name"          =>              "##DOMAIN##",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   130
                                "type"          =>              "NS",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   131
                                "content"       =>              "$NS1",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   132
                                "ttl"           =>              "$DEFAULT_TTL",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   133
                                "prio"          =>              ""
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   134
                ),
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   135
                array(
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   136
                                "name"          =>              "##DOMAIN##",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   137
                                "type"          =>              "NS",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   138
                                "content"       =>              "$NS2",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   139
                                "ttl"           =>              "$DEFAULT_TTL",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   140
                                "prio"          =>              ""
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   141
                ),
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   142
                array(
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   143
                                "name"          =>              "www.##DOMAIN##",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   144
                                "type"          =>              "A",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   145
                                "content"       =>              "##WEBIP##",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   146
                                "ttl"           =>              "$DEFAULT_TTL",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   147
                                "prio"          =>              ""
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   148
                ),
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   149
                array(
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   150
                                "name"          =>              "##DOMAIN##",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   151
                                "type"          =>              "A",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   152
                                "content"       =>              "##WEBIP##",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   153
                                "ttl"           =>              "$DEFAULT_TTL",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   154
                                "prio"          =>              ""
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   155
                ),
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   156
                array(
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   157
                                "name"          =>              "mail.##DOMAIN##",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   158
                                "type"          =>              "A",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   159
                                "content"       =>              "##MAILIP##",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   160
                                "ttl"           =>              "$DEFAULT_TTL",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   161
                                "prio"          =>              ""
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   162
                ),
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   163
                array(
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   164
                                "name"          =>              "localhost.##DOMAIN##",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   165
                                "type"          =>              "A",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   166
                                "content"       =>              "127.0.0.1",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   167
                                "ttl"           =>              "$DEFAULT_TTL",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   168
                                "prio"          =>              ""
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   169
                ),
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   170
                array(
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   171
                                "name"          =>              "##DOMAIN##",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   172
                                "type"          =>              "MX",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   173
                                "content"       =>              "mail.##DOMAIN##",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   174
                                "ttl"           =>              "$DEFAULT_TTL",
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   175
                                "prio"          =>              "10"
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   176
                )
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   177
);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
   178
?>