summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-05-03 01:41:52 +0500
committerilotterytea <iltsu@alright.party>2025-05-03 01:41:52 +0500
commit00fd9ddb01e9632992ba21c80c36bb072de9273d (patch)
treec4bab71f5dfca75f0e2a1e81648d646d765ed3a5 /src
parent64f0533dc1779e7cca5f2678f7ae560df8d922bb (diff)
feat: version
Diffstat (limited to 'src')
-rw-r--r--src/version.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/version.php b/src/version.php
new file mode 100644
index 0000000..7dacf0b
--- /dev/null
+++ b/src/version.php
@@ -0,0 +1,11 @@
+<?php
+// please leave it as it is ;)
+define("TINYEMOTES_NAME", "TinyEmotes");
+define("TINYEMOTES_VERSION", "0.1");
+define("TINYEMOTES_LINK", "https://github.com/ilotterytea/tinyemotes");
+
+if ($s = file_get_contents("../.git/refs/heads/master")) {
+ define("TINYEMOTES_COMMIT", $s);
+} else {
+ define("TINYEMOTES_COMMIT", null);
+} \ No newline at end of file