2018-01-28 16:40:49 +00:00
|
|
|
|
<?php
|
2018-01-29 22:05:41 +00:00
|
|
|
|
/**
|
|
|
|
|
* 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");
|
|
|
|
|
|
2019-01-14 20:58:18 +00:00
|
|
|
|
/*
|
|
|
|
|
* Запрещвем кэшировать
|
|
|
|
|
*/
|
|
|
|
|
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
|
|
|
|
|
header("Cache-Control: post-check=0, pre-check=0", false);
|
|
|
|
|
header("Pragma: no-cache");
|
|
|
|
|
|
2018-03-03 20:51:37 +00:00
|
|
|
|
/**
|
|
|
|
|
* Классы для работы с базой данных.
|
|
|
|
|
*/
|
2018-01-28 16:40:49 +00:00
|
|
|
|
require_once('Database/Mysql.php');
|
|
|
|
|
require_once('Database/Exception.php');
|
|
|
|
|
require_once('Database/Statement.php');
|
2018-03-03 20:51:37 +00:00
|
|
|
|
require_once('Database/db.php');
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Автозагрузка классов.
|
|
|
|
|
*/
|
|
|
|
|
spl_autoload_register(function ($class_name) {
|
|
|
|
|
include_once 'classes/' . $class_name . '.php';
|
|
|
|
|
});
|