Files
intra.noxus.fi/setup_config.php
Jukka Lampikoski 42571e46f3 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>
2026-03-10 15:24:20 +02:00

23 lines
635 B
PHP

<?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";