game/_incl_data/class/__db_connect.php

19 lines
460 B
PHP

<?php
if (!defined('GAME')) {
die();
}
$db = [
's' => 'db', // server
'd' => 'game_production', // database
'u' => 'prod1', // user
'p' => 'Bz@fGaZjFU2206Ua' // password
];
$dsn = 'mysql:host=' . $db['s'] . ';dbname=' . $db['d'];
include_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'mysql_override.php';
$dbgo = mysql_connect($db['s'], $db['u'], $db['p']);
mysql_select_db($db['d'], $dbgo);
mysql_query('set names utf8mb4');