2024-07-08 20:10:00 +03:00
|
|
|
|
<?php
|
|
|
|
|
use \App\Services\DB;
|
2024-07-19 11:11:06 +03:00
|
|
|
|
|
|
|
|
|
function get_current_git_commit($branch = 'main')
|
|
|
|
|
{
|
|
|
|
|
if ($hash = file_get_contents(sprintf($_SERVER['DOCUMENT_ROOT'] . '/.git/refs/heads/%s', $branch))) {
|
|
|
|
|
return mb_strimwidth($hash, 0, 7, "");
|
|
|
|
|
} else {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-07-08 20:10:00 +03:00
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<td class="footer">
|
2024-07-19 11:11:06 +03:00
|
|
|
|
<p>Aloha, Hawaii! | PHP <?=phpversion()?> | MySQL <?=DB::query('SELECT VERSION()')[0]['VERSION()']?> | Версия <?=get_current_git_commit ()?></p>
|
2024-07-08 20:10:00 +03:00
|
|
|
|
<b><a href="/">Главная</a> <a href="/lk/">Личный кабинет</a> <a href="/rules">Правила</a> <a href="/about">О сервере</a></b><br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</td>
|