game/_incl_data/class/__db_connect.php

19 lines
464 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
'd' => 'newcom1_abk', // database
'u' => 'newcom1_abk', // user
'p' => '4nWYsIM[c?}P' // password
];
$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');