From 83c705dcdbe9467f716a00e5b92cca7d0fcb03d2 Mon Sep 17 00:00:00 2001 From: "Silas S. Brown" <ssb22@cam.ac.uk> Date: Tue, 20 Oct 2020 17:24:21 +0100 Subject: [PATCH] change license to Apache 2 --- !debug.h | 44 +- !shutdn.h | 44 +- COPYING | 339 --------- LICENSE | 201 ++++++ _symbols.h | 44 +- access.c++ | 44 +- access.h | 50 +- action.h | 44 +- allinc.h | 44 +- ampersnd.c++ | 44 +- ampersnd.h | 44 +- banner.h | 50 +- bitsize.h | 50 +- cgilib.c++ | 1848 ++++++++++++++++++++++++------------------------ cgilib.h | 44 +- cookie.c++ | 50 +- cookie.h | 44 +- debug.c++ | 44 +- debug.h | 44 +- encoding.c++ | 44 +- encoding.h | 44 +- exceptn.h | 44 +- extenlib.h | 50 +- extensions.c++ | 50 +- extensions.h | 50 +- help.c++ | 44 +- help.h | 44 +- htmlfilt.c++ | 44 +- htmlfilt.h | 44 +- httphdr.c++ | 44 +- httphdr.h | 44 +- images.c++ | 44 +- images.h | 44 +- imode.c++ | 50 +- imode.h | 44 +- install.sh | 63 +- instring.c++ | 50 +- instring.h | 44 +- jscript.c++ | 44 +- jscript.h | 44 +- lastupd.c++ | 44 +- lastupd.h | 44 +- linkfol.c++ | 44 +- linkfol.h | 44 +- literals.h | 44 +- localusr.c++ | 44 +- localusr.h | 44 +- main.c++ | 44 +- makeform.c++ | 50 +- makeform.h | 44 +- mirror.c++ | 50 +- mirror.h | 44 +- mylynx.c++ | 44 +- mylynx.h | 44 +- options.h | 50 +- proxy.h | 44 +- prxyprob.c++ | 44 +- prxyprob.h | 44 +- rating.c++ | 44 +- rating.h | 44 +- sighdl.c++ | 44 +- smileys.c++ | 44 +- strfunc.c++ | 44 +- strfunc.h | 44 +- strtab.c++ | 50 +- strtab.h | 44 +- subhtml.c++ | 50 +- subhtml.h | 44 +- subset.h | 44 +- swf.c++ | 50 +- swf.h | 44 +- tabtrim.c++ | 44 +- tabtrim.h | 44 +- tagstuff.c++ | 50 +- tagstuff.h | 44 +- tecont.c++ | 44 +- tecont.h | 44 +- tencode.c++ | 44 +- tencode.h | 44 +- utf.c++ | 44 +- utf.h | 44 +- version.h | 44 +- webget.c++ | 50 +- webget.h | 44 +- welcome.c++ | 44 +- welcome.h | 44 +- xhtml.c++ | 44 +- xhtml.h | 44 +- 88 files changed, 2018 insertions(+), 4231 deletions(-) delete mode 100644 COPYING create mode 100644 LICENSE diff --git a/!debug.h b/!debug.h index 4ec324e..7d8a476 100644 --- a/!debug.h +++ b/!debug.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/!shutdn.h b/!shutdn.h index cba4ea8..d5222a6 100644 --- a/!shutdn.h +++ b/!shutdn.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/COPYING b/COPYING deleted file mode 100644 index e77696a..0000000 --- a/COPYING +++ /dev/null @@ -1,339 +0,0 @@ - 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 - these conditions, and telling the user how to view a copy of this - 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 - - 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. - - <one line to give the program's name and a brief idea of what it does.> - Copyright (C) 19yy <name of author> - - 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. - - <signature of Ty Coon>, 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/LICENSE b/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/_symbols.h b/_symbols.h index 42a06c5..e4cc027 100644 --- a/_symbols.h +++ b/_symbols.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/access.c++ b/access.c++ index 050c2fd..b1ea0b6 100644 --- a/access.c++ +++ b/access.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/access.h b/access.h index 4910fe0..2ecd8e8 100644 --- a/access.h +++ b/access.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) - -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. - -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. - -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/action.h b/action.h index 72b48d2..f865011 100644 --- a/action.h +++ b/action.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/allinc.h b/allinc.h index bbdd2ab..bdc2ee2 100644 --- a/allinc.h +++ b/allinc.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/ampersnd.c++ b/ampersnd.c++ index beb28b0..1371ab2 100644 --- a/ampersnd.c++ +++ b/ampersnd.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/ampersnd.h b/ampersnd.h index 96afe5e..0420264 100644 --- a/ampersnd.h +++ b/ampersnd.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/banner.h b/banner.h index ab3e336..c5b267f 100644 --- a/banner.h +++ b/banner.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) - -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. - -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. - -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/bitsize.h b/bitsize.h index 7023e11..25821dd 100644 --- a/bitsize.h +++ b/bitsize.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) - -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. - -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. - -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/cgilib.c++ b/cgilib.c++ index f0d8292..48091bd 100644 --- a/cgilib.c++ +++ b/cgilib.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) - -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. - -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. - -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ @@ -60,902 +36,902 @@ using namespace std; #endif // end of notice.txt -#include "allinc.h" -#include "platform.h" /* above stdio.h, for _GNU_SOURCE and vsnprintf */ -#include <stdio.h> -#include <stdlib.h> -#include <time.h> -#include <ctype.h> -#include <string.h> -#include <stdarg.h> -#ifdef MEMCPY_IS_IN_MEM_DOT_H -#include <mem.h> -#endif -#include "cgilib.h" -#include "literals.h" -#include "!debug.h" -#include "debug.h" -#include "webget.h" -#include "images.h" -#include "lastupd.h" -#include "exceptn.h" - -#ifdef DEVELOPMENT_COPY -extern const char* qsOverride; -#define getQueryString (qsOverride?qsOverride:getenv("QUERY_STRING")) -#else -#define getQueryString getenv("QUERY_STRING") -#endif - -#define FILE_LEN 8 -#define FULL_PATHLEN 100 - -#define TB_LEN 1024 // For h_printf -#define TB_IS_STATIC // For h_printf - -#ifndef BRIEF_RESPONSE -#ifdef WEB_SERVER_ADDS_CHARACTER_13 -int crCount(const char* string) { -const char* s=string; int count=0; -while((s=strchr(s,'\n'))!=NULL) { count++; s=s+1; } -return(count); -} -#endif -#endif - -void CGIEnvironment::outHTMLCharacter(int c) { -const char* translateString[/*255*/ 127]={ -"", // 0: DO NOT USE -"<b>","</b>","<i>","</i>","<HR>","<h2>", // 1 to 6 -"\x07", -"</h2>","<h3>","</h3>","","","","", -"¤", // 15 -"","","","", // 16-19 -"¶","§", // 20-21 -"","","","","","","","","","", // 22-31 -" ","!","\"","#","$","%","&","'","(",")","*","+", -",","-",".","/","0","1","2","3","4","5","6","7","8","9",":", -";","<","=",">","?","@", -"A","B","C","D","E","F","G","H","I","J","K","L","M","N", -"O","P","Q","R","S","T","U","V","W","X","Y","Z", -"[","\\","]","^","_","`", -"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z", -"{","|","}" -// ,"~¦", // This is 127 -// Commenting out this lot - not used by the gateway: -//"Ç","ü","é","â","ä","à", -//"å","ç","ê","ë","è","ï", -//"î","ì","Ä","Å","É","æ", -//"Æ","ô","ö","ò","û","ù", -//"ÿ","Ö","Ü","¢","£","¥","P","Ÿ", -//"á","í","ó","ú","ñ","Ñ", -//"ª","º","¿","¬","¬","½","¼","¡", -//"«","»","¦","¦","¦","¦","¦","¦", -//"¦","+","+","¦","¦","+","+","+","+","+", -//"+","-","-","+","-","+","¦","¦","+","+","-", -//"-","¦","-","+","-","-","-","-","+","+","+","+","+", -//"+","+","+","¦","_","¦","¦","¯", -//"a","ß","G","p","S","s","µ","t","F", -//"T","O","?","8","f","e","n","=","±", // Remove the ? here if too many -//"=","=","(",")","÷","~","°","·","·", -//"v","n","²","¦" -}; -if(c<0 || c>/*255*/126) h_putchar('?'); -else h_fputs(translateString[c]); -} - -void CGIEnvironment::outHTMLLine(const char* line) { -int oldLp=0; -for(int lp=0; line[lp]; lp++) { -if(line[lp]==' ' && line[lp+1]==' ') h_fputs(" "); // Non-breaking space -else outHTMLCharacter(line[lp]); -if(lp-oldLp>60 && line[lp]==' ' && line[lp+1]!=' ') { oldLp=lp; h_putchar('\n'); } -} -} - - -class CgiInQuery : public CGIEnvironment::CgiInput { -public: -CgiInQuery() : CGIEnvironment::CgiInput() { ptr=0; theQueryString=getQueryString; } -// (need to fully qualify CGIEnvironment::CgiInput for gcc 2.7) -~CgiInQuery() {}; -int getCharacter(); -protected: -int ptr; -const char* theQueryString; -}; - - -int CgiInQuery::getCharacter() { -int c=theQueryString[ptr++]; -if(!c) { ptr--; return(EOF); } -else return(c); -} - -class CgiInPost : public CGIEnvironment::CgiInput { -public: -CgiInPost() : CGIEnvironment::CgiInput() { lengthToGo=atoi(getenv("CONTENT_LENGTH")); } -// (need to fully qualify CGIEnvironment::CgiInput for gcc 2.7) -~CgiInPost() {}; -int getCharacter(); -protected: -int lengthToGo; -}; - -int CgiInPost::getCharacter() { -if(!lengthToGo) return(EOF); -else { lengthToGo--; return(getchar()); } -} - -class CgiInCookies : public CgiInQuery { -public: -CgiInCookies(const char* myQueryString) : CgiInQuery() { -theQueryString=myQueryString; -} -~CgiInCookies() { delete[] theQueryString; } -}; - -// ==== Stuff for parsing multipart ==== - -// need to delete[] the return value -const char* escapeNulls(const char* data,int length, -int null,int subst,int escape) { -int extraBytes=1; // for a terminating null -for(int i=0; i<length; i++) if(data[i]==null || data[i]==escape) extraBytes++; -char* newData=new char[length+extraBytes]; -int j=0; -for(int i=0; i<length; i++,j++) { -if(data[i]==null) { newData[j++]=escape; newData[j]=subst; } -else if(data[i]==escape) { newData[j++]=escape; newData[j]=escape; } -else newData[j]=data[i]; -} -newData[j]=0; // terminating null -return newData; -} - -const char* unescapeNulls(const char* data,int null,int subst,int escape,int &length) { -char* newData=new char[strlen(data)]; // (actually it doesn't have to be that big but...) -int j=0; -for(int i=0; data[i]; i++,j++) { -if(data[i]==escape) { -i++; -if(data[i]==subst) newData[j]=null; -else if(data[i]==escape) newData[j]=escape; -else throw "unescapeNulls: Invalid escape sequence"; -} else newData[j]=data[i]; -} -length=j; return newData; -} - -enum EscapeStuff { -NullToUse = 0, -SubstToUse = 1, -EscapeToUse = 27 // Theoretically should choose the least common byte in any binary format -}; - -int newlineAdvance(const char* input) { -// Deal with all possible formats -if(*input=='\n') return((input[1]=='\r') ? 2 : 1); -else if(*input=='\r') return((input[1]=='\n') ? 2 : 1); -else return 0; -} - -char* endOfBoundary(char* input,const char* boundary,int newLineBefore) { -if(newLineBefore) { -int n=newlineAdvance(input); -if(n) input+=n; else return NULL; -// NEEDATTENTION Is this correct? i.e. browser never sends separator on the end of a line? -} -if(input[0]=='-' && input[1]=='-') input+=2; else return NULL; -if(!strncmp(input,boundary,strlen(boundary))) return(input+strlen(boundary)); -else return NULL; -} - -int CGIEnvironment::tryDecodingMultipart() { -#define Multipart_String "multipart/form-data" -#define Boundary_String "; boundary=" -const char* e=getenv("CONTENT_TYPE"); -if(e && !strncmp(e,Multipart_String,strlen(Multipart_String))) { -e+=strlen(Multipart_String); -const char* boundary=""; -if(!strncmp(e,Boundary_String,strlen(Boundary_String))) -boundary=e+strlen(Boundary_String); -int lengthOfInput=atoi(getenv("CONTENT_LENGTH")); -// Might as well read it all into a buffer (going to need -// look-ahead anyway) - might not be as efficient (more copying) -// but these multipart forms don't occur very often (at the moment...) -char* input=new char[lengthOfInput]; -const char* toDelete=input; // really need a "try" NEEDATTENTION -fread(input,sizeof(char),lengthOfInput,stdin); -input=endOfBoundary(input,boundary,0); -if(!input) throw "tryDecodingMultipart: Initial boundary not found"; -int firstTime=1; -while(input-toDelete<lengthOfInput) { -// NEEDATTENTION That condition alone is not sufficient to prevent all segfaults if the browser sends incorrect data -int n=newlineAdvance(input); -if(n) input+=n; else if(!firstTime) break; // Reached the -- at EOF -firstTime=0; -// Content-Disposition: form-data; name="..." -// (NEEDATTENTION is "name" always first?) -input=strchr(input,'"'); -if(!input) throw "tryDecodingMultipart: No quote on content-disposition line"; -const char* name=input+1; -input=(char*)strchr(name,'"'); -if(!input) throw "tryDecodingMultipart: Unterminated name"; -*(input++)=0; -if(*input==';') { -// Something like "; Filename=...". Since the -// access gateway never needs to use this type of -// input itself, we might as well record the lot, -// from here, for passing through. Just make sure -// that we've recorded the fact that we've done -// this. *************** -// (need some sort of "special multipart prefix" to "name") -const char* value=input; char* boundEnd; -while(!(boundEnd=endOfBoundary(input,boundary,1))) input++; -const char* newValue=escapeNulls(value,input-value,NullToUse,SubstToUse,EscapeToUse); -// addName(name,newValue); -// ****** (put this back in when it's passing on correctly) -delete[] newValue; -input=boundEnd; -} else { -// No "Filename" etc - just decode it -while(!newlineAdvance(input)) input++; input+=newlineAdvance(input); -input+=newlineAdvance(input); // the blank line -const char* value=input; char* boundEnd; -while(!(boundEnd=endOfBoundary(input,boundary,1))) input++; -*input=0; addName(name,value); -input=boundEnd; -} -} -// ******************************************** -// need to add a "dump to multipart" (using what separator?) -// remember unescapeNulls -// (+ how to do it in lynx?) -// degrade to POST, so need a var that puts it to multipart -delete[] toDelete; -return 1; -} else return 0; // failed -} - -// ==== End of multipart stuff ==== - -void CGIEnvironment::buildCGIInput(CgiInput &i,int dontReplaceExisting) { -InString name,value; -int inValue=0; char optionsToDecompress=0; -while(1) { -int c=i.getCharacter(); -#ifdef DEBUGGING_CGI_INPUT -h_printf("Debugger: Got character %3d (%c)<BR>\n",c,c); -#endif -if(c==EOF || c=='&') { -// if(!inValue) throw ((c=='&')?"Ampersand before equals on CGI input":"End of input before equality on CGI input"); -// No, DON'T throw error: Access gateway can produce this -// Just ignore the rogue term -if(inValue) { -#ifdef DEBUGGING_CGI_INPUT -(*this)<<"<BR>Debugger: name="<<name.getString()<<" value="<<value.getString()<<"<BR>\n"; -#endif -const char* nStr=name.getString(); -if(!strncmp(nStr,"amp;",4)) nStr+=4; // cope with browsers that don't decode & in links -if(!strcmp(nStr,CGI_COMPRESSION)) optionsToDecompress=value.getString()[0]; -else if(!dontReplaceExisting || !getName(nStr,MAY_RETURN_NULL)) addName(nStr,value.getString()); -name.clear(); value.clear(); -inValue=0; -} -if(c==EOF) break; -} else if(c=='=') { -if(inValue) -// throw "Equals before ampersand on CGI input"; -// We have to be tolerant of Netscape 3 -value.addCharacter(c); -else inValue=1; -} else { -if(c=='%') { -// Get two-digit hex code -int hex1=i.getCharacter(); -#ifdef DEBUGGING_CGI_INPUT -h_printf("Debugger: Got character %3d (%c)<BR>\n",hex1,hex1); -#endif -int hex2=i.getCharacter(); -#ifdef DEBUGGING_CGI_INPUT -h_printf("Debugger: Got character %3d (%c)<BR>\n",hex2,hex2); -#endif -if (!(isascii(hex1) && isascii(hex2) && isxdigit(hex1) && isxdigit(hex2))) -throw "CGI input gave percent followed by invalid hex code"; -hex1=toupper(hex1); hex2=toupper(hex2); -if(hex1>='A') c=hex1-'A'+10; else c=hex1-'0'; -c<<=4; -if(hex2>='A') c|=hex2-'A'+10; else c|=hex2-'0'; -} else if(c=='+') c=' '; -else if(!(isascii(c) && isprint(c)) -&& (!(c&0x80))) { -// 2001-08-28: High-bit test added because some -// CJK pages have UTF etc in the filenames -throw "CGIEnvironment::buildCGIInput got non-printing character"; -} -if(inValue) value.addCharacter(c); else name.addCharacter(c); -} // 'if' around c -} // while 1 -if(optionsToDecompress) decompressOptions(optionsToDecompress); // After everything else, so overridden options are never replaced -} - -void CGIEnvironment::h_puts(const char* string) { -whereToOutput->addString(string); -whereToOutput->addCharacter('\n'); -} - -void CGIEnvironment::h_printf(const char* format,...) { -// Patch for GNU to suppress warning: -#ifdef __GNUC_VA_LIST -#define va_list __gnuc_va_list -#endif -va_list argptr; -#ifdef __GNUC_VA_LIST -#undef va_list -#endif -va_start(argptr,format); -#ifdef TB_IS_STATIC -static -#endif -char tempBuf[TB_LEN]; tempBuf[TB_LEN-1]=0; -#ifdef _GNU_SOURCE -int r=vsnprintf(tempBuf,TB_LEN,format,argptr); -if(r==-1) throw "CGIEnvironment::h_printf buffer overflow (GNU vsnprintf used)"; -#else -tempBuf[TB_LEN-1]=0; -vsprintf(tempBuf,format,argptr); -if(tempBuf[TB_LEN-1]) throw "CGIEnvironment::h_printf buffer overflow (vsprintf used)"; -#endif -else whereToOutput->addString(tempBuf); -va_end(argptr); // Clean up the multiple argument list -} - -CGIEnvironment::CGIEnvironment(const char* cookiePrefix,const char* usrWantsCookiesVar) -: theCookiePrefix(cookiePrefix), theUsrWantsCookiesVar(usrWantsCookiesVar) { -try { -theRealPageStart=addArtificialNoframes=theUserSupportsCookies=0; addServiceTitle=1; -#ifdef MULTIPLE_STYLES_SUPPORTED -theStyle=NULL; -#endif -outputToMainPage(); -theCharset=NULL; initOutputData(); -const char* query_string=getQueryString; -if(query_string && query_string[0]) { CgiInQuery x; buildCGIInput(x); } -else if(!tryDecodingMultipart() && -getenv("CONTENT_LENGTH")) { CgiInPost x; buildCGIInput(x); } - -/* *************************************************** -else might not be on web (or might have no options) -see if on web first - -INCLUDE_PROXY_CODE - -Run as proxy from inetd? What about logging ????? -(can we get the address from the stdin handle ??????) -Also if it's a proxy it will have to handle ALL content types! (What about the overhead on spawning this program for all those CJK images !?) More lightweight proxy that includes the image server & spawns this program as necessary? -If not on web & no args, get request from stdin (& -work out query string) (this as optional feature) -(also sort out different URL re-writing etc) -Watch denial of service "send infinite string" or "get infinite web page" (will time out, but will it thrash before then?) -M-x grep getenv *.c++ *.h -Use not BRIEF_RESPONSE (including in the signal -handlers! grep Content-type. But Content-length not -necessary) -*/ - -// See if the user sent any cookies. If so, add them -// but make sure that the query options override them. -// (If the user has just disabled cookies, then the -// cookies they sent will still be valid at this point. -// However, they should be blanked; this is done -// when returning the page.) - -const char* userCookies=getenv("HTTP_COOKIE"); -if(userCookies && *userCookies) { -const char* cookieVal=getUserCookie(userCookies); -if(cookieVal) { -theOriginalCookie.addString(cookieVal); -CgiInCookies x(cookieVal); -buildCGIInput(x,1); -theUserSupportsCookies=1; -} -} -// We check optionIsRedundant as a separate pass, -// otherwise dontReplaceExisting would not work properly -// and a cookie option that is cancelled by a -// "redundant" query option will not be properly -// cancelled (eg. try setting a language and then -// going back to "No conversion" while using cookies -// and the old code) -for(int lp=0; lp<theData.getNumberOfValues(); lp++) { -if(optionIsRedundant(theData.getLhsByNumber(lp),theData.getRhsByNumber(lp))) theData.deleteByNumber(lp--); -} -// Initialise any remote cookies: -const char* cookies=getName(ENV_COOKIES,MAY_RETURN_NULL); -if(cookies) { -if(getName(ENV_PREFIX "B",MAY_RETURN_NULL)) setName(ENV_COOKIES,""); -else theCookies.readFromString(cookies); -} -} catch(CatchLiteral string) { -exceptionHandle(string); cleanup(); -throw new CgiExceptionDealtWith; -} -} - -CGIEnvironment::~CGIEnvironment() { -cleanup(); -} - -void CGIEnvironment::outputHeader( -#ifndef BRIEF_RESPONSE -long contentLength -#endif -) { -#ifdef DEVELOPMENT_COPY -extern int dontProcessLinks; -if(dontProcessLinks) return; -#endif -#ifndef BRIEF_RESPONSE -puts("HTTP/1.0 200 OK\nConnection: Close"); -#endif -if(theCharset) printf("Content-Type: text/html; charset=%s\n",theCharset); // %s OK here -else puts("Content-Type: text/html"); -if(userWantsCookies()) { -InString cQuery,cLowLevel; -cookieDumpCurrentOptions(cQuery); -if(strcmp(cQuery.getString(),theOriginalCookie.getString())) { -// Cookie has changed -encodeUserCookie(cQuery.getString(),cLowLevel); -fputs("Set-Cookie: ",stdout); -fputs(cLowLevel.getString(),stdout); -puts("; domain=" IP_ADDRESS "; path=" CGI_LOCATION -"; expires=Tue, 29-Dec-2037 12:00:00 GMT"); -// The expiry date is necessary because otherwise -// the cookie will only last for the session, and -// bookmarks won't keep their options. Unfortunately -// it introduces a date dependency; I hope users won't -// expect their bookmarks to last beyond 2037. -// (2000-07-19: I'm setting it to 2037 to avoid any -// S2G problems that might be lurking in current -// browsers.) -} -} else if(theUserSupportsCookies && !(theOriginalCookie.isEmpty())) { -// They sent one, but they don't want it back! -// We'd better clear it, otherwise its options -// might interfere later. -puts("Set-Cookie: " COOKIE_QUOTES_LETTER "=; domain=" IP_ADDRESS "; path=" CGI_LOCATION); -} -#ifndef BRIEF_RESPONSE -if(contentLength>=0) printf("Content-Length: %ld\n",contentLength); -#endif -putchar('\n'); // Blank line -} - -#ifdef CAN_SHOW_IMAGES -void addUnicodeURL(InString &url,const CGIEnvironment* c) { -const char* x=c->getName(ENV_UNICODE_URL,MAY_RETURN_NULL); -if(x && *x) { -url.addString(x); -if(x[strlen(x)-1]!='/') url.addCharacter('/'); -} else url.addString(UNICODE_URL); -#ifdef MULTIPLE_STYLES_SUPPORTED -const char* style=c->getStyle(); -if(style) { -url.addString(style); -url.addCharacter('/'); -} -#endif -} -#endif - -void CGIEnvironment::cleanup() { -try { -outputToMainPage(); -#ifdef Script_Extensions -appendScriptExtensionsTo(this); -#endif -if(addArtificialNoframes) { -h_fputs("<NOFRAMES>"); -h_fputs(L_NOFRAMES_MSG); -h_puts("</NOFRAMES></HTML>"); -} else h_puts("</BODY></HTML>"); -} catch(CatchLiteral string) { -exceptionHandle(string); h_puts("</BODY></HTML>"); -} -theHeaderData.prepend("<HTML><HEAD>"); -if(!preprocessOnly(this)) { -theHeaderData.addString( -"<META NAME=\"robots\" CONTENT=\"NOINDEX, NOFOLLOW\">\n" -"<META HTTP-EQUIV=\"X-Mediator-Name\" CONTENT=\"" CANONICAL_NAME "\">\n" -"<META HTTP-EQUIV=\"X-Mediator-Warning\" CONTENT=\"" CANONICAL_NAME "="); -theHeaderData.addString(L_PAGE_ALREADY_PROCESSED); -theHeaderData.addString("\">\n"); -} -#ifdef CAN_SHOW_IMAGES -if(UsingImages) { -theHeaderData.addString("<BASE HREF=\""); -addUnicodeURL(theHeaderData,this); -theHeaderData.addString("\">\n"); -} -#endif -if(addServiceTitle) { -theHeaderData.addString("<TITLE>"); -theHeaderData.addString(SERVICE_TITLE); -theHeaderData.addString("</TITLE>"); -} -theHeaderData.addString("</HEAD>\n"); -outputHeader( -#ifndef BRIEF_RESPONSE -theOutputData.length()+theHeaderData.length() -#ifdef WEB_SERVER_ADDS_CHARACTER_13 -+crCount(theOutputData.getString())+crCount(theHeaderData.getString()) -#endif -#endif -); -#ifdef ENCODINGS_AVAILABLE -if(subHtmlShowCharsAs==CharsSJIS) { -theHeaderData.eucjToSjis(); -theOutputData.eucjToSjis(); -} -#endif -fputs(theHeaderData.getString(),stdout); -puts(theOutputData.getString()); -} - -#ifdef EXCEPTION_LOGFILE -void envDump(const char* varName,FILE* fp) { -const char* c=getenv(varName); -fputs(varName,fp); fputc(' ',fp); fputs(c?c:"null",fp); -fputc('\n',fp); -} -#endif - -void CGIEnvironment::htmlEnvDump(const char* varName) { -const char* c=getenv(varName); -if(c) { -h_fputs("<BR>"); h_fputs(varName); h_putchar('='); -outHTMLLine(c); -} -} - -void outputBodyTag(CGIEnvironment* theEnvironment); // Nasty -void CGIEnvironment::exceptionHandle(const char* string) { -#ifndef DONT_CLEAR_ON_EXCEPTIONS -initOutputData(); -try { outputBodyTag(this); } catch(...) { initOutputData(); } -#endif -outHTMLParagraph(INTERNAL_ERROR); -#ifdef EXCEPTION_LOGFILE -outHTMLParagraph(INTERNAL_ERR_LOGGED); -#else -outHTMLParagraph(INTERNAL_ERR_CONTACT); -#endif -outHTMLParagraph(string); -// NOTE - DUPLICATE CODE WITH BELOW -htmlEnvDump("QUERY_STRING"); -htmlEnvDump("CONTENT_LENGTH"); -htmlEnvDump("REMOTE_HOST"); -htmlEnvDump("REMOTE_ADDR"); -htmlEnvDump("HTTP_USER_AGENT"); -htmlEnvDump("HTTP_VIA"); -htmlEnvDump("HTTP_REFERER"); -htmlEnvDump("HTTP_COOKIE"); -#ifdef EXCEPTION_LOGFILE -// NB Don't worry too much about parallelism here -// - it won't be the end of the world if there's a conflict -FILE* logFile=fopen(EXCEPTION_LOGFILE,"at"); -if(logFile) { -time_t t=time(NULL); -fprintf(logFile,"%s (last compilation " __DATE__ " " __TIME__ ")\n",ctime(&t)); // %s OK here -// NOTE - DUPLICATE CODE WITH ABOVE -envDump("QUERY_STRING",logFile); -envDump("CONTENT_LENGTH",logFile); -envDump("REMOTE_HOST",logFile); -envDump("REMOTE_ADDR",logFile); -envDump("HTTP_USER_AGENT",logFile); -envDump("HTTP_REFERER",logFile); -envDump("HTTP_VIA",logFile); -envDump("HTTP_COOKIE",logFile); -fputs("Exception: ",logFile); -fputs(string,logFile); fputs("\n\n",logFile); -fclose(logFile); -#ifdef EXCEPTION_COMMAND -system(EXCEPTION_COMMAND); -#endif // EXCEPTION_COMMAND -} // else not that much we can do -#endif // EXCEPTION_LOGFILE -h_puts("<HR>"); // Don't change to h_fputs (see comment in access.c++ about Mozilla bug) -outputLastUpdate(this); // better do that, so they get the disclaimer (since this is an error message) -} - -void CGIEnvironment::addName(const char* name,const char* value) { -#ifdef OLD_PREFIX -if(!strncmp(name,OLD_PREFIX,OLD_PREFIX_LEN)) name+=INCREMENT_OLD_TO_NEW; -#endif -// In this version, duplicate identifiers are acceptable -// (as used in third party web pages), but getName only -// returns the first instance (the list functions list -// all of them) -// if(getName(name,MAY_RETURN_NULL) && strcmp(getName(name,MAY_NOT_RETURN_NULL),value)) -// throw "CGIEnvironment::addName: Duplicate identifier"; -theData.addLine(name,value); -} - -const char* CGIEnvironment::getName(const char* name,MayReturnNull mayReturnNull) const { -if(!strcmp(name,URL_ENV)) { -// NEEDATTENTION this is a horrible hack -// URL_ENV can be used as a prefix in the WAP stuff -int n=strlen(URL_ENV); -for(int i=0; i<theData.getNumberOfValues(); i++) { -const char* lhs=theData.getLhsByNumber(i); -if(!strncmp(lhs,name,n) && lhs[n]) { -// a prefix (that's not just URL_ENV) - takes -// priority -return lhs+n; -} -} -} -#ifdef DEBUGGING_CGI_INPUT -h_printf("Debugger: getCaseSensitiveName(%s)<BR>\n",name); // %s OK here (only used in debugging) -#endif -const char* r=theData.getCaseSensitiveValueOf(name); if(r) return(r); -#ifdef DEBUGGING_CGI_INPUT -h_puts("Debugger: name not found<BR>"); -#endif -if(mayReturnNull==MAY_RETURN_NULL) return(NULL); -else throw "CGIEnvironment::getName - name not found"; -} - -const char* removeEscapes(const char* x) { -if(!strncmp(x,SSB22_ESCAPE,SSB22_ESCAPE_LEN)) return(x+SSB22_ESCAPE_LEN); -else return(x); -} - -inline int isOKForQuery(int c) { -return (isalnum(c) || strchr(".:;/^*-_~@'",c)); -// 2001-01-13: Not \" because it messes up link tags -} - -int CGIEnvironment::queryDumpExcludePrefix(const char* prefix,InString &url,int addQuestionMark) const { -// NEEDATTENTION Duplicate code! -// Do NOT apply options compression to this lot. -// It is going to the remote web server! -checkPoint(); -int retVal=0; -for(int lp=0; lp<theData.getNumberOfValues(); lp++) { -checkPoint(); -const char* lhs=theData.getLhsByNumber(lp); -const char* lhs2=removeEscapes(lhs); -if(lhs2!=lhs || strncmp(lhs,prefix,strlen(prefix))) { -checkPoint(); -if(retVal) url.addCharacter('&'); -else if(addQuestionMark) url.addCharacter('?'); -url.addString(lhs2); url.addCharacter('='); -const char* rhs=theData.getRhsByNumber(lp); -for(int i=0; rhs[i]; i++) { -if(isOKForQuery(rhs[i])) url.addCharacter(rhs[i]); -else if(rhs[i]==' ') url.addCharacter('+'); -else { -char buf[5]; -sprintf(buf,"%%%02X",(int)((unsigned char)rhs[i])); -url.addString(buf); -} -} -retVal=1; -} -} -return(retVal); -} - -int CGIEnvironment::lynxDumpExcludePrefix(const char* prefix,FILE* fp) const { -// NEEDATTENTION Duplicate code! -// Do NOT apply options compression to this lot. -// It is going to the remote web server! -int retVal=0; -for(int lp=0; lp<theData.getNumberOfValues(); lp++) { -const char* lhs=theData.getLhsByNumber(lp); -const char* lhs2=removeEscapes(lhs); -if(lhs2!=lhs || strncmp(lhs,prefix,strlen(prefix))) { -if(retVal) fputs("&\n",fp); -fputs(lhs2,fp); fputc('=',fp); -const char* rhs=theData.getRhsByNumber(lp); -for(int i=0; rhs[i]; i++) -if(isOKForQuery(rhs[i])) fputc(rhs[i],fp); -else if(rhs[i]==' ') fputc('+',fp); -else fprintf(fp,"%%%02X",(int)((unsigned char)rhs[i])); -retVal=1; -} -} -if(retVal) fputs("\n---\n",fp); -return(retVal); -} - -void CGIEnvironment::formDumpCurrentOption(const char* exact) { -const char *lhs,*rhs; -for(int lp=0; lp<theData.getNumberOfValues(); lp++) { -lhs=theData.getLhsByNumber(lp); -if(!strcmp(lhs,exact) -&& (relyOnCookies()==NoCookies -|| strncmp(lhs,theCookiePrefix,strlen(theCookiePrefix))) -&& (rhs=theData.getRhsByNumber(lp))/*[0]*/) { -// [0]: No! Watch checkbox thing -outputHiddenOption(lhs,rhs); -break; -} -} -} - -Subset* CGIEnvironment::selectOptionsToDump(const char* prefix,CookieStuff doRelyOnCookies,const char* except) const { -Subset* s=new Subset(theData.getNumberOfValues()); -const char* lhs; -for(int i=0; i<s->length(); i++) { -lhs=theData.getLhsByNumber(i); -if(!(*prefix && strncmp(lhs,prefix,strlen(prefix))) -// *prefix - defensive coding - not sure about the implementations of strncmp out there (but haven't actually run into a problem) -&& (!except || strcmp(lhs,except)) -&& (doRelyOnCookies==NoCookies || doRelyOnCookies==NoCookiesOrCompression -|| (doRelyOnCookies==RelyOnCookies && strncmp(lhs,theCookiePrefix,strlen(theCookiePrefix))) -|| (doRelyOnCookies==DoingCookies && !avoidSendingCookie(lhs))) -/*&& theData.getRhsByNumber(i)[0]*/) s->setTrue(i); -// Last condition: No! Check box stuff! optionIsRedundant is removed in the constructor, however. Don't know why I put that condition in. -} -return s; -} - -void CGIEnvironment::formButOneDumpCurrentOptions(const char* prefix,const char* except) { -Subset* s=selectOptionsToDump(prefix,relyOnCookies(),except); -char compressVal=compressOptions(s); -if(compressVal) { -char c[2]="\x0"; // so 2nd byte is 0 -c[0]=compressVal; -outputHiddenOption(CGI_COMPRESSION,c); -// NB We're doing this, but most of the time it won't -// work, because makeform.c++ calls the options one -// by one. However, it does work on the URL box. -} -for(int i=0; i<s->length(); i++) { -if(s->isTrue(i)) outputHiddenOption(theData.getLhsByNumber(i),theData.getRhsByNumber(i)); -} -delete s; -} - -int CGIEnvironment::urlDumpCurrentOptions(InString &str,const char* prefix,CookieStuff doRelyOnCookies) const { -Subset* s=selectOptionsToDump(prefix,doRelyOnCookies); -char compressVal=0; -if(doRelyOnCookies!=NoCookiesOrCompression) compressVal=compressOptions(s); -if(compressVal) { -str.addString(CGI_COMPRESSION "="); -str.addCharacter(compressVal); -} -int firstTime=!compressVal; -const char* rhs; -for(int i=0; i<s->length(); i++) { -if(s->isTrue(i)) { -if(!firstTime) str.addCharacter('&'); -str.addString(theData.getLhsByNumber(i)); -str.addCharacter('='); -rhs=theData.getRhsByNumber(i); -for(int j=0; rhs[j]; j++) { -if(isOKForQuery(rhs[j])) str.addCharacter(rhs[j]); -else if(rhs[j]==' ') str.addCharacter('+'); -else { -char buf[5]; -sprintf(buf,"%%%02X",(int)((unsigned char)rhs[j])); -str.addString(buf); -} -} -firstTime=0; -} -} -delete s; -return(!firstTime); -} - -int CGIEnvironment::urlDumpCurrentOptions(const char* prefix) { -InString s; -int retVal=urlDumpCurrentOptions(s,prefix,relyOnCookies()); -h_fputs(s.getString()); -return retVal; -} - -// compressOptions return value must be OK for a CGI query -// Can support up to 6 presets with a base64 encoding -// Not quite base64 because 0 has to map to 0 (option -// not present at all) -inline int compressEncode64(int sixbits) { -if(sixbits) { -if(sixbits <= 27) return(sixbits+('@'-1)); -else if(sixbits <= (27+26)) return(sixbits+('a'-27-1)); -else return(sixbits+('0'-(27+26)-1)); -// (27+26+10=63, as required) -} else return 0; -} -inline int compressDecode64(int encoded) { -if(encoded) { -if(encoded>='@' && encoded<='Z') -return(encoded-('@'-1)); -else if(encoded>='a' && encoded<='z') -return(encoded-('a'-27-1)); -else return(encoded-('0'-(27+26)-1)); -} else return 0; -} - -#ifndef PRESET_OPTIONS -#endif - -static const char* PresetOptions[]= -#ifdef PRESET_OPTIONS -PRESET_OPTIONS; // see platform.h -#else -{ "Aecb","000000","Aect","FFFF00","Aecl","00FF00","Aeca","FF0000","Aecv","00FFFF","AecL","0000C0","AecB","FFFFFF","Aech","8080FF","Aefs","5","Aesu",0,"Aez",0,"Aen",0,"AeK",0, 0,0, // @ - some sensible colours etc -"Aelt","Japanese","Aesi",0,"Aesu",0,"Aeso",0,"Ael",0, 0,0, // A - used for Japanese -"Aelt","Chinese","Aesi",0,"Aesu",0,"Aeso",0,"Ael",0,"Aeus","t", 0,0, // C - used for Traditional Chinese -// (don't forget this thing is encoded as binary + offset '@' - 1) -0 }; -#endif - -char CGIEnvironment::compressOptions(Subset* s) const { -int sixbits=0; -Subset unionToRemove(s->length()); -int presetNum,bitPos; // Need that out of the loop for gcc 2.7 -for(presetNum=0,bitPos=1; PresetOptions[presetNum]; bitPos<<=1) { -int found=1; -Subset toRemove(unionToRemove.length()); -// (re-init toRemove every presetNum, because may need to abort) -for(;PresetOptions[presetNum]; presetNum+=2) { -if(found) { -// (That conditional should save some cycles, -// since we don't break out of this loop when we -// know the answer - need to advance presetNum) -int foundThis=0; -for(int i=0; i<s->length(); i++) { -if(s->isTrue(i) && !strcmp(theData.getLhsByNumber(i),PresetOptions[presetNum]) && (!PresetOptions[presetNum|1] || !strcmp(theData.getRhsByNumber(i),PresetOptions[presetNum|1]))) { -foundThis=1; -toRemove.setTrue(i); -break; -} -} -// If didn't find this option, can't find "all" the options -if(!foundThis) found=0; // and DON'T break, because -// we want to skip through the rest of the options -} -} -presetNum+=2; // again, to skip over the 0,0 -if(found) { -sixbits|=bitPos; -// Add toRemove to unionToRemove -for(int i=0; i<toRemove.length(); i++) { -if(toRemove.isTrue(i)) unionToRemove.setTrue(i); -} -} -} -// Unset the relevant options of s -for(int i=0; i<unionToRemove.length(); i++) { -if(unionToRemove.isTrue(i)) s->setFalse(i); -} -return(compressEncode64(sixbits)); -} - -void CGIEnvironment::decompressOptions(char c) { -int sixbits=compressDecode64(c); -int presetNum,bitPos; // need that out of the loop for gcc 2.7 -for(presetNum=0,bitPos=1; PresetOptions[presetNum]; bitPos<<=1) { -for(;PresetOptions[presetNum]; presetNum+=2) { -if(sixbits&bitPos) { -// (NB We need that condition INSIDE the loop; -// alternatively we'd have to write an "else skip -// over them" loop) -const char* name=PresetOptions[presetNum], -*value=PresetOptions[presetNum|1]; -if(!value) value="1"; // ("" is risky - what if the user goes out of the preset and the empty string gets written on a hidden FORM option? Use "1" to be safe) -if(!getName(name,MAY_RETURN_NULL)) addName(name,value); -// NEVER add to an existing name here. Might want -// the existing names to override (as in CGI options -// overriding cookies); also we're using unions -// in compress. -} -} -presetNum+=2; // again, to skip over the 0,0 -} -} +#include "allinc.h" +#include "platform.h" /* above stdio.h, for _GNU_SOURCE and vsnprintf */ +#include <stdio.h> +#include <stdlib.h> +#include <time.h> +#include <ctype.h> +#include <string.h> +#include <stdarg.h> +#ifdef MEMCPY_IS_IN_MEM_DOT_H +#include <mem.h> +#endif +#include "cgilib.h" +#include "literals.h" +#include "!debug.h" +#include "debug.h" +#include "webget.h" +#include "images.h" +#include "lastupd.h" +#include "exceptn.h" + +#ifdef DEVELOPMENT_COPY +extern const char* qsOverride; +#define getQueryString (qsOverride?qsOverride:getenv("QUERY_STRING")) +#else +#define getQueryString getenv("QUERY_STRING") +#endif + +#define FILE_LEN 8 +#define FULL_PATHLEN 100 + +#define TB_LEN 1024 // For h_printf +#define TB_IS_STATIC // For h_printf + +#ifndef BRIEF_RESPONSE +#ifdef WEB_SERVER_ADDS_CHARACTER_13 +int crCount(const char* string) { +const char* s=string; int count=0; +while((s=strchr(s,'\n'))!=NULL) { count++; s=s+1; } +return(count); +} +#endif +#endif + +void CGIEnvironment::outHTMLCharacter(int c) { +const char* translateString[/*255*/ 127]={ +"", // 0: DO NOT USE +"<b>","</b>","<i>","</i>","<HR>","<h2>", // 1 to 6 +"\x07", +"</h2>","<h3>","</h3>","","","","", +"¤", // 15 +"","","","", // 16-19 +"¶","§", // 20-21 +"","","","","","","","","","", // 22-31 +" ","!","\"","#","$","%","&","'","(",")","*","+", +",","-",".","/","0","1","2","3","4","5","6","7","8","9",":", +";","<","=",">","?","@", +"A","B","C","D","E","F","G","H","I","J","K","L","M","N", +"O","P","Q","R","S","T","U","V","W","X","Y","Z", +"[","\\","]","^","_","`", +"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z", +"{","|","}" +// ,"~¦", // This is 127 +// Commenting out this lot - not used by the gateway: +//"Ç","ü","é","â","ä","à", +//"å","ç","ê","ë","è","ï", +//"î","ì","Ä","Å","É","æ", +//"Æ","ô","ö","ò","û","ù", +//"ÿ","Ö","Ü","¢","£","¥","P","\x9f", +//"á","í","ó","ú","ñ","Ñ", +//"ª","º","¿","¬","¬","½","¼","¡", +//"«","»","¦","¦","¦","¦","¦","¦", +//"¦","+","+","¦","¦","+","+","+","+","+", +//"+","-","-","+","-","+","¦","¦","+","+","-", +//"-","¦","-","+","-","-","-","-","+","+","+","+","+", +//"+","+","+","¦","_","¦","¦","¯", +//"a","ß","G","p","S","s","µ","t","F", +//"T","O","?","8","f","e","n","=","±", // Remove the ? here if too many +//"=","=","(",")","÷","~","°","·","·", +//"v","n","²","¦" +}; +if(c<0 || c>/*255*/126) h_putchar('?'); +else h_fputs(translateString[c]); +} + +void CGIEnvironment::outHTMLLine(const char* line) { +int oldLp=0; +for(int lp=0; line[lp]; lp++) { +if(line[lp]==' ' && line[lp+1]==' ') h_fputs(" "); // Non-breaking space +else outHTMLCharacter(line[lp]); +if(lp-oldLp>60 && line[lp]==' ' && line[lp+1]!=' ') { oldLp=lp; h_putchar('\n'); } +} +} + + +class CgiInQuery : public CGIEnvironment::CgiInput { +public: +CgiInQuery() : CGIEnvironment::CgiInput() { ptr=0; theQueryString=getQueryString; } +// (need to fully qualify CGIEnvironment::CgiInput for gcc 2.7) +~CgiInQuery() {}; +int getCharacter(); +protected: +int ptr; +const char* theQueryString; +}; + + +int CgiInQuery::getCharacter() { +int c=theQueryString[ptr++]; +if(!c) { ptr--; return(EOF); } +else return(c); +} + +class CgiInPost : public CGIEnvironment::CgiInput { +public: +CgiInPost() : CGIEnvironment::CgiInput() { lengthToGo=atoi(getenv("CONTENT_LENGTH")); } +// (need to fully qualify CGIEnvironment::CgiInput for gcc 2.7) +~CgiInPost() {}; +int getCharacter(); +protected: +int lengthToGo; +}; + +int CgiInPost::getCharacter() { +if(!lengthToGo) return(EOF); +else { lengthToGo--; return(getchar()); } +} + +class CgiInCookies : public CgiInQuery { +public: +CgiInCookies(const char* myQueryString) : CgiInQuery() { +theQueryString=myQueryString; +} +~CgiInCookies() { delete[] theQueryString; } +}; + +// ==== Stuff for parsing multipart ==== + +// need to delete[] the return value +const char* escapeNulls(const char* data,int length, +int null,int subst,int escape) { +int extraBytes=1; // for a terminating null +for(int i=0; i<length; i++) if(data[i]==null || data[i]==escape) extraBytes++; +char* newData=new char[length+extraBytes]; +int j=0; +for(int i=0; i<length; i++,j++) { +if(data[i]==null) { newData[j++]=escape; newData[j]=subst; } +else if(data[i]==escape) { newData[j++]=escape; newData[j]=escape; } +else newData[j]=data[i]; +} +newData[j]=0; // terminating null +return newData; +} + +const char* unescapeNulls(const char* data,int null,int subst,int escape,int &length) { +char* newData=new char[strlen(data)]; // (actually it doesn't have to be that big but...) +int j=0; +for(int i=0; data[i]; i++,j++) { +if(data[i]==escape) { +i++; +if(data[i]==subst) newData[j]=null; +else if(data[i]==escape) newData[j]=escape; +else throw "unescapeNulls: Invalid escape sequence"; +} else newData[j]=data[i]; +} +length=j; return newData; +} + +enum EscapeStuff { +NullToUse = 0, +SubstToUse = 1, +EscapeToUse = 27 // Theoretically should choose the least common byte in any binary format +}; + +int newlineAdvance(const char* input) { +// Deal with all possible formats +if(*input=='\n') return((input[1]=='\r') ? 2 : 1); +else if(*input=='\r') return((input[1]=='\n') ? 2 : 1); +else return 0; +} + +char* endOfBoundary(char* input,const char* boundary,int newLineBefore) { +if(newLineBefore) { +int n=newlineAdvance(input); +if(n) input+=n; else return NULL; +// NEEDATTENTION Is this correct? i.e. browser never sends separator on the end of a line? +} +if(input[0]=='-' && input[1]=='-') input+=2; else return NULL; +if(!strncmp(input,boundary,strlen(boundary))) return(input+strlen(boundary)); +else return NULL; +} + +int CGIEnvironment::tryDecodingMultipart() { +#define Multipart_String "multipart/form-data" +#define Boundary_String "; boundary=" +const char* e=getenv("CONTENT_TYPE"); +if(e && !strncmp(e,Multipart_String,strlen(Multipart_String))) { +e+=strlen(Multipart_String); +const char* boundary=""; +if(!strncmp(e,Boundary_String,strlen(Boundary_String))) +boundary=e+strlen(Boundary_String); +int lengthOfInput=atoi(getenv("CONTENT_LENGTH")); +// Might as well read it all into a buffer (going to need +// look-ahead anyway) - might not be as efficient (more copying) +// but these multipart forms don't occur very often (at the moment...) +char* input=new char[lengthOfInput]; +const char* toDelete=input; // really need a "try" NEEDATTENTION +fread(input,sizeof(char),lengthOfInput,stdin); +input=endOfBoundary(input,boundary,0); +if(!input) throw "tryDecodingMultipart: Initial boundary not found"; +int firstTime=1; +while(input-toDelete<lengthOfInput) { +// NEEDATTENTION That condition alone is not sufficient to prevent all segfaults if the browser sends incorrect data +int n=newlineAdvance(input); +if(n) input+=n; else if(!firstTime) break; // Reached the -- at EOF +firstTime=0; +// Content-Disposition: form-data; name="..." +// (NEEDATTENTION is "name" always first?) +input=strchr(input,'"'); +if(!input) throw "tryDecodingMultipart: No quote on content-disposition line"; +const char* name=input+1; +input=(char*)strchr(name,'"'); +if(!input) throw "tryDecodingMultipart: Unterminated name"; +*(input++)=0; +if(*input==';') { +// Something like "; Filename=...". Since the +// access gateway never needs to use this type of +// input itself, we might as well record the lot, +// from here, for passing through. Just make sure +// that we've recorded the fact that we've done +// this. *************** +// (need some sort of "special multipart prefix" to "name") +const char* value=input; char* boundEnd; +while(!(boundEnd=endOfBoundary(input,boundary,1))) input++; +const char* newValue=escapeNulls(value,input-value,NullToUse,SubstToUse,EscapeToUse); +// addName(name,newValue); +// ****** (put this back in when it's passing on correctly) +delete[] newValue; +input=boundEnd; +} else { +// No "Filename" etc - just decode it +while(!newlineAdvance(input)) input++; input+=newlineAdvance(input); +input+=newlineAdvance(input); // the blank line +const char* value=input; char* boundEnd; +while(!(boundEnd=endOfBoundary(input,boundary,1))) input++; +*input=0; addName(name,value); +input=boundEnd; +} +} +// ******************************************** +// need to add a "dump to multipart" (using what separator?) +// remember unescapeNulls +// (+ how to do it in lynx?) +// degrade to POST, so need a var that puts it to multipart +delete[] toDelete; +return 1; +} else return 0; // failed +} + +// ==== End of multipart stuff ==== + +void CGIEnvironment::buildCGIInput(CgiInput &i,int dontReplaceExisting) { +InString name,value; +int inValue=0; char optionsToDecompress=0; +while(1) { +int c=i.getCharacter(); +#ifdef DEBUGGING_CGI_INPUT +h_printf("Debugger: Got character %3d (%c)<BR>\n",c,c); +#endif +if(c==EOF || c=='&') { +// if(!inValue) throw ((c=='&')?"Ampersand before equals on CGI input":"End of input before equality on CGI input"); +// No, DON'T throw error: Access gateway can produce this +// Just ignore the rogue term +if(inValue) { +#ifdef DEBUGGING_CGI_INPUT +(*this)<<"<BR>Debugger: name="<<name.getString()<<" value="<<value.getString()<<"<BR>\n"; +#endif +const char* nStr=name.getString(); +if(!strncmp(nStr,"amp;",4)) nStr+=4; // cope with browsers that don't decode & in links +if(!strcmp(nStr,CGI_COMPRESSION)) optionsToDecompress=value.getString()[0]; +else if(!dontReplaceExisting || !getName(nStr,MAY_RETURN_NULL)) addName(nStr,value.getString()); +name.clear(); value.clear(); +inValue=0; +} +if(c==EOF) break; +} else if(c=='=') { +if(inValue) +// throw "Equals before ampersand on CGI input"; +// We have to be tolerant of Netscape 3 +value.addCharacter(c); +else inValue=1; +} else { +if(c=='%') { +// Get two-digit hex code +int hex1=i.getCharacter(); +#ifdef DEBUGGING_CGI_INPUT +h_printf("Debugger: Got character %3d (%c)<BR>\n",hex1,hex1); +#endif +int hex2=i.getCharacter(); +#ifdef DEBUGGING_CGI_INPUT +h_printf("Debugger: Got character %3d (%c)<BR>\n",hex2,hex2); +#endif +if (!(isascii(hex1) && isascii(hex2) && isxdigit(hex1) && isxdigit(hex2))) +throw "CGI input gave percent followed by invalid hex code"; +hex1=toupper(hex1); hex2=toupper(hex2); +if(hex1>='A') c=hex1-'A'+10; else c=hex1-'0'; +c<<=4; +if(hex2>='A') c|=hex2-'A'+10; else c|=hex2-'0'; +} else if(c=='+') c=' '; +else if(!(isascii(c) && isprint(c)) +&& (!(c&0x80))) { +// 2001-08-28: High-bit test added because some +// CJK pages have UTF etc in the filenames +throw "CGIEnvironment::buildCGIInput got non-printing character"; +} +if(inValue) value.addCharacter(c); else name.addCharacter(c); +} // 'if' around c +} // while 1 +if(optionsToDecompress) decompressOptions(optionsToDecompress); // After everything else, so overridden options are never replaced +} + +void CGIEnvironment::h_puts(const char* string) { +whereToOutput->addString(string); +whereToOutput->addCharacter('\n'); +} + +void CGIEnvironment::h_printf(const char* format,...) { +// Patch for GNU to suppress warning: +#ifdef __GNUC_VA_LIST +#define va_list __gnuc_va_list +#endif +va_list argptr; +#ifdef __GNUC_VA_LIST +#undef va_list +#endif +va_start(argptr,format); +#ifdef TB_IS_STATIC +static +#endif +char tempBuf[TB_LEN]; tempBuf[TB_LEN-1]=0; +#ifdef _GNU_SOURCE +int r=vsnprintf(tempBuf,TB_LEN,format,argptr); +if(r==-1) throw "CGIEnvironment::h_printf buffer overflow (GNU vsnprintf used)"; +#else +tempBuf[TB_LEN-1]=0; +vsprintf(tempBuf,format,argptr); +if(tempBuf[TB_LEN-1]) throw "CGIEnvironment::h_printf buffer overflow (vsprintf used)"; +#endif +else whereToOutput->addString(tempBuf); +va_end(argptr); // Clean up the multiple argument list +} + +CGIEnvironment::CGIEnvironment(const char* cookiePrefix,const char* usrWantsCookiesVar) +: theCookiePrefix(cookiePrefix), theUsrWantsCookiesVar(usrWantsCookiesVar) { +try { +theRealPageStart=addArtificialNoframes=theUserSupportsCookies=0; addServiceTitle=1; +#ifdef MULTIPLE_STYLES_SUPPORTED +theStyle=NULL; +#endif +outputToMainPage(); +theCharset=NULL; initOutputData(); +const char* query_string=getQueryString; +if(query_string && query_string[0]) { CgiInQuery x; buildCGIInput(x); } +else if(!tryDecodingMultipart() && +getenv("CONTENT_LENGTH")) { CgiInPost x; buildCGIInput(x); } + +/* *************************************************** +else might not be on web (or might have no options) +see if on web first + +INCLUDE_PROXY_CODE + +Run as proxy from inetd? What about logging ????? +(can we get the address from the stdin handle ??????) +Also if it's a proxy it will have to handle ALL content types! (What about the overhead on spawning this program for all those CJK images !?) More lightweight proxy that includes the image server & spawns this program as necessary? +If not on web & no args, get request from stdin (& +work out query string) (this as optional feature) +(also sort out different URL re-writing etc) +Watch denial of service "send infinite string" or "get infinite web page" (will time out, but will it thrash before then?) +M-x grep getenv *.c++ *.h +Use not BRIEF_RESPONSE (including in the signal +handlers! grep Content-type. But Content-length not +necessary) +*/ + +// See if the user sent any cookies. If so, add them +// but make sure that the query options override them. +// (If the user has just disabled cookies, then the +// cookies they sent will still be valid at this point. +// However, they should be blanked; this is done +// when returning the page.) + +const char* userCookies=getenv("HTTP_COOKIE"); +if(userCookies && *userCookies) { +const char* cookieVal=getUserCookie(userCookies); +if(cookieVal) { +theOriginalCookie.addString(cookieVal); +CgiInCookies x(cookieVal); +buildCGIInput(x,1); +theUserSupportsCookies=1; +} +} +// We check optionIsRedundant as a separate pass, +// otherwise dontReplaceExisting would not work properly +// and a cookie option that is cancelled by a +// "redundant" query option will not be properly +// cancelled (eg. try setting a language and then +// going back to "No conversion" while using cookies +// and the old code) +for(int lp=0; lp<theData.getNumberOfValues(); lp++) { +if(optionIsRedundant(theData.getLhsByNumber(lp),theData.getRhsByNumber(lp))) theData.deleteByNumber(lp--); +} +// Initialise any remote cookies: +const char* cookies=getName(ENV_COOKIES,MAY_RETURN_NULL); +if(cookies) { +if(getName(ENV_PREFIX "B",MAY_RETURN_NULL)) setName(ENV_COOKIES,""); +else theCookies.readFromString(cookies); +} +} catch(CatchLiteral string) { +exceptionHandle(string); cleanup(); +throw new CgiExceptionDealtWith; +} +} + +CGIEnvironment::~CGIEnvironment() { +cleanup(); +} + +void CGIEnvironment::outputHeader( +#ifndef BRIEF_RESPONSE +long contentLength +#endif +) { +#ifdef DEVELOPMENT_COPY +extern int dontProcessLinks; +if(dontProcessLinks) return; +#endif +#ifndef BRIEF_RESPONSE +puts("HTTP/1.0 200 OK\nConnection: Close"); +#endif +if(theCharset) printf("Content-Type: text/html; charset=%s\n",theCharset); // %s OK here +else puts("Content-Type: text/html"); +if(userWantsCookies()) { +InString cQuery,cLowLevel; +cookieDumpCurrentOptions(cQuery); +if(strcmp(cQuery.getString(),theOriginalCookie.getString())) { +// Cookie has changed +encodeUserCookie(cQuery.getString(),cLowLevel); +fputs("Set-Cookie: ",stdout); +fputs(cLowLevel.getString(),stdout); +puts("; domain=" IP_ADDRESS "; path=" CGI_LOCATION +"; expires=Tue, 29-Dec-2037 12:00:00 GMT"); +// The expiry date is necessary because otherwise +// the cookie will only last for the session, and +// bookmarks won't keep their options. Unfortunately +// it introduces a date dependency; I hope users won't +// expect their bookmarks to last beyond 2037. +// (2000-07-19: I'm setting it to 2037 to avoid any +// S2G problems that might be lurking in current +// browsers.) +} +} else if(theUserSupportsCookies && !(theOriginalCookie.isEmpty())) { +// They sent one, but they don't want it back! +// We'd better clear it, otherwise its options +// might interfere later. +puts("Set-Cookie: " COOKIE_QUOTES_LETTER "=; domain=" IP_ADDRESS "; path=" CGI_LOCATION); +} +#ifndef BRIEF_RESPONSE +if(contentLength>=0) printf("Content-Length: %ld\n",contentLength); +#endif +putchar('\n'); // Blank line +} + +#ifdef CAN_SHOW_IMAGES +void addUnicodeURL(InString &url,const CGIEnvironment* c) { +const char* x=c->getName(ENV_UNICODE_URL,MAY_RETURN_NULL); +if(x && *x) { +url.addString(x); +if(x[strlen(x)-1]!='/') url.addCharacter('/'); +} else url.addString(UNICODE_URL); +#ifdef MULTIPLE_STYLES_SUPPORTED +const char* style=c->getStyle(); +if(style) { +url.addString(style); +url.addCharacter('/'); +} +#endif +} +#endif + +void CGIEnvironment::cleanup() { +try { +outputToMainPage(); +#ifdef Script_Extensions +appendScriptExtensionsTo(this); +#endif +if(addArtificialNoframes) { +h_fputs("<NOFRAMES>"); +h_fputs(L_NOFRAMES_MSG); +h_puts("</NOFRAMES></HTML>"); +} else h_puts("</BODY></HTML>"); +} catch(CatchLiteral string) { +exceptionHandle(string); h_puts("</BODY></HTML>"); +} +theHeaderData.prepend("<HTML><HEAD>"); +if(!preprocessOnly(this)) { +theHeaderData.addString( +"<META NAME=\"robots\" CONTENT=\"NOINDEX, NOFOLLOW\">\n" +"<META HTTP-EQUIV=\"X-Mediator-Name\" CONTENT=\"" CANONICAL_NAME "\">\n" +"<META HTTP-EQUIV=\"X-Mediator-Warning\" CONTENT=\"" CANONICAL_NAME "="); +theHeaderData.addString(L_PAGE_ALREADY_PROCESSED); +theHeaderData.addString("\">\n"); +} +#ifdef CAN_SHOW_IMAGES +if(UsingImages) { +theHeaderData.addString("<BASE HREF=\""); +addUnicodeURL(theHeaderData,this); +theHeaderData.addString("\">\n"); +} +#endif +if(addServiceTitle) { +theHeaderData.addString("<TITLE>"); +theHeaderData.addString(SERVICE_TITLE); +theHeaderData.addString("</TITLE>"); +} +theHeaderData.addString("</HEAD>\n"); +outputHeader( +#ifndef BRIEF_RESPONSE +theOutputData.length()+theHeaderData.length() +#ifdef WEB_SERVER_ADDS_CHARACTER_13 ++crCount(theOutputData.getString())+crCount(theHeaderData.getString()) +#endif +#endif +); +#ifdef ENCODINGS_AVAILABLE +if(subHtmlShowCharsAs==CharsSJIS) { +theHeaderData.eucjToSjis(); +theOutputData.eucjToSjis(); +} +#endif +fputs(theHeaderData.getString(),stdout); +puts(theOutputData.getString()); +} + +#ifdef EXCEPTION_LOGFILE +void envDump(const char* varName,FILE* fp) { +const char* c=getenv(varName); +fputs(varName,fp); fputc(' ',fp); fputs(c?c:"null",fp); +fputc('\n',fp); +} +#endif + +void CGIEnvironment::htmlEnvDump(const char* varName) { +const char* c=getenv(varName); +if(c) { +h_fputs("<BR>"); h_fputs(varName); h_putchar('='); +outHTMLLine(c); +} +} + +void outputBodyTag(CGIEnvironment* theEnvironment); // Nasty +void CGIEnvironment::exceptionHandle(const char* string) { +#ifndef DONT_CLEAR_ON_EXCEPTIONS +initOutputData(); +try { outputBodyTag(this); } catch(...) { initOutputData(); } +#endif +outHTMLParagraph(INTERNAL_ERROR); +#ifdef EXCEPTION_LOGFILE +outHTMLParagraph(INTERNAL_ERR_LOGGED); +#else +outHTMLParagraph(INTERNAL_ERR_CONTACT); +#endif +outHTMLParagraph(string); +// NOTE - DUPLICATE CODE WITH BELOW +htmlEnvDump("QUERY_STRING"); +htmlEnvDump("CONTENT_LENGTH"); +htmlEnvDump("REMOTE_HOST"); +htmlEnvDump("REMOTE_ADDR"); +htmlEnvDump("HTTP_USER_AGENT"); +htmlEnvDump("HTTP_VIA"); +htmlEnvDump("HTTP_REFERER"); +htmlEnvDump("HTTP_COOKIE"); +#ifdef EXCEPTION_LOGFILE +// NB Don't worry too much about parallelism here +// - it won't be the end of the world if there's a conflict +FILE* logFile=fopen(EXCEPTION_LOGFILE,"at"); +if(logFile) { +time_t t=time(NULL); +fprintf(logFile,"%s (last compilation " __DATE__ " " __TIME__ ")\n",ctime(&t)); // %s OK here +// NOTE - DUPLICATE CODE WITH ABOVE +envDump("QUERY_STRING",logFile); +envDump("CONTENT_LENGTH",logFile); +envDump("REMOTE_HOST",logFile); +envDump("REMOTE_ADDR",logFile); +envDump("HTTP_USER_AGENT",logFile); +envDump("HTTP_REFERER",logFile); +envDump("HTTP_VIA",logFile); +envDump("HTTP_COOKIE",logFile); +fputs("Exception: ",logFile); +fputs(string,logFile); fputs("\n\n",logFile); +fclose(logFile); +#ifdef EXCEPTION_COMMAND +system(EXCEPTION_COMMAND); +#endif // EXCEPTION_COMMAND +} // else not that much we can do +#endif // EXCEPTION_LOGFILE +h_puts("<HR>"); // Don't change to h_fputs (see comment in access.c++ about Mozilla bug) +outputLastUpdate(this); // better do that, so they get the disclaimer (since this is an error message) +} + +void CGIEnvironment::addName(const char* name,const char* value) { +#ifdef OLD_PREFIX +if(!strncmp(name,OLD_PREFIX,OLD_PREFIX_LEN)) name+=INCREMENT_OLD_TO_NEW; +#endif +// In this version, duplicate identifiers are acceptable +// (as used in third party web pages), but getName only +// returns the first instance (the list functions list +// all of them) +// if(getName(name,MAY_RETURN_NULL) && strcmp(getName(name,MAY_NOT_RETURN_NULL),value)) +// throw "CGIEnvironment::addName: Duplicate identifier"; +theData.addLine(name,value); +} + +const char* CGIEnvironment::getName(const char* name,MayReturnNull mayReturnNull) const { +if(!strcmp(name,URL_ENV)) { +// NEEDATTENTION this is a horrible hack +// URL_ENV can be used as a prefix in the WAP stuff +int n=strlen(URL_ENV); +for(int i=0; i<theData.getNumberOfValues(); i++) { +const char* lhs=theData.getLhsByNumber(i); +if(!strncmp(lhs,name,n) && lhs[n]) { +// a prefix (that's not just URL_ENV) - takes +// priority +return lhs+n; +} +} +} +#ifdef DEBUGGING_CGI_INPUT +h_printf("Debugger: getCaseSensitiveName(%s)<BR>\n",name); // %s OK here (only used in debugging) +#endif +const char* r=theData.getCaseSensitiveValueOf(name); if(r) return(r); +#ifdef DEBUGGING_CGI_INPUT +h_puts("Debugger: name not found<BR>"); +#endif +if(mayReturnNull==MAY_RETURN_NULL) return(NULL); +else throw "CGIEnvironment::getName - name not found"; +} + +const char* removeEscapes(const char* x) { +if(!strncmp(x,SSB22_ESCAPE,SSB22_ESCAPE_LEN)) return(x+SSB22_ESCAPE_LEN); +else return(x); +} + +inline int isOKForQuery(int c) { +return (isalnum(c) || strchr(".:;/^*-_~@'",c)); +// 2001-01-13: Not \" because it messes up link tags +} + +int CGIEnvironment::queryDumpExcludePrefix(const char* prefix,InString &url,int addQuestionMark) const { +// NEEDATTENTION Duplicate code! +// Do NOT apply options compression to this lot. +// It is going to the remote web server! +checkPoint(); +int retVal=0; +for(int lp=0; lp<theData.getNumberOfValues(); lp++) { +checkPoint(); +const char* lhs=theData.getLhsByNumber(lp); +const char* lhs2=removeEscapes(lhs); +if(lhs2!=lhs || strncmp(lhs,prefix,strlen(prefix))) { +checkPoint(); +if(retVal) url.addCharacter('&'); +else if(addQuestionMark) url.addCharacter('?'); +url.addString(lhs2); url.addCharacter('='); +const char* rhs=theData.getRhsByNumber(lp); +for(int i=0; rhs[i]; i++) { +if(isOKForQuery(rhs[i])) url.addCharacter(rhs[i]); +else if(rhs[i]==' ') url.addCharacter('+'); +else { +char buf[5]; +sprintf(buf,"%%%02X",(int)((unsigned char)rhs[i])); +url.addString(buf); +} +} +retVal=1; +} +} +return(retVal); +} + +int CGIEnvironment::lynxDumpExcludePrefix(const char* prefix,FILE* fp) const { +// NEEDATTENTION Duplicate code! +// Do NOT apply options compression to this lot. +// It is going to the remote web server! +int retVal=0; +for(int lp=0; lp<theData.getNumberOfValues(); lp++) { +const char* lhs=theData.getLhsByNumber(lp); +const char* lhs2=removeEscapes(lhs); +if(lhs2!=lhs || strncmp(lhs,prefix,strlen(prefix))) { +if(retVal) fputs("&\n",fp); +fputs(lhs2,fp); fputc('=',fp); +const char* rhs=theData.getRhsByNumber(lp); +for(int i=0; rhs[i]; i++) +if(isOKForQuery(rhs[i])) fputc(rhs[i],fp); +else if(rhs[i]==' ') fputc('+',fp); +else fprintf(fp,"%%%02X",(int)((unsigned char)rhs[i])); +retVal=1; +} +} +if(retVal) fputs("\n---\n",fp); +return(retVal); +} + +void CGIEnvironment::formDumpCurrentOption(const char* exact) { +const char *lhs,*rhs; +for(int lp=0; lp<theData.getNumberOfValues(); lp++) { +lhs=theData.getLhsByNumber(lp); +if(!strcmp(lhs,exact) +&& (relyOnCookies()==NoCookies +|| strncmp(lhs,theCookiePrefix,strlen(theCookiePrefix))) +&& (rhs=theData.getRhsByNumber(lp))/*[0]*/) { +// [0]: No! Watch checkbox thing +outputHiddenOption(lhs,rhs); +break; +} +} +} + +Subset* CGIEnvironment::selectOptionsToDump(const char* prefix,CookieStuff doRelyOnCookies,const char* except) const { +Subset* s=new Subset(theData.getNumberOfValues()); +const char* lhs; +for(int i=0; i<s->length(); i++) { +lhs=theData.getLhsByNumber(i); +if(!(*prefix && strncmp(lhs,prefix,strlen(prefix))) +// *prefix - defensive coding - not sure about the implementations of strncmp out there (but haven't actually run into a problem) +&& (!except || strcmp(lhs,except)) +&& (doRelyOnCookies==NoCookies || doRelyOnCookies==NoCookiesOrCompression +|| (doRelyOnCookies==RelyOnCookies && strncmp(lhs,theCookiePrefix,strlen(theCookiePrefix))) +|| (doRelyOnCookies==DoingCookies && !avoidSendingCookie(lhs))) +/*&& theData.getRhsByNumber(i)[0]*/) s->setTrue(i); +// Last condition: No! Check box stuff! optionIsRedundant is removed in the constructor, however. Don't know why I put that condition in. +} +return s; +} + +void CGIEnvironment::formButOneDumpCurrentOptions(const char* prefix,const char* except) { +Subset* s=selectOptionsToDump(prefix,relyOnCookies(),except); +char compressVal=compressOptions(s); +if(compressVal) { +char c[2]="\x0"; // so 2nd byte is 0 +c[0]=compressVal; +outputHiddenOption(CGI_COMPRESSION,c); +// NB We're doing this, but most of the time it won't +// work, because makeform.c++ calls the options one +// by one. However, it does work on the URL box. +} +for(int i=0; i<s->length(); i++) { +if(s->isTrue(i)) outputHiddenOption(theData.getLhsByNumber(i),theData.getRhsByNumber(i)); +} +delete s; +} + +int CGIEnvironment::urlDumpCurrentOptions(InString &str,const char* prefix,CookieStuff doRelyOnCookies) const { +Subset* s=selectOptionsToDump(prefix,doRelyOnCookies); +char compressVal=0; +if(doRelyOnCookies!=NoCookiesOrCompression) compressVal=compressOptions(s); +if(compressVal) { +str.addString(CGI_COMPRESSION "="); +str.addCharacter(compressVal); +} +int firstTime=!compressVal; +const char* rhs; +for(int i=0; i<s->length(); i++) { +if(s->isTrue(i)) { +if(!firstTime) str.addCharacter('&'); +str.addString(theData.getLhsByNumber(i)); +str.addCharacter('='); +rhs=theData.getRhsByNumber(i); +for(int j=0; rhs[j]; j++) { +if(isOKForQuery(rhs[j])) str.addCharacter(rhs[j]); +else if(rhs[j]==' ') str.addCharacter('+'); +else { +char buf[5]; +sprintf(buf,"%%%02X",(int)((unsigned char)rhs[j])); +str.addString(buf); +} +} +firstTime=0; +} +} +delete s; +return(!firstTime); +} + +int CGIEnvironment::urlDumpCurrentOptions(const char* prefix) { +InString s; +int retVal=urlDumpCurrentOptions(s,prefix,relyOnCookies()); +h_fputs(s.getString()); +return retVal; +} + +// compressOptions return value must be OK for a CGI query +// Can support up to 6 presets with a base64 encoding +// Not quite base64 because 0 has to map to 0 (option +// not present at all) +inline int compressEncode64(int sixbits) { +if(sixbits) { +if(sixbits <= 27) return(sixbits+('@'-1)); +else if(sixbits <= (27+26)) return(sixbits+('a'-27-1)); +else return(sixbits+('0'-(27+26)-1)); +// (27+26+10=63, as required) +} else return 0; +} +inline int compressDecode64(int encoded) { +if(encoded) { +if(encoded>='@' && encoded<='Z') +return(encoded-('@'-1)); +else if(encoded>='a' && encoded<='z') +return(encoded-('a'-27-1)); +else return(encoded-('0'-(27+26)-1)); +} else return 0; +} + +#ifndef PRESET_OPTIONS +#endif + +static const char* PresetOptions[]= +#ifdef PRESET_OPTIONS +PRESET_OPTIONS; // see platform.h +#else +{ "Aecb","000000","Aect","FFFF00","Aecl","00FF00","Aeca","FF0000","Aecv","00FFFF","AecL","0000C0","AecB","FFFFFF","Aech","8080FF","Aefs","5","Aesu",0,"Aez",0,"Aen",0,"AeK",0, 0,0, // @ - some sensible colours etc +"Aelt","Japanese","Aesi",0,"Aesu",0,"Aeso",0,"Ael",0, 0,0, // A - used for Japanese +"Aelt","Chinese","Aesi",0,"Aesu",0,"Aeso",0,"Ael",0,"Aeus","t", 0,0, // C - used for Traditional Chinese +// (don't forget this thing is encoded as binary + offset '@' - 1) +0 }; +#endif + +char CGIEnvironment::compressOptions(Subset* s) const { +int sixbits=0; +Subset unionToRemove(s->length()); +int presetNum,bitPos; // Need that out of the loop for gcc 2.7 +for(presetNum=0,bitPos=1; PresetOptions[presetNum]; bitPos<<=1) { +int found=1; +Subset toRemove(unionToRemove.length()); +// (re-init toRemove every presetNum, because may need to abort) +for(;PresetOptions[presetNum]; presetNum+=2) { +if(found) { +// (That conditional should save some cycles, +// since we don't break out of this loop when we +// know the answer - need to advance presetNum) +int foundThis=0; +for(int i=0; i<s->length(); i++) { +if(s->isTrue(i) && !strcmp(theData.getLhsByNumber(i),PresetOptions[presetNum]) && (!PresetOptions[presetNum|1] || !strcmp(theData.getRhsByNumber(i),PresetOptions[presetNum|1]))) { +foundThis=1; +toRemove.setTrue(i); +break; +} +} +// If didn't find this option, can't find "all" the options +if(!foundThis) found=0; // and DON'T break, because +// we want to skip through the rest of the options +} +} +presetNum+=2; // again, to skip over the 0,0 +if(found) { +sixbits|=bitPos; +// Add toRemove to unionToRemove +for(int i=0; i<toRemove.length(); i++) { +if(toRemove.isTrue(i)) unionToRemove.setTrue(i); +} +} +} +// Unset the relevant options of s +for(int i=0; i<unionToRemove.length(); i++) { +if(unionToRemove.isTrue(i)) s->setFalse(i); +} +return(compressEncode64(sixbits)); +} + +void CGIEnvironment::decompressOptions(char c) { +int sixbits=compressDecode64(c); +int presetNum,bitPos; // need that out of the loop for gcc 2.7 +for(presetNum=0,bitPos=1; PresetOptions[presetNum]; bitPos<<=1) { +for(;PresetOptions[presetNum]; presetNum+=2) { +if(sixbits&bitPos) { +// (NB We need that condition INSIDE the loop; +// alternatively we'd have to write an "else skip +// over them" loop) +const char* name=PresetOptions[presetNum], +*value=PresetOptions[presetNum|1]; +if(!value) value="1"; // ("" is risky - what if the user goes out of the preset and the empty string gets written on a hidden FORM option? Use "1" to be safe) +if(!getName(name,MAY_RETURN_NULL)) addName(name,value); +// NEVER add to an existing name here. Might want +// the existing names to override (as in CGI options +// overriding cookies); also we're using unions +// in compress. +} +} +presetNum+=2; // again, to skip over the 0,0 +} +} diff --git a/cgilib.h b/cgilib.h index 89ed4c6..63b6d32 100644 --- a/cgilib.h +++ b/cgilib.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/cookie.c++ b/cookie.c++ index 998f0c3..83bb383 100644 --- a/cookie.c++ +++ b/cookie.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) - -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. - -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. - -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/cookie.h b/cookie.h index ec3096c..789a6ca 100644 --- a/cookie.h +++ b/cookie.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/debug.c++ b/debug.c++ index 270e31e..ec6a553 100644 --- a/debug.c++ +++ b/debug.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/debug.h b/debug.h index ad1e05b..aab649e 100644 --- a/debug.h +++ b/debug.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/encoding.c++ b/encoding.c++ index c06a080..9ba7114 100644 --- a/encoding.c++ +++ b/encoding.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/encoding.h b/encoding.h index 651ca25..ea99058 100644 --- a/encoding.h +++ b/encoding.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/exceptn.h b/exceptn.h index 1d68dd2..790785c 100644 --- a/exceptn.h +++ b/exceptn.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/extenlib.h b/extenlib.h index ca4c6fe..480d298 100644 --- a/extenlib.h +++ b/extenlib.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) - -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. - -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. - -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/extensions.c++ b/extensions.c++ index ad569e9..adc2bce 100644 --- a/extensions.c++ +++ b/extensions.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) - -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. - -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. - -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/extensions.h b/extensions.h index 34dbd2f..7146a1d 100644 --- a/extensions.h +++ b/extensions.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) - -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. - -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. - -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/help.c++ b/help.c++ index a6feec4..e420c21 100644 --- a/help.c++ +++ b/help.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/help.h b/help.h index 148b43b..f9239ab 100644 --- a/help.h +++ b/help.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/htmlfilt.c++ b/htmlfilt.c++ index 197da34..99a0bc0 100644 --- a/htmlfilt.c++ +++ b/htmlfilt.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/htmlfilt.h b/htmlfilt.h index 041f0fc..06a1d98 100644 --- a/htmlfilt.h +++ b/htmlfilt.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/httphdr.c++ b/httphdr.c++ index bb6bdf0..1b96f4d 100644 --- a/httphdr.c++ +++ b/httphdr.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/httphdr.h b/httphdr.h index 3ea1e27..06580f1 100644 --- a/httphdr.h +++ b/httphdr.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/images.c++ b/images.c++ index f49aead..4c21329 100644 --- a/images.c++ +++ b/images.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/images.h b/images.h index f0f22b1..3408a5b 100644 --- a/images.h +++ b/images.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/imode.c++ b/imode.c++ index a48ddf0..f203f45 100644 --- a/imode.c++ +++ b/imode.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) - -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. - -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. - -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/imode.h b/imode.h index 32b70de..e6af24a 100644 --- a/imode.h +++ b/imode.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/install.sh b/install.sh index 9eb4476..55879e1 100755 --- a/install.sh +++ b/install.sh @@ -3,55 +3,23 @@ # Access Gateway - a mediator for the World Wide Web - # "quick" install script for POSIX-compliant Unix systems -# (C) 1998-2006 Silas S. Brown (University of Cambridge Computer Laboratory) +# (C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -# 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. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at -# 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. +# http://www.apache.org/licenses/LICENSE-2.0 -# You should have received a copy of the GNU General -# Public License along with this program; see the file -# COPYING. If not, write to the Free Software Foundation, -# Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # ###################################################### -# Check license -clear -echo ' Access Gateway - a mediator for the World Wide Web -' -echo ' "quick" install script for POSIX-compliant Unix systems' -echo " (C) 1998-2006 Silas S. Brown (University of Cambridge Computer Laboratory)" -echo -echo ' This program is free software; you can redistribute it' -echo ' and/or modify it under the terms of the GNU General' -echo ' Public License as published by the Free Software' -echo ' Foundation; either version 2 of the License, or (at your' -echo ' option) any later version.' -echo -echo ' This program is distributed in the hope that it will be' -echo ' useful, but WITHOUT ANY WARRANTY; without even the' -echo ' implied warranty of MERCHANTABILITY or FITNESS FOR A' -echo ' PARTICULAR PURPOSE. See the GNU General Public License' -echo ' for more details.' -echo -echo 'Do you accept these terms? Please type y or n and press Return.' -read Response -if ! test "a$Response" = ay; then - echo "Response not y - aborting." - exit 1 -fi - -export SSB_Email=silas@accu.org -export DefaultImgServer=nexus.csse.monash.edu.au:7080 +export SSB_Email=ssb22@cam.ac.uk # Check for dependencies if ! which lynx >/dev/null; then @@ -189,12 +157,9 @@ if ! test "a$ImgServerYN" = an; then echo "What port number do you want to use for the image server? (Default 7080)" read ImagePort if test "a$ImagePort" = a; then export ImagePort=7080; fi - export DefaultImgServer="http://$DomainOnly:$ImagePort/" else - echo "Which image server would you like to use? Please specify host and port. The default is $DefaultImgServer" + echo "Which image server would you like to use? Please specify host and port." unset ImgServer; read ImgServer - if test "a$ImgServer" = a; then export ImgServer=$DefaultImgServer; fi - export DefaultImgServer=http://$ImgServer/ fi echo "What is your email address? (You can leave this blank if you want)" read AdminEmail @@ -274,7 +239,7 @@ echo \#define TBL_SUBDIR \"$CgiData/\" >> platform.h echo \#define ENCODINGS_AVAILABLE >> platform.h echo \#define ENCODINGS_VISIBLE >> platform.h echo \#include \"images.h\" >> platform.h -echo \#define UNICODE_URL \"$DefaultImgServer\" >> platform.h +echo \#define UNICODE_URL \"$ImgServer\" >> platform.h echo \#define UNICODE_EXTENSION \".gif\" >> platform.h echo \#define UNICODE_EXTRA_HTML \"BORDER=0\" >> platform.h echo \#define UNICODE_HEIGHT 18 >> platform.h @@ -311,7 +276,7 @@ fi # Print the URL if ! test "a$ImgServerYN" = an; then echo "You can get statistics about your image server from" - echo $DefaultImgServer + echo $ImgServer fi echo "You can test your installation by going to" echo http://$DomainName/$CgiOutside/$CgiName diff --git a/instring.c++ b/instring.c++ index 8b9099c..fe85842 100644 --- a/instring.c++ +++ b/instring.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) - -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. - -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. - -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/instring.h b/instring.h index f1f97b8..1f9a1e4 100644 --- a/instring.h +++ b/instring.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/jscript.c++ b/jscript.c++ index db5e163..2c5149a 100644 --- a/jscript.c++ +++ b/jscript.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/jscript.h b/jscript.h index 4222e6f..d1194b4 100644 --- a/jscript.h +++ b/jscript.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/lastupd.c++ b/lastupd.c++ index 8fae3a1..6e3a367 100644 --- a/lastupd.c++ +++ b/lastupd.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/lastupd.h b/lastupd.h index 637801f..3e1a66d 100644 --- a/lastupd.h +++ b/lastupd.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/linkfol.c++ b/linkfol.c++ index 92f8dac..bd1a1f8 100644 --- a/linkfol.c++ +++ b/linkfol.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/linkfol.h b/linkfol.h index 57a45dd..b3ca28c 100644 --- a/linkfol.h +++ b/linkfol.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/literals.h b/literals.h index 320106e..60825ff 100644 --- a/literals.h +++ b/literals.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/localusr.c++ b/localusr.c++ index 894df3b..81823c0 100644 --- a/localusr.c++ +++ b/localusr.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/localusr.h b/localusr.h index f0b7298..823c9bf 100644 --- a/localusr.h +++ b/localusr.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/main.c++ b/main.c++ index 2d4171d..20c9d4c 100644 --- a/main.c++ +++ b/main.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/makeform.c++ b/makeform.c++ index af13728..4014ed1 100644 --- a/makeform.c++ +++ b/makeform.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) - -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. - -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. - -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/makeform.h b/makeform.h index 6242c26..a298703 100644 --- a/makeform.h +++ b/makeform.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/mirror.c++ b/mirror.c++ index dd22f02..628fa1e 100644 --- a/mirror.c++ +++ b/mirror.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) - -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. - -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. - -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/mirror.h b/mirror.h index a7b5596..bb9e5b0 100644 --- a/mirror.h +++ b/mirror.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/mylynx.c++ b/mylynx.c++ index c825408..167a162 100644 --- a/mylynx.c++ +++ b/mylynx.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/mylynx.h b/mylynx.h index 1e3e216..173c20d 100644 --- a/mylynx.h +++ b/mylynx.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/options.h b/options.h index a192f28..1e9c036 100644 --- a/options.h +++ b/options.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) - -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. - -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. - -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/proxy.h b/proxy.h index d013d29..8dc096e 100644 --- a/proxy.h +++ b/proxy.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/prxyprob.c++ b/prxyprob.c++ index bcb82fa..2ad67a4 100644 --- a/prxyprob.c++ +++ b/prxyprob.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/prxyprob.h b/prxyprob.h index 107c652..7ee8aea 100644 --- a/prxyprob.h +++ b/prxyprob.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/rating.c++ b/rating.c++ index 0dc7c01..0e18e30 100644 --- a/rating.c++ +++ b/rating.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/rating.h b/rating.h index 6433d85..5827295 100644 --- a/rating.h +++ b/rating.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/sighdl.c++ b/sighdl.c++ index 1f63db1..43a30a1 100644 --- a/sighdl.c++ +++ b/sighdl.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/smileys.c++ b/smileys.c++ index 96bbb6b..d6df841 100644 --- a/smileys.c++ +++ b/smileys.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/strfunc.c++ b/strfunc.c++ index db606ea..b145f3e 100644 --- a/strfunc.c++ +++ b/strfunc.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/strfunc.h b/strfunc.h index c151531..272e2f5 100644 --- a/strfunc.h +++ b/strfunc.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/strtab.c++ b/strtab.c++ index 23787b6..05bd819 100644 --- a/strtab.c++ +++ b/strtab.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) - -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. - -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. - -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/strtab.h b/strtab.h index 620f7a1..84847ba 100644 --- a/strtab.h +++ b/strtab.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/subhtml.c++ b/subhtml.c++ index b309663..0a937a2 100644 --- a/subhtml.c++ +++ b/subhtml.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) - -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. - -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. - -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/subhtml.h b/subhtml.h index 783e4cb..808f2da 100644 --- a/subhtml.h +++ b/subhtml.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/subset.h b/subset.h index 14dba7b..8967a9e 100644 --- a/subset.h +++ b/subset.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/swf.c++ b/swf.c++ index 5d2654c..07a40ed 100644 --- a/swf.c++ +++ b/swf.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) - -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. - -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. - -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/swf.h b/swf.h index b22322f..ef7776f 100644 --- a/swf.h +++ b/swf.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/tabtrim.c++ b/tabtrim.c++ index 8d1017d..6a5c228 100644 --- a/tabtrim.c++ +++ b/tabtrim.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/tabtrim.h b/tabtrim.h index a87b9b2..00352ed 100644 --- a/tabtrim.h +++ b/tabtrim.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/tagstuff.c++ b/tagstuff.c++ index 3f16ca1..e6e26e0 100644 --- a/tagstuff.c++ +++ b/tagstuff.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) - -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. - -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. - -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/tagstuff.h b/tagstuff.h index 7d43f05..67c6753 100644 --- a/tagstuff.h +++ b/tagstuff.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/tecont.c++ b/tecont.c++ index e5616f8..5a87acd 100644 --- a/tecont.c++ +++ b/tecont.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/tecont.h b/tecont.h index 86a8f4c..7ea34d6 100644 --- a/tecont.h +++ b/tecont.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/tencode.c++ b/tencode.c++ index 35046e9..f83fe31 100644 --- a/tencode.c++ +++ b/tencode.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/tencode.h b/tencode.h index 841e818..d539c9a 100644 --- a/tencode.h +++ b/tencode.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/utf.c++ b/utf.c++ index 0323bdc..1dab2ca 100644 --- a/utf.c++ +++ b/utf.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/utf.h b/utf.h index 8da4a63..ef516ba 100644 --- a/utf.h +++ b/utf.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/version.h b/version.h index 20b72b1..b49aaa1 100644 --- a/version.h +++ b/version.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/webget.c++ b/webget.c++ index 6a9241e..2e83f40 100644 --- a/webget.c++ +++ b/webget.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) - -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. - -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. - -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/webget.h b/webget.h index 617da82..910933f 100644 --- a/webget.h +++ b/webget.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/welcome.c++ b/welcome.c++ index 80e0bb0..68c98a1 100644 --- a/welcome.c++ +++ b/welcome.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/welcome.h b/welcome.h index 7494dfa..28b9d1d 100644 --- a/welcome.h +++ b/welcome.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/xhtml.c++ b/xhtml.c++ index 1209b98..83b7e69 100644 --- a/xhtml.c++ +++ b/xhtml.c++ @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ diff --git a/xhtml.h b/xhtml.h index ff27910..f0eac51 100644 --- a/xhtml.h +++ b/xhtml.h @@ -1,43 +1,19 @@ /* Access Gateway - a mediator for the World Wide Web -(C) 1998-2006 Silas S. Brown (St John's College, -Cambridge, UK, http://www.cus.cam.ac.uk/~ssb22 ) +(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net -This is not intended to be model or example code, -but it is intended to be secure enough to run on a -Web server without compromising it. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -If you would like to email me a patch, please first -ensure that you have the latest release, and use -"diff -Naur old-directory new-directory", where -"old-directory" contains the unmodified release -version and "new-directory" contains the -modifications. Please also include a brief -description of what the patch achieves, your name -(for an acknowledgement), and any copyright -restrictions (ideally the patch should be public -domain). I may not apply every patch but I do try to -answer my email, unless I am inundated, busy, or -offline for a long time. + http://www.apache.org/licenses/LICENSE-2.0 -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; see the file -COPYING. If not, write to the Free Software Foundation, -Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ -- GitLab