Version 1.13

Switch from mysqli to PDO
More optimizations
Match case-insensitive @mention and also non-present members
Added topic field
Member password resetting by admins
Note revisioning
Added optional tiny JavaScript code to transfer less data with JavaScript enabled browsers
This commit is contained in:
Daniel Winzen
2015-09-15 09:43:56 +02:00
parent 891175d39a
commit d5197e6bdd
7 changed files with 613 additions and 615 deletions

View File

@ -1,3 +1,12 @@
Version 1.13 - Sep. 15, 2015
Switch from mysqli to PDO
More optimizations
Match case-insensitive @mention and also non-present members
Added topic field
Member password resetting by admins
Note revisioning
Added optional tiny JavaScript code to transfer less data with JavaScript enabled browsers
Version 1.12.3 - Aug. 18, 2015 Version 1.12.3 - Aug. 18, 2015
Fix member registration Fix member registration

5
README
View File

@ -29,7 +29,7 @@ It may even be the French word for "the" if you prefer. Translated from French t
FEATURES: FEATURES:
Optimized for TOR Optimized for TOR
No JavaScript No JavaScript needed
Cookies supported, but not needed Cookies supported, but not needed
Captcha Captcha
Multiple languages Multiple languages
@ -54,6 +54,7 @@ And more
INSTALLATION INSTRUCTIONS: INSTALLATION INSTRUCTIONS:
You'll need to have mysql, php and a web-server installed. For the captcha feature, you also need php5-gd. You'll need to have mysql, php and a web-server installed. For the captcha feature, you also need php5-gd.
If you want to make the script even faster, install a memcached server and php5-memcached and change the configuaration to use memcached. This will lessen the database load.
When you have everything installed, you'll have to create a database and a user for the chat in mysql. When you have everything installed, you'll have to create a database and a user for the chat in mysql.
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:
@ -65,7 +66,7 @@ Note: If you updated the script, please visit http://(server)/(script-name).php?
TRANSLATING: TRANSLATING:
Copy lang_en.php and rename it to lang_YOUR_LANGCODE.php Copy lang_en.php and rename it to lang_YOUR_LANGCODE.php
Then edit the file and translate the messages into your language. Then edit the file and translate the messages into your language and change $I to $T at the top.
If you ever use a ' character, you have to escape it by using \' instead or the script will fail. If you ever use a ' character, you have to escape it by using \' instead or the script will fail.
When you are done, you have to edit the chat script, to include your translation. Simply add a line with When you are done, you have to edit the chat script, to include your translation. Simply add a line with
'lang_code' =>'Language name', 'lang_code' =>'Language name',

View File

@ -13,7 +13,7 @@ Features:
--------- ---------
* Optimized for TOR * Optimized for TOR
* No JavaScript * No JavaScript needed
* Cookies supported, but not needed * Cookies supported, but not needed
* Captcha * Captcha
* Multiple languages * Multiple languages
@ -39,6 +39,7 @@ Installation Instructions:
-------------------------- --------------------------
You'll need to have mysql, php and a web-server installed. For the captcha feature, you also need php5-gd. You'll need to have mysql, php and a web-server installed. For the captcha feature, you also need php5-gd.
If you want to make the script even faster, install a memcached server and php5-memcached and change the configuaration to use memcached. This will lessen the database load.
When you have everything installed, you'll have to create a database and a user for the chat in mysql. When you have everything installed, you'll have to create a database and a user for the chat in mysql.
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:
@ -51,7 +52,7 @@ Translating:
------------ ------------
Copy lang_en.php and rename it to lang_YOUR_LANGCODE.php Copy lang_en.php and rename it to lang_YOUR_LANGCODE.php
Then edit the file and translate the messages into your language. Then edit the file and translate the messages into your language and change $I to $T at the top.
If you ever use a ' character, you have to escape it by using \' instead or the script will fail. If you ever use a ' character, you have to escape it by using \' instead or the script will fail.
When you are done, you have to edit the chat script, to include your translation. Simply add a line with When you are done, you have to edit the chat script, to include your translation. Simply add a line with
'lang_code' =>'Language name', 'lang_code' =>'Language name',

1137
chat.php

File diff suppressed because it is too large Load Diff

View File

