Commit 5667a929 authored by Falko Timme's avatar Falko Timme
Browse files

Added DNS module.

parent 269eb518
......@@ -29,54 +29,67 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
ini_set('register_globals',0);
$conf["rootpath"] = "D:\\www\\ispconfig3\\interface";
//$conf["rootpath"] = "D:\\www\\ispconfig3\\interface";
//$conf["rootpath"] = "/home/www/ispconfig3/web/cms";
$conf["rootpath"] = "D:\\www\\ispconfig3\\interface";
//$conf["rootpath"] = "D:\\www\\ispconfig3\\interface";
//$conf["rootpath"] = "/home/www/ispconfig3/web/cms";
$conf["fs_div"] = "\\"; // File system divider, \\ on windows and / on linux and unix
$conf["classpath"] = $conf["rootpath"].$conf["fs_div"]."lib".$conf["fs_div"]."classes";
$conf["temppath"] = $conf["rootpath"].$conf["fs_div"]."temp";
$conf["fs_div"] = "\\"; // File system divider, \\ on windows and / on linux and unix
$conf["classpath"] = $conf["rootpath"].$conf["fs_div"]."lib".$conf["fs_div"]."classes";
$conf["temppath"] = $conf["rootpath"].$conf["fs_div"]."temp";
/*
Database Settings
Database Settings
*/
$conf["db_type"] = 'mysql';
$conf["db_host"] = 'localhost';
$conf["db_database"] = 'ispconfig3';
$conf["db_user"] = 'root';
$conf["db_password"] = '';
$conf["db_type"] = 'mysql';
$conf["db_host"] = 'localhost';
$conf["db_database"] = 'ispconfig3';
$conf["db_user"] = 'root';
$conf["db_password"] = '';
/*
External programs
External programs
*/
//$conf["programs"]["convert"] = "/usr/bin/convert";
$conf["programs"]["wput"] = $conf["rootpath"]."\\tools\\wput\\wput.exe";
//$conf["programs"]["convert"] = "/usr/bin/convert";
$conf["programs"]["wput"] = $conf["rootpath"]."\\tools\\wput\\wput.exe";
/*
Themes
Themes
*/
$conf["theme"] = 'default';
$conf["html_content_encoding"] = 'text/html; charset=iso-8859-1';
$conf["theme"] = 'default';
$conf["html_content_encoding"] = 'text/html; charset=iso-8859-1';
/*
Default Language
Default Language
*/
$conf['language'] = 'en';
$conf['language'] = 'en';
/*
Auto Load Modules
Auto Load Modules
*/
$conf["start_db"] = true;
$conf["start_session"] = true;
$conf["start_db"] = true;
$conf["start_session"] = true;
/*
DNS Settings
*/
$conf['auto_create_ptr'] = 1; // Automatically create PTR records?
$conf['default_ns'] = 'ns1.example.com.'; // must be set if $conf['auto_create_ptr'] is 1. Don't forget the trailing dot!
$conf['default_mbox'] = 'admin.example.com.'; // Admin email address. Must be set if $conf['auto_create_ptr'] is 1. Replace "@" with ".". Don't forget the trailing dot!
$conf['default_ttl'] = 86400;
$conf['default_refresh'] = 28800;
$conf['default_retry'] = 7200;
$conf['default_expire'] = 604800;
$conf['default_minimum_ttl'] = 86400;
?>
\ No newline at end of file
<?php
/*
Form Definition
Tabledefinition
Datatypes:
- INTEGER (Forces the input to Int)
- DOUBLE
- CURRENCY (Formats the values to currency notation)
- VARCHAR (no format check, maxlength: 255)
- TEXT (no format check)
- DATE (Dateformat, automatic conversion to timestamps)
Formtype:
- TEXT (Textfield)
- TEXTAREA (Textarea)
- PASSWORD (Password textfield, input is not shown when edited)
- SELECT (Select option field)
- RADIO
- CHECKBOX
- CHECKBOXARRAY
- FILE
VALUE:
- Wert oder Array
Hint:
The ID field of the database table is not part of the datafield definition.
The ID field must be always auto incement (int or bigint).
*/
$form["title"] = "Record";
$form["description"] = "";
$form["name"] = "rr";
$form["action"] = "rr_edit.php";
$form["db_table"] = "rr";
$form["db_table_idx"] = "id";
$form["db_history"] = "yes";
$form["tab_default"] = "rr";
$form["list_default"] = "rr_list.php";
$form["auth"] = 'no'; // yes / no
$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user
$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
$form["tabs"]['rr'] = array (
'title' => "Record",
'width' => 100,
'template' => "templates/rr_edit.htm",
'fields' => array (
##################################
# Begin Datatable fields
##################################
/*
'server_id' => array (
'datatype' => 'INTEGER',
'formtype' => 'SELECT',
'default' => '',
'datasource' => array ( 'type' => 'SQL',
'querystring' => 'SELECT server_id,server_name FROM server WHERE 1 ORDER BY server_name',
'keyfield'=> 'server_id',
'valuefield'=> 'server_name'
),
'value' => ''
),
*/
'zone' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'validators' => array (0 => array ('type' => 'NOTEMPTY',
'errmsg'=> 'rr_zone_error_empty'),
),
'default' => '',
'value' => '',
'width' => '30',
'maxlength' => '255'
),
'name' => array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'value' => '',
'width' => '30',
'maxlength' => '255'
),
'type' => array (
'datatype' => 'VARCHAR',
'formtype' => 'SELECT',
'default' => '',
'value' => array('A' => 'A', 'AAAA' => 'AAAA', 'ALIAS' => 'ALIAS', 'CNAME' => 'CNAME', 'HINFO' => 'HINFO', 'MX' => 'MX', 'NS' => 'NS', 'PTR' => 'PTR', 'RP' => 'RP', 'SRV' => 'SRV', 'TXT' => 'TXT')
),
'data' => array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'validators' => array (0 => array ('type' => 'NOTEMPTY',
'errmsg'=> 'rr_data_error_empty'),
),
'default' => '',
'value' => '',
'width' => '30',
'maxlength' => '255'
),
'aux' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'default' => '',
'value' => '',
'width' => '30',
'maxlength' => '255'
),
'ttl' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'validators' => array (0 => array ('type' => 'NOTEMPTY',
'errmsg'=> 'rr_ttl_error_empty'),
),
'default' => '86400',
'value' => '86400',
'width' => '30',
'maxlength' => '255'
),
##################################
# ENDE Datatable fields
##################################
)
);
?>
\ No newline at end of file
<?php
/*
Form Definition
Tabledefinition
Datatypes:
- INTEGER (Forces the input to Int)
- DOUBLE
- CURRENCY (Formats the values to currency notation)
- VARCHAR (no format check, maxlength: 255)
- TEXT (no format check)
- DATE (Dateformat, automatic conversion to timestamps)
Formtype:
- TEXT (Textfield)
- TEXTAREA (Textarea)
- PASSWORD (Password textfield, input is not shown when edited)
- SELECT (Select option field)
- RADIO
- CHECKBOX
- CHECKBOXARRAY
- FILE
VALUE:
- Wert oder Array
Hint:
The ID field of the database table is not part of the datafield definition.
The ID field must be always auto incement (int or bigint).
*/
$form["title"] = "SOA";
$form["description"] = "";
$form["name"] = "soa";
$form["action"] = "soa_edit.php";
$form["db_table"] = "soa";
$form["db_table_idx"] = "id";
$form["db_history"] = "yes";
$form["tab_default"] = "soa";
$form["list_default"] = "soa_list.php";
$form["auth"] = 'no'; // yes / no
$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user
$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
$form["tabs"]['soa'] = array (
'title' => "SOA",
'width' => 100,
'template' => "templates/soa_edit.htm",
'fields' => array (
##################################
# Begin Datatable fields
##################################
/*
'server_id' => array (
'datatype' => 'INTEGER',
'formtype' => 'SELECT',
'default' => '',
'datasource' => array ( 'type' => 'SQL',
'querystring' => 'SELECT server_id,server_name FROM server WHERE 1 ORDER BY server_name',
'keyfield'=> 'server_id',
'valuefield'=> 'server_name'
),
'value' => ''
),
*/
'origin' => array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'validators' => array (0 => array ( 'type' => 'NOTEMPTY',
'errmsg'=> 'soa_error_empty'),
1 => array ( 'type' => 'UNIQUE',
'errmsg'=> 'soa_error_unique'),
),
'default' => '',
'value' => '',
'width' => '30',
'maxlength' => '255'
),
'ns' => array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'validators' => array (0 => array ( 'type' => 'NOTEMPTY',
'errmsg'=> 'ns_error_empty'),
),
'default' => $conf['default_ns'],
'value' => $conf['default_ns'],
'width' => '30',
'maxlength' => '255'
),
'mbox' => array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'validators' => array (0 => array ( 'type' => 'NOTEMPTY',
'errmsg'=> 'mbox_error_empty'),
),
'default' => $conf['default_mbox'],
'value' => $conf['default_mbox'],
'width' => '30',
'maxlength' => '255'
),
'serial' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'default' => date("Ymd").'01',
'value' => date("Ymd").'01',
'width' => '30',
'maxlength' => '255'
),
'refresh' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'default' => $conf['default_refresh'],
'value' => $conf['default_refresh'],
'width' => '30',
'maxlength' => '255'
),
'retry' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'default' => $conf['default_retry'],
'value' => $conf['default_retry'],
'width' => '30',
'maxlength' => '255'
),
'expire' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'default' => $conf['default_expire'],
'value' => $conf['default_expire'],
'width' => '30',
'maxlength' => '255'
),
'minimum' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'default' => $conf['default_minimum_ttl'],
'value' => $conf['default_minimum_ttl'],
'width' => '30',
'maxlength' => '255'
),
'ttl' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'default' => $conf['default_ttl'],
'value' => $conf['default_ttl'],
'width' => '30',
'maxlength' => '255'
),
'active' => array (
'datatype' => 'VARCHAR',
'formtype' => 'RADIO',
'default' => 'Y',
'value' => array('Y' => 'Yes','N'=>'No')
),
'xfer' => array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'value' => '',
'width' => '30',
'maxlength' => '255'
),
##################################
# ENDE Datatable fields
##################################
)
);
$form["tabs"]['rr'] = array (
'title' => "Records",
'width' => 100,
'template' => "templates/soa_edit_rr.htm",
'fields' => array (
##################################
# Beginn Datatable fields
##################################
##################################
# ENDE Datatable fields
##################################
),
'plugins' => array (
'rr_list' => array (
'class' => 'plugin_listview',
'options' => array('listdef' => 'list/rr.list.php', 'sqlextwhere' => "zone = ".intval($_REQUEST['id']))
)
)
);
?>
\ No newline at end of file
<?php
?>
\ No newline at end of file
<?php
$wb["zone_txt"] = 'zone';
$wb["name_txt"] = 'name';
$wb["type_txt"] = 'type';
$wb["data_txt"] = 'data';
$wb["aux_txt"] = 'aux';
$wb["ttl_txt"] = 'ttl';
$wb["btn_save_txt"] = 'Save';
$wb["btn_cancel_txt"] = 'Cancel';
?>
\ No newline at end of file
<?php
$wb["list_head_txt"] = 'rr';
$wb["name_txt"] = 'name';
$wb["type_txt"] = 'type';
$wb["data_txt"] = 'data';
$wb["aux_txt"] = 'aux';
$wb["ttl_txt"] = 'ttl';
$wb["page_txt"] = 'Page';
$wb["page_of_txt"] = 'of';
$wb["page_next_txt"] = 'Next';
$wb["page_back_txt"] = 'Back';
$wb["delete_txt"] = 'Delete';
$wb["filter_txt"] = 'Filter';
?>
\ No newline at end of file
<?php
$wb["origin_txt"] = 'origin';
$wb["ns_txt"] = 'ns';
$wb["mbox_txt"] = 'mbox';
$wb["serial_txt"] = 'serial';
$wb["refresh_txt"] = 'refresh';
$wb["retry_txt"] = 'retry';
$wb["expire_txt"] = 'expire';
$wb["minimum_txt"] = 'minimum';
$wb["ttl_txt"] = 'ttl';
$wb["active_txt"] = 'active';
$wb["xfer_txt"] = 'xfer';
$wb["btn_save_txt"] = 'Save';
$wb["btn_cancel_txt"] = 'Cancel';
?>
\ No newline at end of file
<?php
$wb["list_head_txt"] = 'soa';
$wb["origin_txt"] = 'origin';
$wb["ns_txt"] = 'ns';
$wb["mbox_txt"] = 'mbox';
$wb["serial_txt"] = 'serial';
$wb["refresh_txt"] = 'refresh';
$wb["retry_txt"] = 'retry';
$wb["expire_txt"] = 'expire';
$wb["minimum_txt"] = 'minimum';
$wb["ttl_txt"] = 'ttl';
$wb["active_txt"] = 'active';
$wb["xfer_txt"] = 'xfer';
$wb["page_txt"] = 'Page';
$wb["page_of_txt"] = 'of';
$wb["page_next_txt"] = 'Next';
$wb["page_back_txt"] = 'Back';
$wb["delete_txt"] = 'Delete';
$wb["filter_txt"] = 'Filter';
?>
\ No newline at end of file
<?php
$module = array (
'name' => 'dns',
'title' => 'DNS',
'template' => 'module.tpl.htm',
'navframe_page' => '',
'startpage' => 'dns/soa_list.php',
'tab_width' => '',
'nav' =>
array (
0 =>
array (
'title' => 'Zones',
'open' => 1,
'items' =>
array (
0 =>
array (
'title' => 'SOA',
'target' => 'content',
'link' => 'dns/soa_list.php',
),
),
),
),
)
?>
\ No newline at end of file
<?php
/*
Datatypes:
- INTEGER
- DOUBLE
- CURRENCY
- VARCHAR
- TEXT
- DATE
*/
// Name of the list
$liste["name"] = "rr";
// Database table
$liste["table"] = "rr";
// Index index field of the database table
$liste["table_idx"] = "id";
// Search Field Prefix
$liste["search_prefix"] = "search_";
// Records per page
$liste["records_per_page"] = 15;
// Script File of the list
$liste["file"] = "rr_list.php";
// Script file of the edit form
$liste["edit_file"] = "rr_edit.php";
// Script File of the delete script
$liste["delete_file"] = "rr_del.php";
// Paging Template
$liste["paging_tpl"] = "templates/paging.tpl.htm";
// Enable auth
$liste["auth"] = "no";
/*****************************************************
* Suchfelder
*****************************************************/
/*
$liste["item"][] = array( 'field' => "server_id",
'datatype' => "VARCHAR",
'formtype' => "TEXT",
'op' => "like",
'prefix' => "%",
'suffix' => "%",
'width' => "",
'value' => "");
*/
$liste["item"][] = array( 'field' => "name",
'datatype' => "VARCHAR",
'formtype' => "TEXT",
'op' => "like",
'prefix' => "%",
'suffix' => "%",
'width' => "",
'value' => "");
$liste["item"][] = array( 'field' => "type",
'datatype' => "VARCHAR",
'formtype' => "SELECT",
'op' => "=",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('A' => 'A', 'AAAA' => 'AAAA', 'ALIAS' => 'ALIAS', 'CNAME' => 'CNAME', 'HINFO' => 'HINFO', 'MX' => 'MX', 'NS' => 'NS', 'PTR' => 'PTR', 'RP' => 'RP', 'SRV' => 'SRV', 'TXT' => 'TXT'));
$liste["item"][] = array( 'field' => "data",
'datatype' => "VARCHAR",
'formtype' => "TEXT"