summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:41 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:41 +0200
commit520f54d6219b7c625b4e07463ac393e6982ddab6 (patch)
tree74b4483786b3842b1a0384fd33deb7483276bea1
parentae4e87df37ed8904de92c7cf2f3a11128cda2a21 (diff)
tagging ychat-0.7.1ychat-0.7.1
-rw-r--r--CHANGES46
-rwxr-xr-xMakefile31
-rw-r--r--NEWS9
-rwxr-xr-xREADME29
-rw-r--r--TODO36
-rwxr-xr-xconfigure7
-rw-r--r--etc/ychat.conf77
-rwxr-xr-xhtml/admin.html4
-rwxr-xr-xhtml/colors.html8
-rwxr-xr-xhtml/demo.html4
-rwxr-xr-xhtml/frameset.html2
-rwxr-xr-xhtml/help.html4
-rwxr-xr-xhtml/images/y_black.pngbin0 -> 10663 bytes
-rwxr-xr-xhtml/index.html19
-rwxr-xr-xhtml/input.html47
-rwxr-xr-xhtml/online.html2
-rwxr-xr-xhtml/options.html12
-rwxr-xr-xhtml/register.html21
-rwxr-xr-xhtml/stream.html24
-rwxr-xr-xhtml/style.css49
-rwxr-xr-xscripts/buildnr.pl2
-rw-r--r--scripts/makeyhttpd.pl10
-rwxr-xr-xscripts/mergeconf.pl104
-rwxr-xr-xscripts/stats.pl24
-rwxr-xr-xsrc/chat/base.h4
-rwxr-xr-xsrc/chat/chat.cpp50
-rwxr-xr-xsrc/chat/chat.h7
-rwxr-xr-xsrc/chat/room.cpp21
-rwxr-xr-xsrc/chat/room.h11
-rwxr-xr-xsrc/chat/sess.cpp40
-rwxr-xr-xsrc/chat/sess.h17
-rwxr-xr-xsrc/chat/sman.cpp11
-rwxr-xr-xsrc/chat/sman.h6
-rwxr-xr-xsrc/chat/user.cpp4
-rwxr-xr-xsrc/chat/user.h6
-rwxr-xr-xsrc/cli/cli.cpp53
-rwxr-xr-xsrc/cli/cli.h11
-rwxr-xr-xsrc/conf/conf.cpp18
-rwxr-xr-xsrc/conf/conf.h10
-rwxr-xr-xsrc/conf/lang.cpp67
-rwxr-xr-xsrc/conf/lang.h23
-rwxr-xr-xsrc/configure10
-rwxr-xr-xsrc/data/con.cpp48
-rwxr-xr-xsrc/data/con.h14
-rwxr-xr-xsrc/data/con_base.cpp5
-rwxr-xr-xsrc/data/con_base.h6
-rw-r--r--src/data/data.cpp263
-rw-r--r--src/data/data.h24
-rw-r--r--src/data/data_base.cpp240
-rw-r--r--src/data/data_base.h49
-rwxr-xr-xsrc/glob.h14
-rwxr-xr-xsrc/html.cpp34
-rwxr-xr-xsrc/html.h15
-rwxr-xr-xsrc/incl.h5
-rwxr-xr-xsrc/logd.cpp21
-rwxr-xr-xsrc/logd.h7
-rwxr-xr-xsrc/main.cpp27
-rw-r--r--src/maps/hmap.tmpl4
-rw-r--r--src/maps/mtools.h4
-rw-r--r--src/maps/nmap.h3
-rw-r--r--src/maps/smap.h2
-rw-r--r--src/maps/smap.tmpl4
-rwxr-xr-xsrc/modl.cpp16
-rwxr-xr-xsrc/modl.h2
-rwxr-xr-xsrc/mods/Makefile9
-rwxr-xr-xsrc/mods/commands/yc_away.cpp18
-rwxr-xr-xsrc/mods/commands/yc_col.cpp2
-rwxr-xr-xsrc/mods/commands/yc_exec.cpp2
-rwxr-xr-xsrc/mods/commands/yc_fake.cpp2
-rwxr-xr-xsrc/mods/commands/yc_getroom.cpp2
-rwxr-xr-xsrc/mods/commands/yc_getrusage.cpp2
-rw-r--r--src/mods/commands/yc_getstatus.cpp57
-rwxr-xr-xsrc/mods/commands/yc_help.cpp2
-rwxr-xr-xsrc/mods/commands/yc_invisible.cpp6
-rwxr-xr-xsrc/mods/commands/yc_j.cpp2
-rwxr-xr-xsrc/mods/commands/yc_ko.cpp4
-rwxr-xr-xsrc/mods/commands/yc_m.cpp1
-rwxr-xr-xsrc/mods/commands/yc_md5.cpp2
-rwxr-xr-xsrc/mods/commands/yc_me.cpp2
-rwxr-xr-xsrc/mods/commands/yc_msg.cpp35
-rwxr-xr-xsrc/mods/commands/yc_q.cpp2
-rwxr-xr-xsrc/mods/commands/yc_reload.cpp2
-rwxr-xr-xsrc/mods/commands/yc_ren.cpp2
-rwxr-xr-xsrc/mods/commands/yc_s.cpp13
-rwxr-xr-xsrc/mods/commands/yc_set.cpp2
-rwxr-xr-xsrc/mods/commands/yc_template.cpp2
-rwxr-xr-xsrc/mods/commands/yc_time.cpp2
-rwxr-xr-xsrc/mods/commands/yc_topic.cpp14
-rwxr-xr-xsrc/mods/commands/yc_uptime.cpp2
-rwxr-xr-xsrc/mods/commands/yc_version.cpp4
-rw-r--r--src/mods/html/yc_admin.cpp4
-rwxr-xr-xsrc/mods/html/yc_colors.cpp10
-rwxr-xr-xsrc/mods/html/yc_help.cpp4
-rwxr-xr-xsrc/mods/html/yc_options.cpp14
-rwxr-xr-xsrc/mods/html/yc_register.cpp18
-rw-r--r--src/msgs.h31
-rwxr-xr-xsrc/name.cpp4
-rwxr-xr-xsrc/name.h8
-rwxr-xr-xsrc/ncur/menu.cpp11
-rwxr-xr-xsrc/ncur/menu.h7
-rwxr-xr-xsrc/ncur/ncur.cpp34
-rwxr-xr-xsrc/ncur/ncur.h18
-rwxr-xr-xsrc/reqp.cpp120
-rwxr-xr-xsrc/reqp.h35
-rw-r--r--src/sock/Makefile23
-rw-r--r--src/sock/README1
-rwxr-xr-xsrc/sock/sock.cpp133
-rwxr-xr-xsrc/sock/sock.h39
-rw-r--r--src/stats.cpp1
-rw-r--r--src/stats.h2
-rwxr-xr-xsrc/thrd/pool.cpp162
-rwxr-xr-xsrc/thrd/pool.h37
-rwxr-xr-xsrc/thrd/thrd.cpp26
-rwxr-xr-xsrc/thrd/thrd.h28
-rw-r--r--src/thrd/thro.cpp3
-rw-r--r--src/thrd/thro.h12
-rwxr-xr-xsrc/time/timo.cpp4
-rwxr-xr-xsrc/time/timr.cpp31
-rwxr-xr-xsrc/time/timr.h8
-rw-r--r--src/tool/dir.cpp18
-rw-r--r--src/tool/dir.h8
-rw-r--r--src/tool/tool.cpp145
-rw-r--r--src/tool/tool.h84
-rwxr-xr-xsrc/wrap.cpp6
-rwxr-xr-xsrc/wrap.h14
125 files changed, 1457 insertions, 1586 deletions
diff --git a/CHANGES b/CHANGES
index 12f9ea6..e4573cd 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,46 +1,4 @@
-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:
+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.
@@ -51,7 +9,7 @@ Changes from 0.7.0 to 0.7.1-RELEASE:
need MySQL at all.
- Added the chat.maxlength.word option.
-Changes from 0.6 to 0.7.0-RELEASE:
+Changes from 0.6 to 0.7.0 RELEASE
- Better stability
- Better performance (using more hmaps)
- HTML color switcher menu
diff --git a/Makefile b/Makefile
index 805ddab..716f83a 100755
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
-MAKE=`tail -n 1 make.version`
+MAKE=`tail -1 make.version`
PREFIX=`grep "define PREFIX" src/glob.h | cut -d'"' -f2`
-all: version base modules version
+all: 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 "
@@ -8,24 +8,7 @@ all: version base modules version
@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
+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
@@ -33,10 +16,13 @@ install: deinstall
@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
+ @cp -Rp lang $(PREFIX)/share/ychat/lang
@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
+ @sed "s#LANGUAGE_DIR=\"lang/#LANGUAGE_DIR=\"$(PREFIX)/share/ychat/lang/#" etc/ychat.conf.tmp > etc/ychat.conf.tmp.2 && mv etc/ychat.conf.tmp.2 etc/ychat.conf.tmp
+ @sed "s#HTML_TEMPLATE_DIR=\"html/#HTML_TEMPLATE_DIR=\"$(PREFIX)/share/ychat/html/#" 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"
@@ -46,9 +32,6 @@ install: deinstall
@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
@@ -102,6 +85,6 @@ mrproper: clean
@find . -name "*.add" | xargs rm -f
@ls | grep core | xargs rm -f
version:
- @./scripts/version.sh
+ @echo "`grep VERSION src/msgs.h | cut -d'"' -f2`-`grep BRANCH src/msgs.h| cut -d'"' -f2` Build `grep BUILD src/msgs.h| cut -d' ' -f3`"
debug:
@gdb bin/ychat ychat.core
diff --git a/NEWS b/NEWS
index 95d8087..36459e3 100644
--- a/NEWS
+++ b/NEWS
@@ -1,11 +1,4 @@
-::(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 F