summaryrefslogtreecommitdiff
path: root/lib/version.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/version.php')
-rw-r--r--lib/version.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/version.php b/lib/version.php
new file mode 100644
index 0000000..d666783
--- /dev/null
+++ b/lib/version.php
@@ -0,0 +1,11 @@
+<?php
+// please leave it as it is ;)
+define("TINYEMOTES_NAME", "TinyEmotes");
+define("TINYEMOTES_VERSION", "0.3.1");
+define("TINYEMOTES_LINK", "https://git.ilt.su/tiny/emotes.git");
+
+if ($s = file_get_contents("{$_SERVER['DOCUMENT_ROOT']}/.git/refs/heads/master")) {
+ define("TINYEMOTES_COMMIT", $s);
+} else {
+ define("TINYEMOTES_COMMIT", null);
+} \ No newline at end of file