Compare commits

...

11 Commits

Author SHA1 Message Date
1e4b1d5489 Fix redirection and image embedding 2015-08-18 08:31:29 +02:00
3038a3b53c Fix update query 2015-08-17 22:31:13 +02:00
2a6db3772b Version 1.12 2015-08-17 19:28:34 +02:00
6084bd87c7 Version 1.11.2 2015-07-29 08:34:28 +02:00
dbb030e431 Bugfixes and minor changes 2015-07-12 18:16:33 +02:00
27b057dec0 Version 1.11
Clean all messages of someone
Kick via active session display
Change languages supported without cookies
Global password only in setup and not in admin section
CSS Styling supported
Moved many configurations from file to database
More simplifications and bugfixes
2015-07-11 22:28:24 +02:00
3da659642d Added message encryption option 2015-06-07 16:00:21 +02:00
c0dd4dc727 Avoid using mysqlnd-only functions 2015-06-04 08:12:28 +02:00
a1a41c76e3 Bugfixes 2015-06-03 15:39:05 +02:00
55f9db6468 Version 1.9
Added more captchas
Splitted guest access and global password
Added support for irc /me command
Added prefix for multiple chats on the same domain/database
2015-06-02 08:54:18 +02:00
506407faeb Cleanup and support for memcached 2015-05-28 21:15:37 +02:00
6 changed files with 1540 additions and 1055 deletions

View File

@ -1,4 +1,55 @@
Version 1.7 - May. 3, 2015
Version 1.12.2 - Aug. 18, 2015
Fix redirection and image embedding
Version 1.12.1 - Aug. 17, 2015
Fix update query
Version 1.12 - Aug. 17, 2015
Almost all settings moved to setup
Backup/restore for super admin
Moderate and extreme captcha are more readable
Simplified font styling
Linkfilter to modify text of a link
More simplifications and fixes
Version 1.11.2 - Jul. 29, 2015
Fix security vulnerability
More simplifications
Only allow deleting your own messages, not older ones by the same nick
Confirmation when deleting all your messages
Version 1.11.1 - Jul. 12, 2015
Bugfixes and minor changes
Version 1.11 - Jul. 11, 2015
Clean all messages of someone
Kick via active session display
Change languages supported without cookies
Global password only in setup and not in admin section
CSS Styling supported
Moved many configurations from file to database
More simplifications and bugfixes
Version 1.10 - Jun. 7, 2015
Added message encryption option
Version 1.9.2 - Jun. 4, 2015
Avoid using mysqlnd-only functions
Version 1.9.1 - Jun. 3, 2015
Bugfixes
Version 1.9 - Jun. 1, 2015
Added more captchas
Splitted guest access and global password
Added support for irc /me command
Added prefix for multiple chats on the same domain/database
Version 1.8 - May 28, 2015
Code cleanup and simplification
Added support for memcached
Version 1.7 - May 3, 2015
Added member only option with global password protection
Made date format configurable
Various improvements

4
README
View File

@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
GENERAL INFORMATION:
This is a PHP Chat based on LE CHAT v.1.14 . An up-to-date copy of this script can be downloaded at https://github.com/DanWin/le-chat-php
This is a PHP Chat based on LE CHAT v.1.14. An up-to-date copy of this script can be downloaded at https://github.com/DanWin/le-chat-php
The original perl LE CHAT script by Lucky Eddie can be downloaded at http://4fvfamdpoulu2nms.onion/lechat/ or via a tor2web proxy like https://4fvfamdpoulu2nms.tor2web.blutmagie.de/lechat/ if you don't have TOR installed.
If you add your own cool features or have a feature request, please tell me and I will add them, if I like them.
Please also let me know about any bugs you find in the code, so I can fix them.
@ -87,6 +87,6 @@ If you never used regex before, check out this starting guide to begin with regu
LIVE DEMO:
If you want to see the script in action, you can visit my TOR hidden site http://tt3j2x4k5ycaa5zt.onion/chat.php or via a tor2web proxy like http://tt3j2x4k5ycaa5zt.tor2web.blutmagie.de/chat.php if you don't have TOR installed.
If you want to see the script in action, you can visit my TOR hidden service http://tt3j2x4k5ycaa5zt.onion/chat.php or via a tor2web proxy like http://tt3j2x4k5ycaa5zt.tor2web.blutmagie.de/chat.php if you don't have TOR installed.
Considering this is a hidden service, you should be prepared for the worst case, as people often tend to do illegal activities in the TOR network. I'm not online 24/7 so it might not be possible to remove such content right away.
If you should see illegal content, don't panic. Use the contact form on my site to notify me and clean your browser cache afterwards.

