battles/config.php

33 lines
797 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");
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-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';
});