aboutsummaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/functions.php8
-rw-r--r--includes/header.php2
2 files changed, 9 insertions, 1 deletions
diff --git a/includes/functions.php b/includes/functions.php
index 470a740..defa152 100644
--- a/includes/functions.php
+++ b/includes/functions.php
@@ -8,4 +8,12 @@ function version() {
} else {
return "trunk";
}
+}
+
+function build() {
+ if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/.build")) {
+ return substr(trim(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/.build")), 0, 8);
+ } else {
+ return "dev";
+ }
} \ No newline at end of file
diff --git a/includes/header.php b/includes/header.php
index 90c5c2b..dcf51ae 100644
--- a/includes/header.php
+++ b/includes/header.php
@@ -1,7 +1,7 @@
<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/functions.php"; ?>
<!DOCTYPE html>
<html lang="en">
-<head>
+<head data-webx-version="<?= version() ?>" data-webx-build="#<?= build() ?>">
<meta charset="UTF-8">
<title>Minteck</title>
<link rel="stylesheet" href="/assets/css/bootstrap.min.css">