Jump to content
View in the app

A better way to browse. Learn more.

Froxlor Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Ich habe gerade festgestellt, dass das Löschen eines DNS-records (hier TXT) zu folgendem Fehler führt "Domain nicht gefunden oder keine Berechtigung".

Da ich für die selbe Domain aber weitere records anlegen kann, vermute ich, führt die Meldung in die Irre. Das apache2 error log gibt nichts her.

Wie können wir dem auf den Grund gehen?

Solved by d00p

Go to solution
  • Solution

Hiermit sollte es wieder gehen:

 

diff --git a/dns_editor.php b/dns_editor.php
index 293502cb..da10f5cd 100644
--- a/dns_editor.php
+++ b/dns_editor.php
@@ -24,7 +24,7 @@ use Froxlor\Api\Commands\DomainZones as DomainZones;
 // This file is being included in admin_domains and customer_domains
 // and therefore does not need to require lib/init.php
 
-$domain_id = isset($_GET['domain_id']) ? (int) $_GET['domain_id'] : null;
+$domain_id = isset($_GET['domain_id']) ? (int) $_GET['domain_id'] : (isset($_POST['domain_id']) ? (int)$_POST['domain_id'] : null);
 
 $record = isset($_POST['record']['record']) ? trim($_POST['record']['record']) : null;
 $type = isset($_POST['record']['type']) ? $_POST['record']['type'] : 'A';
@@ -56,12 +56,11 @@ if ($action == 'add_record' && ! empty($_POST)) {
        }
 } elseif ($action == 'delete') {
        // remove entry
-       $entry_id = isset($_GET['id']) ? (int) $_GET['id'] : 0;
-       if ($entry_id > 0) {
+       if ($id > 0) {
                if (isset($_POST['send']) && $_POST['send'] == 'send') {
                        try {
                                DomainZones::getLocal($userinfo, array(
-                                       'entry_id' => $entry_id,
+                                       'entry_id' => $id,
                                        'id' => $domain_id
                                ))->delete();
                                // success message (inline)
@@ -73,7 +72,8 @@ if ($action == 'add_record' && ! empty($_POST)) {
                        \Froxlor\UI\HTML::askYesNo('dnsentry_reallydelete', $filename, array(
                                'page' => $page,
                                'action' => $action,
-                               'id' => $id
+                               'id' => $id,
+                               'domain_id' => $domain_id
                        ), $id);
                }
        }

 

  • Author
39 minutes ago, d00p said:

Hiermit sollte es wieder gehen:

Tut es. Danke für den rasanten Support.

On 12/7/2022 at 1:50 PM, d00p said:

Hiermit sollte es wieder gehen:

 

 

Nachdem mir das auch gerade auf die Füße gefallen ist wollte ich nur kurz danke sagen!

Spitzen Support seit Jahren.

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.