AntiBK/engline/config.php
Ivor Barhansky 36bf662112 code-upload (#1)
Upload code

Изменил(а) на 'README.md'

Изменил(а) на 'README.md'

Reviewed-on: https://src.lopar.us/lopar/AntiBK/pulls/1
Co-Authored-By: Ivor Barhansky <lopar@noreply.lopar.us>
Co-Committed-By: Ivor Barhansky <lopar@noreply.lopar.us>
2021-02-11 16:13:04 +00:00

34 lines
1.1 KiB
PHP

<?php
defined('AntiBK') or die("Доступ запрещен!");
function copyright($year = 'auto')
{
if (intval($year) == 'auto') $year = date('Y');
if (intval($year) == date('Y')) echo intval($year);
if (intval($year) < date('Y')) echo intval($year) . ' - ' . date('Y');
if (intval($year) > date('Y')) echo date('Y');
}
$database = [
// Настройки подключения к базе
'adb' => 'mysql://root:password@localhost:3306/abk',
// Кодировка баз данных
'db_encoding' => 'utf8',
];
$config = [
'start' => [ //Создание персонажа
'stats' => ['str' => 3, 'dex' => 3, 'con' => 3, 'vit' => 3],
'ups' => 3,
'skills' => 1,
'maxmass' => 40,
'hp_regen' => 500,
'mp_regen' => 100,
'mp_cons' => 100,
'hitmin' => 1,
'hitmax' => 3,
'items' => [920, 1031]
],
'copyright' => '© '. copyright() .', &laquo;'. $_SERVER['HTTP_HOST'] .'&raquo;&trade;<br>All rights reserved',
];
$GSM = 0;