strtoupper locator and callsign

This commit is contained in:
HB9HIL
2024-07-27 15:09:39 +02:00
parent 831bfd568a
commit 4568c6be1d
2 changed files with 3 additions and 3 deletions

View File

@@ -161,7 +161,7 @@ class Core
// creating a unique encryption key
$encryptionkey = uniqid(bin2hex(random_bytes(8)), false);
$new = str_replace("%baselocator%", $data['userlocator'], $database_file);
$new = str_replace("%baselocator%", strtoupper($data['userlocator']), $database_file);
$new = str_replace("%websiteurl%", $data['websiteurl'], $new);
$new = str_replace("%directory%", $data['directory'], $new);
$new = str_replace("%callbook%", $data['global_call_lookup'], $new);

View File

@@ -18,8 +18,8 @@ class Database {
$newquery = str_replace("%%FIRSTUSER_NAME%%", $data['username'], $query);
$newquery = str_replace("%%FIRSTUSER_PASS%%", $newpw, $newquery);
$newquery = str_replace("%%FIRSTUSER_MAIL%%", $data['user_email'], $newquery);
$newquery = str_replace("%%FIRSTUSER_CALL%%", $data['callsign'], $newquery);
$newquery = str_replace("%%FIRSTUSER_LOCATOR%%", $data['userlocator'], $newquery);
$newquery = str_replace("%%FIRSTUSER_CALL%%", strtoupper($data['callsign']), $newquery);
$newquery = str_replace("%%FIRSTUSER_LOCATOR%%", strtoupper($data['userlocator']), $newquery);
$newquery = str_replace("%%FIRSTUSER_FIRSTNAME%%", $data['firstname'], $newquery);
$newquery = str_replace("%%FIRSTUSER_LASTNAME%%", $data['lastname'], $newquery);
$newquery = str_replace("%%FIRSTUSER_TIMEZONE%%", $data['timezone'], $newquery);