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:
22
setup_config.php
Normal file
22
setup_config.php
Normal 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";
|
||||||
Reference in New Issue
Block a user