From ae4e87df37ed8904de92c7cf2f3a11128cda2a21 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 6 Apr 2013 13:14:41 +0200 Subject: tagging ychat-0.7.4.1 --- CHANGES | 287 +- COPYING | 0 INSTALL | 0 Makefile | 107 + NEWS | 52 + README | 498 +-- TODO | 93 +- configure | 83 +- docs/mysql_ychat.txt | 16 + etc/ychat.conf | 136 +- html/admin.html | 0 html/blank.html | 0 html/colors.html | 0 html/demo.html | 0 html/favicon.ico | Bin html/frameset.html | 0 html/help.html | 2 +- html/images/away.gif | Bin html/images/blank.gif | Bin html/images/guest.png | Bin html/images/ircuser.png | Bin html/images/rang0.png | Bin html/images/rang1.png | Bin html/images/rang2.png | Bin html/index.html | 0 html/input.html | 1 - html/notfound.html | 0 html/online.html | 16 +- html/options.html | 0 html/register.html | 0 html/robots.txt | 0 html/stream.html | 4 +- html/style.css | 51 +- html/test.cgi | 0 html/urlredirect.html | 0 log/.keepme | 0 log/rooms/.keepme | 0 scripts/astyle.sh | 2 +- scripts/config.sh | 152 + scripts/makeyhttpd.pl | 87 +- scripts/modules/file.pm | 0 scripts/stats.pl | 6 +- scripts/version.sh | 6 +- src/Makefile.in | 54 +- src/chat/base.h | 182 +- src/chat/base.tmpl | 73 +- src/chat/chat.cpp | 543 ++- src/chat/chat.h | 103 +- src/chat/gcol.cpp | 184 +- src/chat/gcol.h | 58 +- src/chat/perm.cpp | 93 +- src/chat/perm.h | 69 +- src/chat/room.cpp | 124 +- src/chat/room.h | 131 +- src/chat/sess.cpp | 63 +- src/chat/sess.h | 50 +- src/chat/sman.cpp | 165 +- src/chat/sman.h | 56 +- src/chat/user.cpp | 796 ++--- src/chat/user.h | 283 +- src/cli/cli.cpp | 579 ++-- src/cli/cli.h | 52 +- src/conf/conf.cpp | 242 +- src/conf/conf.h | 43 +- src/configure | 6641 ++---------------------------------- src/contrib/crypt/md5.cpp | 357 +- src/contrib/crypt/md5.h | 39 +- src/contrib/crypt/md5crypt.cpp | 257 +- src/contrib/xml/tinyxml.cpp | 1703 +++++---- src/contrib/xml/tinyxml.h | 2266 ++++++------ src/contrib/xml/tinyxmlerror.cpp | 68 +- src/contrib/xml/tinyxmlparser.cpp | 2708 +++++++-------- src/data/con.cpp | 26 +- src/data/con.h | 12 +- src/data/con_base.cpp | 0 src/data/con_base.h | 10 +- src/data/data.cpp | 137 +- src/data/data.h | 26 +- src/data/data_base.cpp | 151 +- src/data/data_base.h | 47 +- src/glob.h | 230 +- src/html.cpp | 187 +- src/html.h | 65 +- src/incl.h | 29 +- src/logd.cpp | 205 +- src/logd.h | 58 +- src/main.cpp | 237 +- src/maps/hmap.h | 96 + src/maps/hmap.tmpl | 289 ++ src/maps/mtools.h | 26 +- src/maps/mtools.tmpl | 29 +- src/maps/nmap.h | 22 + src/maps/nmap.tmpl | 31 + src/maps/smap.h | 55 + src/maps/smap.tmpl | 215 ++ src/modl.cpp | 188 +- src/modl.h | 59 +- src/mods/Makefile | 12 +- src/mods/commands/Makefile.in | 18 + src/mods/commands/yc_about.cpp | 98 +- src/mods/commands/yc_all.cpp | 101 +- src/mods/commands/yc_away.cpp | 150 +- src/mods/commands/yc_col.cpp | 167 +- src/mods/commands/yc_compopt.cpp | 45 +- src/mods/commands/yc_exec.cpp | 108 +- src/mods/commands/yc_fake.cpp | 67 +- src/mods/commands/yc_getroom.cpp | 94 +- src/mods/commands/yc_getrusage.cpp | 93 +- src/mods/commands/yc_help.cpp | 106 +- src/mods/commands/yc_invisible.cpp | 69 +- src/mods/commands/yc_j.cpp | 203 +- src/mods/commands/yc_ko.cpp | 112 +- src/mods/commands/yc_m.cpp | 89 +- src/mods/commands/yc_md5.cpp | 108 +- src/mods/commands/yc_me.cpp | 77 +- src/mods/commands/yc_morph.cpp | 101 +- src/mods/commands/yc_msg.cpp | 128 +- src/mods/commands/yc_q.cpp | 51 +- src/mods/commands/yc_reload.cpp | 57 +- src/mods/commands/yc_ren.cpp | 134 +- src/mods/commands/yc_s.cpp | 105 +- src/mods/commands/yc_set.cpp | 199 +- src/mods/commands/yc_template.cpp | 24 + src/mods/commands/yc_time.cpp | 55 +- src/mods/commands/yc_topic.cpp | 162 +- src/mods/commands/yc_uptime.cpp | 55 +- src/mods/commands/yc_version.cpp | 45 +- src/mods/configure | 40 +- src/mods/html/Makefile.in | 18 + src/mods/html/yc_admin.cpp | 143 +- src/mods/html/yc_colors.cpp | 76 +- src/mods/html/yc_help.cpp | 100 +- src/mods/html/yc_options.cpp | 103 +- src/mods/html/yc_register.cpp | 189 +- src/msgs.h | 95 +- src/name.cpp | 54 +- src/name.h | 40 +- src/ncur/menu.cpp | 119 + src/ncur/menu.h | 39 + src/ncur/ncur.cpp | 284 ++ src/ncur/ncur.h | 50 + src/reqp.cpp | 532 ++- src/reqp.h | 77 +- src/sock/sock.cpp | 629 +--- src/sock/sock.h | 102 +- src/stats.cpp | 149 + src/stats.h | 48 + src/thrd/pool.cpp | 306 +- src/thrd/pool.h | 98 +- src/thrd/thro.cpp | 47 +- src/thrd/thro.h | 48 +- src/time/timo.cpp | 44 +- src/time/timo.h | 36 +- src/time/timr.cpp | 193 +- src/time/timr.h | 104 +- src/tool/dir.cpp | 68 +- src/tool/dir.h | 48 +- src/tool/tool.cpp | 277 +- src/tool/tool.h | 52 +- src/wrap.cpp | 133 +- src/wrap.h | 147 +- 161 files changed, 10878 insertions(+), 18454 deletions(-) mode change 100644 => 100755 COPYING mode change 100644 => 100755 INSTALL create mode 100755 Makefile create mode 100644 NEWS mode change 100644 => 100755 README create mode 100755 docs/mysql_ychat.txt mode change 100644 => 100755 html/admin.html mode change 100644 => 100755 html/blank.html mode change 100644 => 100755 html/colors.html mode change 100644 => 100755 html/demo.html mode change 100644 => 100755 html/favicon.ico mode change 100644 => 100755 html/frameset.html mode change 100644 => 100755 html/help.html mode change 100644 => 100755 html/images/away.gif mode change 100644 => 100755 html/images/blank.gif mode change 100644 => 100755 html/images/guest.png mode change 100644 => 100755 html/images/ircuser.png mode change 100644 => 100755 html/images/rang0.png mode change 100644 => 100755 html/images/rang1.png mode change 100644 => 100755 html/images/rang2.png mode change 100644 => 100755 html/index.html mode change 100644 => 100755 html/input.html mode change 100644 => 100755 html/notfound.html mode change 100644 => 100755 html/online.html mode change 100644 => 100755 html/options.html mode change 100644 => 100755 html/register.html mode change 100644 => 100755 html/robots.txt mode change 100644 => 100755 html/stream.html mode change 100644 => 100755 html/style.css mode change 100644 => 100755 html/test.cgi mode change 100644 => 100755 html/urlredirect.html mode change 100644 => 100755 log/.keepme mode change 100644 => 100755 log/rooms/.keepme create mode 100755 scripts/config.sh mode change 100755 => 100644 scripts/makeyhttpd.pl mode change 100644 => 100755 scripts/modules/file.pm mode change 100644 => 100755 src/Makefile.in mode change 100644 => 100755 src/chat/base.h mode change 100644 => 100755 src/chat/base.tmpl mode change 100644 => 100755 src/chat/chat.cpp mode change 100644 => 100755 src/chat/chat.h mode change 100644 => 100755 src/chat/gcol.cpp mode change 100644 => 100755 src/chat/gcol.h mode change 100644 => 100755 src/chat/perm.cpp mode change 100644 => 100755 src/chat/perm.h mode change 100644 => 100755 src/chat/room.cpp mode change 100644 => 100755 src/chat/room.h mode change 100644 => 100755 src/chat/sess.cpp mode change 100644 => 100755 src/chat/sess.h mode change 100644 => 100755 src/chat/sman.cpp mode change 100644 => 100755 src/chat/sman.h mode change 100644 => 100755 src/chat/user.cpp mode change 100644 => 100755 src/chat/user.h mode change 100644 => 100755 src/cli/cli.cpp mode change 100644 => 100755 src/cli/cli.h mode change 100644 => 100755 src/conf/conf.cpp mode change 100644 => 100755 src/conf/conf.h mode change 100644 => 100755 src/data/con.cpp mode change 100644 => 100755 src/data/con.h mode change 100644 => 100755 src/data/con_base.cpp mode change 100644 => 100755 src/data/con_base.h mode change 100644 => 100755 src/glob.h mode change 100644 => 100755 src/html.cpp mode change 100644 => 100755 src/html.h mode change 100644 => 100755 src/incl.h mode change 100644 => 100755 src/logd.cpp mode change 100644 => 100755 src/logd.h mode change 100644 => 100755 src/main.cpp create mode 100644 src/maps/hmap.h create mode 100644 src/maps/hmap.tmpl create mode 100644 src/maps/nmap.h create mode 100644 src/maps/nmap.tmpl create mode 100644 src/maps/smap.h create mode 100644 src/maps/smap.tmpl mode change 100644 => 100755 src/modl.cpp mode change 100644 => 100755 src/modl.h mode change 100644 => 100755 src/mods/Makefile create mode 100755 src/mods/commands/Makefile.in mode change 100644 => 100755 src/mods/commands/yc_all.cpp mode change 100644 => 100755 src/mods/commands/yc_away.cpp mode change 100644 => 100755 src/mods/commands/yc_col.cpp mode change 100644 => 100755 src/mods/commands/yc_compopt.cpp mode change 100644 => 100755 src/mods/commands/yc_exec.cpp mode change 100644 => 100755 src/mods/commands/yc_fake.cpp mode change 100644 => 100755 src/mods/commands/yc_getroom.cpp mode change 100644 => 100755 src/mods/commands/yc_getrusage.cpp mode change 100644 => 100755 src/mods/commands/yc_help.cpp mode change 100644 => 100755 src/mods/commands/yc_invisible.cpp mode change 100644 => 100755 src/mods/commands/yc_j.cpp mode change 100644 => 100755 src/mods/commands/yc_ko.cpp mode change 100644 => 100755 src/mods/commands/yc_m.cpp mode change 100644 => 100755 src/mods/commands/yc_md5.cpp mode change 100644 => 100755 src/mods/commands/yc_me.cpp mode change 100644 => 100755 src/mods/commands/yc_morph.cpp mode change 100644 => 100755 src/mods/commands/yc_msg.cpp mode change 100644 => 100755 src/mods/commands/yc_q.cpp mode change 100644 => 100755 src/mods/commands/yc_reload.cpp mode change 100644 => 100755 src/mods/commands/yc_ren.cpp mode change 100644 => 100755 src/mods/commands/yc_s.cpp mode change 100644 => 100755 src/mods/commands/yc_set.cpp create mode 100755 src/mods/commands/yc_template.cpp mode change 100644 => 100755 src/mods/commands/yc_time.cpp mode change 100644 => 100755 src/mods/commands/yc_topic.cpp mode change 100644 => 100755 src/mods/commands/yc_uptime.cpp mode change 100644 => 100755 src/mods/commands/yc_version.cpp create mode 100755 src/mods/html/Makefile.in mode change 100644 => 100755 src/mods/html/yc_colors.cpp mode change 100644 => 100755 src/mods/html/yc_help.cpp mode change 100644 => 100755 src/mods/html/yc_options.cpp mode change 100644 => 100755 src/mods/html/yc_register.cpp mode change 100644 => 100755 src/name.cpp mode change 100644 => 100755 src/name.h create mode 100755 src/ncur/menu.cpp create mode 100755 src/ncur/menu.h create mode 100755 src/ncur/ncur.cpp create mode 100755 src/ncur/ncur.h mode change 100644 => 100755 src/reqp.cpp mode change 100644 => 100755 src/reqp.h mode change 100644 => 100755 src/sock/sock.cpp mode change 100644 => 100755 src/sock/sock.h create mode 100644 src/stats.cpp create mode 100644 src/stats.h mode change 100644 => 100755 src/thrd/pool.cpp mode change 100644 => 100755 src/thrd/pool.h mode change 100644 => 100755 src/time/timo.cpp mode change 100644 => 100755 src/time/timo.h mode change 100644 => 100755 src/time/timr.cpp mode change 100644 => 100755 src/time/timr.h mode change 100644 => 100755 src/wrap.cpp mode change 100644 => 100755 src/wrap.h diff --git a/CHANGES b/CHANGES index e9cefc7..12f9ea6 100644 --- a/CHANGES +++ b/CHANGES @@ -1,208 +1,79 @@ --Changes from 0.8.2-RELEASE to 0.8.3-CURRENT -$ Added .pm files to scripts/stats.pl -$ Modified the README (New CVS pserver) -$ Added docs/header.txt as a source header skel - All .cpp, .h and .tmpl files now do have a new source header - containging copyright infos etc. -$ New chat commands: /ban, /unban and /banned -$ Added the following to the ychat.conf: - chat.msgs.ban - chat.msgs.unban - chat.msgs.help.ban - chat.msgs.help.unban - chat.msgs.help.banned - chat.msgs.err.banned - chat.msgs.err.alreadybanned - chat.msgs.err.isnotbanned - chat.msgs.err.nobanned -$ Added src/build.h, which contains build informations. -$ Modified the build system. Using GNU Autoconf now. -$ Added GNU readline support for the yChat Command Line Interface (CLI) -$ Added the run_loop rule to ./Makefile -$ The thread pool class is now completely static! -$ Bugfix in src/sock/sock.cpp (No clear() w/ ncurses disabled) -$ Bugfix in src/cli/cli.cpp (No more segfault by reading empty strings - or commands with leading whitespaces) -$ Fixes in the README TOC and chapter numbers, fixed some typos also -$ uint32_t -> unsigned -$ Removed the Ncurses support which caused lots of problems. -$ CLI commands: - (s)hutdown has been renamed into (shut)down -$ Changed the copyright back to Paul C. Buetow - --Changes from 0.8.1-RELEASE to 0.8.2-RELEASE -$ Fixed some typos -$ Added the - Versioning - paragraph into the README file -$ Removed the yc_template command module source file -$ scripts/config.pl now also accepts q and quit as a command -$ Minor bugfix in scripts/config.pl -$ Some improvements in src/configure -$ Changed some default values in the src/glob.h - --Changes from 0.8-RELEASE to 0.8.1-RELEASE -$ Fixed a HTML bug in the stream html (h1 should get closed w/ /h1) -$ Fixed some typos in the README -$ Fixed a bug in the /q command -$ Implemented The /gag and /ungag commands -$ Implemented flood protection and added the following ychat.conf options: -$ chat.floodprotection.seconds -$ chat.floodprotection.messages -$ chat.msgs.err.gag -$ chat.msgs.floodgag -$ chat.msgs.gag -$ chat.msgs.ungag -$ chat.msgs.help.gag -$ chat.msgs.help.ungag -$ Added the SHORTDESC file -$ Changed Copyright to "EXA Digital Solutions GbR" - --Changes from 0.7.9.2-RELEASE to 0.8-RELEASE -$ Modified the Makefiles, so that they produce valid output while using -$ the -j flag of gmake. -$ OpenSSL support has been integrated. Thanks to CryptoMail.org for patching! -$ The next release will also have a credits section in the README! -$ The HTTP parsing stuff has been reviewed and improved by CryptoMail as well. -$ Also a mini bug of the configure script has been fixed. - --Changes from 0.7.9.1-RELEASE to 0.7.9.2-RELEASE - -$ Added monitor/dump, and the dump command to the CLI. -$ Fixed a bug in the session manager. -$ Added gmake dist do the README. -$ Added the charset to the HTTP-header. - --Changes from 0.7.9-RELEASE to 0.7.9.1-RELEASE - -$ Fixed etc/ychat.conf (Its now valid XML) -$ Fixed some typos. -$ Added the scripts/makedist.sh script, which can be invoked by gmake dist. -$ yhttpd.org has been renamed to yChat.org. The yhttpd.org SLD will be -$ canceled! The yhttpd.org Homepage will remain on yChat.org! - --Changes from 0.7.8-RELEASE to 0.7.9-RELEASE - -$ In the system messages will be the user printed which has requested the - specified module. -$ Removed the cursor from the ncurses interface. -$ Added wrap::init_wrappers -> The main.cpp is now shorter. -$ Added some Makefile modifications -$ Bugfix: cleanipcache shouldn run every minute but every 10! -$ Bugfix: scripts/stats.pl now counts all text-files properly. - --Changes from 0.7.7.1-RELEASE to 0.7.8-RELEASE - -$ Updated the yhttpd generation script due new sources in src/memb. -$ Changd some hashmaps back into simple std::map objects, this might -$ has resulted in some bugs due slow hashmap initialization time. -$ Hashmaps now only should being used on permanent objects. -$ Rewrote the dynamic thread pool. -$ makeyhttpd now also removes the yChat specific form etc/yhttpd.conf -$ automatically. -$ Implemnted an IP Cache (makes yChat faster). -$ Implemented signal catcher: -$ SIGUSR1 will clear the html template cache. -$ SIGUSR2 will reload the dynamic modules. -$ SIGSEGV can be catched if defined in src/glob.h. -$ SIGHUP, SIGINT and SIGTERM will shutdown yChat cleanly. -$ Added Allow: GET to the HTTP header. -$ Bugfix: The httpd.logging.accesslines now will be read correctly. -$ Bugfix: JavaScript messages now wont be logged. - --Changes from 0.7.7-RELEASE to 0.7.7.1-RELEASE - -$ Bugfix in main.cpp which resulted in a core dump on yChat startup. - --Changes from 0.7.6-RELEASE to 0.7.7-RELEASE - -$ Major code cleanup. -$ Bugfix in /col. -$ Bugfix in gcol #1 (destroy session also if no database is used). -$ Bugfix in gcol #2 (now runs each hour not once a day). -$ Renew the style.css and stream.html. - --Changes from 0.7.5-RELEASE to 0.7.6-RELEASE - -$ Removed the old hash maps and included the SGI C++ STL extenstion -$ hash_map. - --Changes from 0.7.4.1-RELEASE to 0.7.5-RELEASE - -$ Garbage collector will now run once a hour rather than each ten minutes. -$ Dynamic thread pool improvements. -$ Removed equiv-http-refresh meta tag from the online list. -$ Minor bugfix in the /topic command. -$ Implemented "User list". - --Changes from 0.7.4-RELEASE to 0.7.4.1-RELEASE - -$ Dynamic thread pool bugfix (dead lock). - --Changes from 0.7.3-RELEASE to 0.7.4-RELEASE - -$ Code cleanup. -$ Made the thread pool increasing dynamic. -$ Added some thread pool optimazions. -$ Added some more ${MAKE} vars to the Makefiles. -$ Added Content-length to the HTTPD header. -$ Added the !command to the command line interface. -$ Added Content-type text/plain. -$ Added scrolling checkbox to input.html. -$ Removed modl from yhttpd. Dynamic modules are not needed in yhttpd yet. -$ Improved session engine. -$ Fixed auto logout bug. -$ Fixed newline bug (one \n too much for each html template). -$ Logging can now be completely disabled. - --Changes from 0.7.2 to 0.7.3-RELEASE - -$ Added FreeBSD 5.3-RELEASE support. -$ Added chat.enableguest option. -$ Added the /all command (Global system message). -$ Renamed the /getstatus command into /about. -$ Fixed the &-bug (& should be allowed in messages). \AND is now a -$ synonym for & too. -$ Fixed the /msg bug (In /msg the string replacer should be activated). -$ Fixed logging bug (do not log any timestamps if there are no messages). - --Changes from 0.7.1 to 0.7.2-RELEASE - -$ New features: -$ /morph. -$ Added the new standard html template design. -$ Bugfixes: -$ /away prints a . instead of a : if no away reason is given. -$ /ko message was wrong. Displayed not room name of the user to be kicked out. -$ /invisible command displayed wrong private messages. -$ /getstatus had no help text. -$ /msg and /s should now print the system time if printalwaystime == true. -$ Added a blank to the /uptime message. -$ /topic now prints the topic in the user's color. -$ Fixed some typos. - --Changes from 0.7.0 to 0.7.1-RELEASE - -$ Added ${MAKE} to the config file because some Linux distros dont use -$ the "gmake" command for GNU make but just "make"! Modified the -$ configure script to generate a make.version file. -$ Removed some typos from the ychat.conf. -$ Fixed the auto away message. This one will be posted in the room -$ as public rather than only private to the auto-away-user. -$ Fixed some documentation stuff for yhttpd because yhttpd does not -$ need MySQL at all. -$ Added the chat.maxlength.word option. - --Changes from 0.6 to 0.7.0-RELEASE - -$ Better stability . -$ Better performance (using more hmaps). -$ HTML color switcher menu. -$ New commands: /away /room /j /ren. -$ Simple garbage collector for old user and room objects. -$ Use of the database (MySQL). -$ Nick registration and password protection. -$ Status images for Operator, Half-Operator, Voiced user and Guests. -$ New Makefiles. -$ Useful Perl scripts for sourcecode stats generation etc. -$ Added system_log and room logging to access_log logging. -$ Added time-offset option. -$ Added to the admin interface new options. -$ Added Logout button. -$ Added string replacer there certain substr. of postings will be replaced by another string (such as smiley images). -$ Added Superuser levels and the /ko and /set commands. -$ Added admin CLI (Command Line Interface) mode. -$ Added memory rusage history which tracks memory usage for the last 10 days. -$ Added HTTP POST request parsing. -$ Made yChat more modular so yhttpd can be extracted from it -$ (scripts/makeyhttpd.pl). -$ Added CGI support. -$ Rewrote big parts of the Makefiles and the configure scripts. -$ Made it compatible to GNU G++ 3.4, 3.3, 3.2 and 3.1 (3.0 and earlier do not -$ work). -$ XML based configuration file (ychat.conf). -$ Added default operator option: chat.defaultop. +Changes from 0.7.4-RELEASE to 0.7.4.1-RELEASE: +- Thread pool bugfix. + +Changes from 0.7.3-RELEASE to 0.7.4-RELEASE: +- Code cleanup. +- Made the thread pool increasing dynamic. +- Added some thread pool optimazions. +- Added some more ${MAKE} vars to the Makefiles. +- Added Content-length to the HTTPD header. +- Added the !command to the command line interface. +- Added Content-type text/plain. +- Added scrolling checkbox to input.html +- Removed modl from yhttpd. Dynamic modules are not needed in yhttpd yet. +- Improved session engine. +- Fixed auto logout bug. +- Fixed newline bug (one \n too much for each html template) +- Logging can now be completely disabled. + +Changes from 0.7.2 to 0.7.3-RELEASE: +- Added FreeBSD 5.3-RELEASE support. +- Added chat.enableguest option. +- Added the /all command (Global system message) +- Renamed the /getstatus command into /about. +- Fixed the &-bug (& should be allowed in messages). \AND is now a + synonym for & too. +- Fixed the /msg bug (In /msg the string replacer should be activated). +- Fixed logging bug (do not log any timestamps if there are no messages). + +Changes from 0.7.1 to 0.7.2-RELEASE: +New features: +- /morph +- Added the new standard html template design. +Bugfixes: +- /away prints a . instead of a : if no away reason is given. +- /ko message was wrong. Displayed not room name of the user to be kicked out. +- /invisible command displayed wrong private messages. +- /getstatus had no help text. +- /msg and /s should now print the system time if printalwaystime == true. +- Added a blank to the /uptime message. +- /topic now prints the topic in the user's color. +- Fixed some typos. + +Changes from 0.7.0 to 0.7.1-RELEASE: +- Added ${MAKE} to the config file because some Linux distros dont use + the "gmake" command for GNU make but just "make"! Modified the + configure script to generate a make.version file. +- Removed some typos from the ychat.conf. +- Fixed the auto away message. This one will be posted in the room + as public rather than only private to the auto-away-user. +- Fixed some documentation stuff for yhttpd because yhttpd does not + need MySQL at all. +- Added the chat.maxlength.word option. + +Changes from 0.6 to 0.7.0-RELEASE: +- Better stability +- Better performance (using more hmaps) +- HTML color switcher menu +- New commands: /away /room /j /ren +- Simple garbage collector for old user and room objects +- Use of the database (MySQL) +- Nick registration and password protection +- Status images for Operator, Half-Operator, Voiced user and Guests +- New Makefiles +- Useful Perl scripts for sourcecode stats generation etc. +- Added system_log and room logging to access_log logging +- Added time-offset option +- Added to the admin interface new options +- Added Logout button +- Added string replacer there certain substr. of postings will be replaced by another string (such as smiley images) +- Added Superuser levels and the /ko and /set commands +- Added admin CLI (Command Line Interface) mode +- Added memory rusage history which tracks memory usage for the last 10 days +- Added HTTP POST request parsing +- Made yChat more modular so yhttpd can be extracted from it (scripts/makeyhttpd.pl) +- Added CGI support +- Rewrote big parts of the Makefiles and the configure scripts +- Made it compatible to GNU G++ 3.4, 3.3, 3.2 and 3.1 (3.0 and earlier does not work) +- XML based configuration file (ychat.conf) +- Added default operator option: chat.defaultop diff --git a/COPYING b/COPYING old mode 100644 new mode 100755 diff --git a/INSTALL b/INSTALL old mode 100644 new mode 100755 diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..805ddab --- /dev/null +++ b/Makefile @@ -0,0 +1,107 @@ +MAKE=`tail -n 1 make.version` +PREFIX=`grep "define PREFIX" src/glob.h | cut -d'"' -f2` +all: version base modules version + @echo "Now edit the ychat.conf and run ychat!" + @echo "The config file is searched in the following order:" + @echo " ./ychat.conf " + @echo " ~/.ychat/ychat.conf " + @echo " ./etc/ychat.conf " + @echo " /etc/ychat.conf " + @echo " $(PREFIX)/etc/ychat.conf " + @echo If you want to help the yChat project please run gmake mail + @echo so that the developers receive an email about the platform + @echo being used. +mail: + @echo "VERSION:" > mail.tmp + @${MAKE} version >> mail.tmp + @echo >> mail.tmp + @echo "UNAME:" >> mail.tmp + @uname -a >> mail.tmp + @echo >> mail.tmp + @echo "DATE:" >> mail.tmp + @date >> mail.tmp + @echo >> mail.tmp + @echo "COMPILER AND MAKE:" >> mail.tmp + @cat g++.version make.version >> mail.tmp + @cat mail.tmp | mail -s "Successfull build of yChat" successfullbuild@yhttpd.org + @rm -f mail.tmp +install: deinstall + @echo "Instaling ychat to $(PREFIX)" + @cp bin/ychat $(PREFIX)/bin + @if ! test -d $(PREFIX)/lib/ychat; then mkdir -p $(PREFIX)/lib/ychat; fi + @if ! test -d $(PREFIX)/share/ychat/log/rooms; then mkdir -p $(PREFIX)/share/ychat/log/rooms; fi + @if ! test -d $(PREFIX)/etc; then mkdir $(PREFIX)/etc; fi + @if test -d mods; then cp -Rp mods $(PREFIX)/lib/ychat/mods; fi + @cp -Rp html $(PREFIX)/share/ychat/html + @if test -f $(PREFIX)/etc/ychat.conf; then mv $(PREFIX)/etc/ychat.conf $(PREFIX)/etc/ychat.conf.bak; fi + @cp etc/ychat.conf etc/ychat.conf.tmp + @sed "s#mods/#$(PREFIX)/lib/ychat/mods/#" etc/ychat.conf.tmp > etc/ychat.conf.tmp.2 && mv etc/ychat.conf.tmp.2 etc/ychat.conf.tmp + @sed "s#\"log/#\"$(PREFIX)/share/ychat/log/#" etc/ychat.conf.tmp > etc/ychat.conf.tmp.2 && mv etc/ychat.conf.tmp.2 etc/ychat.conf.tmp + @mv etc/ychat.conf.tmp $(PREFIX)/etc/ychat.conf + @echo "yChat configuration file can be found under" + @echo " $(PREFIX)/etc/ychat.conf" + @echo "Copy it to ~/.ychat/ychat.conf to use local settings :-)" + @echo "Be sure that $(PREFIX)/share/ychat/logs is writable by your user or modify " + @echo "logging dirs in the ychat.conf to a local directory." + @echo "The most secure would be an additional user 'ychat'!" +uninstall: deinstall +deinstall: + @echo Install/deinstall is currently not working! + @echo Start yChat with ./bin/ychat instead! + @exit 1 + @echo "Deinstalling ychat from $(PREFIX)" + @if test -f $(PREFIX)/bin/ychat; then rm -f $(PREFIX)/bin/ychat; fi + @if test -d $(PREFIX)/lib/ychat; then rm -Rf $(PREFIX)/lib/ychat; fi + @if test -d $(PREFIX)/share/ychat; then rm -Rf $(PREFIX)/share/ychat; fi + @echo "Done. Please remove manually $(PREFIX)/etc/ychat.conf to complete" +modules: + @if test -d ./src/mods; then ${MAKE} -C ./src/mods; fi +clean_modules: + @if test -d ./src/mods; then ${MAKE} -C ./src/mods clean; fi +base: + @if test -f bin/ychat; then echo "Backing up old binary";if test -f bin/ychat.old; then rm -f bin/ychat.old; fi; mv bin/ychat bin/ychat.old; fi + @perl ./scripts/buildnr.pl + @perl ./scripts/setglobvals.pl + @${MAKE} -C ./src +clean_base: + @${MAKE} -C ./src clean +stats: + @perl scripts/stats.pl +run: + ./bin/ychat +base_start: base + ./bin/ychat +start: base modules + ./bin/ychat +gpl: + @more COPYING +#//<<* +yhttpdbase: + @perl scripts/makeyhttpd.pl || echo "You need to have perl to do this!" + @echo yhttpd code base has been generated in ../yhttpd +#//*>> +clean: clean_base clean_modules +help: + @echo "You may run ${MAKE} with the following parameters:" + @grep "^ ${MAKE} " README + @echo "For more questions read the README file or contact mail@ychat.org!" +setup: + @./configure + @${MAKE} +config: + @sh -c "scripts/config.sh" + @echo If you run ${MAKE} config from the command line then you may need + @echo to rerun ./configure and recompile all now! + +mrproper: clean + @if test -f src/glob.h.org; then mv -f src/glob.h.org src/glob.h;fi + @if test -f g++.version; then rm -f g++.version; fi + @if test -f make.version; then rm -f make.version; fi + @if test -f src/Makefile; then rm -f src/Makefile; fi + @if test -d src/mods; then find src/mods/*/ -name Makefile | xargs rm -f; fi + @find . -name "*.add" | xargs rm -f + @ls | grep core | xargs rm -f +version: + @./scripts/version.sh +debug: + @gdb bin/ychat ychat.core diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..95d8087 --- /dev/null +++ b/NEWS @@ -0,0 +1,52 @@ +::(12.02.05)::Released yChat 0.7.4. This release includes a code cleanup and a dynamic increasing thread pool. Also, some other thread pool and session engine improvements were made. The Makefiles got more organized and the HTTPD header has got a Content-length line. The Content-type text/plain is now also supported. The command line interface has got the ! (bang) operator. So you can run programs of your shell through yChat. The HTML interface has got a scrolling checkbox to de/activate the scrolling of the chat stream. Last but not least some bugfixes were made. +::(09.02.05)::Tagged yChat 0.7.4-PRERELEASE into CVS. The RELEASE will follow this week. +::(08.01.05)::We passed the build number 3000! 3000 times yChat has been compiled during the developing process since there are build numbers! Also the first steps have been made porting yChat/yhttpd to the Windows platform using Cygwin (yChat 0.7.4-CURRENT Build 3040 CYGWIN_NT-5.1 1.5.12 (0.116/4/2) i686). It runs without having installed Cygwin and having an 1MB cygwin1.dll file instead. There are still some issues (like dynamic modules [which means, that there are no chat commands and no color choser etc], command line interface, ncurses interface, database support) which do not yet run on Cygwin. But those issues will be resolved the next weeks. An alpha (experimental) binary yChat/Win32 release might be done also. +::(04.01.05)::First we wish all of you a happy new year. Second we have to announce that yhttpd 0.7-CURRENT now also has tested on an OpenBSD/i386 MP 3.6 box with success. Also yChat 0.7.4-CURRENT is now available from CVS. +::(29.12.04)::Released yChat 0.7.3-RELEASE. New features: Added the /all command (Global system message), added FreeBSD 5.3-RELEASE support, added chat.enableguest option. Renamed the /getstatus command into /about. Fixed some bugs. +::(09.11.04)::Released yChat 0.7.2-RELEASE. New features: /morph. Added the new standard html template design. Bugfixes: /away prints a . instead of a : if no away reason is given. /ko message was wrong. Displayed not room name of the user to be kicked out. /invisible command displayed wrong private messages. /getstatus had no help text. /msg and /s should now print the system time if printalwaystime == true. Added a blank to the /uptime message. /topic now prints the topic in the user's color. +- Fixed some typos. +::(06.11.04)::Released yChat and yhttpd 0.7.1-RELEASE. Added ${MAKE} to the Make file because some Linux distros dont use the "gmake" command for GNU make but just "make"! Modified the configure script to generate a make.version file. Removed some typos from the ychat.conf. Fixed the auto away message. This one will be posted in the room as public rather than only private to the auto-away-user. Fixed some documentation stuff for yhttpd because yhttpd does not need MySQL at all. Added the chat.maxlength.word option. +::(02.11.04)::We now provided a yhttpd-0.7.tar.bz2 file for download which is a source code package of the HTTP kernel of yChat. This one can be used as a stand alone web server. Also a yhttpd branch will be created for yhttpd as well. :) We also started to work on the 0.7.x-CURRENT versions which will become some day 0.8-RELEASE. +::(01.11.04)::We now provided a ychat-0.7.tar.bz2 file for download which is a source code package of the release we made yesterday. It also contains some fixes since then. You can download it on this site under Sourcecode -> Source packages -> CPP-yChat. :) +::(31.10.04)::After a long yChat 0.7-CURRENT developing phase we are proud to anounce yChat 0.7-RELEASE. By now, there may not any 0.7 release source packages for download available but you can fetch the release from the current cvs instead until source packages are available. This release has the biggest change log ever in yChat history. Here are some highlights: Included color switcher user interface, smart garbage collection engine, real MySQL support, nick registration + password protection, completly rewritten configure and Makefile scripts, perl script for source code stats, system_log and room_log, logout button, string replace for smileys e.g., additional CLI mode in parallel to the ncurses mode for the admin interface, memory watching, HTTP POST request handling in addition to POST request handling, CGI support, md5-summing of session ids to make reverse engineering of sessions harder, yhttpd generation script out of the yChat source tree, XML based configuration file, and lots of new configuration options which we can't list all here. yChat 0.7-RELEASE is known to compile and work correctly with GNU G++ 3.1, 3.2, 3.3 and 3.4. This announcement will be as well on Freshmeat.net on monday. +::(30.10.04)::yChat now has been tested on an OpenBSD 3.6 MP box with success. It has been compiled with GNU make 3.80 and GNU G++ 3.3.2. OpenBSD is now the 3rd operating system which is know to work with yChat. The other two tested OSes are still FreeBSD and Linux. All other UNIX and UNIX like operating systems should also work. But if you have tested it please write us an email to tell us about. ;) +::(26.09.04)::Renamed yChat Advanced 0.5 into yChat 0.6-RELEASE and yChat 0.6-CURRENT into yChat 0.7-CURRENT. +::(25.09.04)::Wow, this was probably the largest CVS commit ever except of the initial source imports. yChat now completely uses an XML 1.0 based configuration file (ychat.conf). This was a lot of work, but everything seems to work now. ;) +::(13.09.04)::Added the "Statistics"-Section to the site. This section includes statistics about the yChat source code. +::(05.07.04)::Added the "Documentation"-Section to the site. From now on, the bug-reports and requirements can be found there. +::(02.07.04)::New homepage is online. We took the homepage perl script which is also used by www.buetow.org (which is my private homepage :-). Some day i will make this script also open source but this is not the right site to tell ;). +::(27.06.04)::The yChat team implemented a small perl script (makeyhttpd.pl) which takes the ychat source tree and generates an yhttpd source tree from it. And believe it or not, it also works. That means, we now can release yhttpd servers on each future yChat release. The conclusion of it is, that yChat and yhttpd releases will have excact the same version numbers from now on. +::(26.06.04)::Passed the 2000th yChat build :-) +::(25.06.04)::The serious problems have not been very serious. The module loading handling is fixed. yChat 0.5 CURRENT (CVS) now uses GNU G++ 3.4. Also a lot of compilation optimations have been added. +::(23.06.04)::yChat is facing some serious problems in the module loading handling. So the 0.6 RELEASE will need some more time to restructure big parts of the source code. But then yChat will be even more modular and dynamic. +::(08.04.04)::Finally added the first yhttpd version (0.0 CURRENT) into the CVS repository. See Sourcecode -> CVS-Repository how to access those files. +::(20.03.04)::Made yChat 0.5 CURRENT (CVS) compatible to GNU G++ 3.3 and added the "Features" section to the site. Check it out! Also exactly one year ago yChat 0.1 has been released which was the first C++ yChat ever. Happy birthday :-) +::(27.02.04)::Passed the 1000th build breaking point of yChat C++ :-) +::(17.02.04)::Code cleaning in progress! We now focus on fixing scripts and cleaning the sourcecode because we want to release 0.6 some day :-). +::(07.01.04)::yChat 0.5-CURRENT in action: ChatCities decided to use C++ yChat for their Community. This enables to beta test CURRENT and rename it some day to 0.6-RELEASE. See http://www.chatcities.de! Surprising: Malus started to continue some work on the old Perl based yChat CGI engine. Last version was 0.6.2 (year 2001), he begun to name his version 0.6.3 ;-). See http://chat.spunos.de! PS: Perl yChat is in german only. +::(03.01.04)::Released yChat Basic 0.5.1. This will be the last official release of the Basic suite and includes all CVS changes which has been made since Basic 0.5 which are mainly bugfixes only. +::(02.01.04)::First, we wish all of you a happy new year! Second, we decided not to continue the "yChat Basic" branch any more. Instead, we renamed "yChat Advanced" into a simpler and easier to remember "yChat" and keep developing on it. And last but not least we moved our CVS server and repository to another location. Now we are using a 100% independent developing platform on our own servers. :-) (Check out the CVS Download instructions how to connect to our new CVS server or surf the new online repository at cvsweb.yChat.org) +::(18.12.03)::It's been a while since the last update. I hope that I got some time left in the xmas brake to code on yChat. Maybe we will finish yChat 0.6 Release before the end of 2003. +::(07.11.03)::Added BugReports section. +::(27.10.03)::New site design is online. Added the following sections: Screenshot, Statistics and Copying :-). +::(23.09.03)::Added the "Requirements" section and a guestbook to the site. +::(17.09.03)::The site is now reachable through http://www.yChat.org AND http://www.yhttpd.org. We want to get ready releasing the first version of yhttpd next week. +::(17.09.03)::You might have wondered why we are still releasing new yChat Basic versions (because we told that we won't do this anymore). The reason is, that we have changed our releasing-model. Now we try to update the Basic branch as well as the Advanced branch. Nevertheless we try to keep corresponding version numbers. In particular this means, that all major changes or bugfixes which have been made in the Basic 0.6 branch will be included in Advanced 0.6 also. The same idea will be used in the upcoming yhttpd branch too because yhttpd will be based on yChat Basic! +::(15.09.03)::yChat Suite 0.5 is finally out! The first version of ychat_advanced and a bugfix release of ychat_basic. ychat_advanced has the following new features: MySQL Support, improved module-engine, support for different nick/text color, new help system, html site modules, a few new commands, thousands of bugfixes!, Downloads can be found in section "Sourcecode -> Packages" +::(15.09.03)::Added ReleaseHistory section to the site. +::(13.09.03)::It has been a long time the last news have been posted here. But we are heavily developing yChat and plan to release new packages during the next days. Please take a look at the CVS versions. We also thought that it would be nice starting to work on a small and fast httpd. See ReleasePlans for more informations. +::(26.04.03)::Finally we released the 0.4 version of yChat Basic. Improvements are: Dynamic session support, support for different languages, interface for dynamic module loading and apache style logfiles (combined log-format). This will be our latest version of the "Basic" series. Only bugfixes and minor improvements will be added to this. Our new ychat_advanced CVS tree will contain all extended features which we will add in future times. +::(02.04.03)::The documentation section of this homepage has been updated and some minor modifications of the rest of the site has been made. +::(01.04.03)::We have added our project the berlios developer site. ( See http://developer.berlios.de/projects/ychat/ ). Our CVS tree and repository a ( See http://repository.yChat.org/ ) also moved to BerliOS. +::(30.03.03)::We have added our project the freshmeat site. ( See http://freshmeat.net/projects/ychat/ ). +::(30.03.03)::Version 0.3 is ready for download. Now, the internal yChat data structure is based on a hash map and the yChat server also handles image files. +::(26.03.03)::Added demo server ( see http://login.yChat.org ). +::(24.03.03)::CVS-Repository is online ( see http://cvsweb.yChat.org ). +::(24.03.03)::New yChat++ Beta package ( version 0.2 ) is avaiable for download. New is a thread pool of reusable pthreads, POST request compatibility and some bugfixes. +::(23.03.03)::yChat++ is now downloadable through CVS. +::(22.03.03)::New yChat++ project homepage ( based on the www.buetow.info homepage script ). +::(21.03.03)::Second core developer: Rover. +::(20.03.03)::First beta release avaiable for download. Has been tested on FreeBSD 5.0 and Linux 2.4.19 and GCC 3.2. +::(19.03.03)::The yChat++ Project now does have a new Logo. Thanks to Juern ( www.juern.de ) and Ilja. +::(18.03.03)::New version of the README.txt file online. +::(16.03.03)::First login with message posts! diff --git a/README b/README old mode 100644 new mode 100755 index 2c2851c..b7bf61e --- a/README +++ b/README @@ -1,9 +1,9 @@ -yChat; Homepage: www.yChat.org; Version 0.8.3-CURRENT +yChat; Homepage: www.yChat.org; Version 0.7.4.1-RELEASE Copyright (C) 2003 Paul C. Buetow, Volker Richter -Copyright (C) 2005 EXA Digital Solutions GbR -Copyright (C) 2004, 2006 Paul C. Buetow +Copyright (C) 2004, 2005 Paul C. Buetow ----------------------------------------------------------------- + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 @@ -21,125 +21,27 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. YCHAT TABLE OF CONTENTS: -1.0.0 GENERAL -1.1.0 ABOUT RELEASES -1.2.0 YCHAT FEATURES //<< -2.0.0 INSTALLATION AND SETUP -2.1.0 REQUIREMENTS -2.2.0 TESTED PLATFORMS -2.3.0 HOW TO OBTAIN YCHAT -2.4.0 INSTALLATION QUICK-START -2.4.1 INSTALLATION -2.5.0 HOW TO USE OPENSSL WITH YCHAT -2.5.1 HOW TO USE SCREEN WITH YCHAT -2.5.2 HOW TO USE SIGNALS WITH YCHAT -2.5.3 HOW TO USE GNU READLINE WITH YCHAT -2.5.4 HOW TO USE MYSQL WITH YCHAT //<< -2.6.0 CUSTOMIZING YCHAT -2.7.0 YHTTPD CODE BASE GENERATION //<< -3.0.0 EXTENDING YCHAT -3.1.0 SOURCE FILES -4.0.0 DIVERSE -4.1.0 WRITING BUG REPORTS -4.2.0 CONTACT ADDRESSES -4.3.0 CREDITS - -1.0.0 GENERAL - -1.1.0 ABOUT RELEASES - -There are several projects involved: - -- The chat - -Its a HTTP based chat server written in C++. Clients are normal web browsers -such as MSIE or Gecko based browsers using only CSS, HTML and JavaScript. - -- The httpd - -Its a small http server based on the chat's socket and threading engine. -yhttpd does not have as much features but is easy to use and faster than -apache. yhttpd is a subset of the chat. It can be generated using the -srcipts/yhttpdbase.pl script in the chat's source tree. - -- The ycurses - -ycurses is a easy to use and small C++ wrapper around the C ncurses API. - -There are different branches: - -- CURRENT - -The CURRENT branch is unstable, this is the bleeding developing edge with -all the new experimental features. - -A RELEASE of CURRENT can be referred as CURRENTRELEASE. - -- STABLE - -The STABLE branch is more stable than CURRENT. This branch may get new -features as well. But those will be more conservative compared to -CURRENT. - -A RELEASE of STABLE can be referred as STABLERELEASE. - -- BASIC - -The BASIC branch is a very minimal one. This branch may get bugfixes and -updates and might get minor improvements. This is a version of yChat -with only very few features. - -A RELEASE of BASIC can be referred as BASICRELEASE. - -- LEGACY - -The LEGACY branch has no real support. This branch may get bugfixes and -updates and might get minor improvements. But there is no garuantee to -be bug free and stable at all. LEGACY versions are of historic meaning. - -- DEVEL - -DEVEL is only a meta name. If a version is labeled with DEVEL, then its -currently undefined if this is a CURRENT, STABLE or LEGACY branch. It -can be everything. Commonly DEVEL versions are CURRENT. - -There are also releases made: - -- RELEASE - -There can be RELEASEs made out of each branch. While a branch can get -new features, a RELEASE can not. A RELEASE of a branch is just like -a snapshot. RELEASEs are complete versions to test and use. But keep -in mind, that a RELEASE of the STABLE branch is recommended over a -RELEASE of a CURRENT or a LEGACY branch in a production environment. -RELEASEs of CURRENT are still the bleeding edge and RELEASEs of LEGACY -may be out of date. - -- Short names - - -In addition, each description also has short names: (short names are needed -if your text space is limited which happens very fast in IRC channel topics) - -CURRENT aka CUR aka C -RELEASE aka REL aka R -LEGACY aka LEG aka L -STABLE aka SBL aka S -BASIC aka BSC aka B -DEVEL aka DEV aka D -PRE aka P - -STABLERELEASE aka STBREL aka SR -PRERELEASE aka PREREL aka PR -PRELEGACYRELEASE aka PRELEGREL aka PLR -etc... - -The short name of the chat is "yC" -The short name of the httpd is "yh" -The short name of ycurses is "yu" - -- Versioning - -In general, versions are made up like X.Y.Z.W. X specifies the major version, -Y specifies the branch of the major version, Z specifies a sub revision -of a specific branch. The optional W can be used to specify a maintenance -revision which only changes small issues. +0.0.0 YCHAT FEATURES //<< +1.0.0 REQUIREMENTS +1.1.0 TESTED PLATFORMS +1.2.0 IMPORTANT NOTICES +1.3.0 HOW TO OBTAIN YCHAT +1.3.1 INSTALLATION +1.3.2 INSTALLATION QUICK-START +1.3.3 MYSQL SETUP //<< +1.4.0 HOW TO USE SCREEN WITH YCHAT +1.5.0 CUSTOMIZATION +1.6.0 FILES +1.7.0 WRITING BUG REPORTS +1.8.0 CONTACT +1.9.0 YHTTPD CODE BASE GENERATION //<< //<<* -1.2.0 YCHAT FEATURES +0.0.0 YCHAT FEATURES - Its free & portable - yChat is developed under the GNU general public license and is based on GNU -tools (gcc, gmake), other open source library stuff (such as GNU Readline etc.) +tools (gcc, gmake), other open source library stuff (such as libncurses etc.) and should run on any POSIX capable operating system (such as all Linux based systems, FreeBSD, NetBSD, OpenBSD and other BSD-Systems and on UNICES like IRIX, HP-UX, Solaris etc.). @@ -165,16 +67,14 @@ yChat is written in C++ which is faster than any Java based Chat-Server or any server written in a scripting language like PHP, Python or Perl. As the internal data structures hash maps are used to garuantee searching certain values in O(1) amount of time. If a hash maps gets full, it will be rehashed. -Currently, yChat has been measured providing over 1000 hits/requests per second -on a FreeBSD based server box while using less than 2% of CPU usage +The maximum usage in % can be redefined too (standard is 90%). Currently, yChat +has been measured providing over 5000 hits/requests per second (chat message +postings) on a FreeBSD based server box while using less than 2% of CPU usage on a Athlon XP 1900+. Performance seems to be limited by your bandwith only. Also, each user gets its own session id (random string) with a standard length of 50 chars to authenticate each logged in user. The length of the session id can be redefined as well. Also, the session id will get md5-hashed optionally so thats even harder to reverse engineering the session ids of other users. -Also, yChat supports secure hypertext transfer protocol (HTTPS) connections -using the OpenSSL library. Then, all chat messages will be encrypted in a -secure manner. HTTPS is optional to HTTP (unsecured connections). - Its HTML template based and easy to customize via XML based configuration - All HTML sites are predefined as HTML-Template files and can be easily modified @@ -197,13 +97,13 @@ to use other databases such as PostgreSQL, SQLite or a text based database etc. If wished, you can disable database support in the pre-compile options. - It has an administration interface - -yChat includes an libreadline based administration interface which tracks some +yChat includes an ncurses based administration interface which tracks some interesting statistics and system messages and enables you to do certain administrative tasks. In addition, you can switch to the CLI (command line interface) mode of the administration interface in order to be provided with more available functions (like keeping track of the current system usage etc.). -If you dont like libreadline and/or the CLI you can disable both options in the -pre- compile options. +If you dont like ncurses and/or the CLI you can disable both options in the pre- +compile options. - It has logging capabilities - The logging manager keeps track to all yChat system messages (such as users @@ -215,7 +115,7 @@ well . To improve performance, you can define the logging puffer (standardly new logs will be written to disk after each 20 lines). If you want to log everything immediately, you can reset this option to 1 in ychat.conf. -- Its modular through own command and dynamic HTML engine - +- Its modular - All chat commands are realized through dynamic loadable module files which can be recompiled and reloaded without restarting the whole yChat server. Also HTML-Sites with certain tasks can be compiled as a module like @@ -246,12 +146,10 @@ options. This improves overall performance on heavily loaded yChat servers if a lot of user and room objects are created and destroyed frequently. //*>> -2.0.0 INSTALLATION AND SETUP - -2.1.0 REQUIREMENTS: +1.0.0 REQUIREMENTS: -- GNU GCC G++ - The GNU C++ compiler version 3.1 or up. +- GNU GCC G++ 3.4 or 3.3 or 3.2 or 3.1 + The GNU C++ compiler. G++ version 3.0 or 2.x does NOT work. - GNU make 3.80 (gmake) or higher If you dont have a gmake executable but make is gnu make then you need @@ -259,44 +157,31 @@ lot of user and room objects are created and destroyed frequently. yChat Makefiles only have been tested with GNU make and may not work with other make versions. -- SGI STL extension - Includes ext/hash_map which may be already default on every Linux distro. - On *BSD you have to install it first before compiling. On FreeBSD - /usr/ports/devel/stlport is your friend. - -- OpenSSL (optional) - Includes libssl and the ssl header files of the open source SSL library. - OpenSSL is only needed if you chose to compile yChat w/OpenSSL support. - -- GNU Readline (optional) - This library can be used with the command line interface (CLI) of - ychat to make the editing easier. - //<<* -- mysql-client 4.x (optional) [3.x may do too but is not supported] - Includes libmysqlclient and the mysql.h header files. mysql-client is only - needed if you chose to compile yChat w/database support. +- mysql-client 4.x (3.x may do too but is not supported) + Includes libmysqlclient and the mysql.h header files. + //*>> +- ncurses 5.x + Includes libncurses and the ncurses.h header files. -- Screen (optional) +- Screen Only needed if yChat should run in background with - the CLI enabled. + ncurses or CLI enabled. - Perl 5.x Is needed for some scripts. Is not needed if you use precompiled binaries. -2.2.0 TESTED PLATFORMS: +1.1.0 TESTED PLATFORMS: The following platforms have been tested with success. If you find out that a listed platform did not work at all please contact me: Operating system (arch) GNU G++ GNU make -- FreeBSD 6.0-RELEASE (i386) 3.4.4 3.80 - FreeBSD 5.3-RELEASE (i386) 3.4.2 3.80 - - Tested longer time before: -- FreeBSD 5.4-RELEASE (i386) 3.4.2 3.80 +- FreeBSD 5.2.1-RELEASE (i386) 3.3.3 3.80 - FreeBSD 4.10-RELEASE (i386) 3.4.1 3.80 +- FreeBSD 4.9-RELEASE (i386) 3.3.4 3.80 - Gentoo Linux 2004 (i386) 3.3.2 3.80 - OpenBSD 3.6 SMP (i386) 3.3.2 3.80 - Red Hat Linux 8.0 SMP (i386) 3.2-7 3.79 @@ -307,181 +192,93 @@ a listed platform did not work at all please contact me: Other platforms like Linux based systems, other BSD-Systems or UNICES are very likely to work too. -2.3.0 HOW TO OBTAIN YCHAT: +1.2.0 IMPORTANT NOTICES: + +Before you compile the source you have to be sure to use at least GCC +version 3.1 with pthreads enabled. ( Type gcc -v to check it ). +GCC 2.95 and 3.0 did not work while testing and WON'T BE SUPPORTED! +If you like to support yChat, please write us an email and tell what +you can/like/would help ;-]. Please also take a look at the yChat +homepage which is located at http://www.yChat.org. + +1.3.0 HOW TO OBTAIN YCHAT: yChat can be downloaded as a source package or through CVS. -The packages are located at http://www.yChat.org -> Release Versions +The packages are located at http://www.yChat.org -> Sourcecode -> +Packages or go to http://pub.buetow.org/yChat/CPP-yChat . For CVS download type: -cvs -d:pserver:anonymous@buetow.org:/cvs/cvsroot login +cvs -d:pserver:anonymous@buetow.org:/usr/home/cvs/cvsroot login ( You will be asked for a password. Use "just enter" ). -cvs -z3 -d:pserver:anonymous@buetow.org:/cvs/cvsroot co BRANCH +vs -z3 -d:pserver:anonymous@buetow.org:/usr/home/cvs/cvsroot co ychat ( The sources will be copied into your local folder ) -cvs -d:pserver:anonymous@buetow.org:/cvs/cvsroot logout +cvs -d:pserver:anonymous@buetow.org:/usr/home/cvs/cvsroot logout ( Logs your CVS session out ). Now you may continue with the installation. -There are different branches in the CVS: - -ychat: This is the latest CURRENT branch of yChat. -ychat-stable: This is the latest STABLE branch of yChat. -ychat-X.Y: This is the branch with the specified version prefix. -yhttpd: This is the latest CURRENT snapshot of yhttpd. - -The CURRENT branch of ychat is mostly untested and unstable, so don't -cry if you get errors. - -2.4.0 INSTALLATION QUICK START +1.3.1 INSTALLATION: -If you in hury, then you may just run the following commands: - - sh -c 'CXXFLAGS="" ./configure' - gmake install clean - -yChat will get compiled without debugging symbols and its default values. -Afterwards yChat will get installed into the default prefix which is -/usr/local. Afterwards it is ready to run with the '/usr/local/bin/ychat' -command! - -2.4.1 INSTALLATION - -If you wanna quick start, then please refer to section 2.4.0 instead. - -Invoke './configure --help'. Afterwards you will get prompted with all the -possible compile options. Take a closer look at the --enable-FEATURE and the ---disable-FEATURE options. Afterwards run configure with your wanted options. -Now, you can run 'gmake'. See below what gmake is doing. By default yChat uses -loosy debugging symbols. To disable them, then run configure this way: - - sh -c 'CXXFLAGS="" ./configure --options' - -Dont forget to replace --options with your desired values. You can read more -about debugging symbols in section '4.1.0 WRITING BUG REPORTS'. +Invoke "./configure". Afterwards you will get prompted with the before-compile +options of yChat. After choosing those options you are ready to type "gmake" +afterwards. See below what gmake is doing. //<<* If you have choosen MySQL database support, then take a look at section 1.3.2 how to setup a valid database table. Be also sure to enter the valid MySQL accessing data in the yChat configuration file which is normally located in -the etc/ychat.conf file. +the etc/ychat.conf file if not changed by you with the yChat configurator. //*>> -You may also invoke gmake with the following options: +You may also invoke gmake with the following options (the PREFIX can be set +in the yChat configurator which will be launched by the top configure script +or gmake config): gmake or gmake all (compiles everything, also modules and runs "gmake mail") gmake base (only compiles the base) gmake base_start (only compiles the base and starts the server) - gmake build (increments the current build number by one) gmake clean (cleans everything) gmake clean_base (only cleans the base obj and rpo files) gmake clean_modules (only cleans the modules .so files) - gmake confdebug (runs the configure with strong debugging symboles enabled) - gmake debug (runs gdb on ./ychat.core) - gmake deinstall (same as gmake uninstall) - gmake dist (creates a .tar.bz2 ball) - gmake headers (rewrites the source file headers using doc/header.txt) - gmake help (shows all available yChat gmake targets) - gmake install (removes debugging symbols and installs yChat into the PREFIX) - gmake license (shows the GNU General Public License) + gmake config (runs yChat configurator) + gmake deinstall (deinstalls ychat from PREFIX) + gmake gpl (shows the GNU General Public License) + gmake help (shows all available ychat gmake targets) + gmake install (installs ychat to PREFIX) + gmake mail (sends a mail to the yChat developers containing build opts.) gmake modules (only compiles modules) gmake mrproper (same as gmake clean plus removing all temp files) - gmake quick (runs all configure scripts and afterwards gmake all) - gmake replace (replace in the source the content of $FROM into $INTO) - gmake stats (generates yChat statistics) - gmake strip (removes debugging symbols from binary) - gmake ssltest (generates a self signed ssl test certificate) - gmake touch (resets the date of each file in the source tree) - gmake uninstall (uninstalls yChat from the current default PREFIX) + gmake setup (runs all configure scripts and afterwards gmake all) + gmake start (compiles everything and starts the server) + gmake stats (generates ychat statistics) + gmake uninstall (same as deinstall) gmake version (shows the current version of yChat) //<<* gmake yhttpdbase (generates an yhttpd code base) //*>> (See section 1.9 to read about this marks) -Example: 'gmake all install clean' compiles everything, installs it to PREFIX +Example: "gmake all install clean" compiles everything, installs it to PREFIX and cleans the source directories. -Now its time to run the server with './bin/ychat'. +Now its time to run the server with ./bin/ychat. Aferwards point your webbrowser to http://yourip:port ! ... have fun :-). -2.5.0 HOW TO USE OPENSSL WITH YCHAT - -If you chose to use OpenSSL support you have to have a valid SSL private and -public key. If you are in hurry, use the gmake ssltest command from the top -source tree directory and follow the instructions. Otherwise type the -following commands manually: - -The private key can be created w/the following command: - - openssl genrsa -des3 -out privkey.pem 2048 - -Afterwards, you can create a self-signed test certificate using the following -command: - - openssl req -new -x509 -key privkey.pem -out cert.pem -days 1095 - -Be sure to move the privkey.pem and cert.pem files into the ./etc directory -or edit the path names in the ./etc/ychat.conf file. yChat wont start if there -are no valid files found. - -To learn more about SSL certificates, visit http://www.openssl.org/docs/HOWTO/. - -Now use https:// and NOT http:// to connect to the yChat server. - -2.5.1 HOW TO USE SCREEN WITH YCHAT: - -If you are running yChat in CLI mode you might want to install -the tool which is called "screen". This will enable you putting the -CLI interface into the background, closing the terminal session -and reusing the interface later through another terminal. - -Just do: - - screen -S ychat ./bin/ychat ( creates a new session and starts yChat in it ) - ctrl+d+a ( will detach the yChat session ) - ( closing the terminal ) - ( opening a new terminal ) - screen -r ychat ( will return you to the yChat process ) - -Screen will terminate automaticaly if all processes in its sessions are -terminated. - -For a closer look read the screen manual page ( man screen ). - -2.5.2 HOW TO USE SIGNALS WITH YCHAT: +1.3.2 INSTALLATION QUICK START: -You can send UNIX signals to yChat. This becomes very interesting if you -don't use the command line interface and you don't have access to the options -below. +If you in hury, then you may just type gmake setup. In the yChat configurator +you may just choose all the default values. If done, yChat will get compiled +and is ready to run with ./bin/ychat! -Run one of the following commands to send the signal you want: -($PID is here the process id of the current yChat process) - -kill -USR1 $PID # yChat clears the HTML template cache -kill -USR2 $PID # yChat reloads all dynamic loadable modules //<< -kill -HUP $PID # yChat will shutdown savely - -2.5.3 HOW TO USE GNU READLINE WITH YCHAT: - -This library can be used with the command line interface (CLI) of ychat. To -use it, yChat has to be compiled with readline support (which is the default -setting). - -Readline offers editing capabilities while the user is entering the line. -By default, the line editing commands are similar to those of emacs. A vi-style -line editing interface is also available. - -For configuration and usage of the yChat readline CLI prompt, read the readline -manpage. :) //<<* -2.5.4 HOW TO USE MYSQL WITH YCHAT +1.3.3 MYSQL SETUP If you chose to use MySQL database support you have to create a valid database to use with yChat. @@ -509,18 +306,38 @@ This database uses the default MySQL access informations which are stored in the ychat.conf file. //*>> -2.6.0 CUSTOMIZING YCHAT: +1.4.0 HOW TO USE SCREEN WITH YCHAT: + +If you are running yChat in ncurses mode you might want to install +the tool which is called "screen". This will enable you putting the +ncurses interface into the background, closing the terminal session +and reusing the interface later through another terminal. + +Just do: + + screen -S ychat ./bin/ychat ( creates a new session and starts yChat in it ) + ctrl+d+a ( will detach the yChat session ) + ( closing the terminal ) + ( opening a new terminal ) + screen -r ychat ( will return you to the yChat process ) + +Screen will terminate automaticaly if all processes in its sessions are +terminated. + +For a closer look read the screen manual page ( man screen ). + +1.5.0 CUSTOMIZATION: If you like to customize the design/layout/language of yChat, you will have -to edit ./src/msgs.h and ./src/glob.h before you compile the sources. Afterwards -you can change the html-template files which are placed in the ./html/ +to edit src/msgs.h and src/glob.h before you compile the sources. Afterwards +you can change the html-template files which are placed in the html/ subdirectory and the language-templates which are placed in the XML config file (etc/ychat.conf). -Notice, that you dont have to edit the ./src/glob.h file by ha