Browse code

HTTP-Passwort ignorieren wenn es das sternchen-pseudopasswort ist

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1367 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on11/05/2009 20:49:06
Showing1 changed files
... ...
@@ -59,7 +59,12 @@ function edit_dyndns_account($id, $handle, $password_http, $sshkey)
59 59
 
60 60
   $pwhash = 'NULL';
61 61
   if ($password_http)
62
-    $pwhash = "'{SHA}".base64_encode(sha1($password_http, true))."'";
62
+  {
63
+    if ($password_http == '************')
64
+      $pwhash = 'password';
65
+    else
66
+      $pwhash = "'{SHA}".base64_encode(sha1($password_http, true))."'";
67
+  }
63 68
 
64 69
   db_query("UPDATE dns.dyndns SET handle={$handle}, password={$pwhash}, sshkey={$sshkey} WHERE id={$id} LIMIT 1");
65 70
   logger("modules/dns/include/dnsinclude", "dyndns", "edited account »{$id}«");