PHPLIB-LICENSE
上传用户:xuanqunsh
上传日期:2007-01-04
资源大小:58k
文件大小:24k
源码类别:

WEB邮件程序

开发平台:

PHP

  1. GNU LIBRARY GENERAL PUBLIC LICENSE
  2. Version 2, June 1991
  3. Copyright (C) 1991 Free Software Foundation, Inc.
  4. 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
  5. Everyone is permitted to copy and distribute verbatim copies
  6. of this license document, but changing it is not allowed.
  7. [This is the first released version of the library GPL.  It is
  8.  numbered 2 because it goes with version 2 of the ordinary GPL.]
  9. Preamble
  10. The licenses for most software are designed to take away your freedom to
  11. share and change it. By contrast, the GNU General Public Licenses are
  12. intended to guarantee your freedom to share and change free software--to
  13. make sure the software is free for all its users.
  14. This license, the Library General Public License, applies to some specially
  15. designated Free Software Foundation software, and to any other libraries
  16. whose authors decide to use it. You can use it for your libraries, too.
  17. When we speak of free software, we are referring to freedom, not price. Our
  18. General Public Licenses are designed to make sure that you have the freedom
  19. to distribute copies of free software (and charge for this service if you
  20. wish), that you receive source code or can get it if you want it, that you
  21. can change the software or use pieces of it in new free programs; and that
  22. you know you can do these things.
  23. To protect your rights, we need to make restrictions that forbid anyone to
  24. deny you these rights or to ask you to surrender the rights. These
  25. restrictions translate to certain responsibilities for you if you
  26. distribute copies of the library, or if you modify it.
  27. For example, if you distribute copies of the library, whether gratis or for
  28. a fee, you must give the recipients all the rights that we gave you. You
  29. must make sure that they, too, receive or can get the source code. If you
  30. link a program with the library, you must provide complete object files to
  31. the recipients so that they can relink them with the library, after making
  32. changes to the library and recompiling it. And you must show them these
  33. terms so they know their rights.
  34. Our method of protecting your rights has two steps: (1) copyright the
  35. library, and (2) offer you this license which gives you legal permission to
  36. copy, distribute and/or modify the library.
  37. Also, for each distributor's protection, we want to make certain that
  38. everyone understands that there is no warranty for this free library. If
  39. the library is modified by someone else and passed on, we want its
  40. recipients to know that what they have is not the original version, so that
  41. any problems introduced by others will not reflect on the original authors'
  42. reputations.
  43. Finally, any free program is threatened constantly by software patents. We
  44. wish to avoid the danger that companies distributing free software will
  45. individually obtain patent licenses, thus in effect transforming the
  46. program into proprietary software. To prevent this, we have made it clear
  47. that any patent must be licensed for everyone's free use or not licensed at
  48. all.
  49. Most GNU software, including some libraries, is covered by the ordinary GNU
  50. General Public License, which was designed for utility programs. This
  51. license, the GNU Library General Public License, applies to certain
  52. designated libraries. This license is quite different from the ordinary
  53. one; be sure to read it in full, and don't assume that anything in it is
  54. the same as in the ordinary license.
  55. The reason we have a separate public license for some libraries is that
  56. they blur the distinction we usually make between modifying or adding to a
  57. program and simply using it. Linking a program with a library, without
  58. changing the library, is in some sense simply using the library, and is
  59. analogous to running a utility program or application program. However, in
  60. a textual and legal sense, the linked executable is a combined work, a
  61. derivative of the original library, and the ordinary General Public License
  62. treats it as such.
  63. Because of this blurred distinction, using the ordinary General Public
  64. License for libraries did not effectively promote software sharing, because
  65. most developers did not use the libraries. We concluded that weaker
  66. conditions might promote sharing better.
  67. However, unrestricted linking of non-free programs would deprive the users
  68. of those programs of all benefit from the free status of the libraries
  69. themselves. This Library General Public License is intended to permit
  70. developers of non-free programs to use free libraries, while preserving
  71. your freedom as a user of such programs to change the free libraries that
  72. are incorporated in them. (We have not seen how to achieve this as regards
  73. changes in header files, but we have achieved it as regards changes in the
  74. actual functions of the Library.) The hope is that this will lead to faster
  75. development of free libraries.
  76. The precise terms and conditions for copying, distribution and modification
  77. follow. Pay close attention to the difference between a "work based on the
  78. library" and a "work that uses the library". The former contains code
  79. derived from the library, while the latter only works together with the
  80. library.
  81. Note that it is possible for a library to be covered by the ordinary
  82. General Public License rather than by this special one.
  83. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  84. 0. This License Agreement applies to any software library which contains a
  85. notice placed by the copyright holder or other authorized party saying it
  86. may be distributed under the terms of this Library General Public License
  87. (also called "this License"). Each licensee is addressed as "you".
  88. A "library" means a collection of software functions and/or data prepared
  89. so as to be conveniently linked with application programs (which use some
  90. of those functions and data) to form executables.
  91. The "Library", below, refers to any such software library or work which has
  92. been distributed under these terms. A "work based on the Library" means
  93. either the Library or any derivative work under copyright law: that is to
  94. say, a work containing the Library or a portion of it, either verbatim or
  95. with modifications and/or translated straightforwardly into another
  96. language. (Hereinafter, translation is included without limitation in the
  97. term "modification".)
  98. "Source code" for a work means the preferred form of the work for making
  99. modifications to it. For a library, complete source code means all the
  100. source code for all modules it contains, plus any associated interface
  101. definition files, plus the scripts used to control compilation and
  102. installation of the library.
  103. Activities other than copying, distribution and modification are not
  104. covered by this License; they are outside its scope. The act of running a
  105. program using the Library is not restricted, and output from such a program
  106. is covered only if its contents constitute a work based on the Library
  107. (independent of the use of the Library in a tool for writing it). Whether
  108. that is true depends on what the Library does and what the program that
  109. uses the Library does.
  110. 1. You may copy and distribute verbatim copies of the Library's complete
  111. source code as you receive it, in any medium, provided that you
  112. conspicuously and appropriately publish on each copy an appropriate
  113. copyright notice and disclaimer of warranty; keep intact all the notices
  114. that refer to this License and to the absence of any warranty; and
  115. distribute a copy of this License along with the Library.
  116. You may charge a fee for the physical act of transferring a copy, and you
  117. may at your option offer warranty protection in exchange for a fee.
  118. 2. You may modify your copy or copies of the Library or any portion of it,
  119. thus forming a work based on the Library, and copy and distribute such
  120. modifications or work under the terms of Section 1 above, provided that you
  121. also meet all of these conditions:
  122.    * a) The modified work must itself be a software library.
  123.    * b) You must cause the files modified to carry prominent notices
  124.      stating that you changed the files and the date of any change.
  125.    * c) You must cause the whole of the work to be licensed at no charge to
  126.      all third parties under the terms of this License.
  127.    * d) If a facility in the modified Library refers to a function or a
  128.      table of data to be supplied by an application program that uses the
  129.      facility, other than as an argument passed when the facility is
  130.      invoked, then you must make a good faith effort to ensure that, in the
  131.      event an application does not supply such function or table, the
  132.      facility still operates, and performs whatever part of its purpose
  133.      remains meaningful. (For example, a function in a library to compute
  134.      square roots has a purpose that is entirely well-defined independent
  135.      of the application. Therefore, Subsection 2d requires that any
  136.      application-supplied function or table used by this function must be
  137.      optional: if the application does not supply it, the square root
  138.      function must still compute square roots.)
  139. These requirements apply to the modified work as a whole. If identifiable
  140. sections of that work are not derived from the Library, and can be
  141. reasonably considered independent and separate works in themselves, then
  142. this License, and its terms, do not apply to those sections when you
  143. distribute them as separate works. But when you distribute the same
  144. sections as part of a whole which is a work based on the Library, the
  145. distribution of the whole must be on the terms of this License, whose
  146. permissions for other licensees extend to the entire whole, and thus to
  147. each and every part regardless of who wrote it.
  148. Thus, it is not the intent of this section to claim rights or contest your
  149. rights to work written entirely by you; rather, the intent is to exercise
  150. the right to control the distribution of derivative or collective works
  151. based on the Library.
  152. In addition, mere aggregation of another work not based on the Library with
  153. the Library (or with a work based on the Library) on a volume of a storage
  154. or distribution medium does not bring the other work under the scope of
  155. this License.
  156. 3. You may opt to apply the terms of the ordinary GNU General Public
  157. License instead of this License to a given copy of the Library. To do this,
  158. you must alter all the notices that refer to this License, so that they
  159. refer to the ordinary GNU General Public License, version 2, instead of to
  160. this License. (If a newer version than version 2 of the ordinary GNU
  161. General Public License has appeared, then you can specify that version
  162. instead if you wish.) Do not make any other change in these notices.
  163. Once this change is made in a given copy, it is irreversible for that copy,
  164. so the ordinary GNU General Public License applies to all subsequent copies
  165. and derivative works made from that copy.
  166. This option is useful when you wish to copy part of the code of the Library
  167. into a program that is not a library.
  168. 4. You may copy and distribute the Library (or a portion or derivative of
  169. it, under Section 2) in object code or executable form under the terms of
  170. Sections 1 and 2 above provided that you accompany it with the complete
  171. corresponding machine-readable source code, which must be distributed under
  172. the terms of Sections 1 and 2 above on a medium customarily used for
  173. software interchange.
  174. If distribution of object code is made by offering access to copy from a
  175. designated place, then offering equivalent access to copy the source code
  176. from the same place satisfies the requirement to distribute the source
  177. code, even though third parties are not compelled to copy the source along
  178. with the object code.
  179. 5. A program that contains no derivative of any portion of the Library, but
  180. is designed to work with the Library by being compiled or linked with it,
  181. is called a "work that uses the Library". Such a work, in isolation, is not
  182. a derivative work of the Library, and therefore falls outside the scope of
  183. this License.
  184. However, linking a "work that uses the Library" with the Library creates an
  185. executable that is a derivative of the Library (because it contains
  186. portions of the Library), rather than a "work that uses the library". The
  187. executable is therefore covered by this License. Section 6 states terms for
  188. distribution of such executables.
  189. When a "work that uses the Library" uses material from a header file that
  190. is part of the Library, the object code for the work may be a derivative
  191. work of the Library even though the source code is not. Whether this is
  192. true is especially significant if the work can be linked without the
  193. Library, or if the work is itself a library. The threshold for this to be
  194. true is not precisely defined by law.
  195. If such an object file uses only numerical parameters, data structure
  196. layouts and accessors, and small macros and small inline functions (ten
  197. lines or less in length), then the use of the object file is unrestricted,
  198. regardless of whether it is legally a derivative work. (Executables
  199. containing this object code plus portions of the Library will still fall
  200. under Section 6.)
  201. Otherwise, if the work is a derivative of the Library, you may distribute
  202. the object code for the work under the terms of Section 6. Any executables
  203. containing that work also fall under Section 6, whether or not they are
  204. linked directly with the Library itself.
  205. 6. As an exception to the Sections above, you may also compile or link a
  206. "work that uses the Library" with the Library to produce a work containing
  207. portions of the Library, and distribute that work under terms of your
  208. choice, provided that the terms permit modification of the work for the
  209. customer's own use and reverse engineering for debugging such
  210. modifications.
  211. You must give prominent notice with each copy of the work that the Library
  212. is used in it and that the Library and its use are covered by this License.
  213. You must supply a copy of this License. If the work during execution
  214. displays copyright notices, you must include the copyright notice for the
  215. Library among them, as well as a reference directing the user to the copy
  216. of this License. Also, you must do one of these things:
  217.    * a) Accompany the work with the complete corresponding machine-readable
  218.      source code for the Library including whatever changes were used in
  219.      the work (which must be distributed under Sections 1 and 2 above);
  220.      and, if the work is an executable linked with the Library, with the
  221.      complete machine-readable "work that uses the Library", as object code
  222.      and/or source code, so that the user can modify the Library and then
  223.      relink to produce a modified executable containing the modified
  224.      Library. (It is understood that the user who changes the contents of
  225.      definitions files in the Library will not necessarily be able to
  226.      recompile the application to use the modified definitions.)
  227.    * b) Accompany the work with a written offer, valid for at least three
  228.      years, to give the same user the materials specified in Subsection 6a,
  229.      above, for a charge no more than the cost of performing this
  230.      distribution.
  231.    * c) If distribution of the work is made by offering access to copy from
  232.      a designated place, offer equivalent access to copy the above
  233.      specified materials from the same place.
  234.    * d) Verify that the user has already received a copy of these materials
  235.      or that you have already sent this user a copy.
  236. For an executable, the required form of the "work that uses the Library"
  237. must include any data and utility programs needed for reproducing the
  238. executable from it. However, as a special exception, the source code
  239. distributed need not include anything that is normally distributed (in
  240. either source or binary form) with the major components (compiler, kernel,
  241. and so on) of the operating system on which the executable runs, unless
  242. that component itself accompanies the executable.
  243. It may happen that this requirement contradicts the license restrictions of
  244. other proprietary libraries that do not normally accompany the operating
  245. system. Such a contradiction means you cannot use both them and the Library
  246. together in an executable that you distribute.
  247. 7. You may place library facilities that are a work based on the Library
  248. side-by-side in a single library together with other library facilities not
  249. covered by this License, and distribute such a combined library, provided
  250. that the separate distribution of the work based on the Library and of the
  251. other library facilities is otherwise permitted, and provided that you do
  252. these two things:
  253.    * a) Accompany the combined library with a copy of the same work based
  254.      on the Library, uncombined with any other library facilities. This
  255.      must be distributed under the terms of the Sections above.
  256.    * b) Give prominent notice with the combined library of the fact that
  257.      part of it is a work based on the Library, and explaining where to
  258.      find the accompanying uncombined form of the same work.
  259. 8. You may not copy, modify, sublicense, link with, or distribute the
  260. Library except as expressly provided under this License. Any attempt
  261. otherwise to copy, modify, sublicense, link with, or distribute the Library
  262. is void, and will automatically terminate your rights under this License.
  263. However, parties who have received copies, or rights, from you under this
  264. License will not have their licenses terminated so long as such parties
  265. remain in full compliance.
  266. 9. You are not required to accept this License, since you have not signed
  267. it. However, nothing else grants you permission to modify or distribute the
  268. Library or its derivative works. These actions are prohibited by law if you
  269. do not accept this License. Therefore, by modifying or distributing the
  270. Library (or any work based on the Library), you indicate your acceptance of
  271. this License to do so, and all its terms and conditions for copying,
  272. distributing or modifying the Library or works based on it.
  273. 10. Each time you redistribute the Library (or any work based on the
  274. Library), the recipient automatically receives a license from the original
  275. licensor to copy, distribute, link with or modify the Library subject to
  276. these terms and conditions. You may not impose any further restrictions on
  277. the recipients' exercise of the rights granted herein. You are not
  278. responsible for enforcing compliance by third parties to this License.
  279. 11. If, as a consequence of a court judgment or allegation of patent
  280. infringement or for any other reason (not limited to patent issues),
  281. conditions are imposed on you (whether by court order, agreement or
  282. otherwise) that contradict the conditions of this License, they do not
  283. excuse you from the conditions of this License. If you cannot distribute so
  284. as to satisfy simultaneously your obligations under this License and any
  285. other pertinent obligations, then as a consequence you may not distribute
  286. the Library at all. For example, if a patent license would not permit
  287. royalty-free redistribution of the Library by all those who receive copies
  288. directly or indirectly through you, then the only way you could satisfy
  289. both it and this License would be to refrain entirely from distribution of
  290. the Library.
  291. If any portion of this section is held invalid or unenforceable under any
  292. particular circumstance, the balance of the section is intended to apply,
  293. and the section as a whole is intended to apply in other circumstances.
  294. It is not the purpose of this section to induce you to infringe any patents
  295. or other property right claims or to contest validity of any such claims;
  296. this section has the sole purpose of protecting the integrity of the free
  297. software distribution system which is implemented by public license
  298. practices. Many people have made generous contributions to the wide range
  299. of software distributed through that system in reliance on consistent
  300. application of that system; it is up to the author/donor to decide if he or
  301. she is willing to distribute software through any other system and a
  302. licensee cannot impose that choice.
  303. This section is intended to make thoroughly clear what is believed to be a
  304. consequence of the rest of this License.
  305. 12. If the distribution and/or use of the Library is restricted in certain
  306. countries either by patents or by copyrighted interfaces, the original
  307. copyright holder who places the Library under this License may add an
  308. explicit geographical distribution limitation excluding those countries, so
  309. that distribution is permitted only in or among countries not thus
  310. excluded. In such case, this License incorporates the limitation as if
  311. written in the body of this License.
  312. 13. The Free Software Foundation may publish revised and/or new versions of
  313. the Library General Public License from time to time. Such new versions
  314. will be similar in spirit to the present version, but may differ in detail
  315. to address new problems or concerns.
  316. Each version is given a distinguishing version number. If the Library
  317. specifies a version number of this License which applies to it and "any
  318. later version", you have the option of following the terms and conditions
  319. either of that version or of any later version published by the Free
  320. Software Foundation. If the Library does not specify a license version
  321. number, you may choose any version ever published by the Free Software
  322. Foundation.
  323. 14. If you wish to incorporate parts of the Library into other free
  324. programs whose distribution conditions are incompatible with these, write
  325. to the author to ask for permission. For software which is copyrighted by
  326. the Free Software Foundation, write to the Free Software Foundation; we
  327. sometimes make exceptions for this. Our decision will be guided by the two
  328. goals of preserving the free status of all derivatives of our free software
  329. and of promoting the sharing and reuse of software generally.
  330. NO WARRANTY
  331. 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
  332. FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
  333. OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
  334. PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
  335. OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  336. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO
  337. THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY
  338. PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
  339. CORRECTION.
  340. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
  341. WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
  342. REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
  343. INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
  344. OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED
  345. TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
  346. YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER
  347. SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
  348. POSSIBILITY OF SUCH DAMAGES.
  349. END OF TERMS AND CONDITIONS
  350. How to Apply These Terms to Your New Libraries
  351. If you develop a new library, and you want it to be of the greatest
  352. possible use to the public, we recommend making it free software that
  353. everyone can redistribute and change. You can do so by permitting
  354. redistribution under these terms (or, alternatively, under the terms of the
  355. ordinary General Public License).
  356. To apply these terms, attach the following notices to the library. It is
  357. safest to attach them to the start of each source file to most effectively
  358. convey the exclusion of warranty; and each file should have at least the
  359. "copyright" line and a pointer to where the full notice is found.
  360. one line to give the library's name and an idea of what it does.
  361. Copyright (C) year  name of author
  362. This library is free software; you can redistribute it and/or
  363. modify it under the terms of the GNU Library General Public
  364. License as published by the Free Software Foundation; either
  365. version 2 of the License, or (at your option) any later version.
  366. This library is distributed in the hope that it will be useful,
  367. but WITHOUT ANY WARRANTY; without even the implied warranty of
  368. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  369. Library General Public License for more details.
  370. You should have received a copy of the GNU Library General Public
  371. License along with this library; if not, write to the
  372. Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  373. Boston, MA  02111-1307, USA.
  374. Also add information on how to contact you by electronic and paper mail.
  375. You should also get your employer (if you work as a programmer) or your
  376. school, if any, to sign a "copyright disclaimer" for the library, if
  377. necessary. Here is a sample; alter the names:
  378. Yoyodyne, Inc., hereby disclaims all copyright interest in
  379. the library `Frob' (a library for tweaking knobs) written
  380. by James Random Hacker.
  381. signature of Ty Coon, 1 April 1990
  382. Ty Coon, President of Vice