battles/config.php

26 lines
586 B
PHP
Raw Normal View History

2018-01-28 16:40:49 +00:00
<?php
/**
* Copyright (c) 2018.
* Author: Igor Barkov <lopar.4ever@gmail.com>
* Project name: Battles-Game
*/
2018-01-28 16:40:49 +00:00
ini_set('display_errors', 'On');
error_reporting(E_ALL);
define("GAMEDOMAIN","combats.loc");
/**
* Классы для работы с базой данных.
*/
2018-01-28 16:40:49 +00:00
require_once('Database/Mysql.php');
require_once('Database/Exception.php');
require_once('Database/Statement.php');
require_once('Database/db.php');
/**
* Автозагрузка классов.
*/
spl_autoload_register(function ($class_name) {
include_once 'classes/' . $class_name . '.php';
});