11 files added
17 files modified
| | |
| | | $this->tpl->setVar('logo', ' ');
|
| | | }
|
| | | $this->tpl->setVar('app_title',$conf["app_title"]);
|
| | | $this->tpl->setVar('delete_confirmation',$this->lng('delete_confirmation'));
|
| | |
|
| | | }
|
| | |
|
| | |
| | |
|
| | | // checking permissions
|
| | | if($app->tform->formDef['auth'] == 'yes') {
|
| | | if($app->tform->checkPerm($this->id,'d') == false) die("Deletion denied.<br>\r\n");
|
| | | if($app->tform->checkPerm($this->id,'d') == false) $app->error($app->lng('error_no_delete_permission'));
|
| | | }
|
| | |
|
| | | $record_old = $app->db->queryOneRecord("SELECT * FROM ".$liste["table"]." WHERE ".$liste["table_idx"]." = ".$this->id);
|
| | |
| | | } else {
|
| | | $sql = "SELECT * FROM ".$app->tform->formDef['db_table']." WHERE ".$app->tform->formDef['db_table_idx']." = ".$this->id." AND ".$app->tform->getAuthSQL('u');
|
| | | }
|
| | | if(!$record = $app->db->queryOneRecord($sql)) die("You dont have the permission to view this record or this record does not exist.");
|
| | | if(!$record = $app->db->queryOneRecord($sql)) $app->error($app->lng('error_no_view_permission'));
|
| | | } else {
|
| | | $record = $app->tform->encode($_POST,$this->active_tab);
|
| | | }
|
| | |
| | | // Satz für englische Reiterkarten
|
| | | $wb[304] = ' Dieses Formular dient zum Anlegen eines englischsprachigen Eintrags zusätzlich zu Ihrem deutschen Eintrag. Bitte vervollständigen Sie die Daten, soweit erforderlich, in Englisch - die Inhalte aus den Drop-Down-Menüs werden automatisch übersetzt:';
|
| | |
|
| | | $wb[1001] = 'Der Benutzername und das Passwort dürfen nicht leer sein!';
|
| | | $wb[1002] = 'Der Benutzername und/oder das Passwort sind nicht korrekt!';
|
| | | $wb[1003] = 'Der Benutzername ist deaktiviert!';
|
| | |
|
| | | $wb['delete_confirmation'] = 'Wollen Sie den Datensatz wirklich löschen?';
|
| | |
|
| | | $wb['error_no_view_permission'] = 'Sie haben nicht die Berechtigung, den Datensatz zu lesen, oder der Datensatz existiert nicht!';
|
| | | $wb['error_no_delete_permission'] = 'Sie haben nicht die Berechtigung, den Datensatz zu löschen!';
|
| | |
|
| | |
|
| | | ?>
|
| | |
| | | $wb[301] = 'Module not permitted for the current user.'; |
| | | $wb[302] = 'Module invalid.'; |
| | | |
| | | $wb[1001] = 'The username and password must not be empty!';
|
| | | $wb[1002] = 'The username and/or password are not correct!';
|
| | | $wb[1003] = 'The username is deactivated!';
|
| | |
|
| | | $wb['delete_confirmation'] = 'Do you really want to delete this record?';
|
| | |
|
| | | $wb['error_no_view_permission'] = 'You don\'t have the permission to view this record or this record does not exist!';
|
| | | $wb['error_no_delete_permission'] = 'You don\'t have the permission to delete this record!';
|
| | |
|
| | | ?> |
| | |
| | | $wb[301] = 'Module interdit pour l'utilisateur courant.'; |
| | | $wb[302] = 'Module invalide.'; |
| | | |
| | | $wb[1001] = 'The username and password must not be empty!';
|
| | | $wb[1002] = 'The username and/or password are not correct!';
|
| | | $wb[1003] = 'The username is deactivated!';
|
| | |
|
| | | $wb['delete_confirmation'] = 'Do you really want to delete this record?';
|
| | |
|
| | | $wb['error_no_view_permission'] = 'You don\'t have the permission to view this record or this record does not exist!';
|
| | | $wb['error_no_delete_permission'] = 'You don\'t have the permission to delete this record!';
|
| | |
|
| | | ?> |
| | |
| | | $wb[301] = 'Modulen är ej tillåten för nuvarande användare.'; |
| | | $wb[302] = 'Modulen är ogiltig.'; |
| | | |
| | | $wb[1001] = 'The username and password must not be empty!';
|
| | | $wb[1002] = 'The username and/or password are not correct!';
|
| | | $wb[1003] = 'The username is deactivated!';
|
| | |
|
| | | $wb['delete_confirmation'] = 'Do you really want to delete this record?';
|
| | |
|
| | | $wb['error_no_view_permission'] = 'You don\'t have the permission to view this record or this record does not exist!';
|
| | | $wb['error_no_delete_permission'] = 'You don\'t have the permission to delete this record!';
|
| | |
|
| | | ?> |
New file |
| | |
| | | <?php
|
| | |
|
| | | $wb["Yes"] = 'Ja';
|
| | | $wb["No"] = 'Nein';
|
| | | $wb["error_no_permission"] = 'Sie haben nicht die Berechtigung, den Vorgang durchzuführen!';
|
| | |
|
| | | ?> |
New file |
| | |
| | | <?php
|
| | | $wb["zone_txt"] = 'Zone';
|
| | | $wb["name_txt"] = 'Name';
|
| | | $wb["type_txt"] = 'Typ';
|
| | | $wb["data_txt"] = 'Daten';
|
| | | $wb["aux_txt"] = 'Priorität';
|
| | | $wb["ttl_txt"] = 'TTL';
|
| | | $wb["weight_txt"] = 'Gewicht';
|
| | | $wb["port_txt"] = 'Port';
|
| | | $wb["rp_mbox_txt"] = 'RP Mailbox';
|
| | | $wb["rp_txtref_txt"] = 'RP TXTREF';
|
| | | $wb["srv_target_txt"] = 'SRV TARGET';
|
| | | $wb["zone_origin_txt"] = 'Zonen-Ursprung';
|
| | | $wb["ns_txt"] = 'Nameserver';
|
| | | $wb["mbox_txt"] = 'Admin-Email';
|
| | | $wb["btn_save_txt"] = 'Speichern';
|
| | | $wb["btn_cancel_txt"] = 'Abbrechen';
|
| | | $wb["rr_data_error_empty"] = 'Das Daten-Feld darf nicht leer sein!';
|
| | | $wb["rr_aux_error_noint"] = 'Priorität muß ein Integer sein!';
|
| | | $wb["rr_ttl_error_notpositive"] = 'Die TTL muß positiv sein!';
|
| | | $wb["error_ptr"] = 'muß einen Fully Qualified Domain Name beinhalten, der mit einem Punkt endet!';
|
| | | $wb["error_hinfo"] = 'muß den CPU-Typ beinhalten, dann ein Leerzeichen, dann den Betriebssystem-Typ!';
|
| | | $wb["error_aaaa"] = 'muß eine gültige IPv6-Adresse beinhalten!';
|
| | | $wb["error_a"] = 'muß eine gültige IP-Adresse beinhalten!';
|
| | | $wb["error_must_be_integer"] = 'muß ein Integer sein!';
|
| | | $wb["error_must_not_be_greater_than_2147483647"] = 'darf nicht größer sein als 2147483647!';
|
| | | $wb["error_must_be_positive"] = 'muß positiv sein!';
|
| | | $wb["error_must_not_be_negative"] = 'darf nicht negativ sein!';
|
| | | $wb["error_255_characters"] = 'beinhaltet mehr als 255 Zeichen!';
|
| | | $wb["error_63_characters"] = 'beinhaltet einen Teil mit mehr als 63 Zeichen!';
|
| | | $wb["error_invalid_characters"] = 'beinhaltet einen Teil mit ungültigen Zeichen!';
|
| | | $wb["error_hyphen_begin"] = 'beinhaltet einen Teil, der mit einem Bindestrich beginnt!';
|
| | | $wb["error_hyphen_end"] = 'beinhaltet einen Teil, der mit einem Bindestrich endet!';
|
| | | $wb["error_wildcard_non_initial_part"] = 'beinhaltet einen Platzhalter in einem Teil, der nicht am Anfang steht!';
|
| | | $wb["error_wildcard_mix"] = 'beinhaltet einen Teil, wo ein Platzhalter mit anderen Zeichen vermischt wird!';
|
| | | $wb["error_no_wildcard_allowed"] = 'darf keine Platzhalter beinhalten!';
|
| | | $wb["error_out_of_zone"] = 'ist nicht Teil der Zone!';
|
| | | $wb["error_invalid_rp"] = 'hat ein ungültiges Format. Das korrekte Format ist die <i>mbox</i> (eine DNS-kodierte Email-Adresse), dann ein Leerzeichen, dann der <i>txtref</i>, der entweder einen Host für den TXT-Lookup oder einen Punkt beinhalten muß!';
|
| | | $wb["error_invalid_srv"] = 'hat ein ungültiges Format. Das korrekte Format is das <i>Gewicht</i> (0-65535), dann ein Leerzeichen, dann der <i>Port</i> (0-65535), dann ein Leerzeichen, dann das <i>Ziel</i>!';
|
| | | $wb["error_srv_out_of_range"] = 'für den SRV-Eintrag liegt nicht innerhalb der zulässigen Grenzen!';
|
| | | $wb["error_no_permission"] = 'Sie haben nicht die Berechtigung, diesen Vorgang durchzuführen!';
|
| | | ?> |
New file |
| | |
| | | <?php
|
| | | $wb["list_head_txt"] = 'Einträge';
|
| | | $wb["name_txt"] = 'Name';
|
| | | $wb["type_txt"] = 'Typ';
|
| | | $wb["data_txt"] = 'Daten';
|
| | | $wb["aux_txt"] = 'Priorität';
|
| | | $wb["ttl_txt"] = 'TTL';
|
| | | $wb["page_txt"] = 'Seite';
|
| | | $wb["page_of_txt"] = 'von';
|
| | | $wb["page_next_txt"] = 'Weiter';
|
| | | $wb["page_back_txt"] = 'Zurück';
|
| | | $wb["delete_txt"] = 'Löschen';
|
| | | $wb["filter_txt"] = 'Filter';
|
| | | $wb["add_new_record_txt"] = 'Neuen Eintrag erstellen';
|
| | | $wb['delete_confirmation'] = 'Wollen Sie den Datensatz wirklich löschen?';
|
| | | ?> |
New file |
| | |
| | | <?php
|
| | | $wb["origin_txt"] = 'Ursprung';
|
| | | $wb["ns_txt"] = 'Nameserver';
|
| | | $wb["mbox_txt"] = 'Admin-Email';
|
| | | $wb["serial_txt"] = 'Seriennr.';
|
| | | $wb["refresh_txt"] = 'Refresh';
|
| | | $wb["retry_txt"] = 'Retry';
|
| | | $wb["expire_txt"] = 'Expire';
|
| | | $wb["minimum_txt"] = 'Minimum TTL';
|
| | | $wb["ttl_txt"] = 'TTL';
|
| | | $wb["active_txt"] = 'Aktiv';
|
| | | $wb["xfer_txt"] = 'Zonen-Transfers';
|
| | | $wb["name_txt"] = 'Name';
|
| | | $wb["data_txt"] = 'Daten';
|
| | | $wb["rp_mbox_txt"] = 'RP Mailbox';
|
| | | $wb["rp_txtref_txt"] = 'RP TXTREF';
|
| | | $wb["srv_target_txt"] = 'SRV TARGET';
|
| | | $wb["zone_origin_txt"] = 'Zonen-Ursprung';
|
| | | $wb["yes_txt"] = 'Ja';
|
| | | $wb["no_txt"] = 'Nein';
|
| | | $wb["btn_save_txt"] = 'Speichern';
|
| | | $wb["btn_cancel_txt"] = 'Abbrechen';
|
| | | $wb["soa_error_empty"] = 'Der Ursprung darf nicht leer sein!';
|
| | | $wb["soa_error_unique"] = 'Dieser Ursprung existiert schon. Der Ursprung darf nur einmalig vorkommen!';
|
| | | $wb["ns_error_empty"] = 'Der Nameserver darf nicht leer sein!';
|
| | | $wb["mbox_error_empty"] = 'Die Admin-Emailadresse darf nicht leer sein!';
|
| | | $wb["serial_error_notpositive"] = 'Die Seriennr. muß positiv sein!';
|
| | | $wb["refresh_error_notpositive"] = 'Der Refresh muß positiv sein!';
|
| | | $wb["retry_error_notpositive"] = 'Der Retry muß positiv sein!';
|
| | | $wb["expire_error_notpositive"] = 'Der Expire muß positiv sein!';
|
| | | $wb["minimum_error_notpositive"] = 'Die Minimum TTL muß positiv sein!';
|
| | | $wb["ttl_error_notpositive"] = 'Die TTL muß positiv sein!';
|
| | | $wb["error_empty"] = 'darf nicht leer sein!';
|
| | | $wb["error_dot"] = 'muß mit einem Punkt enden!';
|
| | | $wb["error_must_be_integer"] = 'muß ein Integer sein!';
|
| | | $wb["error_must_not_be_greater_than_2147483647"] = 'darf nicht größer sein als 2147483647!';
|
| | | $wb["error_must_be_positive"] = 'muß positiv sein!';
|
| | | $wb["error_must_not_be_negative"] = 'darf nicht negativ sein!';
|
| | | $wb["error_255_characters"] = 'beinhaltet mehr als 255 Zeichen!';
|
| | | $wb["error_63_characters"] = 'beinhaltet einen Teil mit mehr als 63 Zeichen!';
|
| | | $wb["error_invalid_characters"] = 'beinhaltet einen Teil mit ungültigen Zeichen!';
|
| | | $wb["error_hyphen_begin"] = 'beinhaltet einen Teil, der mit einem Bindestrich beginnt!';
|
| | | $wb["error_hyphen_end"] = 'beinhaltet einen Teil, der mit einem Bindestrich endet!';
|
| | | $wb["error_wildcard_non_initial_part"] = 'beinhaltet einen Platzhalter in einem Teil, der nicht am Anfang steht!';
|
| | | $wb["error_wildcard_mix"] = 'beinhaltet einen Teil, wo ein Platzhalter mit anderen Zeichen vermischt wird!';
|
| | | $wb["error_no_wildcard_allowed"] = 'darf keine Platzhalter beinhalten!';
|
| | | $wb["error_out_of_zone"] = 'ist nicht Teil der Zone!';
|
| | | $wb["error_no_permission"] = 'Sie haben nicht die Berechtigung, diesen Vorgang durchzuführen!';
|
| | | ?> |
New file |
| | |
| | | <?php
|
| | | $wb["list_head_txt"] = 'Zonen (SOA)';
|
| | | $wb["origin_txt"] = 'Ursprung';
|
| | | $wb["ns_txt"] = 'Nameserver';
|
| | | $wb["mbox_txt"] = 'Admin-Email';
|
| | | $wb["serial_txt"] = 'Seriennr.';
|
| | | $wb["refresh_txt"] = 'Refresh';
|
| | | $wb["retry_txt"] = 'Retry';
|
| | | $wb["expire_txt"] = 'Expire';
|
| | | $wb["minimum_txt"] = 'Minimum TTL';
|
| | | $wb["ttl_txt"] = 'TTL';
|
| | | $wb["active_txt"] = 'Aktiv';
|
| | | $wb["xfer_txt"] = 'Zonen-Transfer';
|
| | | $wb["page_txt"] = 'Seite';
|
| | | $wb["page_of_txt"] = 'von';
|
| | | $wb["page_next_txt"] = 'Weiter';
|
| | | $wb["page_back_txt"] = 'Zurück';
|
| | | $wb["delete_txt"] = 'Löschen';
|
| | | $wb["filter_txt"] = 'Filter';
|
| | | $wb["Yes"] = 'Ja';
|
| | | $wb["No"] = 'Nein';
|
| | | $wb["add_new_record_txt"] = 'Neue Zone erstellen';
|
| | | ?> |
| | |
| | |
|
| | | $wb["Yes"] = 'Yes';
|
| | | $wb["No"] = 'No';
|
| | | $wb["error_no_permission"] = 'You do not have the right permissions to perform the action!';
|
| | |
|
| | | ?> |
| | |
| | | $wb["delete_txt"] = 'Delete';
|
| | | $wb["filter_txt"] = 'Filter';
|
| | | $wb["add_new_record_txt"] = 'Add New Record';
|
| | | $wb['delete_confirmation'] = 'Do you really want to delete this record?';
|
| | | ?> |
New file |
| | |
| | | <?php
|
| | |
|
| | | $wb["Yes"] = 'Yes';
|
| | | $wb["No"] = 'No';
|
| | | $wb["error_no_permission"] = 'You do not have the right permissions to perform the action!';
|
| | |
|
| | | ?> |
New file |
| | |
| | | <?php
|
| | | $wb["zone_txt"] = 'Zone';
|
| | | $wb["name_txt"] = 'Name';
|
| | | $wb["type_txt"] = 'Type';
|
| | | $wb["data_txt"] = 'Data';
|
| | | $wb["aux_txt"] = 'Preference/Priority';
|
| | | $wb["ttl_txt"] = 'TTL';
|
| | | $wb["weight_txt"] = 'Weight';
|
| | | $wb["port_txt"] = 'Port';
|
| | | $wb["rp_mbox_txt"] = 'RP Mailbox';
|
| | | $wb["rp_txtref_txt"] = 'RP TXTREF';
|
| | | $wb["srv_target_txt"] = 'SRV TARGET';
|
| | | $wb["zone_origin_txt"] = 'Zone Origin';
|
| | | $wb["ns_txt"] = 'Name Server';
|
| | | $wb["mbox_txt"] = 'Admin Email';
|
| | | $wb["btn_save_txt"] = 'Save';
|
| | | $wb["btn_cancel_txt"] = 'Cancel';
|
| | | $wb["rr_data_error_empty"] = 'The data field must not be empty!';
|
| | | $wb["rr_aux_error_noint"] = 'Preference/priority must be an integer!';
|
| | | $wb["rr_ttl_error_notpositive"] = 'The TTL must be positive!';
|
| | | $wb["error_ptr"] = 'must contain a fully qualified domain name, ending with a dot!';
|
| | | $wb["error_hinfo"] = 'must contain the CPU type, then a space, then the OS type!';
|
| | | $wb["error_aaaa"] = 'must contain a valid IPv6 address!';
|
| | | $wb["error_a"] = 'must contain a valid IP address!';
|
| | | $wb["error_must_be_integer"] = 'must be an integer!';
|
| | | $wb["error_must_not_be_greater_than_2147483647"] = 'must not be greater than 2147483647!';
|
| | | $wb["error_must_be_positive"] = 'must be positive!';
|
| | | $wb["error_must_not_be_negative"] = 'must not be negative!';
|
| | | $wb["error_255_characters"] = 'contains more than 255 characters!';
|
| | | $wb["error_63_characters"] = 'contains a part with more than 63 characters!';
|
| | | $wb["error_invalid_characters"] = 'contains a part with invalid characters!';
|
| | | $wb["error_hyphen_begin"] = 'contains a part that begins with a hyphen!';
|
| | | $wb["error_hyphen_end"] = 'contains a part that ends with a hyphen!';
|
| | | $wb["error_wildcard_non_initial_part"] = 'contains a wildcard in a non-initial part!';
|
| | | $wb["error_wildcard_mix"] = 'contains a part mixing a wildcard character with other data!';
|
| | | $wb["error_no_wildcard_allowed"] = 'must not contain wildcards!';
|
| | | $wb["error_out_of_zone"] = 'is out of zone!';
|
| | | $wb["error_invalid_rp"] = 'has invalid format. The correct format is the <i>mbox</i> (a DNS-encoded email address), then a space, then the <i>txtref</i>, which should contain either a host for TXT lookup or a dot!';
|
| | | $wb["error_invalid_srv"] = 'has invalid format. The correct format is the <i>weight</i> (0-65535), then a space, then the <i>port</i> (0-65535), then a space, then the <i>target</i>!';
|
| | | $wb["error_srv_out_of_range"] = 'for SRV record is out of range!';
|
| | | $wb["error_no_permission"] = 'You do not have the right permissions to perform the action!';
|
| | | ?> |
New file |
| | |
| | | <?php
|
| | | $wb["list_head_txt"] = 'Records';
|
| | | $wb["name_txt"] = 'Name';
|
| | | $wb["type_txt"] = 'Type';
|
| | | $wb["data_txt"] = 'Data';
|
| | | $wb["aux_txt"] = 'Preference/Priority';
|
| | | $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';
|
| | | $wb["add_new_record_txt"] = 'Add New Record';
|
| | | $wb['delete_confirmation'] = 'Do you really want to delete this record?';
|
| | | ?> |
New file |
| | |
| | | <?php
|
| | | $wb["origin_txt"] = 'Origin';
|
| | | $wb["ns_txt"] = 'Name Server';
|
| | | $wb["mbox_txt"] = 'Admin Email';
|
| | | $wb["serial_txt"] = 'Serial No.';
|
| | | $wb["refresh_txt"] = 'Refresh';
|
| | | $wb["retry_txt"] = 'Retry';
|
| | | $wb["expire_txt"] = 'Expire';
|
| | | $wb["minimum_txt"] = 'Minimum TTL';
|
| | | $wb["ttl_txt"] = 'TTL';
|
| | | $wb["active_txt"] = 'Active';
|
| | | $wb["xfer_txt"] = 'Zone Transfers';
|
| | | $wb["name_txt"] = 'Name';
|
| | | $wb["data_txt"] = 'Data';
|
| | | $wb["rp_mbox_txt"] = 'RP Mailbox';
|
| | | $wb["rp_txtref_txt"] = 'RP TXTREF';
|
| | | $wb["srv_target_txt"] = 'SRV TARGET';
|
| | | $wb["zone_origin_txt"] = 'Zone Origin';
|
| | | $wb["yes_txt"] = 'Yes';
|
| | | $wb["no_txt"] = 'No';
|
| | | $wb["btn_save_txt"] = 'Save';
|
| | | $wb["btn_cancel_txt"] = 'Cancel';
|
| | | $wb["soa_error_empty"] = 'The origin must not be empty!';
|
| | | $wb["soa_error_unique"] = 'This origin does already exist! The origin must be unique!';
|
| | | $wb["ns_error_empty"] = 'The name server must not be empty!';
|
| | | $wb["mbox_error_empty"] = 'The admin email address must not be empty!';
|
| | | $wb["serial_error_notpositive"] = 'The serial no. must be positive!';
|
| | | $wb["refresh_error_notpositive"] = 'The refresh must be positive!';
|
| | | $wb["retry_error_notpositive"] = 'The retry must be positive!';
|
| | | $wb["expire_error_notpositive"] = 'The expire must be positive!';
|
| | | $wb["minimum_error_notpositive"] = 'The minimum TTL must be positive!';
|
| | | $wb["ttl_error_notpositive"] = 'The TTL must be positive!';
|
| | | $wb["error_empty"] = 'must not be empty!';
|
| | | $wb["error_dot"] = 'must end with a dot!';
|
| | | $wb["error_must_be_integer"] = 'must be an integer!';
|
| | | $wb["error_must_not_be_greater_than_2147483647"] = 'must not be greater than 2147483647!';
|
| | | $wb["error_must_be_positive"] = 'must be positive!';
|
| | | $wb["error_must_not_be_negative"] = 'must not be negative!';
|
| | | $wb["error_255_characters"] = 'contains more than 255 characters!';
|
| | | $wb["error_63_characters"] = 'contains a part with more than 63 characters!';
|
| | | $wb["error_invalid_characters"] = 'contains a part with invalid characters!';
|
| | | $wb["error_hyphen_begin"] = 'contains a part that begins with a hyphen!';
|
| | | $wb["error_hyphen_end"] = 'contains a part that ends with a hyphen!';
|
| | | $wb["error_wildcard_non_initial_part"] = 'contains a wildcard in a non-initial part!';
|
| | | $wb["error_wildcard_mix"] = 'contains a part mixing a wildcard character with other data!';
|
| | | $wb["error_no_wildcard_allowed"] = 'must not contain wildcards!';
|
| | | $wb["error_out_of_zone"] = 'is out of zone!';
|
| | | $wb["error_no_permission"] = 'You do not have the right permissions to perform the action!';
|
| | | ?> |
New file |
| | |
| | | <?php
|
| | | $wb["list_head_txt"] = 'Zones (SOA)';
|
| | | $wb["origin_txt"] = 'Origin';
|
| | | $wb["ns_txt"] = 'Name Server';
|
| | | $wb["mbox_txt"] = 'Admin Email';
|
| | | $wb["serial_txt"] = 'Serial No.';
|
| | | $wb["refresh_txt"] = 'Refresh';
|
| | | $wb["retry_txt"] = 'Retry';
|
| | | $wb["expire_txt"] = 'Expire';
|
| | | $wb["minimum_txt"] = 'Minimum TTL';
|
| | | $wb["ttl_txt"] = 'TTL';
|
| | | $wb["active_txt"] = 'Active';
|
| | | $wb["xfer_txt"] = 'Zone Transfer';
|
| | | $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';
|
| | | $wb["Yes"] = 'Yes';
|
| | | $wb["No"] = 'No';
|
| | | $wb["add_new_record_txt"] = 'Add New Zone';
|
| | | ?> |
New file |
| | |
| | | <?php
|
| | |
|
| | | $wb["Yes"] = 'Yes';
|
| | | $wb["No"] = 'No';
|
| | | $wb["error_no_permission"] = 'You do not have the right permissions to perform the action!';
|
| | |
|
| | | ?> |
| | |
| | | global $app, $conf;
|
| | |
|
| | | $app->uses('tform');
|
| | | if(!$rr = $app->db->queryOneRecord("SELECT * FROM rr WHERE id = ".$_REQUEST['id']." AND ".$app->tform->getAuthSQL('d'))) $app->error($app->tform->wordbook['error_no_permission']);
|
| | | if(!$rr = $app->db->queryOneRecord("SELECT * FROM rr WHERE id = ".$_REQUEST['id']." AND ".$app->tform->getAuthSQL('d'))) $app->error($app->lng('error_no_permission'));
|
| | |
|
| | | //$rr = $app->db->queryOneRecord("SELECT * FROM rr WHERE id = ".$_REQUEST['id']);
|
| | | $zone_id = $rr['zone'];
|
| | |
| | | } else {
|
| | | $other_ptr_soa_rr_data = $other_rr['name'].(trim($other_rr['name']) == '' ? '' : '.').$other_soa['origin'];
|
| | | }
|
| | | $app->db->query("INSERT INTO rr (zone, name, type, data, aux, ttl) VALUES ('".$ptr_soa_exist['id']."', '".$d."', 'PTR', '".$other_ptr_soa_rr_data."', '0', '".$conf['default_ttl']."')");
|
| | | $app->db->query("INSERT INTO rr (zone, name, type, data, aux, ttl, sys_userid, sys_groupid, sys_perm_user, sys_perm_group, sys_perm_other) VALUES ('".$ptr_soa_exist['id']."', '".$d."', 'PTR', '".$other_ptr_soa_rr_data."', '0', '".$conf['default_ttl']."', '".$_SESSION['s']['user']['sys_userid']."', '".$_SESSION['s']['user']['sys_groupid']."', '".$_SESSION['s']['user']['sys_perm_user']."', '".$_SESSION['s']['user']['sys_perm_group']."', '".$_SESSION['s']['user']['sys_perm_other']."')");
|
| | | }
|
| | |
|
| | | // if no more records exist for the ptr_soa, delete it
|
| | |
| | | }
|
| | |
|
| | | if(!$ptr_soa_exist = $app->db->queryOneRecord("SELECT * FROM soa WHERE origin = '".$ptr_soa."'")){
|
| | | $app->db->query("INSERT INTO soa (origin, ns, mbox, serial, refresh, retry, expire, minimum, ttl, active) VALUES ('".$ptr_soa."', '".trim($conf['default_ns'])."', '".trim($conf['default_mbox'])."', '".date("Ymd").'01'."', '".$conf['default_refresh']."', '".$conf['default_retry']."', '".$conf['default_expire']."', '".$conf['default_minimum_ttl']."', '".$conf['default_ttl']."', 'Y')");
|
| | | $app->db->query("INSERT INTO soa (origin, ns, mbox, serial, refresh, retry, expire, minimum, ttl, active, sys_userid, sys_groupid, sys_perm_user, sys_perm_group, sys_perm_other) VALUES ('".$ptr_soa."', '".trim($conf['default_ns'])."', '".trim($conf['default_mbox'])."', '".date("Ymd").'01'."', '".$conf['default_refresh']."', '".$conf['default_retry']."', '".$conf['default_expire']."', '".$conf['default_minimum_ttl']."', '".$conf['default_ttl']."', 'Y', '".$_SESSION['s']['user']['sys_userid']."', '".$_SESSION['s']['user']['sys_groupid']."', '".$_SESSION['s']['user']['sys_perm_user']."', '".$_SESSION['s']['user']['sys_perm_group']."', '".$_SESSION['s']['user']['sys_perm_other']."')");
|
| | | $ptr_soa_id = $app->db->insertID();
|
| | | $app->db->query("INSERT INTO rr (zone, name, type, data, aux, ttl) VALUES ('".$ptr_soa_id."', '".$d."', 'PTR', '".$ptr_soa_rr_data."', '0', '".$conf['default_ttl']."')");
|
| | | $app->db->query("INSERT INTO rr (zone, name, type, data, aux, ttl, sys_userid, sys_groupid, sys_perm_user, sys_perm_group, sys_perm_other) VALUES ('".$ptr_soa_id."', '".$d."', 'PTR', '".$ptr_soa_rr_data."', '0', '".$conf['default_ttl']."', '".$_SESSION['s']['user']['sys_userid']."', '".$_SESSION['s']['user']['sys_groupid']."', '".$_SESSION['s']['user']['sys_perm_user']."', '".$_SESSION['s']['user']['sys_perm_group']."', '".$_SESSION['s']['user']['sys_perm_other']."')");
|
| | | } else {
|
| | | if($ptr_soa_exist['active'] != 'Y') $app->db->query("UPDATE soa SET active = 'Y' WHERE id = ".$ptr_soa_exist['id']);
|
| | | if(!$ptr_soa_rr_exist = $app->db->queryOneRecord("SELECT * FROM rr WHERE zone = '".$ptr_soa_exist['id']."' AND name = '".$d."' AND type = 'PTR'")){
|
| | | $app->db->query("INSERT INTO rr (zone, name, type, data, aux, ttl) VALUES ('".$ptr_soa_exist['id']."', '".$d."', 'PTR', '".$ptr_soa_rr_data."', '0', '".$conf['default_ttl']."')");
|
| | | $app->db->query("INSERT INTO rr (zone, name, type, data, aux, ttl, sys_userid, sys_groupid, sys_perm_user, sys_perm_group, sys_perm_other) VALUES ('".$ptr_soa_exist['id']."', '".$d."', 'PTR', '".$ptr_soa_rr_data."', '0', '".$conf['default_ttl']."', '".$_SESSION['s']['user']['sys_userid']."', '".$_SESSION['s']['user']['sys_groupid']."', '".$_SESSION['s']['user']['sys_perm_user']."', '".$_SESSION['s']['user']['sys_perm_group']."', '".$_SESSION['s']['user']['sys_perm_other']."')");
|
| | | // increase serial of PTR SOA
|
| | | if(!in_array($ptr_soa_exist['id'], $increased_serials)){
|
| | | $ptr_soa_new_serial = $app->validate_dns->increase_serial($ptr_soa_exist['serial']);
|
| | |
| | | } else {
|
| | | $other_ptr_soa_rr_data = $other_rr['name'].(trim($other_rr['name']) == '' ? '' : '.').$other_soa['origin'];
|
| | | }
|
| | | $app->db->query("INSERT INTO rr (zone, name, type, data, aux, ttl) VALUES ('".$ptr_soa_exist['id']."', '".$d."', 'PTR', '".$other_ptr_soa_rr_data."', '0', '".$conf['default_ttl']."')");
|
| | | $app->db->query("INSERT INTO rr (zone, name, type, data, aux, ttl, sys_userid, sys_groupid, sys_perm_user, sys_perm_group, sys_perm_other) VALUES ('".$ptr_soa_exist['id']."', '".$d."', 'PTR', '".$other_ptr_soa_rr_data."', '0', '".$conf['default_ttl']."', '".$_SESSION['s']['user']['sys_userid']."', '".$_SESSION['s']['user']['sys_groupid']."', '".$_SESSION['s']['user']['sys_perm_user']."', '".$_SESSION['s']['user']['sys_perm_group']."', '".$_SESSION['s']['user']['sys_perm_other']."')");
|
| | | }
|
| | |
|
| | | // if no more records exist for the ptr_soa, delete it
|
| | |
| | | }
|
| | |
|
| | | if(!$ptr_soa_exist = $app->db->queryOneRecord("SELECT * FROM soa WHERE origin = '".$ptr_soa."'")){
|
| | | $app->db->query("INSERT INTO soa (origin, ns, mbox, serial, refresh, retry, expire, minimum, ttl, active) VALUES ('".$ptr_soa."', '".trim($conf['default_ns'])."', '".trim($conf['default_mbox'])."', '".date("Ymd").'01'."', '".$conf['default_refresh']."', '".$conf['default_retry']."', '".$conf['default_expire']."', '".$conf['default_minimum_ttl']."', '".$conf['default_ttl']."', 'Y')");
|
| | | $app->db->query("INSERT INTO soa (origin, ns, mbox, serial, refresh, retry, expire, minimum, ttl, active, sys_userid, sys_groupid, sys_perm_user, sys_perm_group, sys_perm_other) VALUES ('".$ptr_soa."', '".trim($conf['default_ns'])."', '".trim($conf['default_mbox'])."', '".date("Ymd").'01'."', '".$conf['default_refresh']."', '".$conf['default_retry']."', '".$conf['default_expire']."', '".$conf['default_minimum_ttl']."', '".$conf['default_ttl']."', 'Y', '".$_SESSION['s']['user']['sys_userid']."', '".$_SESSION['s']['user']['sys_groupid']."', '".$_SESSION['s']['user']['sys_perm_user']."', '".$_SESSION['s']['user']['sys_perm_group']."', '".$_SESSION['s']['user']['sys_perm_other']."')");
|
| | | $ptr_soa_id = $app->db->insertID();
|
| | | $app->db->query("INSERT INTO rr (zone, name, type, data, aux, ttl) VALUES ('".$ptr_soa_id."', '".$d."', 'PTR', '".$ptr_soa_rr_data."', '0', '".$conf['default_ttl']."')");
|
| | | $app->db->query("INSERT INTO rr (zone, name, type, data, aux, ttl, sys_userid, sys_groupid, sys_perm_user, sys_perm_group, sys_perm_other) VALUES ('".$ptr_soa_id."', '".$d."', 'PTR', '".$ptr_soa_rr_data."', '0', '".$conf['default_ttl']."', '".$_SESSION['s']['user']['sys_userid']."', '".$_SESSION['s']['user']['sys_groupid']."', '".$_SESSION['s']['user']['sys_perm_user']."', '".$_SESSION['s']['user']['sys_perm_group']."', '".$_SESSION['s']['user']['sys_perm_other']."')");
|
| | | } else {
|
| | | if($ptr_soa_exist['active'] != 'Y') $app->db->query("UPDATE soa SET active = 'Y' WHERE id = ".$ptr_soa_exist['id']);
|
| | | if(!$ptr_soa_rr_exist = $app->db->queryOneRecord("SELECT * FROM rr WHERE zone = '".$ptr_soa_exist['id']."' AND name = '".$d."' AND type = 'PTR'")){
|
| | | $app->db->query("INSERT INTO rr (zone, name, type, data, aux, ttl) VALUES ('".$ptr_soa_exist['id']."', '".$d."', 'PTR', '".$ptr_soa_rr_data."', '0', '".$conf['default_ttl']."')");
|
| | | $app->db->query("INSERT INTO rr (zone, name, type, data, aux, ttl, sys_userid, sys_groupid, sys_perm_user, sys_perm_group, sys_perm_other) VALUES ('".$ptr_soa_exist['id']."', '".$d."', 'PTR', '".$ptr_soa_rr_data."', '0', '".$conf['default_ttl']."', '".$_SESSION['s']['user']['sys_userid']."', '".$_SESSION['s']['user']['sys_groupid']."', '".$_SESSION['s']['user']['sys_perm_user']."', '".$_SESSION['s']['user']['sys_perm_group']."', '".$_SESSION['s']['user']['sys_perm_other']."')");
|
| | | // increase serial of PTR SOA
|
| | | if(!in_array($ptr_soa_exist['id'], $increased_serials)){
|
| | | $ptr_soa_new_serial = $app->validate_dns->increase_serial($ptr_soa_exist['serial']);
|
| | |
| | | <!--
|
| | |
|
| | | function del_record(link) {
|
| | | if(window.confirm("Wollen Sie den Datensatz löschen?")) {
|
| | | if(window.confirm("<tmpl_var name='delete_confirmation'>")) {
|
| | | location.href = link;
|
| | | }
|
| | | }
|
| | |
| | | $error = $app->lng(1001); |
| | | } |
| | | } |
| | | if($error != ''){
|
| | | $error = '<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
| | | <tr>
|
| | | <td class="error"><b>Error:</b><br>'.$error.'</td>
|
| | | </tr>
|
| | | </table>';
|
| | | }
|
| | | |
| | | $app->tpl->setVar('error',$error); |
| | | $app->tpl->setInclude('content_tpl','templates/index.htm'); |
| | |
| | | <!--
|
| | |
|
| | | function del_record(link) {
|
| | | if(window.confirm("Wollen Sie den Datensatz löschen?")) {
|
| | | if(window.confirm("<tmpl_var name='delete_confirmation'>")) {
|
| | | location.href = link;
|
| | | }
|
| | | }
|