@ -72,7 +72,7 @@ $T=array(
'cleannick' => 'Folgender Nickname:', 'cleannick' => 'Folgender Nickname:',
'clean' => 'Löschen', 'clean' => 'Löschen',
'kickchat' => '<b>Teilnehmer rausschmeißen</b> (%d Minuten)', 'kickchat' => '<b>Teilnehmer rausschmeißen</b> (%d Minuten)',
'kickmsg' => 'Begründung:', 'kickreason' => 'Begründung:',
'kickpurge' => 'Nachrichten löschen', 'kickpurge' => 'Nachrichten löschen',
'kick' => 'Rausschmeißen', 'kick' => 'Rausschmeißen',
'logoutinact' => 'Inaktive Teilnehmer abmelden', 'logoutinact' => 'Inaktive Teilnehmer abmelden',
@ -274,6 +274,37 @@ $T=array(
'backup' => 'Sichern', 'backup' => 'Sichern',
'restore' => 'Wiederherstellen', 'restore' => 'Wiederherstellen',
'settings' => 'Einstellungen', 'settings' => 'Einstellungen',
'linkfilter' => 'Linkfilter' 'linkfilter' => 'Linkfilter',
'enablejs' => 'JavaScript für besseres Nachrichtenladen erlauben',
'chatname' => 'Chatname',
'destroy' => 'Chat zerstören',
'destroyed' => 'Chat erfolgreich zerstört',
'topic' => 'Thema: %s',
'admtopic' => 'Thema',
'passreset' => 'Passwort zurücksetzen',
'cantresetpass' => 'Passwort kann nicht zurückgesetzt werden',
'succpassreset' => 'Password erfolgreich zurückgesetzt',
'entermsg' => '%s hat den Chat betreten.',
'exitmsg' => '%s hat den Chat verlassen.',
'memregmsg' => '%s ist jetzt ein registriertes Mitglied.',
'suregmsg' => '%s ist jetzt ein registrierter Anwerber.',
'kickmsg' => '%s wurde rausgeschmissen.',
'multikickmsg' => '%s wurden rausgeschmissen.',
'allkickmsg' => 'Alle Chatter wurden rausgeschmissen.',
'cleanmsg' => '%s wurde geleert.',
'sendallmsg' => '%s - ',
'sendmemmsg' => '[M] %s - ',
'sendmodmsg' => '[Moderatoren] %s - ',
'sendadmmsg' => '[Admin] %s - ',
'sendprvmsg' => '[%1$s an %2$s] - ',
'msgsendall' => 'Nachricht an alle',
'msgsendmem' => 'Nachricht nur an Mitglieder',
'msgsendmod' => 'Nachricht nur an Moderatoren',
'msgsendadm' => 'Nachricht nur an Admins',
'msgsendprv' => 'Private Nachricht',
'numnotes' => 'Anzahl an zu behaltenden Notizversionen',
'revisions' => 'Revisionen:',
'older' => 'Älter',
'newer' => 'Neuer'
); );
?> ?>

View File

@ -73,7 +73,7 @@ $I=array(
'cleannick' => 'Following nickname:', 'cleannick' => 'Following nickname:',
'clean' => 'Clean', 'clean' => 'Clean',
'kickchat' => '<b>Kick Chatter</b> (%d minutes)', 'kickchat' => '<b>Kick Chatter</b> (%d minutes)',
'kickmsg' => 'Kickmessage:', 'kickreason' => 'Kickmessage:',
'kickpurge' => 'Purge messages', 'kickpurge' => 'Purge messages',
'kick' => 'Kick', 'kick' => 'Kick',
'logoutinact' => 'Logout inactive Chatter', 'logoutinact' => 'Logout inactive Chatter',
@ -275,6 +275,37 @@ $I=array(
'backup' => 'Backup', 'backup' => 'Backup',
'restore' => 'Restore', 'restore' => 'Restore',
'settings' => 'Settings', 'settings' => 'Settings',
'linkfilter' => 'Linkfilter' 'linkfilter' => 'Linkfilter',
'enablejs' => 'Allow JavaScript for better message loading',
'chatname' => 'Chat name',
'destroy' => 'Destroy chat',
'destroyed' => 'Successfully destroyed chat',
'topic' => 'Topic: %s',
'admtopic' => 'Topic',
'passreset' => 'Reset password',
'cantresetpass' => 'Can\'t reset password',
'succpassreset' => 'Successfully reset password',
'entermsg' => '%s entered the chat.',
'exitmsg' => '%s left the chat.',
'memregmsg' => '%s is now a registered member.',
'suregmsg' => '%s is now a registered applicant.',
'kickmsg' => '%s has been kicked.',
'multikickmsg' => '%s have been kicked.',
'allkickmsg' => 'All chatters have been kicked.',
'cleanmsg' => '%s has been cleaned.',
'sendallmsg' => '%s - ',
'sendmemmsg' => '[M] %s - ',
'sendmodmsg' => '[Staff] %s - ',
'sendadmmsg' => '[Admin] %s - ',
'sendprvmsg' => '[%1$s to %2$s] - ',
'msgsendall' => 'Message to all',
'msgsendmem' => 'Message to members only',
'msgsendmod' => 'Message to staff only',
'msgsendadm' => 'Message to admins only',
'msgsendprv' => 'Private message',
'numnotes' => 'Number of notes revisions to keep',
'revisions' => 'Revisions:',
'older' => 'Older',
'newer' => 'Newer'
); );
?> ?>

View File

@ -73,7 +73,7 @@ $T=array(
'cleannick' => 'По нику:', 'cleannick' => 'По нику:',
'clean' => 'Очистить', 'clean' => 'Очистить',
'kickchat' => '<b>Бан</b> (%d минут)', 'kickchat' => '<b>Бан</b> (%d минут)',
'kickmsg' => 'Сообщение забаненому', 'kickreason' => 'Сообщение забаненому',
'kickpurge' => 'Очистка сообщений', 'kickpurge' => 'Очистка сообщений',
'kick' => 'Бан', 'kick' => 'Бан',
'logoutinact' => 'Выход неактивного чата', 'logoutinact' => 'Выход неактивного чата',