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