View File

@ -1,7 +1,7 @@
General Information:
--------------------
This is a PHP Chat based on LE CHAT v.1.14 . An up-to-date copy of this script can be downloaded at https://github.com/DanWin/le-chat-php
This is a PHP Chat based on LE CHAT v.1.14. An up-to-date copy of this script can be downloaded at https://github.com/DanWin/le-chat-php
The original perl LE CHAT script by Lucky Eddie can be downloaded at [his site](http://4fvfamdpoulu2nms.onion/lechat/) or via a tor2web proxy like [this one](https://4fvfamdpoulu2nms.tor2web.blutmagie.de/lechat/) if you don't have TOR installed.
If you add your own cool features or have a feature request, please tell me and I will add them, if I like them.
Please also let me know about any bugs you find in the code, so I can fix them.
@ -75,6 +75,6 @@ If you never used regex before, check out [this starting guide](http://docs.acti
Live demo:
----------
If you want to see the script in action, you can visit my [TOR hidden site](http://tt3j2x4k5ycaa5zt.onion/chat.php) or via a tor2web proxy like [this one](http://tt3j2x4k5ycaa5zt.tor2web.blutmagie.de/chat.php) if you don't have TOR installed.
If you want to see the script in action, you can visit my [TOR hidden service](http://tt3j2x4k5ycaa5zt.onion/chat.php) or via a tor2web proxy like [this one](http://tt3j2x4k5ycaa5zt.tor2web.blutmagie.de/chat.php) if you don't have TOR installed.
Considering this is a hidden service, you should be prepared for the worst case, as people often tend to do illegal activities in the TOR network. I'm not online 24/7 so it might not be possible to remove such content right away.
If you should see illegal content, don't panic. Use the contact form on my site to notify me and clean your browser cache afterwards. I will remove the content as soon as possible.

2404
chat.php

File diff suppressed because it is too large Load Diff

View File

@ -52,7 +52,14 @@ $I=array(
'msgmultikick' => 'Mehrere rausgeworfen',
'msgallkick' => 'Alle rausgeworfen',
'msgclean' => 'Raum geleert',
'dateformat' => '<a target="_blank" href="http://php.net/manual/de/function.date.php#refsect1-function.date-parameters">Date formating</a>',
'dateformat' => '<a target="_blank" href="http://php.net/manual/de/function.date.php#refsect1-function.date-parameters">Datums-Formatierung</a>',
'captcha' => 'Captcha',
'enabled' => 'Aktiviert',
'onlyguests' => 'Nur für Gäste',
'disabled' => 'Deaktiviert',
'simple' => 'Einfach',
'moderate' => 'Mittel',
'extreme' => 'Extrem',
'nick' => 'Nickname:',
'pass' => 'Passwort:',
'globalloginpass' => 'Globales Passwort:',
@ -62,6 +69,7 @@ $I=array(
'cleanmsgs' => 'Nachrichten löschen',
'room' => 'Gesamten Raum',
'selection' => 'Auswahl',
'cleannick' => 'Folgender Nickname:',
'clean' => 'Löschen',
'kickchat' => '<b>Teilnehmer rausschmeißen</b> (%d Minuten)',
'kickmsg' => 'Begründung:',
@ -69,15 +77,13 @@ $I=array(
'kick' => 'Rausschmeißen',
'logoutinact' => 'Inaktive Teilnehmer abmelden',
'logout' => 'Abmelden',
'viewsess' => 'Aktive Sitzungen anzeigen',
'sessions' => 'Aktive Sitzungen anzeigen',
'view' => 'Anzeigen',
'filter' => 'Filter',
'guestacc' => 'Gastzugriff ändern',
'guestallow' => 'Erlauben',
'guestwait' => 'Mit Warteraum erlauben',
'adminallow' => 'Moderator-Erlaubnis benötigen',
'globalpass' => 'Mit globalem Passwort erlauben',
'memberglobalpass' => 'Nur Mitglieder mit globalem Passwort',
'guestdisallow' => 'Nur Mitglieder',
'addsuguest' => 'Anwerber hinzufügen',
'register' => 'Registrieren',
@ -87,7 +93,7 @@ $I=array(
'memsuguest' => 'Zu Anwerber machen (G)',
'memreg' => 'Zu regulärem Mitglied machen',
'memmod' => 'Zu Moderator machen (M)',
'memsumod' => 'Zu Supermod machen (M)',
'memsumod' => 'Zu Supermod machen (SM)',
'memadm' => 'Zu Admin machen (A)',
'change' => 'Ändern',
'regguest' => 'Gast registrieren',
@ -128,7 +134,7 @@ $I=array(
'switchsingle' => 'Zu Einzel-Zeile wechseln',
'switchmulti' => 'Zu Mehrfach-Zeilen wechseln',
'help' => 'Hilfe',
'helpguest' => 'Alle Funktionen sollten recht selbsterklärend sein, benutze einfach die Knöpfe. In deinem Profil kannst du die Aktualisierungsrate, Schriftfarbe und deine gewünschte Postboxgröße anpassen.<br><u>Hinweis:</u> Dies ist ein Chat, wenn du also nichts schreibst, wirst du automatisch nach einiger Zeit abgemaldet.',
'helpguest' => 'Alle Funktionen sollten recht selbsterklärend sein, benutze einfach die Knöpfe. In deinem Profil kannst du die Aktualisierungsrate, Schriftfarbe und deine gewünschte Postboxgröße anpassen.<br><u>Hinweis:</u> Dies ist ein Chat, wenn du also nichts schreibst, wirst du automatisch nach einiger Zeit abgemeldet.',
'helpembed' => 'Wenn du ein Bild einbetten möchtest, füge einfach ein [img] vor die Adresse deines Bildes. Beispiel: [img]http://example.com/images/file.jpg bettet das Bild in deinen Beitrag ein.',
'helpmem' => 'Mitglieder: Du wirst einige zusätzliche Optionen in deinem Profil haben. Du kannst deine Schriftart ändern und du kannst dein Passwort jederzeit ändern.',
'helpmod' => 'Moderatoren: Achte auf den Admin-Knof unten. Er bringt eine Seite auf, auf der du Nachrichten löschen kannst, Teilnehmer rausschmeißen kannst, alle aktive Sitzungen anzeigen lassen kannst und den Gastzugriff deaktivieren kannst, falls dies nötig sein sollte.',
@ -136,7 +142,7 @@ $I=array(
'profile' => 'Dein Profil',
'ignore' => 'Ignorieren',
'unignore' => 'Nicht mehr ignorieren',
'refreshrate' => 'Aktualisierungsrate (20-150 Sekunden)',
'refreshrate' => 'Aktualisierungsrate (5-150 Sekunden)',
'fontcolour' => 'Schriftfarbe',
'viewexample' => 'Beispiele anzeigen',
'bgcolour' => 'Hintergrundfarbe',
@ -146,7 +152,7 @@ $I=array(
'italic' => 'Kursiv',
'fontexample' => 'Beispiel für deine gewählte Schrift',
'timestamps' => 'Zeitstempel anzeigen',
'embed' => 'Bilder einbetten',
'embed' => 'Bilder einbetten (Benötigt Cookies)',
'incognito' => 'Inkognito Modus',
'pbsize' => 'Postboxgröße',
'nbsize' => 'Notizboxgröße',
@ -174,8 +180,8 @@ $I=array(
'randomcol' => 'Zufällige Farbe',
'enter' => 'Chat beitreten',
'error' => 'Fehler:',
'members' => 'Mitglieder:',
'guests' => 'Gäste:',
'members' => 'Mitglieder',
'guests' => 'Gäste',
'approveguests' => '%d neue Gäste zum Hereinlassen',
'allowchecked' => 'Ausgewählte erlauben',
'allowall' => 'Alle erlauben',
@ -185,7 +191,7 @@ $I=array(
'butallowdeny' => 'Senden',
'waitempty' => 'Keine weiteren Beitrittsanfragen zu akzeptieren.',
'wrongcaptcha' => 'Falsches Captcha',
'captchatime' => 'Captcha wurde bereits verwendet oder ist abgelaufen.',
'captchaexpire' => 'Captcha wurde bereits verwendet oder ist abgelaufen.',
'noguests' => 'Entschuldigung, zur Zeit nur Mitglieder!',
'curchat' => 'Zurzeit sind %d Teilnehmer im Raum:',
'cantreg' => '%s kann nicht registriert werden',
@ -195,6 +201,7 @@ $I=array(
'succdel' => '%s wurde erfolgriech aus der Datenbank gelöscht.',
'succchg' => 'Status of %s successfully changed.',
'wrongpass' => 'Falsches Passwort!',
'wrongglobalpass' => 'Falsches gloables Passwort!',
'succprofile' => 'Dein Profil wurde erfolgreich gespeichert.',
'backtologin' => 'Zurück zur Anmeldeseite.',
'backtochat' => 'Zurück zum Chat.',
@ -233,6 +240,40 @@ $I=array(
'White' => 'Weiß',
'Yellow' => 'Gelb',
'YellowGreen' => 'Gelbgrün',
'contributors' => 'Mitwirkende'
'redirectto' => 'Leite weiter zu:',
'nonhttp' => 'Nicht-http Adresse angefordert:',
'httpredir' => 'Wenn sie nicht funktioniert, probiere diese:',
'actions' => 'Aktionen',
'sesip' => 'IP-Adresse',
'css' => 'CSS Style',
'memberexpire' => 'Mitglieder-Ablaufzeit (Minuten)',
'guestexpire' => 'Gast-Ablaufzeit (Minuten)',
'kickpenalty' => 'Rausschmiss-Strafzeit (Minuten)',
'entrywait' => 'Warteraum-Zeit (Sekunden)',
'captchatime' => 'Captcha-Ablaufzeit (Sekunden)',
'messageexpire' => 'Nachrichten-Ablaufzeit (Minuten)',
'messagelimit' => 'Nachrichtenlimit (öffentliche)',
'maxmessage' => 'Maximale Nachrichenlänge',
'confirm' => 'Bist du sicher?',
'yes' => 'Ja',
'no' => 'Nein',
'colbg' => 'Hintergrundfarbe',
'coltxt' => 'Schriftfarbe',
'maxname' => 'Maximale Benutzernamen-Länge',
'minpass' => 'Minimale Passwortlänge',
'defaultrefresh' => 'Standardzeit zum Neuladen der Nachrichten (Sekunden)',
'suguests' => 'Anwerber aktivieren',
'rulestxt' => 'Regeln (html)',
'imgembed' => 'Bilder einbetten',
'trackip' => 'Sitzungs-IP anzeigen',
'captchachars' => 'Im Captcha benutzte Zeichen',
'memkick' => 'Mitglieder dürfen Rasusschmeißen, wenn kein Moderator da ist',
'forceredirect' => 'Umleitung erzwingen',
'redirect' => 'Benutzerdefinierte Umleitungsadresse',
'backuprestore' => 'Sichern und wiederherstellen',
'backup' => 'Sichern',
'restore' => 'Wiederherstellen',
'settings' => 'Einstellungen',
'linkfilter' => 'Linkfilter'
);
?>

View File

@ -37,12 +37,19 @@ $I=array(
'sulogin' => 'Superadmin Login',
'sunick' => 'Superadmin Nickname:',
'supass' => 'Superadmin Password:',
'suconfirm' => 'Confirm Passowrd:',
'suconfirm' => 'Confirm Password:',
'susuccess' => 'Successfully registered!',
'initbtn' => 'Initalise Chat',
'initdbexist' => 'Database tables already exist! To continue, you have to delete these tables manually first.',
'initsuexist' => 'A Superadmin already exists!',
'initgosetup' => 'Go to the Setup-Page',
'captcha' => 'Captcha',
'enabled' => 'Enabled',
'onlyguests' => 'Only for guests',
'disabled' => 'Disabled',
'simple' => 'Simple',
'moderate' => 'Moderate',
'extreme' => 'Extreme',
'nick' => 'Nickname:',
'pass' => 'Password:',
'globalloginpass' => 'Global Password:',
@ -63,6 +70,7 @@ $I=array(
'cleanmsgs' => 'Clean messages',
'room' => 'Whole room',
'selection' => 'Selection',
'cleannick' => 'Following nickname:',
'clean' => 'Clean',
'kickchat' => '<b>Kick Chatter</b> (%d minutes)',
'kickmsg' => 'Kickmessage:',
@ -70,15 +78,13 @@ $I=array(
'kick' => 'Kick',
'logoutinact' => 'Logout inactive Chatter',
'logout' => 'Logout',
'viewsess' => 'View active sessions',
'sessions' => 'View active sessions',
'view' => 'View',
'filter' => 'Filter',
'guestacc' => 'Change Guestaccess',
'guestallow' => 'Allow',
'guestwait' => 'Allow with waitingroom',
'adminallow' => 'Require moderator approval',
'globalpass' => 'Allow with global password',
'memberglobalpass' => 'Only members with global password',
'guestdisallow' => 'Only members',
'addsuguest' => 'Add applicant',
'register' => 'Register',
@ -88,7 +94,7 @@ $I=array(
'memsuguest' => 'Set to applicant (G)',
'memreg' => 'Set to regular member',
'memmod' => 'Set to moderator (M)',
'memsumod' => 'Set to supermod (M)',
'memsumod' => 'Set to supermod (SM)',
'memadm' => 'Set to admin (A)',
'change' => 'Change',
'regguest' => 'Register Guest',
@ -118,7 +124,7 @@ $I=array(
'waitreload' => 'If this page doesn\'t refresh every %d seconds, use the button below to reload it manually!',
'reload' => 'Reload',
'rules' => 'Rules',
'talkto' => 'Talk to',
'talkto' => 'Send to',
'toall' => 'All chatters',
'tomem' => 'Members only',
'tostaff' => 'Staff only',
@ -137,7 +143,7 @@ $I=array(
'profile' => 'Your Profile',
'ignore' => 'Ignore',
'unignore' => 'Don\'t ignore anymore',
'refreshrate' => 'Refresh rate (20-150 seconds)',
'refreshrate' => 'Refresh rate (5-150 seconds)',
'fontcolour' => 'Font colour',
'viewexample' => 'View examples',
'bgcolour' => 'Background colour',
@ -147,7 +153,7 @@ $I=array(
'italic' => 'Italic',
'fontexample' => 'Example for your chosen font',
'timestamps' => 'Show Timestamps',
'embed' => 'Embed images',
'embed' => 'Embed images (needs Cookies)',
'incognito' => 'Incognito mode',
'pbsize' => 'Post box size',
'nbsize' => 'Notes box size',
@ -175,8 +181,8 @@ $I=array(
'randomcol' => 'Random Colour',
'enter' => 'Enter Chat',
'error' => 'Error:',
'members' => 'Members:',
'guests' => 'Guests:',
'members' => 'Members',
'guests' => 'Guests',
'approveguests' => '%d new guests to approve',
'allowchecked' => 'Allow checked',
'allowall' => 'Allow all',
@ -186,7 +192,7 @@ $I=array(
'butallowdeny' => 'Submit',
'waitempty' => 'No more entry requests to approve.',
'wrongcaptcha' => 'Wrong Captcha',
'captchatime' => 'Captcha already used or timed out.',
'captchaexpire' => 'Captcha already used or timed out.',
'noguests' => 'Sorry, currently members only!',
'curchat' => 'Currently %d chatter(s) in room:',
'cantreg' => 'Can\'t register %s',
@ -196,6 +202,7 @@ $I=array(
'succdel' => '%s successfully deleted from database.',
'succchg' => 'Status of %s successfully changed.',
'wrongpass' => 'Wrong Password!',
'wrongglobalpass' => 'Wrong global Password!',
'succprofile' => 'Your profile has successfully been saved.',
'backtologin' => 'Back to the login page.',
'backtochat' => 'Back to the chat.',
@ -234,6 +241,40 @@ $I=array(
'White' => 'White',
'Yellow' => 'Yellow',
'YellowGreen' => 'Yellow green',
'contributors' => 'Contributors',
'redirectto' => 'Redirecting to:',
'nonhttp' => 'Non-http link requested:',
'httpredir' => 'If it\'s not working, try this one:',
'actions' => 'Actions',
'sesip' => 'IP-Address',
'css' => 'CSS Style',
'memberexpire' => 'Member timeout (minutes)',
'guestexpire' => 'Guest timeout (minutes)',
'kickpenalty' => 'Kick penalty (minutes)',
'entrywait' => 'Waiting room time (seconds)',
'captchatime' => 'Captcha timeout (seconds)',
'messageexpire' => 'Message timeout (minutes)',
'messagelimit' => 'Message limit (public)',
'maxmessage' => 'Maximal message length',
'confirm' => 'Are you sure?',
'yes' => 'Yes',
'no' => 'No',
'colbg' => 'Background colour',
'coltxt' => 'Text colour',
'maxname' => 'Maximal user name length',
'minpass' => 'Minimal password length',
'defaultrefresh' => 'Default message reload time (seconds)',
'suguests' => 'Enable applicants',
'rulestxt' => 'Rules (html)',
'imgembed' => 'Embed images',
'trackip' => 'Show session-IP',
'captchachars' => 'Characters used in Captcha',
'memkick' => 'Members can kick, if no moderator is present',
'forceredirect' => 'Force redirection',
'redirect' => 'Custom redirection script',
'backuprestore' => 'Backup and restore',
'backup' => 'Backup',
'restore' => 'Restore',
'settings' => 'Settings',
'linkfilter' => 'Linkfilter'
);
?>