Add single-user password utils (#9)
- Constrain images to reading viewport
This commit is contained in:
@@ -43,12 +43,10 @@ function add_info(string $message): void {
|
||||
* @param string $title The title of the page being displayed
|
||||
*/
|
||||
function page_head(string $title): void {
|
||||
if (str_ends_with(FRC_VERSION, '.0.0')) {
|
||||
$version = substr(FRC_VERSION, 0, strlen(FRC_VERSION) - 4);
|
||||
} elseif (str_ends_with(FRC_VERSION, '.0')) {
|
||||
$version = substr(FRC_VERSION, 0, strlen(FRC_VERSION) - 2);
|
||||
} else {
|
||||
$version = FRC_VERSION;
|
||||
$version = match (true) {
|
||||
str_ends_with(FRC_VERSION, '.0.0') => substr(FRC_VERSION, 0, strlen(FRC_VERSION) - 4),
|
||||
str_ends_with(FRC_VERSION, '.0') => substr(FRC_VERSION, 0, strlen(FRC_VERSION) - 2),
|
||||
default => FRC_VERSION
|
||||
} ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang=en>
|
||||
|
||||
Reference in New Issue
Block a user