Add constants.php
This commit is contained in:
parent
1b1e1ed565
commit
4a659214a0
3
Makefile
3
Makefile
|
@ -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
|
||||
|
|
|
@ -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);
|
Loading…
Reference in New Issue