bernd commited on 2009-05-11 20:49:06
Zeige 1 geänderte Dateien mit 5 Einfügungen und 0 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1367 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -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 |
+ { |
|
63 |
+ if ($password_http == '************') |
|
64 |
+ $pwhash = 'password'; |
|
65 |
+ else |
|
62 | 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}«"); |
66 | 71 |