Repair a small typo

This commit is contained in:
zontreck 2024-05-15 16:03:07 -07:00
parent 10d7b8be65
commit e5faf9aeff
3 changed files with 12 additions and 10 deletions

View file

@ -7,7 +7,7 @@ class Constants {
static const TITLEBAR_COLOR = Color.fromARGB(255, 97, 0, 0);
static const DRAWER_COLOR = Color.fromARGB(148, 0, 97, 97);
static const VERSION = "1.0.051524.1554";
static const VERSION = "1.0.051524.1602";
static const COPYRIGHT = "Copyright 2024 - Tara Piccari. All rights Reserved";
static const CLIENTPSK = "";

View file

@ -51,7 +51,8 @@ class OpenSimPageState extends State<OpenSimPage> {
footer: Footer(
alignment: Alignment.center,
backgroundColor: ThemeData.dark().focusColor,
child: const Text("${Constants.COPYRIGHT}\n${Constants.VERSION}")),
child:
const Text("${Constants.COPYRIGHT}\n${Constants.VERSION}")),
children: [
Padding(
padding: const EdgeInsets.all(8),
@ -72,15 +73,16 @@ class OpenSimPageState extends State<OpenSimPage> {
title: const Text("Database Host"),
subtitle: TextField(
controller: databaseHostController,
decoration:
const InputDecoration(hintText: "example.com:3306"),
decoration: const InputDecoration(
hintText: "example.com:3306"),
),
),
ListTile(
title: const Text("Database Username"),
subtitle: TextField(
controller: databaseUsernameController,
decoration: const InputDecoration(hintText: "Username"),
decoration:
const InputDecoration(hintText: "Username"),
),
),
ListTile(
@ -130,7 +132,7 @@ class OpenSimPageState extends State<OpenSimPage> {
host: databaseHostController.text,
user: databaseUsernameController.text,
pass: databasePasswordController.text,
db: databaseHostController.text);
db: databaseNameController.text);
var responsePacket =
await settings.sendPacketToEndpoint(

View file

@ -16,22 +16,22 @@ function getJsonizedInput() {
function rewrite_DB_conf($host, $user, $pass, $db)
{
$ptl = "<\?php\n"
$ptl = "<"."?php\n"
. "define(\"DB_HOST\", \"$host\");\n"
. "define(\"DB_USER\", \"$user\");\n"
. "define(\"DB_PASS\", \"$pass\");\n"
. "define(\"DB_NAME\", \"$db\");\n"
. "\?>";
. "?".">";
file_put_contents("../database.user.php", $ptl);
}
function rewriteSystemInclude($psk, $clientPSK)
{
$ptl = "<\?php\n"
$ptl = "<"."?php\n"
. "define(\"PSK\", \"$psk\");\n"
. "define(\"CLIENTPSK\", \"$clientPSK\");\n"
. "\?>";
. "?".">";
file_put_contents("../system.user.php", $ptl);
}