|
|
@ -37,7 +37,7 @@ try { |
|
|
|
success("user $user found on server"); |
|
|
|
success("user $user found on server"); |
|
|
|
} elseif ($q->num_rows==0) { |
|
|
|
} elseif ($q->num_rows==0) { |
|
|
|
$q = $db->query("insert into user (name, pubkey) values ('$user', '$pubkey');"); |
|
|
|
$q = $db->query("insert into user (name, pubkey) values ('$user', '$pubkey');"); |
|
|
|
if (!q) error("creation of user failed"); |
|
|
|
if (!$q) error("creation of user failed"); |
|
|
|
success("user $user created on server"); |
|
|
|
success("user $user created on server"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
error("server database defect"); |
|
|
|
error("server database defect"); |
|
|
|