'', 'role' => 'Giocatore', 'class' => '', 'level' => 1, 'concept' => '', ]; if ($_SERVER['REQUEST_METHOD'] === 'POST' && $view === 'scheda') { $input['name'] = trim((string)($_POST['name'] ?? '')); $input['role'] = trim((string)($_POST['role'] ?? 'Giocatore')); $input['class'] = trim((string)($_POST['class'] ?? '')); $input['level'] = (int)($_POST['level'] ?? 1); $input['concept'] = trim((string)($_POST['concept'] ?? '')); if (mb_strlen($input['name']) < 2) { $errors[] = 'Inserisci un nome.'; } if (!$errors) { try { $db = db(); $db->exec("CREATE TABLE IF NOT EXISTS characters ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, name VARCHAR(120) NOT NULL, role VARCHAR(60) NOT NULL, class VARCHAR(120) NOT NULL, level TINYINT UNSIGNED NOT NULL, concept TEXT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4"); $stmt = $db->prepare('INSERT INTO characters (name, role, class, level, concept) VALUES (:name, :role, :class, :level, :concept)'); $stmt->execute([ ':name' => $input['name'], ':role' => $input['role'], ':class' => $input['class'], ':level' => $input['level'], ':concept' => $input['concept'] ]); $success = true; } catch (Throwable $e) {} } } // Mock Log entries $mockLog = [ ['time' => '21:30', 'text' => 'find giunge a Lot'], ['time' => '21:31', 'text' => 'Rhael lascia Lot'], ['time' => '21:32', 'text' => 'Glykeria lascia Lot'], ['time' => '21:33', 'text' => 'Ildiko giunge a Lot'], ['time' => '21:35', 'text' => 'Graviel giunge a Lot'], ]; ?> <?= $projectName ?>
Posta LOT Scheda Presenti Simboli Regole Azioni

Gran Ducato di Lot

Mappa del Regno

Benvenuto nel Regno di Extremelot, viandante.

[21:40] find: Ben arrivati a tutti!

[21:42] Arthemis: Grazie find, la locanda è aperta stasera?

[21:45] find: Certamente, tra poco iniziamo la mescita.

Scheda del Personaggio

LA TUA ESSENZA È STATA IMPRESSA NEI REGISTRI DI LOT.
Nome
Classe
Livello
Concetto

Questa pergamena è ancora bianca...