Skip to content
Snippets Groups Projects
Commit d31be419 authored by Tim Repke's avatar Tim Repke
Browse files

add version hints

parent d42fa21a
No related branches found
No related tags found
No related merge requests found
......@@ -7,3 +7,4 @@
*/other/backups/*
!*/other/backups/.htaccess
mysql_data
clean.sh
......@@ -6,6 +6,7 @@ web:
- "8080:80"
volumes:
- ./registration-system:/var/www/html
- ./.git:/var/www/html/.git
pma:
image: phpmyadmin/phpmyadmin
......
......@@ -72,7 +72,8 @@ class Environment {
'impressum' => $config_impressum,
'databaseDebug' => $config_databse_debug,
'adminUsersFile' => $config_userfile,
'currentFahrtFile' => $config_current_fahrt_file
'currentFahrtFile' => $config_current_fahrt_file,
'gitSummary' => $this->getGitSummary()
];
$this->bachelor = null;
......@@ -173,6 +174,13 @@ class Environment {
header("location: ..");
}
private function getGitSummary() {
if (isset($this->sysconf['gitSummary']) and !empty($this->sysconf['gitSummary']))
return $this->sysconf['gitSummary'];
exec('git show --quiet HEAD', $output);
return $output;
}
// ===========================================================================================================
// Some context based trip getters
......
......@@ -63,6 +63,13 @@ abstract class DefaultIndex {
PS: Solltest du es doch geschafft haben, gib' uns bitte Bescheid, damit wir dich wieder löschen.
-->
<!--
Current Version (git), check out the details on https://github.com/TimRepke/registration-system
> <?php echo implode("\n > ", $this->environment->sysconf['gitSummary']); ?>
-->
<title>Fachschaftsfahrt</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<?php $this->echoHeaders(); ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment