diff -r 3673b1c9246c -r c795dd75a77e inc/config-me.inc.php --- a/inc/config-me.inc.php Thu Apr 10 19:42:47 2008 +0000 +++ b/inc/config-me.inc.php Fri Apr 11 10:19:14 2008 +0000 @@ -1,186 +1,22 @@ for more details. - * - * Copyright 2007, 2008 Rejo Zenger - * - * 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 . - */ - -/* Edit all fields below here to your information */ - -/* MySQL Configuration */ - -// -// Host we should connect to. -// This could be for example "localhost" or a sock file -$dbhost = 'localhost'; - -// -// Your user with SELECT/INSERT/UPDATE/DELETE/CREATE access to $dbdatabase -$dbuser = ''; - -// -// Your password, the password for $dbuser -$dbpass = ''; - -// Your database, the database you want to use for PowerDNS (or are already using) -$dbdatabase = ''; - -// The dsn you want to use (which database you want to use) -// Tested is mysql and pgsql default is mysql -$dbdsntype = 'mysql'; +// See for help. -/* URI Configuration */ - -// $BASE_URL -// This will be the main URI you will use to connect to Poweradmin. -// For instance: "http://poweradmin.sjeemz.nl" -$BASE_URL = "http://"; - -// $BASE_PATH -// If Poweradmin is in a subdir. Specify this here -// For instance: "/admin/" -$BASE_PATH = "/admin/"; - -// $LANG -// Which language should be used for the web interface? -$LANG = "en_EN"; - -// $STYLE -// Define skin of web frontend. This should be the basename of the CSS file that -// will be included, it will be used like: "style/$STYLE.css.php". -$STYLE = "example"; - -// $ROWAMOUNT -// Define which rowamount should be used in the listing of records. -$ROWAMOUNT = 50; - -/* DNS Record information */ - - -// $HOSTMASTER -// The email address of the hostmaster you want to be mailed. -// For instance: "hostmaster@sjeemz.nl" -$HOSTMASTER = ""; - -// $NS1 -// Your first nameserver -// Should be a domainname! Not an IP. -$NS1 = ""; - -// $NS2 -// Your second nameserver. -// If you dont have a second nameserver, fill in the same value as $NS1 -$NS2 = ""; - -/* You dont have to edit these fields. Change them if you want. */ - +$db_host = ""; +$db_user = ""; +$db_pass = ""; +$db_name = ""; +$db_type = ""; -// $EXPIRE -// Session timeout in seconds. This is 1800 seconds which is 30 minutes by default. -// The information in this field should be in seconds. -// After this $EXPIRE you are automatically logged out from the system. -$EXPIRE = 1800; - -// $DEFAULT_TTL -// Default TTL for records. -// Default time to live for all records. This notation is in seconds. -$DEFAULT_TTL = 86400; // (3600 seconds / 1 hour by default) - -// Enable fancy records or not (http://doc.powerdns.com/fancy-records.html)? true/false -$FANCY_RECORDS = true; - - -/* ------------------------------------------ */ -/* No need to make changes below this line... */ -/* Which means, dont touch it */ -/* ------------------------------------------ */ - -/* -------------------------------------------------------------------- */ -/* NO REALLY DONT TOUCH IT! Unless you _REALLY_ know what you are doing */ -/* -------------------------------------------------------------------- */ - -// $rtypes - array of possible record types -$rtypes = array('A', 'AAAA', 'CNAME', 'HINFO', 'MX', 'NAPTR', 'NS', 'PTR', 'SOA', 'TXT'); - -// If fancy records is enabled, extend this field. -if($FANCY_RECORDS) -{ - $rtypes[10] = 'URL'; - $rtypes[11] = 'MBOXFW'; -} - -// $template - array of records that will be applied when adding a new zone file -$template = array( - array( +$iface_lang = "en_EN"; +$iface_style = "example"; +$iface_rowamount = "50"; +$iface_expire = "1800"; - "name" => "##DOMAIN##", - "type" => "SOA", - "content" => "$NS1 $HOSTMASTER 1", - "ttl" => "$DEFAULT_TTL", - "prio" => "" - ), - array( - "name" => "##DOMAIN##", - "type" => "NS", - "content" => "$NS1", - "ttl" => "$DEFAULT_TTL", - "prio" => "" - ), - array( - "name" => "##DOMAIN##", - "type" => "NS", - "content" => "$NS2", - "ttl" => "$DEFAULT_TTL", - "prio" => "" - ), - array( - "name" => "www.##DOMAIN##", - "type" => "A", - "content" => "##WEBIP##", - "ttl" => "$DEFAULT_TTL", - "prio" => "" - ), - array( - "name" => "##DOMAIN##", - "type" => "A", - "content" => "##WEBIP##", - "ttl" => "$DEFAULT_TTL", - "prio" => "" - ), - array( - "name" => "mail.##DOMAIN##", - "type" => "A", - "content" => "##MAILIP##", - "ttl" => "$DEFAULT_TTL", - "prio" => "" - ), - array( - "name" => "localhost.##DOMAIN##", - "type" => "A", - "content" => "127.0.0.1", - "ttl" => "$DEFAULT_TTL", - "prio" => "" - ), - array( - "name" => "##DOMAIN##", - "type" => "MX", - "content" => "mail.##DOMAIN##", - "ttl" => "$DEFAULT_TTL", - "prio" => "10" - ) -); +$dns_hostmaster = ""; +$dns_ns1 = ""; +$dns_ns2 = ""; +$dns_ttl = "86400"; +$dns_fancy = "false"; + ?>