Compare commits

...
8 Commits
Author SHA1 Message Date
danwin1210andGitHub 09a19d100e Merge pull request #166 from PhenixHartogh/master
Minor edits
2026-06-07 10:57:18 +02:00
Nix HartoghandGitHub 9541edba24 Merge branch 'DanWin:master' into master 2026-06-07 12:00:42 +10:00
Nix HartoghandGitHub f13c508c64 Update .gitignore 2026-05-28 19:35:38 +10:00
Nix HartoghandGitHub 8ff673a96f Fix formatting 2026-05-28 19:32:47 +10:00
danwin1210andGitHub 950e7fa872 Merge pull request #164 from PhenixHartogh/patch-1
Fix typos in SECURITY.md
2026-03-29 00:03:58 +01:00
Phenix HartoghandGitHub cbec21aa84 Fix typos in SECURITY.md 2026-03-29 08:57:47 +11:00
danwin1210andGitHub ad56acc547 Merge pull request #163 from Aera23/patch-1
fix SQL syntax error
2026-03-16 11:44:41 +01:00
Aera23andGitHub 2f43c1f21d fix SQL syntax error
by adding ') to line 4943 (before the semicolon), the bracket and quote are closed, fixing the error :3
2026-03-16 04:12:13 +00:00
4 changed files with 12 additions and 11 deletions
+1
View File
@@ -1 +1,2 @@
*~ *~
.DS_Store
+9 -9
View File
@@ -15,8 +15,8 @@ Features:
* Optimized for Tor * Optimized for Tor
* No JavaScript needed * No JavaScript needed
* Cookies supported, but not needed * Cookies supported, but not needed
* Captcha * CAPTCHA
* Multiple languages * Multiple languages (20+ languages)
* Members and guests * Members and guests
* Waiting room for guests * Waiting room for guests
* Moderatoral approval of new guests * Moderatoral approval of new guests
@@ -38,15 +38,15 @@ Features:
Installation Instructions: Installation Instructions:
-------------------------- --------------------------
You'll need to have php with gettext, pdo, pcre, mbstring and date extension, and a web-server installed. 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 will also need the `pdo_sqlite`, `pdo_mysql` or `pdo_pgsql` extension, depending on which database you choose.
Optionally, you can install: Optionally, you can install:
- the gd extension for the captcha feature - the `gd` extension for the captcha feature
- the json extension for save/restore - the `json` extension for save/restore
- the intl extension for browser language detection - 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 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 - 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. 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 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: 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. 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. 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]`. 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:">` 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`. And now if you enter `:smile:` an image with the smiley will be loaded from your server at `/pictures/smile.gif`.
+1 -1
View File
@@ -1,3 +1,3 @@
# Security Policy # 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.
+1 -1
View File
@@ -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');"); $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){ if($dbversion<48){
$db->exec('INSERT INTO ' . PREFIX . "settings (setting, value) VALUES ('exitwait', '180'), ('exitingtxt', ' &#128682;"); // door emoji $db->exec('INSERT INTO ' . PREFIX . "settings (setting, value) VALUES ('exitwait', '180'), ('exitingtxt', ' &#128682');"); // door emoji
$db->exec('ALTER TABLE ' . PREFIX . 'sessions ADD COLUMN exiting smallint NOT NULL DEFAULT 0;'); $db->exec('ALTER TABLE ' . PREFIX . 'sessions ADD COLUMN exiting smallint NOT NULL DEFAULT 0;');
} }
if($dbversion<49){ if($dbversion<49){