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:
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
|
||||||
-rm -f be.bastelstu.chat.tar.gz
|
-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
|
.PHONY: distclean clean
|
||||||
|
6
constants.php
Normal file
6
constants.php
Normal 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);
|
Loading…
Reference in New Issue
Block a user