Browse code

remove obsolete code

Bernd Wurst authored on06/02/2021 17:16:09
Showing1 changed files
... ...
@@ -100,16 +100,6 @@ function edit_dyndns_account($id, $handle, $password_http, $sshkey)
100 100
         $sshkey = null;
101 101
     }
102 102
 
103
-    if ($oldaccount['handle'] != $handle) {
104
-        $masterdomain = new Domain(config('masterdomain'));
105
-        db_query(
106
-            "UPDATE dns.custom_records SET hostname=:newhostname WHERE ".
107
-             "hostname=:oldhostname AND domain=:dom AND dyndns=:dyndns AND ip IS NULL",
108
-            array(":dom" => $masterdomain->id, ":newhostname" => filter_input_hostname($handle).'.'.$_SESSION['userinfo']['username'],
109
-                   ":oldhostname" => $oldaccount['handle'].'.'.$_SESSION['userinfo']['username'],  ":dyndns" => $id)
110
-        );
111
-    }
112
-
113 103
     $args = array(":handle" => $handle, ":sshkey" => $sshkey, ":id" => $id);
114 104
     $pwhash = null;
115 105
     if ($password_http && $password_http != '************') {