inc/config-me.inc.php
author rejo
Sun, 22 Apr 2007 14:07:04 +0000
changeset 10 68d13494519e
parent 8 47dd15d8bb8c
child 13 2ff220cfde13
permissions -rw-r--r--
[feladat @ 24] Fixed small typo.
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
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    30
// $BASE_URL
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    31
// This will be the main URI you will use to connect to PowerAdmin.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    32
// For instance: "http://poweradmin.sjeemz.nl"
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    33
$BASE_URL = "http://";
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    34
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    35
// $BASE_PATH
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    36
// If PowerAdmin is in a subdir. Specify this here
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    37
// For instance: "/admin/"
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    38
$BASE_PATH = "/admin/";
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    39
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    40
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    41
/* DNS Record information */
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    42
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    43
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    44
// $HOSTMASTER
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    45
// The email address of the hostmaster you want to be mailed.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    46
// For instance: "hostmaster@sjeemz.nl"
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    47
$HOSTMASTER = "";
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    48
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    49
// $NS1
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    50
// Your first nameserver
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    51
// Should be a domainname! Not an IP.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    52
$NS1 = "";
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    53
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    54
// $NS2
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    55
// Your second nameserver.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    56
// If you dont have a second nameserver, fill in the same value as $NS1
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    57
$NS2 = "";
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    58
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    59
/* You dont have to edit these fields. Change them if you want. */
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    60
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    61
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    62
// $EXPIRE
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    63
// Session timeout in seconds. This is 1800 seconds which is 30 minutes by default.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    64
// The information in this field should be in seconds.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    65
// After this $EXPIRE you are automatically logged out from the system.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    66
$EXPIRE = 1800;
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    67
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    68
// $ALLOW_SOA_EDIT
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    69
// Allow users with level 1 to edit/delete SOA records?
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    70
$ALLOW_SOA_EDIT = 0;
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    71
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    72
// $ALLOW_NS_EDIT
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    73
// Allow users with level 1 to edit/delete pre-set NS records for their domain.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    74
$ALLOW_NS_EDIT = 1;
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    75
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    76
// $DEFAULT_TTL
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    77
// Default TTL for records.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    78
// Default time to live for all records. This notation is in seconds.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    79
$DEFAULT_TTL = 3600;      // (3600 seconds / 1 hour by default)
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    80
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    81
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    82
// $NAME_LEVEL_X
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    83
// These directives allow you to change the statusnames of users on the system.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    84
$NAME_LEVEL_1 = _('Normal user');
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    85
$NAME_LEVEL_5 = _('Administrator');
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    86
$NAME_LEVEL_10 = _('Administrator w/ user admin rights');
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    87
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    88
// Enable fancy records or not (http://doc.powerdns.com/fancy-records.html)? true/false
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    89
$FANCY_RECORDS = true;
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    90
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    91
// Master or slave functionality. Set this to either true or false.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    92
// This field indicates if you are running in a MASTER/SLAVE setup or in a NATIVE setup.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    93
// By toggling this function you will get some more selection features.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    94
// Default is false.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    95
// Use these features with care, they havent been tested much yet.
47dd15d8bb8c [feladat @ 20]
rejo
parents:
diff changeset
    96
$MASTER_SLAVE_FUNCTIONS = false;
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
?>