From 9cd3ccffd5372dfde3af478e3f832f18db4be3f1 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 6 Apr 2013 13:14:41 +0200 Subject: tagging tags --- yhttpd-0.7.0/CHANGES | 26 + yhttpd-0.7.0/COPYING | 338 ++++++ yhttpd-0.7.0/INSTALL | 1 + yhttpd-0.7.0/Makefile | 81 ++ yhttpd-0.7.0/README | 295 +++++ yhttpd-0.7.0/bin/yhttpd | Bin 0 -> 468081 bytes yhttpd-0.7.0/configure | 51 + yhttpd-0.7.0/etc/yhttpd.conf | 620 ++++++++++ yhttpd-0.7.0/html/index.html | 27 + yhttpd-0.7.0/html/notfound.html | 12 + yhttpd-0.7.0/html/style.css | 11 + yhttpd-0.7.0/html/test.cgi | 9 + yhttpd-0.7.0/log/.keepme | 0 yhttpd-0.7.0/scripts/README | 6 + yhttpd-0.7.0/scripts/buildnr.pl | 26 + yhttpd-0.7.0/scripts/config.sh | 152 +++ yhttpd-0.7.0/scripts/modules/file.pm | 28 + yhttpd-0.7.0/scripts/screen.sh | 3 + yhttpd-0.7.0/scripts/setglobvals.pl | 32 + yhttpd-0.7.0/scripts/stats.pl | 97 ++ yhttpd-0.7.0/src/Makefile.in | 21 + yhttpd-0.7.0/src/cli/cli.cpp | 265 +++++ yhttpd-0.7.0/src/cli/cli.h | 54 + yhttpd-0.7.0/src/conf/conf.cpp | 155 +++ yhttpd-0.7.0/src/conf/conf.h | 27 + yhttpd-0.7.0/src/conf/lang.cpp | 67 ++ yhttpd-0.7.0/src/conf/lang.h | 23 + yhttpd-0.7.0/src/configure | 248 ++++ yhttpd-0.7.0/src/contrib/README | 5 + yhttpd-0.7.0/src/contrib/xml/README | 504 ++++++++ yhttpd-0.7.0/src/contrib/xml/tinyxml.cpp | 1427 ++++++++++++++++++++++ yhttpd-0.7.0/src/contrib/xml/tinyxml.h | 1368 ++++++++++++++++++++++ yhttpd-0.7.0/src/contrib/xml/tinyxmlerror.cpp | 51 + yhttpd-0.7.0/src/contrib/xml/tinyxmlparser.cpp | 1493 ++++++++++++++++++++++++ yhttpd-0.7.0/src/glob.h | 178 +++ yhttpd-0.7.0/src/html.cpp | 129 ++ yhttpd-0.7.0/src/html.h | 39 + yhttpd-0.7.0/src/incl.h | 9 + yhttpd-0.7.0/src/logd.cpp | 157 +++ yhttpd-0.7.0/src/logd.h | 36 + yhttpd-0.7.0/src/main.cpp | 159 +++ yhttpd-0.7.0/src/maps/hmap.h | 100 ++ yhttpd-0.7.0/src/maps/hmap.tmpl | 282 +++++ yhttpd-0.7.0/src/maps/mtools.h | 15 + yhttpd-0.7.0/src/maps/mtools.tmpl | 11 + yhttpd-0.7.0/src/maps/nmap.h | 25 + yhttpd-0.7.0/src/maps/nmap.tmpl | 31 + yhttpd-0.7.0/src/maps/smap.h | 56 + yhttpd-0.7.0/src/maps/smap.tmpl | 211 ++++ yhttpd-0.7.0/src/modl.cpp | 161 +++ yhttpd-0.7.0/src/modl.h | 37 + yhttpd-0.7.0/src/msgs.h | 101 ++ yhttpd-0.7.0/src/name.cpp | 51 + yhttpd-0.7.0/src/name.h | 28 + yhttpd-0.7.0/src/ncur/menu.cpp | 118 ++ yhttpd-0.7.0/src/ncur/menu.h | 34 + yhttpd-0.7.0/src/ncur/ncur.cpp | 263 +++++ yhttpd-0.7.0/src/ncur/ncur.h | 44 + yhttpd-0.7.0/src/reqp.cpp | 297 +++++ yhttpd-0.7.0/src/reqp.h | 49 + yhttpd-0.7.0/src/sock/Makefile | 23 + yhttpd-0.7.0/src/sock/README | 1 + yhttpd-0.7.0/src/sock/sock.cpp | 257 ++++ yhttpd-0.7.0/src/sock/sock.h | 69 ++ yhttpd-0.7.0/src/stats.cpp | 102 ++ yhttpd-0.7.0/src/stats.h | 36 + yhttpd-0.7.0/src/thrd/pool.cpp | 206 ++++ yhttpd-0.7.0/src/thrd/pool.h | 77 ++ yhttpd-0.7.0/src/thrd/thrd.cpp | 26 + yhttpd-0.7.0/src/thrd/thrd.h | 28 + yhttpd-0.7.0/src/thrd/thro.cpp | 45 + yhttpd-0.7.0/src/thrd/thro.h | 30 + yhttpd-0.7.0/src/time/timo.cpp | 36 + yhttpd-0.7.0/src/time/timo.h | 22 + yhttpd-0.7.0/src/time/timr.cpp | 167 +++ yhttpd-0.7.0/src/time/timr.h | 63 + yhttpd-0.7.0/src/tool/dir.cpp | 66 ++ yhttpd-0.7.0/src/tool/dir.h | 33 + yhttpd-0.7.0/src/tool/tool.cpp | 129 ++ yhttpd-0.7.0/src/tool/tool.h | 93 ++ yhttpd-0.7.0/src/wrap.cpp | 32 + yhttpd-0.7.0/src/wrap.h | 67 ++ 82 files changed, 11752 insertions(+) create mode 100644 yhttpd-0.7.0/CHANGES create mode 100755 yhttpd-0.7.0/COPYING create mode 100755 yhttpd-0.7.0/INSTALL create mode 100755 yhttpd-0.7.0/Makefile create mode 100755 yhttpd-0.7.0/README create mode 100755 yhttpd-0.7.0/bin/yhttpd create mode 100755 yhttpd-0.7.0/configure create mode 100644 yhttpd-0.7.0/etc/yhttpd.conf create mode 100755 yhttpd-0.7.0/html/index.html create mode 100755 yhttpd-0.7.0/html/notfound.html create mode 100755 yhttpd-0.7.0/html/style.css create mode 100755 yhttpd-0.7.0/html/test.cgi create mode 100755 yhttpd-0.7.0/log/.keepme create mode 100644 yhttpd-0.7.0/scripts/README create mode 100755 yhttpd-0.7.0/scripts/buildnr.pl create mode 100755 yhttpd-0.7.0/scripts/config.sh create mode 100755 yhttpd-0.7.0/scripts/modules/file.pm create mode 100755 yhttpd-0.7.0/scripts/screen.sh create mode 100755 yhttpd-0.7.0/scripts/setglobvals.pl create mode 100755 yhttpd-0.7.0/scripts/stats.pl create mode 100755 yhttpd-0.7.0/src/Makefile.in create mode 100755 yhttpd-0.7.0/src/cli/cli.cpp create mode 100755 yhttpd-0.7.0/src/cli/cli.h create mode 100755 yhttpd-0.7.0/src/conf/conf.cpp create mode 100755 yhttpd-0.7.0/src/conf/conf.h create mode 100755 yhttpd-0.7.0/src/conf/lang.cpp create mode 100755 yhttpd-0.7.0/src/conf/lang.h create mode 100755 yhttpd-0.7.0/src/configure create mode 100644 yhttpd-0.7.0/src/contrib/README create mode 100644 yhttpd-0.7.0/src/contrib/xml/README create mode 100644 yhttpd-0.7.0/src/contrib/xml/tinyxml.cpp create mode 100644 yhttpd-0.7.0/src/contrib/xml/tinyxml.h create mode 100644 yhttpd-0.7.0/src/contrib/xml/tinyxmlerror.cpp create mode 100644 yhttpd-0.7.0/src/contrib/xml/tinyxmlparser.cpp create mode 100755 yhttpd-0.7.0/src/glob.h create mode 100755 yhttpd-0.7.0/src/html.cpp create mode 100755 yhttpd-0.7.0/src/html.h create mode 100755 yhttpd-0.7.0/src/incl.h create mode 100755 yhttpd-0.7.0/src/logd.cpp create mode 100755 yhttpd-0.7.0/src/logd.h create mode 100755 yhttpd-0.7.0/src/main.cpp create mode 100644 yhttpd-0.7.0/src/maps/hmap.h create mode 100644 yhttpd-0.7.0/src/maps/hmap.tmpl create mode 100644 yhttpd-0.7.0/src/maps/mtools.h create mode 100644 yhttpd-0.7.0/src/maps/mtools.tmpl create mode 100644 yhttpd-0.7.0/src/maps/nmap.h create mode 100644 yhttpd-0.7.0/src/maps/nmap.tmpl create mode 100644 yhttpd-0.7.0/src/maps/smap.h create mode 100644 yhttpd-0.7.0/src/maps/smap.tmpl create mode 100755 yhttpd-0.7.0/src/modl.cpp create mode 100755 yhttpd-0.7.0/src/modl.h create mode 100644 yhttpd-0.7.0/src/msgs.h create mode 100755 yhttpd-0.7.0/src/name.cpp create mode 100755 yhttpd-0.7.0/src/name.h create mode 100755 yhttpd-0.7.0/src/ncur/menu.cpp create mode 100755 yhttpd-0.7.0/src/ncur/menu.h create mode 100755 yhttpd-0.7.0/src/ncur/ncur.cpp create mode 100755 yhttpd-0.7.0/src/ncur/ncur.h create mode 100755 yhttpd-0.7.0/src/reqp.cpp create mode 100755 yhttpd-0.7.0/src/reqp.h create mode 100644 yhttpd-0.7.0/src/sock/Makefile create mode 100644 yhttpd-0.7.0/src/sock/README create mode 100755 yhttpd-0.7.0/src/sock/sock.cpp create mode 100755 yhttpd-0.7.0/src/sock/sock.h create mode 100644 yhttpd-0.7.0/src/stats.cpp create mode 100644 yhttpd-0.7.0/src/stats.h create mode 100755 yhttpd-0.7.0/src/thrd/pool.cpp create mode 100755 yhttpd-0.7.0/src/thrd/pool.h create mode 100755 yhttpd-0.7.0/src/thrd/thrd.cpp create mode 100755 yhttpd-0.7.0/src/thrd/thrd.h create mode 100644 yhttpd-0.7.0/src/thrd/thro.cpp create mode 100644 yhttpd-0.7.0/src/thrd/thro.h create mode 100755 yhttpd-0.7.0/src/time/timo.cpp create mode 100755 yhttpd-0.7.0/src/time/timo.h create mode 100755 yhttpd-0.7.0/src/time/timr.cpp create mode 100755 yhttpd-0.7.0/src/time/timr.h create mode 100644 yhttpd-0.7.0/src/tool/dir.cpp create mode 100644 yhttpd-0.7.0/src/tool/dir.h create mode 100644 yhttpd-0.7.0/src/tool/tool.cpp create mode 100644 yhttpd-0.7.0/src/tool/tool.h create mode 100755 yhttpd-0.7.0/src/wrap.cpp create mode 100755 yhttpd-0.7.0/src/wrap.h (limited to 'yhttpd-0.7.0') diff --git a/yhttpd-0.7.0/CHANGES b/yhttpd-0.7.0/CHANGES new file mode 100644 index 0000000..21919f7 --- /dev/null +++ b/yhttpd-0.7.0/CHANGES @@ -0,0 +1,26 @@ +Changes from 0.6 to 0.7 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 yhttpd 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 (yhttpd.conf) +- Added default operator option: chat.defaultop diff --git a/yhttpd-0.7.0/COPYING b/yhttpd-0.7.0/COPYING new file mode 100755 index 0000000..27058a5 --- /dev/null +++ b/yhttpd-0.7.0/COPYING @@ -0,0 +1,338 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 675 Mass Ave, Cambridge, MA 02139, USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + Appendix: How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) 19yy + + 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 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) 19yy name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/yhttpd-0.7.0/INSTALL b/yhttpd-0.7.0/INSTALL new file mode 100755 index 0000000..b112205 --- /dev/null +++ b/yhttpd-0.7.0/INSTALL @@ -0,0 +1 @@ +See the README file. diff --git a/yhttpd-0.7.0/Makefile b/yhttpd-0.7.0/Makefile new file mode 100755 index 0000000..ff97421 --- /dev/null +++ b/yhttpd-0.7.0/Makefile @@ -0,0 +1,81 @@ +PREFIX=`grep "define PREFIX" src/glob.h | cut -d'"' -f2` +all: base modules version + @echo "Now edit the yhttpd.conf and run yhttpd!" + @echo "The config file is searched in the following order:" + @echo " ./yhttpd.conf " + @echo " ~/.yhttpd/yhttpd.conf " + @echo " ./etc/yhttpd.conf " + @echo " /etc/yhttpd.conf " + @echo " $(PREFIX)/etc/yhttpd.conf " +install: deinstall + @echo "Instaling yhttpd to $(PREFIX)" + @cp bin/yhttpd $(PREFIX)/bin + @if ! test -d $(PREFIX)/lib/yhttpd; then mkdir -p $(PREFIX)/lib/yhttpd; fi + @if ! test -d $(PREFIX)/share/yhttpd/log/rooms; then mkdir -p $(PREFIX)/share/yhttpd/log/rooms; fi + @if ! test -d $(PREFIX)/etc; then mkdir $(PREFIX)/etc; fi + @if test -d mods; then cp -Rp mods $(PREFIX)/lib/yhttpd/mods; fi + @cp -Rp lang $(PREFIX)/share/yhttpd/lang + @if test -f $(PREFIX)/etc/yhttpd.conf; then mv $(PREFIX)/etc/yhttpd.conf $(PREFIX)/etc/yhttpd.conf.bak; fi + @cp etc/yhttpd.conf etc/yhttpd.conf.tmp + @sed "s#mods/#$(PREFIX)/lib/yhttpd/mods/#" etc/yhttpd.conf.tmp > etc/yhttpd.conf.tmp.2 && mv etc/yhttpd.conf.tmp.2 etc/yhttpd.conf.tmp + @sed "s#\"log/#\"$(PREFIX)/share/yhttpd/log/#" etc/yhttpd.conf.tmp > etc/yhttpd.conf.tmp.2 && mv etc/yhttpd.conf.tmp.2 etc/yhttpd.conf.tmp + @sed "s#LANGUAGE_DIR=\"lang/#LANGUAGE_DIR=\"$(PREFIX)/share/yhttpd/lang/#" etc/yhttpd.conf.tmp > etc/yhttpd.conf.tmp.2 && mv etc/yhttpd.conf.tmp.2 etc/yhttpd.conf.tmp + @mv etc/yhttpd.conf.tmp $(PREFIX)/etc/yhttpd.conf + @echo "yhttpd configuration file can be found under" + @echo " $(PREFIX)/etc/yhttpd.conf" + @echo "Copy it to ~/.yhttpd/yhttpd.conf to use local settings :-)" + @echo "Be sure that $(PREFIX)/share/yhttpd/logs is writable by your user or modify " + @echo "logging dirs in the yhttpd.conf to a local directory." + @echo "The most secure would be an additional user 'yhttpd'!" +uninstall: deinstall +deinstall: + @echo "Deinstalling yhttpd from $(PREFIX)" + @if test -f $(PREFIX)/bin/yhttpd; then rm -f $(PREFIX)/bin/yhttpd; fi + @if test -d $(PREFIX)/lib/yhttpd; then rm -Rf $(PREFIX)/lib/yhttpd; fi + @if test -d $(PREFIX)/share/yhttpd; then rm -Rf $(PREFIX)/share/yhttpd; fi + @echo "Done. Please remove manually $(PREFIX)/etc/yhttpd.conf to complete" +modules: + @if test -d ./src/mods; then gmake -C ./src/mods; fi +clean_modules: + @if test -d ./src/mods; then gmake -C ./src/mods clean; fi +base: + @if test -f bin/yhttpd; then echo "Backing up old binary";if test -f bin/yhttpd.old; then rm -f bin/yhttpd.old; fi; mv bin/yhttpd bin/yhttpd.old; fi + @perl ./scripts/buildnr.pl + @perl ./scripts/setglobvals.pl + @gmake -C ./src +clean_base: + @gmake -C ./src clean +stats: + @perl scripts/stats.pl +run: + ./bin/yhttpd +base_start: base + ./bin/yhttpd +start: base modules + ./bin/yhttpd +gpl: + @more COPYING +clean: clean_base clean_modules +help: + @echo "You may run gmake with the following parameters:" + @grep "^ gmake " README + @echo "For more questions read the README file or contact mail@yhttpd.org!" +setup: + @./configure + @gmake +config: + @sh -c "scripts/config.sh" + @echo If you run gmake 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 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: + @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/yhttpd yhttpd.core diff --git a/yhttpd-0.7.0/README b/yhttpd-0.7.0/README new file mode 100755 index 0000000..72410d3 --- /dev/null +++ b/yhttpd-0.7.0/README @@ -0,0 +1,295 @@ +yhttpd; Homepage: www.yhttpd.org; Version 0.7-RELEASE + +Copyright (C) 2003 Paul C. Buetow, Volker Richter +Copyright (C) 2004 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 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +----------------------------------------------------------------- + +YHTTPD TABLE OF CONTENTS: + +1.0.0 REQUIREMENTS +1.1.0 TESTED PLATFORMS +1.2.0 IMPORTANT NOTICES +1.3.0 HOW TO OBTAIN YHTTPD +1.3.1 INSTALLATION +1.3.2 INSTALLATION QUICK-START +1.4.0 HOW TO USE SCREEN WITH YHTTPD +1.5.0 CUSTOMIZATION +1.6.0 FILES +1.7.0 WRITING BUG REPORTS +1.8.0 CONTACT + + +1.0.0 REQUIREMENTS: + +- 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 + to add a symlink or alias from gmake to make. + yhttpd Makefiles only have been tested with GNU make and may not work with + other make versions. + +- 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 + Only needed if yhttpd should run in background with + ncurses enabled. + +- Perl 5.x + Is needed for some scripts. Is not needed if you use precompiled binaries. + +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 5.2.1-RELEASE (i386) 3.3.3 3.80 +- FreeBSD 4.9-RELEASE (i386) 3.3.4 3.80 +- FreeBSD 4.10-RELEASE (i386) 3.4.1 3.80 +- Gentoo Linux 2004.2 (i386) 3.3.2 3.80 +- OpenBSD 3.6 MP (i386) 3.3.2 3.80 +- Slackware Linux 10.0 (i386) 3.4.0 3.80 +- SUSE Linux 8.0, G (i386) 3.3.1 3.80 + +Other platforms like Linux based systems, other BSD-Systems or UNICES +are very likely to work too. + +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 yhttpd++, please write us an email and tell what +you can/like/would help ;-]. Please also take a look at the yhttpd++ +homepage which is located at http://www.yhttpd.org. + +1.3.0 HOW TO OBTAIN YHTTPD++: + +yhttpd can be downloaded as a source package or through CVS. + +The packages are located at http://www.yhttpd.org -> Sourcecode -> +Packages or go to http://pub.buetow.org/yhttpd/CPP-yhttpd . + +For CVS download type: + +cvs -d:pserver:anonymous@buetow.org:/usr/home/cvs/cvsroot login +( You will be asked for a password. Use "just enter" ). + +vs -z3 -d:pserver:anonymous@buetow.org:/usr/home/cvs/cvsroot co yhttpd +( The sources will be copied into your local folder ) + +cvs -d:pserver:anonymous@buetow.org:/usr/home/cvs/cvsroot logout +( Logs your CVS session out ). + +Now you may continue with the installation. + +1.3.1 INSTALLATION: + +Invoke "./configure". Afterwards you will get prompted with the before-compile +options of yhttpd. After choosing those options you are ready to type "gmake" +afterwards. + + +You may also invoke gmake with the following options (the PREFIX can be set +in the yhttpd configurator which will be launched by the top configure script +or gmake config): + + gmake or gmake all (compiles everything, also modules) + gmake base (only compiles the base) + gmake base_start (only compiles the base and starts the server) + 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 config (runs yhttpd configurator) + gmake deinstall (deinstalls yhttpd from PREFIX) + gmake gpl (shows the GNU General Public License) + gmake help (shows all available yhttpd gmake targets) + gmake install (installs yhttpd to PREFIX) + gmake modules (only compiles modules) + gmake mrproper (same as gmake clean plus removing all temp files) + gmake setup (runs all configure scripts and afterwards gmake all) + gmake start (compiles everything and starts the server) + gmake stats (generates yhttpd statistics) + gmake uninstall (same as deinstall) + gmake version (shows the current version of yhttpd) + +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/yhttpd. + +Aferwards point your webbrowser to http://yourip:port ! + +... have fun :-). + +1.3.2 INSTALLATION QUICK START: + +If you in hury, then you may just type gmake setup. In the yhttpd configurator +you may just choose all the default values. If done, yhttpd will get compiled +and is ready to run with ./bin/yhttpd! + + +1.4.0 HOW TO USE SCREEN WITH YHTTPD: + +If you are running yhttpd 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 yhttpd ./bin/yhttpd ( creates a new session and starts yhttpd in it ) + ctrl+d+a ( will detach the yhttpd session ) + ( closing the terminal ) + ( opening a new terminal ) + screen -r yhttpd ( will return you to the yhttpd 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 yhttpd, 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/ +subdirectory and the language-templates which are placed in the XML config +file (etc/yhttpd.conf). + +Notice, that you dont have to edit the src/glob.h file by hand any more, its +already done by the top ./configure script for you. + +You can edit the etc/yhttpd.conf to fit your needs. If you dont want to change +the config file, then you also can use yhttpd start parameters. + +Exmpl: ./bin/yhttpd -o chat.database.password secretpassword + +You can also use multiple words for a specific option. + +Exmpl: ./bin/yhttpd -o yhttpd.version "word1 word2 word3" + +will overwrite the default database password value of the yhttpd.conf. You can +do this with every configuration element by adding several -o option value +arguments to the start command. + +Dynamic loadable modules can be found in the mods/ subdirectory. (chat +commands are realized through modules too). Sources of modules can be found +in src/mods instead. If you want to create a new module just create a new +.cpp file and run in src/mods the ./configure script again. Next time +you run gmake your new module gets compiled. + +All messages defined in the msgs.h file contain server messages only ( a chat +user never wont read them, only the administrator will get to see them ). + +1.6.0 FILES: + +etc/yhttpd.conf - The yhttpd configuration file +html/* - The html template files +src/* - The yhttpd base sources +src/mods/* - The dynamic loadable modules sources +scripts/* - Some nice scripts needed for building & co. + +The following is created by building yhttpd: +obj/* - The object files of the compiled yhttpd base +mods/* - The compiled dynamic loadable modules +bin/yhttpd - The yhttpd binary (linked by the object files) + +Customizable source files (if changed you need to run gmake clean all) +src/glob.h - Contains some global building options +src/msgs.h - Defines some server side messages + + +1.7 WRITING BUG REPORTS + +How to submit a good bug report? + +Send them to Bug@yhttpd.org. + +First you should give the following information: +- yhttpd version, if CVS (or devel. tarball) then which day? +- operating system / distribution and it's version +- when did it crash? did you do something? can you reproduce the crash? + +Getting backtrace of the crash also helps a lot, especially if yhttpd crashes +randomly. If after crash you see text: + + "segmentation fault (core dumped)" + +It writes a file named "core" or "yhttpd.core" depending on your OS to directory +where you started yhttpd. If it doesn't print the "(core dumped)" or you can't +find the core file, you'll have to raise the limit for max. core file size +before running yhttpd. To do this, say: + + ulimit -c unlimited + +So, if you have the core file and GNU debugger (gdb), you can get the +backtrace with: + + gdb ./bin/yhttpd yhttpd.core + bt + +Paste all the lines starting from line having #0 at the beginning. + +Here's an example session: + + in reqp::parse(thrd*, std::string, std::map, std::allocator > >&) () + (gdb) bt + #0 0x0805c287 in reqp::parse(thrd*, std::string, std::map, std::allocator > >&) () + #1 0x0806060f in sock::read_write(thrd*, int) () + #2 0x080612ba in thrd::run() () + #3 0x0805a3b8 in pool::run_func(void*) () + #4 0x0805a375 in pool::tpool_thread(void*) () + #5 0x281d44ae in _thread_start () from /usr/lib/libc_r.so.5 + (gdb) + +If you dont get such a gdb output, you need to recompile the yhttpd using +debuggig symbols. You can do it this way: + +cd yhttpd +gmake mrproper +./configure -g3 -ggdb +gmake start + +1.8 CONTACT: + +You may contact us through the following addresses: + +- Homepage + The yhttpd homepage is located at http://www.yhttpd.org + +- E-Mail + Paul C. Buetow: Snooper at yhttpd point org ( core developer ) + Volker Richter: Rover at yhttpd dot org ( core developer ) + Mail at yhttpd dot org ( reaches everybody of yhttpd ) + +- ICQ + Paul C. Buetow: 11655527 + +- IRC + #Ychat and #Coding at irc.german-elite.net + diff --git a/yhttpd-0.7.0/bin/yhttpd b/yhttpd-0.7.0/bin/yhttpd new file mode 100755 index 0000000..6c86c45 Binary files /dev/null and b/yhttpd-0.7.0/bin/yhttpd differ diff --git a/yhttpd-0.7.0/configure b/yhttpd-0.7.0/configure new file mode 100755 index 0000000..0f9f844 --- /dev/null +++ b/yhttpd-0.7.0/configure @@ -0,0 +1,51 @@ +#!/bin/sh + +if ! which perl >/dev/null +then + echo You need to have Perl in your PATH + exit 1 +fi + +perl -e ' + use strict; + $|=1; + sub check { + my $f = shift; + my $s = shift; + my $r = 0; + print "Checking for GNU G++ $f.$s\n"; + if ( `g++ -v 2> g++.version && tail -n 1 g++.version` =~ / $f\.$s/ ) { + `echo $f.$s >> g++.version`; + `echo g++ >> g++.version`; + $r = 1; + } else { + if (`g++$f$s -v 2> g++.version && tail -n 1 g++.version` =~ / $f\.$s/) { + `echo $f.$s >> g++.version`; + `echo g++$f$s >> g++.version`; + $r = 1; + } + } + print "No " if $r == 0; + print "GNU G++ $f.$s found!\n"; + return $r; + } + print "Checking compiler version\n"; + my $r = 0; + for (my $i = 4; $i > 0 && $r == 0; --$i ) { + $r = &check(3,$i); + } + if ($r == 0) { + print "No suitable g++ compiler found!\n"; + print "Please install a right version of GNU G++!\n"; + exit(1); + } + + system("sh -c \"scripts/config.sh\""); + chdir("src"); + system("./configure ".join(" ", @ARGV)); + chdir(".."); + + exit(0); +' `echo "$*" | sed "s/-//g"` + +echo You are ready to type gmake now! diff --git a/yhttpd-0.7.0/etc/yhttpd.conf b/yhttpd-0.7.0/etc/yhttpd.conf new file mode 100644 index 0000000..e93bc32 --- /dev/null +++ b/yhttpd-0.7.0/etc/yhttpd.conf @@ -0,0 +1,620 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +