Compare commits
8
Commits
63f421023a
...
09a19d100e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
09a19d100e | ||
|
|
9541edba24 | ||
|
|
f13c508c64 | ||
|
|
8ff673a96f | ||
|
|
950e7fa872 | ||
|
|
cbec21aa84 | ||
|
|
ad56acc547 | ||
|
|
2f43c1f21d |
@@ -1 +1,2 @@
|
||||
*~
|
||||
.DS_Store
|
||||
|
||||
@@ -15,8 +15,8 @@ Features:
|
||||
* Optimized for Tor
|
||||
* No JavaScript needed
|
||||
* Cookies supported, but not needed
|
||||
* Captcha
|
||||
* Multiple languages
|
||||
* CAPTCHA
|
||||
* Multiple languages (20+ languages)
|
||||
* Members and guests
|
||||
* Waiting room for guests
|
||||
* Moderatoral approval of new guests
|
||||
@@ -38,15 +38,15 @@ Features:
|
||||
Installation Instructions:
|
||||
--------------------------
|
||||
|
||||
You'll need to have php with gettext, pdo, pcre, mbstring and date extension, and a web-server installed.
|
||||
You will also need the pdo_sqlite, pdo_mysql or pdo_pgsql extension, depending on which database you choose.
|
||||
You'll need to have php with `gettext`, `pdo`, `pcre`, `mbstring` and `date` extension, and a web-server installed.
|
||||
You will also need the `pdo_sqlite`, `pdo_mysql` or `pdo_pgsql` extension, depending on which database you choose.
|
||||
Optionally, you can install:
|
||||
- the gd extension for the captcha feature
|
||||
- the json extension for save/restore
|
||||
- the intl extension for browser language detection
|
||||
- the `gd` extension for the captcha feature
|
||||
- the `json` extension for save/restore
|
||||
- the `intl` extension for browser language detection
|
||||
- a memcached server and the memcached extension and change the configuration to use memcached. This will lessen the database load a bit.
|
||||
- a MySQL or PostgreSQL server to use as an external database instead of SQLite
|
||||
- the libsodium extension (PHP >= 7.2) for encryption of messages and notes in the database
|
||||
- the `libsodium` extension (PHP >= 7.2) for encryption of messages and notes in the database
|
||||
When you have everything installed and use MySQL or PostgreSQL, you'll have to create a database and a user for the chat.
|
||||
Then edit the configuration at the bottom of the script to reflect the appropriate database settings and to modify the chat settings the way you like them.
|
||||
Then copy the script to your web-server directory and call the script in your browser with a parameter like this:
|
||||
@@ -68,7 +68,7 @@ Regex:
|
||||
|
||||
Yes, the chat supports regular expression filtering of messages. As regex tends to be difficult for most people, I decided to give it an extra section here.
|
||||
Regex is very powerful and can be used to filter messages that contain certain expressions and replace them with something else.
|
||||
It can be used e.g. to turn BB Code into html, so it is possible to use BB Code in the chat to format messages.
|
||||
It can be used e.g. to turn BBCode into HTML, so it is possible to use BBCode in the chat to format messages.
|
||||
To do this, use this Regex-Match `\[(u|b)\](.*?)\[\/\1\]` and this Regex-Replace `<$1>$2</$1>` and your text will be `[b]bold[/b]` or `[u]underlined[/u]`.
|
||||
You can also use smilies by using this Regex-Match `(?-i::(cry|eek|lol|sad|smile|surprised|wink):)` and this Regex-Replace `<img src="/pictures/$1.gif" alt=":$1:">`
|
||||
And now if you enter `:smile:` an image with the smiley will be loaded from your server at `/pictures/smile.gif`.
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
# Security Policy
|
||||
|
||||
I take sucurity very seriously and anyone is welcome to report vulnerabiliteis found. Please get in touch with me by email on [daniel@danwin1210.de](mailto:daniel@danwin1210.de) if you have found a vulnerability. For non-critical issues and suggestions, feel free to open a new Issue.
|
||||
I take security very seriously and anyone is welcome to report vulnerabilities found. Please get in touch with me by email on [daniel@danwin1210.de](mailto:daniel@danwin1210.de) if you have found a vulnerability. For non-critical issues and suggestions, feel free to open a new Issue.
|
||||
|
||||
@@ -4940,7 +4940,7 @@ function update_db(): void
|
||||
$db->exec('INSERT INTO ' . PREFIX . "settings (setting,value) VALUES ('hide_reload_post_box', '0'), ('hide_reload_messages', '0'),('hide_profile', '0'),('hide_admin', '0'),('hide_notes', '0'),('hide_clone', '0'),('hide_rearrange', '0'),('hide_help', '0'),('max_refresh_rate', '150'),('min_refresh_rate', '5'),('postbox_delete_globally', '0'),('allow_js', '1');");
|
||||
}
|
||||
if($dbversion<48){
|
||||
$db->exec('INSERT INTO ' . PREFIX . "settings (setting, value) VALUES ('exitwait', '180'), ('exitingtxt', ' 🚪"); // door emoji
|
||||
$db->exec('INSERT INTO ' . PREFIX . "settings (setting, value) VALUES ('exitwait', '180'), ('exitingtxt', ' 🚪');"); // door emoji
|
||||
$db->exec('ALTER TABLE ' . PREFIX . 'sessions ADD COLUMN exiting smallint NOT NULL DEFAULT 0;');
|
||||
}
|
||||
if($dbversion<49){
|
||||
|
||||
Reference in New Issue
Block a user