44 lines
1.4 KiB
PHP
44 lines
1.4 KiB
PHP
|
<?php
|
||
|
ini_set('display_errors', 'On');
|
||
|
error_reporting(E_ALL);
|
||
|
define("GAMEDOMAIN","combats.loc");
|
||
|
|
||
|
$var_security = array('g_login' => array('align' => array(2.99), 'id' => array(10022)), 'g_nologin' => array('align' => array(2.99), 'id' => array(10022)));
|
||
|
|
||
|
//$mysql = mysqli_connect('192.168.20.100', 'combats_full', 'JuUn1hWq4J');
|
||
|
//mysqli_select_db('combats_game', $mysql);
|
||
|
//mysqli_query('SET NAMES utf8');
|
||
|
|
||
|
require_once('Database/Mysql.php');
|
||
|
require_once('Database/Exception.php');
|
||
|
require_once('Database/Statement.php');
|
||
|
require_once('Database/db.php');
|
||
|
//$db = \Krugozor\Database\Mysql\Mysql::create('192.168.20.100', 'combats_full', 'JuUn1hWq4J')
|
||
|
// ->setCharset('utf8')
|
||
|
// ->setDatabaseName('combats_game');
|
||
|
//class db
|
||
|
//{
|
||
|
// private static $_instance = null;
|
||
|
//
|
||
|
// private function __clone() {}
|
||
|
// private function __construct() {}
|
||
|
// /**
|
||
|
// * @return \Krugozor\Database\Mysql\Mysql
|
||
|
// */
|
||
|
//
|
||
|
// public static function c()
|
||
|
// {
|
||
|
// if (!self::$_instance)
|
||
|
// {
|
||
|
// self::$_instance = \Krugozor\Database\Mysql\Mysql::create("192.168.20.100", "combats_full", "JuUn1hWq4J")
|
||
|
// // Выбор базы данных
|
||
|
// ->setDatabaseName("combats_game")
|
||
|
// // Выбор кодировки
|
||
|
// ->setCharset("utf8");
|
||
|
// }
|
||
|
// return self::$_instance;
|
||
|
// }
|
||
|
//}
|
||
|
|
||
|
?>
|