mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-23 11:05:57 +02:00
Added ability to manage custom registrar pricing from panel; fixed #163
This commit is contained in:
parent
acc7d74b32
commit
de89a9e3b4
5 changed files with 314 additions and 97 deletions
|
@ -1154,4 +1154,9 @@ function isValidHostname($hostname) {
|
|||
function sign($ts, $method, $path, $body, $secret_key) {
|
||||
$stringToSign = $ts . strtoupper($method) . $path . $body;
|
||||
return hash_hmac('sha256', $stringToSign, $secret_key);
|
||||
}
|
||||
|
||||
function getClid($db, string $clid): ?int {
|
||||
$result = $db->selectValue('SELECT id FROM registrar WHERE clid = ? LIMIT 1', [$clid]);
|
||||
return $result !== false ? (int)$result : null;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue