temp: add setup_config.php to create db_config.php on server

Will be removed immediately after use.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-10 15:24:20 +02:00
parent 2b8e053e52
commit 42571e46f3

22
setup_config.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
/**
* Väliaikainen skripti — luo db_config.php palvelimelle.
* POISTA TÄMÄ HETI KÄYTÖN JÄLKEEN!
*/
$configFile = __DIR__ . '/db_config.php';
if (file_exists($configFile)) {
echo "db_config.php on jo olemassa!\n";
exit;
}
$config = "<?php\nreturn [\n"
. " 'host' => 'localhost',\n"
. " 'dbname' => 'noxusintra',\n"
. " 'username' => 'intradatabeissi',\n"
. " 'password' => 'Lqk!yo6Kn!jo2q5J',\n"
. " 'charset' => 'utf8mb4',\n"
. "];\n";
file_put_contents($configFile, $config);
echo "db_config.php luotu onnistuneesti!\n";
echo "POISTA setup_config.php heti!\n";