From: <wis...@us...> - 2012-01-02 08:54:42
|
Revision: 8627 http://xoops.svn.sourceforge.net/xoops/?rev=8627&view=rev Author: wishcraft Date: 2012-01-02 08:54:32 +0000 (Mon, 02 Jan 2012) Log Message: ----------- UITabs 1.04 - Complete Tabs & Item Solution with Smarty Template Customisable - XOOPS 2.5 Only Added Paths: ----------- XoopsModules/uitabs/releases/1.04/ XoopsModules/uitabs/releases/1.04/docs/ XoopsModules/uitabs/releases/1.04/docs/.htaccess XoopsModules/uitabs/releases/1.04/docs/licence.txt XoopsModules/uitabs/releases/1.04/htdocs/ XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/ XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/ XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/16/ XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/16/uitabs.items.list.png XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/16/uitabs.items.new.png XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/16/uitabs.tabs.list.png XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/16/uitabs.tabs.new.png XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/32/uitabs.items.list.png XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/32/uitabs.items.new.png XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/32/uitabs.tabs.list.png XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/32/uitabs.tabs.new.png XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/ XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Canvas.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Coordinate.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Exception.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Font/ XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Font/GDF.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Font/PS.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Font/TTF.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Image.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Mapper/ XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Mapper/BMP.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Mapper/GD.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Mapper/GD2.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Mapper/GIF.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Mapper/JPEG.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Mapper/PNG.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Mapper/TGA.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/MapperFactory.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Operation/ XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Operation/AddNoise.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Operation/ApplyConvolution.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Operation/ApplyFilter.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Operation/ApplyMask.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Operation/AsGrayscale.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Operation/AsNegative.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Operation/AutoCrop.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Operation/CopyChannelsPalette.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Operation/CopyChannelsTrueColor.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Operation/CorrectGamma.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Operation/Crop.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Operation/Flip.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Operation/GetMask.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Operation/Merge.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Operation/Mirror.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Operation/Resize.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Operation/ResizeCanvas.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Operation/Rotate.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Operation/RoundCorners.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Operation/Unsharp.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/OperationFactory.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/PaletteImage.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/TrueColorImage.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/WideImage.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/index.html XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/vendor/ XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/vendor/de77/ XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/vendor/de77/BMP.php XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/vendor/de77/TGA.php XoopsModules/uitabs/releases/1.04/htdocs/modules/ XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/ XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/admin/ XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/admin/header.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/admin/index.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/admin/index.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/admin/menu.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/blocks/ XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/blocks/index.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/blocks/uitabs_block_tabs.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/blocks/uitabs_tags.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/class/ XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/class/index.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/class/items.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/class/tabs.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/class/votes.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/docs/ XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/docs/changelog.txt XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/docs/credits.txt XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/docs/index.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/docs/install.txt XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/docs/lang_diff.txt XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/docs/licence.txt XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/docs/readme.txt XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/header.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/image.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/images/ XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/images/icons/ XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/images/icons/index.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/images/icons/items.list.png XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/images/icons/items.new.png XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/images/icons/tabs.list.png XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/images/icons/tabs.new.png XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/images/index.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/images/uitabs_slogo.png XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/include/ XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/include/formobjects.uitabs.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/include/forms.uitabs.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/include/formselectpackageid.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/include/formselectplayer.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/include/formselecttab.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/include/functions.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/include/index.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/include/uploader.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/index.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/js/ XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/js/blue.png XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/js/blue_panes.jpg XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/js/green.png XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/js/index.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/js/jquery.tools.min.js XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/language/ XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/language/english/ XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/language/english/admin.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/language/english/blocks.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/language/english/forms.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/language/english/help/ XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/language/english/help/help.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/language/english/help/index.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/language/english/index.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/language/english/main.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/language/english/modinfo.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/language/english/uitabs.css XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/language/index.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/list.tag.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/preloads/ XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/preloads/index.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/sql/ XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/sql/index.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/sql/mysql.sql XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/templates/ XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/templates/blocks/ XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/templates/blocks/index.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/templates/blocks/uitabs_block_tag_cloud.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/templates/blocks/uitabs_block_tag_top.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/templates/blocks/uitabs_blocks_tabs.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/templates/index.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/templates/uitabs_cpanel_items_edit.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/templates/uitabs_cpanel_items_list.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/templates/uitabs_cpanel_tabs_edit.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/templates/uitabs_cpanel_tabs_list.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/templates/uitabs_index.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/templates/uitabs_profile.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/templates/uitabs_tab.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/templates/uitabs_tabs.html XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/view.tag.php XoopsModules/uitabs/releases/1.04/htdocs/modules/uitabs/xoops_version.php XoopsModules/uitabs/releases/1.04/htdocs/uploads/ XoopsModules/uitabs/releases/1.04/htdocs/uploads/uitabs/ XoopsModules/uitabs/releases/1.04/htdocs/uploads/uitabs/watermark/ XoopsModules/uitabs/releases/1.04/htdocs/uploads/uitabs/watermark/default.png Added: XoopsModules/uitabs/releases/1.04/docs/.htaccess =================================================================== --- XoopsModules/uitabs/releases/1.04/docs/.htaccess (rev 0) +++ XoopsModules/uitabs/releases/1.04/docs/.htaccess 2012-01-02 08:54:32 UTC (rev 8627) @@ -0,0 +1,7 @@ +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d + +RewriteRule ^tabs/(.*?)/(.*?),(.*?).html$ modules/uitabs/index.php?op=$2&id=$3 +RewriteRule ^tabs/(.*?).html$ modules/uitabs/index.php?op=$1 +RewriteRule ^tabs/$ modules/webcams/index.php?op=tabs Added: XoopsModules/uitabs/releases/1.04/docs/licence.txt =================================================================== --- XoopsModules/uitabs/releases/1.04/docs/licence.txt (rev 0) +++ XoopsModules/uitabs/releases/1.04/docs/licence.txt 2012-01-02 08:54:32 UTC (rev 8627) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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 Lesser 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) <year> <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., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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) year 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 Lesser General +Public License instead of this License. Added: XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/16/uitabs.items.list.png =================================================================== (Binary files differ) Property changes on: XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/16/uitabs.items.list.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/16/uitabs.items.new.png =================================================================== (Binary files differ) Property changes on: XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/16/uitabs.items.new.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/16/uitabs.tabs.list.png =================================================================== (Binary files differ) Property changes on: XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/16/uitabs.tabs.list.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/16/uitabs.tabs.new.png =================================================================== (Binary files differ) Property changes on: XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/16/uitabs.tabs.new.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/32/uitabs.items.list.png =================================================================== (Binary files differ) Property changes on: XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/32/uitabs.items.list.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/32/uitabs.items.new.png =================================================================== (Binary files differ) Property changes on: XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/32/uitabs.items.new.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/32/uitabs.tabs.list.png =================================================================== (Binary files differ) Property changes on: XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/32/uitabs.tabs.list.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/32/uitabs.tabs.new.png =================================================================== (Binary files differ) Property changes on: XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/moduleclasses/icons/32/uitabs.tabs.new.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Canvas.php =================================================================== --- XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Canvas.php (rev 0) +++ XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Canvas.php 2012-01-02 08:54:32 UTC (rev 8627) @@ -0,0 +1,167 @@ +<?php + /** + * @author Gasper Kozak + * @copyright 2007-2011 + + This file is part of WideImage. + + WideImage is free software; you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or + (at your option) any later version. + + WideImage 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 Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with WideImage; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + * @package WideImage + **/ + + /** + * @package Exceptions + */ + class WideImage_NoFontException extends WideImage_Exception {} + + /** + * @package Exceptions + */ + class WideImage_InvalidFontFileException extends WideImage_Exception {} + + /** + * @package Exceptions + */ + class WideImage_InvalidCanvasMethodException extends WideImage_Exception {} + + /** + * @package WideImage + */ + class WideImage_Canvas + { + protected $handle = 0; + protected $image = null; + protected $font = null; + + /** + * Creates a canvas object that writes to the image passed as a parameter + * + * Shouldn't be used directly, use WideImage_Image::getCanvas() instead. + * + * @param WideImage_Image $img Image object + */ + function __construct($img) + { + $this->handle = $img->getHandle(); + $this->image = $img; + } + + /** + * Sets the active font. Can be an instance of + * WideImage_Font_TTF, WideImage_Font_PS, or WideImage_Font_GDF. + * + * + * + * + * @param object $font Font object to set for writeText() + */ + function setFont($font) + { + $this->font = $font; + } + + /** + * Creates and sets the current font + * + * The supported font types are: TTF/OTF, PS, and GDF. + * Font type is detected from the extension. If the $file parameter doesn't have an extension, TTF font is presumed. + * + * Note: not all parameters are supported by all fonts. + * + * @param string $file Font file name (string) + * @param int $size Font size (supported for TTF/OTF and PS fonts, ignored for GDF) + * @param int $color Text color + * @param int $bgcolor Background color (supported only for PS font, ignored for TTF and PS) + * @return mixed One of the WideImage_Font_* objects + */ + function useFont($file, $size = 12, $color = 0, $bgcolor = null) + { + $p = strrpos($file, '.'); + if ($p === false || $p < strlen($file) - 4) + $ext = 'ttf'; + else + $ext = strtolower(substr($file, $p + 1)); + + if ($ext == 'ttf' || $ext == 'otf') + $font = new WideImage_Font_TTF($file, $size, $color); + elseif ($ext == 'ps') + $font = new WideImage_Font_PS($file, $size, $color, $bgcolor); + elseif ($ext == 'gdf') + $font = new WideImage_Font_GDF($file, $color); + else + throw new WideImage_InvalidFontFileException("'$file' appears to be an invalid font file."); + + $this->setFont($font); + return $font; + } + + /** + * Write text on the image at specified position + * + * You must set a font with a call to WideImage_Canvas::setFont() prior to writing text to the image. + * + * Smart coordinates are supported for $x and $y arguments, but currently only for TTF/OTF fonts. + * + * Example: + * <code> + * $img = WideImage::load('pic.jpg'); + * $canvas = $img->getCanvas(); + * $canvas->useFont('Verdana.ttf', 16, $img->allocateColor(255, 0, 0)); + * $canvas->writeText('right', 'bottom', 'www.website.com'); + * </code> + * + * @param int $x Left + * @param int $y Top + * @param string $text Text to write + * @param int $angle The angle, defaults to 0 + */ + function writeText($x, $y, $text, $angle = 0) + { + if ($this->font === null) + throw new WideImage_NoFontException("Can't write text without a font."); + + $angle = - floatval($angle); + if ($angle < 0) + $angle = 360 + $angle; + $angle = $angle % 360; + + $this->font->writeText($this->image, $x, $y, $text, $angle); + } + + /** + * A magic method that allows you to call any PHP function that starts with "image". + * + * This is a shortcut to call custom functions on the image handle. + * + * Example: + * <code> + * $img = WideImage::load('pic.jpg'); + * $canvas = $img->getCanvas(); + * $canvas->filledRect(10, 10, 20, 30, $img->allocateColor(0, 0, 0)); + * $canvas->line(60, 80, 30, 100, $img->allocateColor(255, 0, 0)); + * </code> + */ + function __call($method, $params) + { + if (function_exists('image' . $method)) + { + array_unshift($params, $this->handle); + call_user_func_array('image' . $method, $params); + } + else + throw new WideImage_InvalidCanvasMethodException("Function doesn't exist: image{$method}."); + } + } Added: XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Coordinate.php =================================================================== --- XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Coordinate.php (rev 0) +++ XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Coordinate.php 2012-01-02 08:54:32 UTC (rev 8627) @@ -0,0 +1,208 @@ +<?php + /** + * @author Gasper Kozak + * @copyright 2007-2011 + + This file is part of WideImage. + + WideImage is free software; you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or + (at your option) any later version. + + WideImage 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 Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with WideImage; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + * @package Internals + **/ + + + /** + * @package Exceptions + */ + class WideImage_InvalidCoordinateException extends WideImage_Exception {} + + /** + * A utility class for smart coordinates + * + * @package Internals + **/ + class WideImage_Coordinate + { + static protected $coord_align = array("left", "center", "right", "top", "middle", "bottom"); + static protected $coord_numeric = array("[0-9]+", "[0-9]+\.[0-9]+", "[0-9]+%", "[0-9]+\.[0-9]+%"); + + /** + * Parses a numeric or string representation of a corrdinate into a structure + * + * @param string $coord Smart coordinate + * @return array Parsed smart coordinate + */ + static function parse($c) + { + $tokens = array(); + $operators = array('+', '-'); + + $flush_operand = false; + $flush_operator = false; + $current_operand = ''; + $current_operator = ''; + $coordinate = strval($c); + $expr_len = strlen($coordinate); + + for ($i = 0; $i < $expr_len; $i++) + { + $char = $coordinate[$i]; + + if (in_array($char, $operators)) + { + $flush_operand = true; + $flush_operator = true; + $current_operator = $char; + } + else + { + $current_operand .= $char; + if ($i == $expr_len - 1) + $flush_operand = true; + } + + if ($flush_operand) + { + if (trim($current_operand) != '') + $tokens[] = array('type' => 'operand', 'value' => trim($current_operand)); + + $current_operand = ''; + $flush_operand = false; + } + + if ($flush_operator) + { + $tokens[] = array('type' => 'operator', 'value' => $char); + $flush_operator = false; + } + } + return $tokens; + } + + /** + * Evaluates the $coord relatively to $dim + * + * @param string $coord A numeric value or percent string + * @param int $dim Dimension + * @param int $sec_dim Secondary dimension (for align) + * @return int Calculated value + */ + static function evaluate($coord, $dim, $sec_dim = null) + { + $comp_regex = implode('|', self::$coord_align) . '|' . implode('|', self::$coord_numeric); + if (preg_match("/^([+-])?({$comp_regex})$/", $coord, $matches)) + { + $sign = intval($matches[1] . "1"); + $val = $matches[2]; + if (in_array($val, self::$coord_align)) + { + if ($sec_dim === null) + { + switch ($val) + { + case 'left': + case 'top': + return 0; + break; + case 'center': + case 'middle': + return $sign * intval($dim / 2); + break; + case 'right': + case 'bottom': + return $sign * $dim; + break; + default: + return null; + } + } + else + { + switch ($val) + { + case 'left': + case 'top': + return 0; + break; + case 'center': + case 'middle': + return $sign * intval($dim / 2 - $sec_dim / 2); + break; + case 'right': + case 'bottom': + return $sign * ($dim - $sec_dim); + break; + default: + return null; + } + } + } + elseif (substr($val, -1) === '%') + return intval(round($sign * $dim * floatval(str_replace('%', '', $val)) / 100)); + else + return $sign * intval(round($val)); + } + } + + /** + * Calculates and fixes a smart coordinate into a numeric value + * + * @param mixed $value Smart coordinate, relative to $dim + * @param int $dim Coordinate to which $value is relative + * @param int $sec_dim Secondary dimension (for align) + * @return int Calculated value + */ + static function fix($value, $dim, $sec_dim = null) + { + $coord_tokens = self::parse($value); + + if (count($coord_tokens) == 0 || $coord_tokens[count($coord_tokens) - 1]['type'] != 'operand') + throw new WideImage_InvalidCoordinateException("Couldn't parse coordinate '$value' properly."); + + $value = 0; + $operation = 1; + foreach ($coord_tokens as $token) + { + if ($token['type'] == 'operand') + { + $operand_value = self::evaluate($token['value'], $dim, $sec_dim); + if ($operation == 1) + $value = $value + $operand_value; + elseif ($operation == -1) + $value = $value - $operand_value; + else + throw new WideImage_InvalidCoordinateException("Invalid coordinate syntax."); + + $operation = 0; + } + elseif ($token['type'] == 'operator') + { + if ($token['value'] == '-') + { + if ($operation == 0) + $operation = -1; + else + $operation = $operation * -1; + } + elseif ($token['value'] == '+') + { + if ($operation == 0) + $operation = '1'; + } + } + } + return $value; + } + } Added: XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Exception.php =================================================================== --- XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Exception.php (rev 0) +++ XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Exception.php 2012-01-02 08:54:32 UTC (rev 8627) @@ -0,0 +1,31 @@ +<?php + /** + * @author Gasper Kozak + * @copyright 2007-2011 + + This file is part of WideImage. + + WideImage is free software; you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or + (at your option) any later version. + + WideImage 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 Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with WideImage; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + * @package WideImage + **/ + + /** + * Base Exception class + * + * @package Exceptions + **/ + class WideImage_Exception extends RuntimeException {} + \ No newline at end of file Added: XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Font/GDF.php =================================================================== --- XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Font/GDF.php (rev 0) +++ XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Font/GDF.php 2012-01-02 08:54:32 UTC (rev 8627) @@ -0,0 +1,48 @@ +<?php + /** + * @author Gasper Kozak + * @copyright 2007-2011 + + This file is part of WideImage. + + WideImage is free software; you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or + (at your option) any later version. + + WideImage 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 Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with WideImage; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + * @package WideImage + **/ + + /** + * GDF font support class + * + * @package WideImage + */ + class WideImage_Font_GDF + { + protected $font; + protected $color; + + function __construct($face, $color) + { + if (is_int($face) && $face >= 1 && $face <= 5) + $this->font = $face; + else + $this->font = imageloadfont($face); + $this->color = $color; + } + + function writeText($image, $x, $y, $text) + { + imagestring($image->getHandle(), $this->font, $x, $y, $text, $this->color); + } + } Added: XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Font/PS.php =================================================================== --- XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Font/PS.php (rev 0) +++ XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Font/PS.php 2012-01-02 08:54:32 UTC (rev 8627) @@ -0,0 +1,60 @@ +<?php + /** + * @author Gasper Kozak + * @copyright 2007-2011 + + This file is part of WideImage. + + WideImage is free software; you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or + (at your option) any later version. + + WideImage 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 Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with WideImage; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + * @package WideImage + **/ + + /** + * PS font support class + * + * @package WideImage + */ + class WideImage_Font_PS + { + public $size; + public $color; + public $handle; + + function __construct($file, $size, $color, $bgcolor = null) + { + $this->handle = imagepsloadfont($file); + $this->size = $size; + $this->color = $color; + if ($bgcolor === null) + $this->bgcolor = $color; + else + $this->color = $color; + } + + function writeText($image, $x, $y, $text, $angle = 0) + { + if ($image->isTrueColor()) + $image->alphaBlending(true); + + imagepstext($image->getHandle(), $text, $this->handle, $this->size, $this->color, $this->bgcolor, $x, $y, 0, 0, $angle, 4); + } + + function __destruct() + { + imagepsfreefont($this->handle); + $this->handle = null; + } + } Added: XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Font/TTF.php =================================================================== --- XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Font/TTF.php (rev 0) +++ XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Font/TTF.php 2012-01-02 08:54:32 UTC (rev 8627) @@ -0,0 +1,75 @@ +<?php + /** + * @author Gasper Kozak + * @copyright 2007-2011 + + This file is part of WideImage. + + WideImage is free software; you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or + (at your option) any later version. + + WideImage 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 Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with WideImage; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + * @package WideImage + **/ + + /** + * TTF font support class + * + * @package WideImage + */ + class WideImage_Font_TTF + { + public $face; + public $size; + public $color; + + function __construct($face, $size, $color) + { + $this->face = $face; + $this->size = $size; + $this->color = $color; + } + + /** + * Writes text onto an image + * + * @param WideImage_Image $image + * @param mixed $x smart coordinate + * @param mixed $y smart coordinate + * @param string $text + * @param int $angle Angle in degrees clockwise + */ + function writeText($image, $x, $y, $text, $angle = 0) + { + if ($image->isTrueColor()) + $image->alphaBlending(true); + + $box = imageftbbox($this->size, $angle, $this->face, $text); + $obox = array( + 'left' => min($box[0], $box[2], $box[4], $box[6]), + 'top' => min($box[1], $box[3], $box[5], $box[7]), + 'right' => max($box[0], $box[2], $box[4], $box[6]) - 1, + 'bottom' => max($box[1], $box[3], $box[5], $box[7]) - 1 + ); + $obox['width'] = abs($obox['left']) + abs($obox['right']); + $obox['height'] = abs($obox['top']) + abs($obox['bottom']); + + $x = WideImage_Coordinate::fix($x, $image->getWidth(), $obox['width']); + $y = WideImage_Coordinate::fix($y, $image->getHeight(), $obox['height']); + + $fixed_x = $x - $obox['left']; + $fixed_y = $y - $obox['top']; + + imagettftext($image->getHandle(), $this->size, $angle, $fixed_x, $fixed_y, $this->color, $this->face, $text); + } + } Added: XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Image.php =================================================================== --- XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Image.php (rev 0) +++ XoopsModules/uitabs/releases/1.04/htdocs/Frameworks/wideimage/Image.php 2012-01-02 08:54:32 UTC (rev 8627) @@ -0,0 +1,964 @@ +<?php + /** + * @author Gasper Kozak + * @copyright 2007-2011 + + This file is part of WideImage. + + WideImage is free software; you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or + (at your option) any later version. + + WideImage 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 Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with WideImage; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + * @package WideImage + **/ + + /** + * Thrown when an invalid dimension is passed for some operations + * + * @package Exceptions + */ + class WideImage_InvalidImageDimensionException extends WideImage_Exception {} + + /** + * Thrown when an image can't be saved (returns false by the mapper) + * + * @package Exceptions + */ + class WideImage_UnknownErrorWhileMappingException extends WideImage_Exception {} + + /** + * Base class for images + * + * @package WideImage + */ + abstract class WideImage_Image + { + /** + * Holds the image resource + * @var resource + */ + protected $handle = null; + + /** + * Flag that determines if WideImage should call imagedestroy() upon object destruction + * @var bool + */ + protected $handleReleased = false; + + /** + * Canvas object + * @var WideImage_Canvas + */ + protected $canvas = null; + + /** + * @var string + */ + protected $sdata = null; + + /** + * The base class constructor + * + * @param resource $handle Image handle (GD2 resource) + */ + function __construct($handle) + { + WideImage::assertValidImageHandle($handle); + $this->handle = $handle; + } + + /** + * Cleanup + * + * Destroys the handle via WideImage_Image::destroy() when called by the GC. + */ + function __destruct() + { + $this->destroy(); + } + + /** + * This method destroy the image handle, and releases the image resource. + * + * After this is called, the object doesn't hold a valid image any more. + * No operation should be called after that. + */ + function destroy() + { + if ($this->isValid() && !$this->handleReleased) + imagedestroy($this->handle); + + $this->handle = null; + } + + /** + * Returns the GD image resource + * + * @return resource GD image resource + */ + function getHandle() + { + return $this->handle; + } + + /** + * @return bool True, if the image object holds a valid GD image, false otherwise + */ + function isValid() + { + return WideImage::isValidImageHandle($this->handle); + } + + /** + * Releases the handle + */ + function releaseHandle() + { + $this->handleReleased = true; + } + + /** + * Saves an image to a file + * + * The file type is recognized from the $uri. If you save to a GIF8, truecolor images + * are automatically converted to palette. + * + * This method supports additional parameters: quality (for jpeg images) and + * compression quality and filters (for png images). See http://www.php.net/imagejpeg and + * http://www.php.net/imagepng for details. + * + * Examples: + * <code> + * // save to a GIF + * $image->saveToFile('image.gif'); + * + * // save to a PNG with compression=7 and no filters + * $image->saveToFile('image.png', 7, PNG_NO_FILTER); + * + * // save to a JPEG with quality=80 + * $image->saveToFile('image.jpg', 80); + * + * // save to a JPEG with default quality=100 + * $image->saveToFile('image.jpg'); + * </code> + * + * @param string $uri File location + */ + function saveToFile($uri) + { + $mapper = WideImage_MapperFactory::selectMapper($uri, null); + $args = func_get_args(); + array_unshift($args, $this->getHandle()); + $res = call_user_func_array(array($mapper, 'save'), $args); + if (!$res) + throw new WideImage_UnknownErrorWhileMappingException(get_class($mapper) . " returned an invalid result while saving to $uri"); + } + + /** + * Returns binary string with image data in format specified by $format + * + * Additional parameters may be passed to the function. See WideImage_Image::saveToFile() for more details. + * + * @param string $format The format of the image + * @return string The binary image data in specified format + */ + function asString($format) + { + ob_start(); + $args = func_get_args(); + $args[0] = null; + array_unshift($args, $this->getHandle()); + + $mapper = WideImage_MapperFactory::selectMapper(null, $format); + $res = call_user_func_array(array($mapper, 'save'), $args); + if (!$... [truncated message content] |