diff --git a/app/system/app_languages.php b/app/system/app_languages.php index 0906685a9b..e367817dea 100644 --- a/app/system/app_languages.php +++ b/app/system/app_languages.php @@ -80,6 +80,16 @@ $text['label-os']['sv-se'] = "Operativsystem"; $text['label-os']['uk'] = "Операційна система "; $text['label-os']['de-at'] = "Betriebssystem"; +$text['label-git-info']['en-us'] = "Git Information"; +$text['label-git-info']['es-cl'] = ""; +$text['label-git-info']['pt-pt'] = ""; +$text['label-git-info']['fr-fr'] = ""; +$text['label-git-info']['pt-br'] = ""; +$text['label-git-info']['pl'] = ""; +$text['label-git-info']['sv-se'] = ""; +$text['label-git-info']['uk'] = ""; +$text['label-git-info']['de-at'] = ""; + $text['label-memcache_status']['en-us'] = "Memcache Status"; $text['label-memcache_status']['es-cl'] = "Estado de Memcache"; $text['label-memcache_status']['pt-pt'] = "Estado da Memcache"; diff --git a/app/system/system.php b/app/system/system.php index eb77d27d99..4c72da3862 100644 --- a/app/system/system.php +++ b/app/system/system.php @@ -85,6 +85,24 @@ $document['title'] = $text['title-sys-status']; echo " \n"; echo "\n"; + $git_path = normalize_path_to_os($_SERVER["DOCUMENT_ROOT"]."/.git"); + $git_branch = shell_exec('git --git-dir='.$git_path.' name-rev --name-only HEAD'); + rtrim($git_branch); + $git_commit = shell_exec('git --git-dir='.$git_path.' rev-parse HEAD'); + rtrim($git_commit); + $git_origin = shell_exec('git --git-dir='.$git_path.' config --get remote.origin.url'); + rtrim($git_commit); + echo "\n"; + echo " \n"; + echo " ".$text['label-git-info']."\n"; + echo " \n"; + echo " \n"; + echo " Branch: '$git_branch'
\n"; + echo " Commit: '$git_commit'
\n"; + echo " Origin: '$git_origin'
\n"; + echo " \n"; + echo "\n"; + echo "\n";