exec('BEGIN;'); $db->exec(file_get_contents(__DIR__ . '/../schema.sql')); @session_start(); $users = new Users; $p = Users::generatePassword(); $users->create('demo', $p); $users->edit('demo', ['quota' => 10]); $_SESSION['install_password'] = $p; $users->login('demo', $p); $db->exec('END;'); } function html_head(string $title): void { $title = htmlspecialchars($title); echo << {$title}

{$title}

EOF; } function html_foot(): void { echo ' '; }