1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-20 21:20:08 +00:00

Add constants.php

This commit is contained in:
Tim Düsterhus 2020-11-01 14:09:21 +01:00
parent 1b1e1ed565
commit 4a659214a0
Signed by: TimWolla
GPG Key ID: 8FF75566094168AF
2 changed files with 9 additions and 0 deletions

View File

@ -40,4 +40,7 @@ distclean: clean
-rm -f be.bastelstu.chat.tar
-rm -f be.bastelstu.chat.tar.gz
constants.php: option.xml
(echo "<?php" ; xq -r '.data.import.options.option[] | "define(\"" + (.["@name"] | ascii_upcase) + "\", " + .defaultvalue + ");"' < option.xml) > constants.php
.PHONY: distclean clean

6
constants.php Normal file
View File

@ -0,0 +1,6 @@
<?php
define("CHAT_RELOADTIME", 3);
define("CHAT_AUTOAWAYTIME", 0);
define("CHAT_MAX_LENGTH", 500);
define("CHAT_ARCHIVE_AFTER", 90);
define("CHAT_LOG_ARCHIVETIME", 7);