inc/config-me.inc.php
author rejo
Thu, 03 Apr 2008 18:57:11 +0000
changeset 125 700a3674b72e
parent 119 f74e4f88b680
child 136 c795dd75a77e
permissions -rw-r--r--
[feladat @ 229] Changed URL's to Poweradmin website in footer of PHP pages.
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
119
f74e4f88b680 [feladat @ 222]
rejo
parents: 82
diff changeset
     3
/*  Poweradmin, a friendly web-based admin tool for PowerDNS.
47
ae140472d97c [feladat @ 94]
rejo
parents: 23
diff changeset
     4
 *  See <https://rejo.zenger.nl/poweradmin> for more details.
ae140472d97c [feladat @ 94]
rejo
parents: 23
diff changeset
     5
 *
ae140472d97c [feladat @ 94]
rejo
parents: 23
diff changeset
     6
 *  Copyright 2007, 2008  Rejo Zenger <rejo@zenger.nl>
ae140472d97c [feladat @ 94]
rejo
parents: 23
diff changeset
     7
 *
ae140472d97c [feladat @ 94]
rejo
parents: 23
diff changeset
     8
 *  This program is free software: you can redistribute it and/or modify
ae140472d97c [feladat @ 94]
rejo
parents: 23
diff changeset
     9
 *  it under the terms of the GNU General Public License as published by
ae140472d97c [feladat @ 94]
rejo
parents: 23
diff changeset
    10
 *  the Free Software Foundation, either version 3 of the License, or
ae140472d97c [feladat @ 94]
rejo
parents: 23
diff changeset
    11
 *  (at your option) any later version.
ae140472d97c [feladat @ 94]
rejo
parents: 23
diff changeset
    12
 *
ae140472d97c [feladat @ 94]
rejo
parents: 23
diff changeset
    13
 *  This program is distributed in the hope that it will be useful,
ae140472d97c [feladat @ 94]
rejo
parents: 23
diff changeset
    14
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
ae140472d97c [feladat @ 94]
rejo
parents: 23
diff changeset
    15
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
ae140472d97c [feladat @ 94]
rejo
parents: 23
diff changeset
    16
 *  GNU General Public License for more details.
ae140472d97c [feladat @ 94]
rejo
parents: 23
diff changeset
    17
 *
ae140472d97c [feladat @ 94]
rejo
parents: 23
diff changeset
    18
 *  You should have received a copy of the GNU General Public License
ae140472d97c [feladat @ 94]
rejo
parents: 23
diff changeset
    19
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
ae140472d97c [feladat @ 94]
rejo
parents: 23
diff changeset
    20
 */
ae140472d97c [feladat @ 94]
rejo
parents: 23
diff changeset
    21
8
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    22
/* Edit all fields below here to your information */
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    23
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    24
/* MySQL Configuration */
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    25
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    26
//
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    27
// Host we should connect to.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    28
// This could be for example "localhost" or a sock file
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    29
$dbhost = 'localhost';
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    30
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    31
//
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    32
// Your user with SELECT/INSERT/UPDATE/DELETE/CREATE access to $dbdatabase
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    33
$dbuser = '';
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    34
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    35
//
10
68d13494519e [feladat @ 24]
rejo
parents: 8
diff changeset
    36
// Your password, the password for $dbuser
8
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    37
$dbpass = '';
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    38
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    39
// Your database, the database you want to use for PowerDNS (or are already using)
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    40
$dbdatabase   = '';
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    41
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    42
// The dsn you want to use (which database you want to use)
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    43
// Tested is mysql and pgsql default is mysql
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    44
$dbdsntype = 'mysql';
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    45
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    46
/* URI Configuration */
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    47
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    48
// $BASE_URL
119
f74e4f88b680 [feladat @ 222]
rejo
parents: 82
diff changeset
    49
// This will be the main URI you will use to connect to Poweradmin.
8
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    50
// For instance: "http://poweradmin.sjeemz.nl"
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    51
$BASE_URL = "http://";
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    52
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    53
// $BASE_PATH
119
f74e4f88b680 [feladat @ 222]
rejo
parents: 82
diff changeset
    54
// If Poweradmin is in a subdir. Specify this here
8
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    55
// For instance: "/admin/"
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    56
$BASE_PATH = "/admin/";
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    57
13
2ff220cfde13 [feladat @ 60]
rejo
parents: 10
diff changeset
    58
// $LANG
2ff220cfde13 [feladat @ 60]
rejo
parents: 10
diff changeset
    59
// Which language should be used for the web interface?
2ff220cfde13 [feladat @ 60]
rejo
parents: 10
diff changeset
    60
$LANG = "en_EN";
2ff220cfde13 [feladat @ 60]
rejo
parents: 10
diff changeset
    61
2ff220cfde13 [feladat @ 60]
rejo
parents: 10
diff changeset
    62
// $STYLE
2ff220cfde13 [feladat @ 60]
rejo
parents: 10
diff changeset
    63
// Define skin of web frontend. This should be the basename of the CSS file that
2ff220cfde13 [feladat @ 60]
rejo
parents: 10
diff changeset
    64
// will be included, it will be used like: "style/$STYLE.css.php".
2ff220cfde13 [feladat @ 60]
rejo
parents: 10
diff changeset
    65
$STYLE = "example";
8
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    66
76
0748816801b2 [feladat @ 123]
rejo
parents: 75
diff changeset
    67
