game/_incl_data/class/__db_connect.php

19 lines
466 B
PHP
Raw Normal View History

2022-06-06 21:30:34 +00:00
<?php
2022-12-19 18:26:14 +00:00
if (!defined('GAME')) {
die();
2022-06-06 21:30:34 +00:00
}
2022-12-19 18:26:14 +00:00
$db = [
's' => 'localhost', // server
2023-01-10 16:29:32 +00:00
'd' => 'game_production', // database
'u' => 'prod1', // user
'p' => 'Bz@fGaZjFU2206Ua' // password
2022-12-19 18:26:14 +00:00
];
$dsn = 'mysql:host=' . $db['s'] . ';dbname=' . $db['d'];
2022-06-06 21:30:34 +00:00
2022-12-30 19:03:37 +00:00
include_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'mysql_override.php';
2022-06-06 21:30:34 +00:00
2022-12-19 18:26:14 +00:00
$dbgo = mysql_connect($db['s'], $db['u'], $db['p']);
mysql_select_db($db['d'], $dbgo);
mysql_query('SET NAMES cp1251');