mirror of
https://github.com/WerySkok/nativegallery.git
synced 2024-12-22 16:41:17 +03:00
24 lines
No EOL
734 B
PHP
24 lines
No EOL
734 B
PHP
<?php
|
||
use \App\Services\DB;
|
||
|
||
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;
|
||
}
|
||
}
|
||
|
||
?>
|
||
|
||
|
||
|
||
<td class="footer">
|
||
<p>Aloha, Hawaii! | PHP <?=phpversion()?> | MySQL <?=DB::query('SELECT VERSION()')[0]['VERSION()']?> | Версия <?=get_current_git_commit ()?></p>
|
||
<b><a href="/">Главная</a> <a href="/lk/">Личный кабинет</a> <a href="/rules">Правила</a> <a href="/about">О сервере</a></b><br>
|
||
|
||
|
||
|
||
|
||
</td>
|