// $ROWAMOUNT
74
43c31dc98305 [feladat @ 121]
peter
parents: 47
diff changeset
    68
// Define which rowamount should be used in the listing of records.
76
0748816801b2 [feladat @ 123]
rejo
parents: 75
diff changeset
    69
$ROWAMOUNT = 50;
74
43c31dc98305 [feladat @ 121]
peter
parents: 47
diff changeset
    70
8
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    71
/* DNS Record information */
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    72
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    73
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    74
// $HOSTMASTER
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    75
// The email address of the hostmaster you want to be mailed.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    76
// For instance: "hostmaster@sjeemz.nl"
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    77
$HOSTMASTER = "";
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    78
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    79
// $NS1
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    80
// Your first nameserver
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    81
// Should be a domainname! Not an IP.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    82
$NS1 = "";
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    83
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    84
// $NS2
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    85
// Your second nameserver.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    86
// If you dont have a second nameserver, fill in the same value as $NS1
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    87
$NS2 = "";
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    88
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    89
/* You dont have to edit these fields. Change them if you want. */
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    90
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    91
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    92
// $EXPIRE
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    93
// Session timeout in seconds. This is 1800 seconds which is 30 minutes by default.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    94
// The information in this field should be in seconds.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    95
// After this $EXPIRE you are automatically logged out from the system.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    96
$EXPIRE = 1800;
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    97
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    98
// $DEFAULT_TTL
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    99
// Default TTL for records.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   100
// Default time to live for all records. This notation is in seconds.
23
4abaed69febd [feladat @ 70]
rejo
parents: 13
diff changeset
   101
$DEFAULT_TTL = 86400;      // (3600 seconds / 1 hour by default)
8
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   102
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   103
// Enable fancy records or not (http://doc.powerdns.com/fancy-records.html)? true/false
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   104
$FANCY_RECORDS = true;
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   105
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   106
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   107
/* ------------------------------------------ */
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   108
/* No need to make changes below this line... */
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   109
/* Which means, dont touch it		      */
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   110
/* ------------------------------------------ */
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   111
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   112
/* -------------------------------------------------------------------- */
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   113
/* NO REALLY DONT TOUCH IT! Unless you _REALLY_ know what you are doing */
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   114
/* -------------------------------------------------------------------- */
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   115
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   116
// $rtypes - array of possible record types
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   117
$rtypes = array('A', 'AAAA', 'CNAME', 'HINFO', 'MX', 'NAPTR', 'NS', 'PTR', 'SOA', 'TXT');
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   118
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   119
// If fancy records is enabled, extend this field.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   120
if($FANCY_RECORDS)
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   121
{
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   122
	$rtypes[10] = 'URL';
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   123
	$rtypes[11] = 'MBOXFW';
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   124
}
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   125
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   126
// $template - array of records that will be applied when adding a new zone file
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   127
$template = array(
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   128
                array(
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   129
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   130
                                "name"          =>              "##DOMAIN##",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   131
                                "type"          =>              "SOA",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   132
                                "content"       =>              "$NS1 $HOSTMASTER 1",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   133
                                "ttl"           =>              "$DEFAULT_TTL",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   134
                                "prio"          =>              ""
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   135
                ),
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   136
                array(
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   137
                                "name"          =>              "##DOMAIN##",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   138
                                "type"          =>              "NS",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   139
                                "content"       =>              "$NS1",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   140
                                "ttl"           =>              "$DEFAULT_TTL",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   141
                                "prio"          =>              ""
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   142
                ),
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   143
                array(
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   144
                                "name"          =>              "##DOMAIN##",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   145
                                "type"          =>              "NS",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   146
                                "content"       =>              "$NS2",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   147
                                "ttl"           =>              "$DEFAULT_TTL",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   148
                                "prio"          =>              ""
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   149
                ),
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   150
                array(
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   151
                                "name"          =>              "www.##DOMAIN##",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   152
                                "type"          =>              "A",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   153
                                "content"       =>              "##WEBIP##",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   154
                                "ttl"           =>              "$DEFAULT_TTL",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   155
                                "prio"          =>              ""
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   156
                ),
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   157
                array(
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   158
                                "name"          =>              "##DOMAIN##",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   159
                                "type"          =>              "A",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   160
                                "content"       =>              "##WEBIP##",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   161
                                "ttl"           =>              "$DEFAULT_TTL",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   162
                                "prio"          =>              ""
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   163
                ),
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   164
                array(
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   165
                                "name"          =>              "mail.##DOMAIN##",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   166
                                "type"          =>              "A",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   167
                                "content"       =>              "##MAILIP##",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   168
                                "ttl"           =>              "$DEFAULT_TTL",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   169
                                "prio"          =>              ""
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   170
                ),
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   171
                array(
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   172
                                "name"          =>              "localhost.##DOMAIN##",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   173
                                "type"          =>              "A",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   174
                                "content"       =>              "127.0.0.1",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   175
                                "ttl"           =>              "$DEFAULT_TTL",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   176
                                "prio"          =>              ""
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   177
                ),
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   178
                array(
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   179
                                "name"          =>              "##DOMAIN##",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   180
                                "type"          =>              "MX",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   181
                                "content"       =>              "mail.##DOMAIN##",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   182
                                "ttl"           =>              "$DEFAULT_TTL",
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   183
                                "prio"          =>              "10"
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   184
                )
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   185
);
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
   186
?>