From: <wis...@us...> - 2017-08-09 23:25:46
|
Revision: 13269 http://sourceforge.net/p/xoops/svn/13269 Author: wishcraft Date: 2017-08-09 23:25:39 +0000 (Wed, 09 Aug 2017) Log Message: ----------- Web Font Converter + TCPDF Converter for XOOPS + Ubuntu/Debian! Added Paths: ----------- XoopsModules/convert/ XoopsModules/convert/releases/ XoopsModules/convert/releases/6.66/ XoopsModules/convert/releases/6.66/LICENSE XoopsModules/convert/releases/6.66/README.md XoopsModules/convert/releases/6.66/modules/ XoopsModules/convert/releases/6.66/modules/convert/ XoopsModules/convert/releases/6.66/modules/convert/.htaccess XoopsModules/convert/releases/6.66/modules/convert/ACADEMIC XoopsModules/convert/releases/6.66/modules/convert/LICENSE XoopsModules/convert/releases/6.66/modules/convert/admin/ XoopsModules/convert/releases/6.66/modules/convert/admin/about.php XoopsModules/convert/releases/6.66/modules/convert/admin/fonts.php XoopsModules/convert/releases/6.66/modules/convert/admin/footer.php XoopsModules/convert/releases/6.66/modules/convert/admin/header.php XoopsModules/convert/releases/6.66/modules/convert/admin/index.php XoopsModules/convert/releases/6.66/modules/convert/admin/menu.php XoopsModules/convert/releases/6.66/modules/convert/callback/ XoopsModules/convert/releases/6.66/modules/convert/callback/.htaccess XoopsModules/convert/releases/6.66/modules/convert/callback.php XoopsModules/convert/releases/6.66/modules/convert/class/ XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/ XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Adobe_Font_Metrics.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Autoloader.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Binary_Stream.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/EOT/ XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/EOT/File.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/EOT/Header.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Encoding_Map.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Font.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Glyph/ XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Glyph/Outline.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Glyph/Outline_Component.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Glyph/Outline_Composite.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Glyph/Outline_Simple.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Header.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/OpenType/ XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/OpenType/File.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/OpenType/Table_Directory_Entry.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Table/ XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Table/Directory_Entry.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Table/Table.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Table/Type/ XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Table/Type/cmap.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Table/Type/glyf.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Table/Type/head.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Table/Type/hhea.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Table/Type/hmtx.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Table/Type/kern.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Table/Type/loca.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Table/Type/maxp.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Table/Type/name.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Table/Type/name_Record.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Table/Type/os2.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/Table/Type/post.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/TrueType/ XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/TrueType/Collection.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/TrueType/File.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/TrueType/Header.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/TrueType/Table_Directory_Entry.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/WOFF/ XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/WOFF/File.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/WOFF/Header.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/WOFF/Table_Directory_Entry.php XoopsModules/convert/releases/6.66/modules/convert/class/FontLib/index.html XoopsModules/convert/releases/6.66/modules/convert/class/TwitterAPIExchange.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/ XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Canvas.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Coordinate.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Exception.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Font/ XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Font/GDF.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Font/PS.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Font/TTF.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Image.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Mapper/ XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Mapper/BMP.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Mapper/GD.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Mapper/GD2.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Mapper/GIF.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Mapper/JPEG.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Mapper/PNG.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Mapper/TGA.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/MapperFactory.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Operation/ XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Operation/AddNoise.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Operation/ApplyConvolution.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Operation/ApplyFilter.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Operation/ApplyMask.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Operation/AsGrayscale.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Operation/AsNegative.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Operation/AutoCrop.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Operation/CopyChannelsPalette.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Operation/CopyChannelsTrueColor.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Operation/CorrectGamma.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Operation/Crop.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Operation/Flip.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Operation/GetMask.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Operation/Merge.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Operation/Mirror.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Operation/Resize.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Operation/ResizeCanvas.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Operation/Rotate.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Operation/RoundCorners.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/Operation/Unsharp.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/OperationFactory.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/PaletteImage.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/README XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/TrueColorImage.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/VERSION XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/WideImage.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/gpl.txt XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/index.html XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/lgpl.txt XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/vendor/ XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/vendor/de77/ XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/vendor/de77/BMP.php XoopsModules/convert/releases/6.66/modules/convert/class/WideImage/vendor/de77/TGA.php XoopsModules/convert/releases/6.66/modules/convert/class/barcode/ XoopsModules/convert/releases/6.66/modules/convert/class/barcode/BarcodeGenerator.php XoopsModules/convert/releases/6.66/modules/convert/class/barcode/BarcodeGeneratorHTML.php XoopsModules/convert/releases/6.66/modules/convert/class/barcode/BarcodeGeneratorJPG.php XoopsModules/convert/releases/6.66/modules/convert/class/barcode/BarcodeGeneratorPNG.php XoopsModules/convert/releases/6.66/modules/convert/class/barcode/BarcodeGeneratorSVG.php XoopsModules/convert/releases/6.66/modules/convert/class/barcode/index.html XoopsModules/convert/releases/6.66/modules/convert/class/files.php XoopsModules/convert/releases/6.66/modules/convert/class/fonts.php XoopsModules/convert/releases/6.66/modules/convert/class/glyphs.php XoopsModules/convert/releases/6.66/modules/convert/class/index.html XoopsModules/convert/releases/6.66/modules/convert/class/objects.php XoopsModules/convert/releases/6.66/modules/convert/class/uploads.php XoopsModules/convert/releases/6.66/modules/convert/class/xcp/ XoopsModules/convert/releases/6.66/modules/convert/class/xcp/XCP-Logo.eps XoopsModules/convert/releases/6.66/modules/convert/class/xcp/XCP-Logo.png XoopsModules/convert/releases/6.66/modules/convert/class/xcp/XCP-Logo.psd XoopsModules/convert/releases/6.66/modules/convert/class/xcp/XCP-Logo.xcf XoopsModules/convert/releases/6.66/modules/convert/class/xcp/class/ XoopsModules/convert/releases/6.66/modules/convert/class/xcp/class/xcp.base.php XoopsModules/convert/releases/6.66/modules/convert/class/xcp/class/xcp.class.php XoopsModules/convert/releases/6.66/modules/convert/class/xcp/class/xcp.enumerator.php XoopsModules/convert/releases/6.66/modules/convert/class/xcp/class/xcp.leaver.php XoopsModules/convert/releases/6.66/modules/convert/class/xcp/debug_base.php XoopsModules/convert/releases/6.66/modules/convert/class/xcp/debug_enumerator.php XoopsModules/convert/releases/6.66/modules/convert/class/xcp/debug_leaver.php XoopsModules/convert/releases/6.66/modules/convert/class/xcp/index.php XoopsModules/convert/releases/6.66/modules/convert/css/ XoopsModules/convert/releases/6.66/modules/convert/css/.htaccess XoopsModules/convert/releases/6.66/modules/convert/css/font/ XoopsModules/convert/releases/6.66/modules/convert/css/font/.htaccess XoopsModules/convert/releases/6.66/modules/convert/css-font.php XoopsModules/convert/releases/6.66/modules/convert/css.php XoopsModules/convert/releases/6.66/modules/convert/download/ XoopsModules/convert/releases/6.66/modules/convert/download/.htaccess XoopsModules/convert/releases/6.66/modules/convert/download.php XoopsModules/convert/releases/6.66/modules/convert/font/ XoopsModules/convert/releases/6.66/modules/convert/font/.htaccess XoopsModules/convert/releases/6.66/modules/convert/font.php XoopsModules/convert/releases/6.66/modules/convert/glyph/ XoopsModules/convert/releases/6.66/modules/convert/glyph/.htaccess XoopsModules/convert/releases/6.66/modules/convert/glyph.php XoopsModules/convert/releases/6.66/modules/convert/header.php XoopsModules/convert/releases/6.66/modules/convert/history.php XoopsModules/convert/releases/6.66/modules/convert/images/ XoopsModules/convert/releases/6.66/modules/convert/images/font-glyph.png XoopsModules/convert/releases/6.66/modules/convert/images/font-preview-extra.png XoopsModules/convert/releases/6.66/modules/convert/images/font-preview.png XoopsModules/convert/releases/6.66/modules/convert/images/font-title-extra.png XoopsModules/convert/releases/6.66/modules/convert/images/font-title-large.png XoopsModules/convert/releases/6.66/modules/convert/images/font-title-medium.png XoopsModules/convert/releases/6.66/modules/convert/images/font-title-small.png XoopsModules/convert/releases/6.66/modules/convert/images/index.html XoopsModules/convert/releases/6.66/modules/convert/images/modlogo.png XoopsModules/convert/releases/6.66/modules/convert/include/ XoopsModules/convert/releases/6.66/modules/convert/include/data/ XoopsModules/convert/releases/6.66/modules/convert/include/data/ACADEMIC XoopsModules/convert/releases/6.66/modules/convert/include/data/EOT-HEADER XoopsModules/convert/releases/6.66/modules/convert/include/data/LICENSE XoopsModules/convert/releases/6.66/modules/convert/include/data/convert-fonts-distribution.pe XoopsModules/convert/releases/6.66/modules/convert/include/data/convert-fonts-licensing.pe XoopsModules/convert/releases/6.66/modules/convert/include/data/default-useragent-v1.diz XoopsModules/convert/releases/6.66/modules/convert/include/data/default-useragent-v2.diz XoopsModules/convert/releases/6.66/modules/convert/include/data/enc/ XoopsModules/convert/releases/6.66/modules/convert/include/data/enc/cp1250.map XoopsModules/convert/releases/6.66/modules/convert/include/data/enc/cp1251.map XoopsModules/convert/releases/6.66/modules/convert/include/data/enc/cp1252.map XoopsModules/convert/releases/6.66/modules/convert/include/data/enc/cp1253.map XoopsModules/convert/releases/6.66/modules/convert/include/data/enc/cp1254.map XoopsModules/convert/releases/6.66/modules/convert/include/data/enc/cp1255.map XoopsModules/convert/releases/6.66/modules/convert/include/data/enc/cp1257.map XoopsModules/convert/releases/6.66/modules/convert/include/data/enc/cp1258.map XoopsModules/convert/releases/6.66/modules/convert/include/data/enc/cp874.map XoopsModules/convert/releases/6.66/modules/convert/include/data/enc/iso-8859-1.map XoopsModules/convert/releases/6.66/modules/convert/include/data/enc/iso-8859-11.map XoopsModules/convert/releases/6.66/modules/convert/include/data/enc/iso-8859-15.map XoopsModules/convert/releases/6.66/modules/convert/include/data/enc/iso-8859-16.map XoopsModules/convert/releases/6.66/modules/convert/include/data/enc/iso-8859-2.map XoopsModules/convert/releases/6.66/modules/convert/include/data/enc/iso-8859-4.map XoopsModules/convert/releases/6.66/modules/convert/include/data/enc/iso-8859-5.map XoopsModules/convert/releases/6.66/modules/convert/include/data/enc/iso-8859-7.map XoopsModules/convert/releases/6.66/modules/convert/include/data/enc/iso-8859-9.map XoopsModules/convert/releases/6.66/modules/convert/include/data/enc/koi8-r.map XoopsModules/convert/releases/6.66/modules/convert/include/data/enc/koi8-u.map XoopsModules/convert/releases/6.66/modules/convert/include/data/file.diz XoopsModules/convert/releases/6.66/modules/convert/include/data/font-extensions.diz XoopsModules/convert/releases/6.66/modules/convert/include/data/font-formats.diz XoopsModules/convert/releases/6.66/modules/convert/include/data/index.html XoopsModules/convert/releases/6.66/modules/convert/include/data/mimetypes.diz XoopsModules/convert/releases/6.66/modules/convert/include/data/packs-archiving.diz XoopsModules/convert/releases/6.66/modules/convert/include/data/packs-stamping.diz XoopsModules/convert/releases/6.66/modules/convert/include/data/preview-texts.diz XoopsModules/convert/releases/6.66/modules/convert/include/data/titles.ttf XoopsModules/convert/releases/6.66/modules/convert/include/enumerators/ XoopsModules/convert/releases/6.66/modules/convert/include/enumerators/converted__uploads.diz XoopsModules/convert/releases/6.66/modules/convert/include/enumerators/day__fonts.diz XoopsModules/convert/releases/6.66/modules/convert/include/enumerators/index.html XoopsModules/convert/releases/6.66/modules/convert/include/enumerators/reported__uploads.diz XoopsModules/convert/releases/6.66/modules/convert/include/enumerators/storage__fonts.diz XoopsModules/convert/releases/6.66/modules/convert/include/enumerators/syndicated__fonts.diz XoopsModules/convert/releases/6.66/modules/convert/include/enumerators/tweeted__uploads.diz XoopsModules/convert/releases/6.66/modules/convert/include/functions.php XoopsModules/convert/releases/6.66/modules/convert/include/index.html XoopsModules/convert/releases/6.66/modules/convert/index.php XoopsModules/convert/releases/6.66/modules/convert/language/ XoopsModules/convert/releases/6.66/modules/convert/language/english/ XoopsModules/convert/releases/6.66/modules/convert/language/english/errors.php XoopsModules/convert/releases/6.66/modules/convert/language/english/index.html XoopsModules/convert/releases/6.66/modules/convert/language/english/mail_templates/ XoopsModules/convert/releases/6.66/modules/convert/language/english/mail_templates/index.html XoopsModules/convert/releases/6.66/modules/convert/language/english/mail_templates/upload_email_converted.html XoopsModules/convert/releases/6.66/modules/convert/language/english/main.php XoopsModules/convert/releases/6.66/modules/convert/language/english/modinfo.php XoopsModules/convert/releases/6.66/modules/convert/language/english/style.css XoopsModules/convert/releases/6.66/modules/convert/language/index.html XoopsModules/convert/releases/6.66/modules/convert/naming/ XoopsModules/convert/releases/6.66/modules/convert/naming/.htaccess XoopsModules/convert/releases/6.66/modules/convert/naming.php XoopsModules/convert/releases/6.66/modules/convert/preloads/ XoopsModules/convert/releases/6.66/modules/convert/preloads/cache.php XoopsModules/convert/releases/6.66/modules/convert/preloads/complexity.php XoopsModules/convert/releases/6.66/modules/convert/preloads/index.html XoopsModules/convert/releases/6.66/modules/convert/preloads/syndicate.php XoopsModules/convert/releases/6.66/modules/convert/preloads/twitter.php XoopsModules/convert/releases/6.66/modules/convert/preloads/xnews.php XoopsModules/convert/releases/6.66/modules/convert/preview/ XoopsModules/convert/releases/6.66/modules/convert/preview/.htaccess XoopsModules/convert/releases/6.66/modules/convert/preview.php XoopsModules/convert/releases/6.66/modules/convert/sql/ XoopsModules/convert/releases/6.66/modules/convert/sql/index.html XoopsModules/convert/releases/6.66/modules/convert/sql/mysql.sql XoopsModules/convert/releases/6.66/modules/convert/sql/tables.diz XoopsModules/convert/releases/6.66/modules/convert/templates/ XoopsModules/convert/releases/6.66/modules/convert/templates/admin/ XoopsModules/convert/releases/6.66/modules/convert/templates/admin/convert_fonts.html XoopsModules/convert/releases/6.66/modules/convert/templates/admin/index.html XoopsModules/convert/releases/6.66/modules/convert/templates/convert_fonts.html XoopsModules/convert/releases/6.66/modules/convert/templates/convert_history.html XoopsModules/convert/releases/6.66/modules/convert/templates/convert_index.html XoopsModules/convert/releases/6.66/modules/convert/templates/index.html XoopsModules/convert/releases/6.66/modules/convert/templates/xnews-article.xcode XoopsModules/convert/releases/6.66/modules/convert/upload.php XoopsModules/convert/releases/6.66/modules/convert/xoops_version.php XoopsModules/convert/trunk/ XoopsModules/convert/trunk/LICENSE XoopsModules/convert/trunk/README.md XoopsModules/convert/trunk/modules/ XoopsModules/convert/trunk/modules/convert/ XoopsModules/convert/trunk/modules/convert/.htaccess XoopsModules/convert/trunk/modules/convert/ACADEMIC XoopsModules/convert/trunk/modules/convert/LICENSE XoopsModules/convert/trunk/modules/convert/admin/ XoopsModules/convert/trunk/modules/convert/admin/about.php XoopsModules/convert/trunk/modules/convert/admin/fonts.php XoopsModules/convert/trunk/modules/convert/admin/footer.php XoopsModules/convert/trunk/modules/convert/admin/header.php XoopsModules/convert/trunk/modules/convert/admin/index.php XoopsModules/convert/trunk/modules/convert/admin/menu.php XoopsModules/convert/trunk/modules/convert/callback/ XoopsModules/convert/trunk/modules/convert/callback/.htaccess XoopsModules/convert/trunk/modules/convert/callback.php XoopsModules/convert/trunk/modules/convert/class/ XoopsModules/convert/trunk/modules/convert/class/FontLib/ XoopsModules/convert/trunk/modules/convert/class/FontLib/Adobe_Font_Metrics.php XoopsModules/convert/trunk/modules/convert/class/FontLib/Autoloader.php XoopsModules/convert/trunk/modules/convert/class/FontLib/Binary_Stream.php XoopsModules/convert/trunk/modules/convert/class/FontLib/EOT/ XoopsModules/convert/trunk/modules/convert/class/FontLib/EOT/File.php XoopsModules/convert/trunk/modules/convert/class/FontLib/EOT/Header.php XoopsModules/convert/trunk/modules/convert/class/FontLib/Encoding_Map.php XoopsModules/convert/trunk/modules/convert/class/FontLib/Font.php XoopsModules/convert/trunk/modules/convert/class/FontLib/Glyph/ XoopsModules/convert/trunk/modules/convert/class/FontLib/Glyph/Outline.php XoopsModules/convert/trunk/modules/convert/class/FontLib/Glyph/Outline_Component.php XoopsModules/convert/trunk/modules/convert/class/FontLib/Glyph/Outline_Composite.php XoopsModules/convert/trunk/modules/convert/class/FontLib/Glyph/Outline_Simple.php XoopsModules/convert/trunk/modules/convert/class/FontLib/Header.php XoopsModules/convert/trunk/modules/convert/class/FontLib/OpenType/ XoopsModules/convert/trunk/modules/convert/class/FontLib/OpenType/File.php XoopsModules/convert/trunk/modules/convert/class/FontLib/OpenType/Table_Directory_Entry.php XoopsModules/convert/trunk/modules/convert/class/FontLib/Table/ XoopsModules/convert/trunk/modules/convert/class/FontLib/Table/Directory_Entry.php XoopsModules/convert/trunk/modules/convert/class/FontLib/Table/Table.php XoopsModules/convert/trunk/modules/convert/class/FontLib/Table/Type/ XoopsModules/convert/trunk/modules/convert/class/FontLib/Table/Type/cmap.php XoopsModules/convert/trunk/modules/convert/class/FontLib/Table/Type/glyf.php XoopsModules/convert/trunk/modules/convert/class/FontLib/Table/Type/head.php XoopsModules/convert/trunk/modules/convert/class/FontLib/Table/Type/hhea.php XoopsModules/convert/trunk/modules/convert/class/FontLib/Table/Type/hmtx.php XoopsModules/convert/trunk/modules/convert/class/FontLib/Table/Type/kern.php XoopsModules/convert/trunk/modules/convert/class/FontLib/Table/Type/loca.php XoopsModules/convert/trunk/modules/convert/class/FontLib/Table/Type/maxp.php XoopsModules/convert/trunk/modules/convert/class/FontLib/Table/Type/name.php XoopsModules/convert/trunk/modules/convert/class/FontLib/Table/Type/name_Record.php XoopsModules/convert/trunk/modules/convert/class/FontLib/Table/Type/os2.php XoopsModules/convert/trunk/modules/convert/class/FontLib/Table/Type/post.php XoopsModules/convert/trunk/modules/convert/class/FontLib/TrueType/ XoopsModules/convert/trunk/modules/convert/class/FontLib/TrueType/Collection.php XoopsModules/convert/trunk/modules/convert/class/FontLib/TrueType/File.php XoopsModules/convert/trunk/modules/convert/class/FontLib/TrueType/Header.php XoopsModules/convert/trunk/modules/convert/class/FontLib/TrueType/Table_Directory_Entry.php XoopsModules/convert/trunk/modules/convert/class/FontLib/WOFF/ XoopsModules/convert/trunk/modules/convert/class/FontLib/WOFF/File.php XoopsModules/convert/trunk/modules/convert/class/FontLib/WOFF/Header.php XoopsModules/convert/trunk/modules/convert/class/FontLib/WOFF/Table_Directory_Entry.php XoopsModules/convert/trunk/modules/convert/class/FontLib/index.html XoopsModules/convert/trunk/modules/convert/class/TwitterAPIExchange.php XoopsModules/convert/trunk/modules/convert/class/WideImage/ XoopsModules/convert/trunk/modules/convert/class/WideImage/Canvas.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Coordinate.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Exception.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Font/ XoopsModules/convert/trunk/modules/convert/class/WideImage/Font/GDF.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Font/PS.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Font/TTF.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Image.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Mapper/ XoopsModules/convert/trunk/modules/convert/class/WideImage/Mapper/BMP.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Mapper/GD.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Mapper/GD2.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Mapper/GIF.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Mapper/JPEG.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Mapper/PNG.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Mapper/TGA.php XoopsModules/convert/trunk/modules/convert/class/WideImage/MapperFactory.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Operation/ XoopsModules/convert/trunk/modules/convert/class/WideImage/Operation/AddNoise.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Operation/ApplyConvolution.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Operation/ApplyFilter.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Operation/ApplyMask.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Operation/AsGrayscale.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Operation/AsNegative.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Operation/AutoCrop.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Operation/CopyChannelsPalette.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Operation/CopyChannelsTrueColor.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Operation/CorrectGamma.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Operation/Crop.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Operation/Flip.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Operation/GetMask.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Operation/Merge.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Operation/Mirror.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Operation/Resize.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Operation/ResizeCanvas.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Operation/Rotate.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Operation/RoundCorners.php XoopsModules/convert/trunk/modules/convert/class/WideImage/Operation/Unsharp.php XoopsModules/convert/trunk/modules/convert/class/WideImage/OperationFactory.php XoopsModules/convert/trunk/modules/convert/class/WideImage/PaletteImage.php XoopsModules/convert/trunk/modules/convert/class/WideImage/README XoopsModules/convert/trunk/modules/convert/class/WideImage/TrueColorImage.php XoopsModules/convert/trunk/modules/convert/class/WideImage/VERSION XoopsModules/convert/trunk/modules/convert/class/WideImage/WideImage.php XoopsModules/convert/trunk/modules/convert/class/WideImage/gpl.txt XoopsModules/convert/trunk/modules/convert/class/WideImage/index.html XoopsModules/convert/trunk/modules/convert/class/WideImage/lgpl.txt XoopsModules/convert/trunk/modules/convert/class/WideImage/vendor/ XoopsModules/convert/trunk/modules/convert/class/WideImage/vendor/de77/ XoopsModules/convert/trunk/modules/convert/class/WideImage/vendor/de77/BMP.php XoopsModules/convert/trunk/modules/convert/class/WideImage/vendor/de77/TGA.php XoopsModules/convert/trunk/modules/convert/class/barcode/ XoopsModules/convert/trunk/modules/convert/class/barcode/BarcodeGenerator.php XoopsModules/convert/trunk/modules/convert/class/barcode/BarcodeGeneratorHTML.php XoopsModules/convert/trunk/modules/convert/class/barcode/BarcodeGeneratorJPG.php XoopsModules/convert/trunk/modules/convert/class/barcode/BarcodeGeneratorPNG.php XoopsModules/convert/trunk/modules/convert/class/barcode/BarcodeGeneratorSVG.php XoopsModules/convert/trunk/modules/convert/class/barcode/index.html XoopsModules/convert/trunk/modules/convert/class/files.php XoopsModules/convert/trunk/modules/convert/class/fonts.php XoopsModules/convert/trunk/modules/convert/class/glyphs.php XoopsModules/convert/trunk/modules/convert/class/index.html XoopsModules/convert/trunk/modules/convert/class/objects.php XoopsModules/convert/trunk/modules/convert/class/uploads.php XoopsModules/convert/trunk/modules/convert/class/xcp/ XoopsModules/convert/trunk/modules/convert/class/xcp/XCP-Logo.eps XoopsModules/convert/trunk/modules/convert/class/xcp/XCP-Logo.png XoopsModules/convert/trunk/modules/convert/class/xcp/XCP-Logo.psd XoopsModules/convert/trunk/modules/convert/class/xcp/XCP-Logo.xcf XoopsModules/convert/trunk/modules/convert/class/xcp/class/ XoopsModules/convert/trunk/modules/convert/class/xcp/class/xcp.base.php XoopsModules/convert/trunk/modules/convert/class/xcp/class/xcp.class.php XoopsModules/convert/trunk/modules/convert/class/xcp/class/xcp.enumerator.php XoopsModules/convert/trunk/modules/convert/class/xcp/class/xcp.leaver.php XoopsModules/convert/trunk/modules/convert/class/xcp/debug_base.php XoopsModules/convert/trunk/modules/convert/class/xcp/debug_enumerator.php XoopsModules/convert/trunk/modules/convert/class/xcp/debug_leaver.php XoopsModules/convert/trunk/modules/convert/class/xcp/index.php XoopsModules/convert/trunk/modules/convert/css/ XoopsModules/convert/trunk/modules/convert/css/.htaccess XoopsModules/convert/trunk/modules/convert/css/font/ XoopsModules/convert/trunk/modules/convert/css/font/.htaccess XoopsModules/convert/trunk/modules/convert/css-font.php XoopsModules/convert/trunk/modules/convert/css.php XoopsModules/convert/trunk/modules/convert/download/ XoopsModules/convert/trunk/modules/convert/download/.htaccess XoopsModules/convert/trunk/modules/convert/download.php XoopsModules/convert/trunk/modules/convert/font/ XoopsModules/convert/trunk/modules/convert/font/.htaccess XoopsModules/convert/trunk/modules/convert/font.php XoopsModules/convert/trunk/modules/convert/glyph/ XoopsModules/convert/trunk/modules/convert/glyph/.htaccess XoopsModules/convert/trunk/modules/convert/glyph.php XoopsModules/convert/trunk/modules/convert/header.php XoopsModules/convert/trunk/modules/convert/history.php XoopsModules/convert/trunk/modules/convert/images/ XoopsModules/convert/trunk/modules/convert/images/font-glyph.png XoopsModules/convert/trunk/modules/convert/images/font-preview-extra.png XoopsModules/convert/trunk/modules/convert/images/font-preview.png XoopsModules/convert/trunk/modules/convert/images/font-title-extra.png XoopsModules/convert/trunk/modules/convert/images/font-title-large.png XoopsModules/convert/trunk/modules/convert/images/font-title-medium.png XoopsModules/convert/trunk/modules/convert/images/font-title-small.png XoopsModules/convert/trunk/modules/convert/images/index.html XoopsModules/convert/trunk/modules/convert/images/modlogo.png XoopsModules/convert/trunk/modules/convert/include/ XoopsModules/convert/trunk/modules/convert/include/data/ XoopsModules/convert/trunk/modules/convert/include/data/ACADEMIC XoopsModules/convert/trunk/modules/convert/include/data/EOT-HEADER XoopsModules/convert/trunk/modules/convert/include/data/LICENSE XoopsModules/convert/trunk/modules/convert/include/data/convert-fonts-distribution.pe XoopsModules/convert/trunk/modules/convert/include/data/convert-fonts-licensing.pe XoopsModules/convert/trunk/modules/convert/include/data/default-useragent-v1.diz XoopsModules/convert/trunk/modules/convert/include/data/default-useragent-v2.diz XoopsModules/convert/trunk/modules/convert/include/data/enc/ XoopsModules/convert/trunk/modules/convert/include/data/enc/cp1250.map XoopsModules/convert/trunk/modules/convert/include/data/enc/cp1251.map XoopsModules/convert/trunk/modules/convert/include/data/enc/cp1252.map XoopsModules/convert/trunk/modules/convert/include/data/enc/cp1253.map XoopsModules/convert/trunk/modules/convert/include/data/enc/cp1254.map XoopsModules/convert/trunk/modules/convert/include/data/enc/cp1255.map XoopsModules/convert/trunk/modules/convert/include/data/enc/cp1257.map XoopsModules/convert/trunk/modules/convert/include/data/enc/cp1258.map XoopsModules/convert/trunk/modules/convert/include/data/enc/cp874.map XoopsModules/convert/trunk/modules/convert/include/data/enc/iso-8859-1.map XoopsModules/convert/trunk/modules/convert/include/data/enc/iso-8859-11.map XoopsModules/convert/trunk/modules/convert/include/data/enc/iso-8859-15.map XoopsModules/convert/trunk/modules/convert/include/data/enc/iso-8859-16.map XoopsModules/convert/trunk/modules/convert/include/data/enc/iso-8859-2.map XoopsModules/convert/trunk/modules/convert/include/data/enc/iso-8859-4.map XoopsModules/convert/trunk/modules/convert/include/data/enc/iso-8859-5.map XoopsModules/convert/trunk/modules/convert/include/data/enc/iso-8859-7.map XoopsModules/convert/trunk/modules/convert/include/data/enc/iso-8859-9.map XoopsModules/convert/trunk/modules/convert/include/data/enc/koi8-r.map XoopsModules/convert/trunk/modules/convert/include/data/enc/koi8-u.map XoopsModules/convert/trunk/modules/convert/include/data/file.diz XoopsModules/convert/trunk/modules/convert/include/data/font-extensions.diz XoopsModules/convert/trunk/modules/convert/include/data/font-formats.diz XoopsModules/convert/trunk/modules/convert/include/data/index.html XoopsModules/convert/trunk/modules/convert/include/data/mimetypes.diz XoopsModules/convert/trunk/modules/convert/include/data/packs-archiving.diz XoopsModules/convert/trunk/modules/convert/include/data/packs-stamping.diz XoopsModules/convert/trunk/modules/convert/include/data/preview-texts.diz XoopsModules/convert/trunk/modules/convert/include/data/titles.ttf XoopsModules/convert/trunk/modules/convert/include/enumerators/ XoopsModules/convert/trunk/modules/convert/include/enumerators/converted__uploads.diz XoopsModules/convert/trunk/modules/convert/include/enumerators/day__fonts.diz XoopsModules/convert/trunk/modules/convert/include/enumerators/index.html XoopsModules/convert/trunk/modules/convert/include/enumerators/reported__uploads.diz XoopsModules/convert/trunk/modules/convert/include/enumerators/storage__fonts.diz XoopsModules/convert/trunk/modules/convert/include/enumerators/syndicated__fonts.diz XoopsModules/convert/trunk/modules/convert/include/enumerators/tweeted__uploads.diz XoopsModules/convert/trunk/modules/convert/include/functions.php XoopsModules/convert/trunk/modules/convert/include/index.html XoopsModules/convert/trunk/modules/convert/index.php XoopsModules/convert/trunk/modules/convert/language/ XoopsModules/convert/trunk/modules/convert/language/english/ XoopsModules/convert/trunk/modules/convert/language/english/errors.php XoopsModules/convert/trunk/modules/convert/language/english/index.html XoopsModules/convert/trunk/modules/convert/language/english/mail_templates/ XoopsModules/convert/trunk/modules/convert/language/english/mail_templates/index.html XoopsModules/convert/trunk/modules/convert/language/english/mail_templates/upload_email_converted.html XoopsModules/convert/trunk/modules/convert/language/english/main.php XoopsModules/convert/trunk/modules/convert/language/english/modinfo.php XoopsModules/convert/trunk/modules/convert/language/english/style.css XoopsModules/convert/trunk/modules/convert/language/index.html XoopsModules/convert/trunk/modules/convert/naming/ XoopsModules/convert/trunk/modules/convert/naming/.htaccess XoopsModules/convert/trunk/modules/convert/naming.php XoopsModules/convert/trunk/modules/convert/preloads/ XoopsModules/convert/trunk/modules/convert/preloads/cache.php XoopsModules/convert/trunk/modules/convert/preloads/complexity.php XoopsModules/convert/trunk/modules/convert/preloads/index.html XoopsModules/convert/trunk/modules/convert/preloads/syndicate.php XoopsModules/convert/trunk/modules/convert/preloads/twitter.php XoopsModules/convert/trunk/modules/convert/preloads/xnews.php XoopsModules/convert/trunk/modules/convert/preview/ XoopsModules/convert/trunk/modules/convert/preview/.htaccess XoopsModules/convert/trunk/modules/convert/preview.php XoopsModules/convert/trunk/modules/convert/sql/ XoopsModules/convert/trunk/modules/convert/sql/index.html XoopsModules/convert/trunk/modules/convert/sql/mysql.sql XoopsModules/convert/trunk/modules/convert/sql/tables.diz XoopsModules/convert/trunk/modules/convert/templates/ XoopsModules/convert/trunk/modules/convert/templates/admin/ XoopsModules/convert/trunk/modules/convert/templates/admin/convert_fonts.html XoopsModules/convert/trunk/modules/convert/templates/admin/index.html XoopsModules/convert/trunk/modules/convert/templates/convert_fonts.html XoopsModules/convert/trunk/modules/convert/templates/convert_history.html XoopsModules/convert/trunk/modules/convert/templates/convert_index.html XoopsModules/convert/trunk/modules/convert/templates/index.html XoopsModules/convert/trunk/modules/convert/templates/xnews-article.xcode XoopsModules/convert/trunk/modules/convert/upload.php XoopsModules/convert/trunk/modules/convert/xoops_version.php Added: XoopsModules/convert/releases/6.66/LICENSE =================================================================== --- XoopsModules/convert/releases/6.66/LICENSE (rev 0) +++ XoopsModules/convert/releases/6.66/LICENSE 2017-08-09 23:25:39 UTC (rev 13269) @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. 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 +them 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 prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. 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. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey 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; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modifi... [truncated message content] |
From: <wis...@us...> - 2017-08-19 20:29:31
|
Revision: 13273 http://sourceforge.net/p/xoops/svn/13273 Author: wishcraft Date: 2017-08-19 20:29:28 +0000 (Sat, 19 Aug 2017) Log Message: ----------- Inital Planning of Legal Consent Module! Added Paths: ----------- XoopsModules/consent/ XoopsModules/consent/trunk/ XoopsModules/consent/trunk/modules/ XoopsModules/consent/trunk/modules/consent/ XoopsModules/consent/trunk/modules/consent/admin/ XoopsModules/consent/trunk/modules/consent/admin/index.html XoopsModules/consent/trunk/modules/consent/class/ XoopsModules/consent/trunk/modules/consent/class/agreements.php XoopsModules/consent/trunk/modules/consent/class/batches.php XoopsModules/consent/trunk/modules/consent/class/callbacks.php XoopsModules/consent/trunk/modules/consent/class/clientel.php XoopsModules/consent/trunk/modules/consent/class/emails.php XoopsModules/consent/trunk/modules/consent/class/guardians.php XoopsModules/consent/trunk/modules/consent/class/index.html XoopsModules/consent/trunk/modules/consent/class/objects.php XoopsModules/consent/trunk/modules/consent/class/statistics.php XoopsModules/consent/trunk/modules/consent/header.php XoopsModules/consent/trunk/modules/consent/images/ XoopsModules/consent/trunk/modules/consent/images/1x1.png XoopsModules/consent/trunk/modules/consent/images/index.html XoopsModules/consent/trunk/modules/consent/include/ XoopsModules/consent/trunk/modules/consent/include/data/ XoopsModules/consent/trunk/modules/consent/include/data/batch-csv-template.ods XoopsModules/consent/trunk/modules/consent/include/data/batch-csv-template.xlsx XoopsModules/consent/trunk/modules/consent/include/data/index.html XoopsModules/consent/trunk/modules/consent/include/enumerators/ XoopsModules/consent/trunk/modules/consent/include/enumerators/index.html XoopsModules/consent/trunk/modules/consent/include/functions.php XoopsModules/consent/trunk/modules/consent/include/index.html XoopsModules/consent/trunk/modules/consent/language/ XoopsModules/consent/trunk/modules/consent/language/english/ XoopsModules/consent/trunk/modules/consent/language/english/errors.php XoopsModules/consent/trunk/modules/consent/language/english/index.html XoopsModules/consent/trunk/modules/consent/language/english/mail_templates/ XoopsModules/consent/trunk/modules/consent/language/english/mail_templates/index.html XoopsModules/consent/trunk/modules/consent/language/english/modinfo.php XoopsModules/consent/trunk/modules/consent/language/english/style.css XoopsModules/consent/trunk/modules/consent/language/index.html XoopsModules/consent/trunk/modules/consent/sql/ XoopsModules/consent/trunk/modules/consent/sql/index.html XoopsModules/consent/trunk/modules/consent/sql/mysql.sql XoopsModules/consent/trunk/modules/consent/sql/tables.diz XoopsModules/consent/trunk/modules/consent/templates/ XoopsModules/consent/trunk/modules/consent/templates/admin/ XoopsModules/consent/trunk/modules/consent/templates/admin/index.html XoopsModules/consent/trunk/modules/consent/templates/index.html XoopsModules/consent/trunk/modules/consent/templates/pdf/ XoopsModules/consent/trunk/modules/consent/templates/pdf/clientel-consent-grouped.html XoopsModules/consent/trunk/modules/consent/templates/pdf/clientel-consent-individual.html XoopsModules/consent/trunk/modules/consent/templates/pdf/guardian-consent-grouped.html XoopsModules/consent/trunk/modules/consent/templates/pdf/guardian-consent-individual.html XoopsModules/consent/trunk/modules/consent/templates/pdf/index.html XoopsModules/consent/trunk/modules/consent/upload.php XoopsModules/consent/trunk/modules/consent/xoops_version.php Added: XoopsModules/consent/trunk/modules/consent/admin/index.html =================================================================== --- XoopsModules/consent/trunk/modules/consent/admin/index.html (rev 0) +++ XoopsModules/consent/trunk/modules/consent/admin/index.html 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/admin/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/class/agreements.php =================================================================== --- XoopsModules/consent/trunk/modules/consent/class/agreements.php (rev 0) +++ XoopsModules/consent/trunk/modules/consent/class/agreements.php 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1,160 @@ +<?php +/** + * Legal Consent is a module for obtain legal guardianship consent + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://fonts2web.org.uk + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage consent + * @description Legal Consent is a module for obtain legal guardianship consent + * @version 1.0.1 + * @link http://internetfounder.wordpress.com + */ + +if (!defined('_MD_consent_MODULE_DIRNAME')) { + return false; +} + +//* +require_once (__DIR__ . DIRECTORY_SEPARATOR . 'objects.php'); + +/** + * Database Table for Agreements in Legal Consent Module + * + * For Table:- + * <code> + * CREATE TABLE `consent_agreements` ( + * `id` int(32) NOT NULL AUTO_INCREMENT, + * `uid` int(13) NOT NULL DEFAULT '0', + * `approval` enum('Waiting','Approved','Unapproved') NOT NULL DEFAULT 'Waiting', + * `batch-id` int(20) NOT NULL DEFAULT '0', + * `gardian-id` int(20) NOT NULL DEFAULT '0', + * `clientel-id` int(20) NOT NULL DEFAULT '0', + * `hashkey` varchar(12) NOT NULL DEFAULT '', + * `referee` varchar(18) NOT NULL DEFAULT '', + * `callback-url` varchar(255) NOT NULL DEFAULT '', + * `svn-path` varchar(255) NOT NULL DEFAULT '', + * `gardian-filename-pdf` varchar(128) NOT NULL DEFAULT '', + * `clientel-filename-pdf` varchar(128) NOT NULL DEFAULT '', + * `gardian-response-file` varchar(128) NOT NULL DEFAULT '', + * `clientel-response-file` varchar(128) NOT NULL DEFAULT '', + * `response-waiting` enum('Gardian','Clientel','Both') NOT NULL DEFAULT 'Both', + * `response-sourced` enum('Gardian','Clientel','Both') NOT NULL DEFAULT 'Both', + * `response-comment` mediumtext, + * `response-network` mediumtext, + * `response-notified` int(11) NOT NULL DEFAULT '0', + * `response-weight` int(11) NOT NULL DEFAULT '0', + * `response-gardian-weight` int(11) NOT NULL DEFAULT '0', + * `response-clientel-weight` int(11) NOT NULL DEFAULT '0', + * `email-ids` mediumtext, + * `email-agreement-type` enum('None','Gardian','Clientel','Both') NOT NULL DEFAULT 'Both', + * `email-recovery-type` enum('None','Gardian','Clientel','Batch') NOT NULL DEFAULT 'None', + * `email-recovery-guardian-sent` int(11) NOT NULL DEFAULT '0', + * `email-recovery-clientel-sent` int(11) NOT NULL DEFAULT '0', + * `email-from` varchar(64) NOT NULL DEFAULT '', + * `email-sent` int(11) NOT NULL DEFAULT '0', + * `email-views` int(11) NOT NULL DEFAULT '0', + * `email-viewed` int(11) NOT NULL DEFAULT '0', + * `email-gardian-sent` int(11) NOT NULL DEFAULT '0', + * `email-gardian-views` int(11) NOT NULL DEFAULT '0', + * `email-gardian-viewed` int(11) NOT NULL DEFAULT '0', + * `email-clientel-sent` int(11) NOT NULL DEFAULT '0', + * `email-clientel-views` int(11) NOT NULL DEFAULT '0', + * `email-clientel-viewed` int(11) NOT NULL DEFAULT '0', + * `email-remiders-sent` int(11) NOT NULL DEFAULT '0', + * `email-remiders-views` int(11) NOT NULL DEFAULT '0', + * `email-remiders-viewed` int(11) NOT NULL DEFAULT '0', + * `email-progress-sent` int(11) NOT NULL DEFAULT '0', + * `email-progress-views` int(11) NOT NULL DEFAULT '0', + * `email-progress-viewed` int(11) NOT NULL DEFAULT '0', + * `email-recovery-sent` int(11) NOT NULL DEFAULT '0', + * `email-recovery-views` int(11) NOT NULL DEFAULT '0', + * `email-recovery-viewed` int(11) NOT NULL DEFAULT '0', + * `created` int(11) NOT NULL DEFAULT '0', + * `emailed` int(11) NOT NULL DEFAULT '0', + * `response` int(11) NOT NULL DEFAULT '0', + * `recovery` int(11) NOT NULL DEFAULT '0', + * `reminde` int(11) NOT NULL DEFAULT '0', + * `timeout` int(11) NOT NULL DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`approval`,`batch-id`,`gardian-id`,`clientel-id`,`hashkey`,`email-agreement-type`,`created`,`emailed`,`response`,`reminde`,`timeout`) USING BTREE KEY_BLOCK_SIZE=32 + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentAgreements extends consentXoopsObject +{ + + var $handler = 'consentAgreementsHandler'; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('fontid', XOBJ_DTYPE_INT, null, false); + self::initVar('value', XOBJ_DTYPE_INT, null, false); + + if (!empty($id) && !is_null($id)) + { + $handler = new $this->handler; + self::assignVars($handler->get($id)->getValues(array_keys($this->vars))); + } + + } + +} + + +/** + * Handler Class for Agreements + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentAgreementsHandler extends consentXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'consent_agreements'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'consentAgreements'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'value'; + + function __construct(&$db) + { + if (!is_object($db)) + $db = $GLOBAL["xoopsDB"]; + parent::__construct($db, $this->tbl, $this->child, $this->identity, $this->envalued); + } +} +?> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/class/agreements.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/class/batches.php =================================================================== --- XoopsModules/consent/trunk/modules/consent/class/batches.php (rev 0) +++ XoopsModules/consent/trunk/modules/consent/class/batches.php 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1,176 @@ +<?php +/** + * Legal Consent is a module for obtain legal guardianship consent + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://fonts2web.org.uk + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage consent + * @description Legal Consent is a module for obtain legal guardianship consent + * @version 1.0.1 + * @link http://internetfounder.wordpress.com + */ + +if (!defined('_MD_consent_MODULE_DIRNAME')) { + return false; +} + +//* +require_once (__DIR__ . DIRECTORY_SEPARATOR . 'objects.php'); + +/** + * Database Table for Batches in Legal Consent Module + * + * For Table:- + * <code> + * CREATE TABLE `consent_batches` ( + * `id` int(20) NOT NULL AUTO_INCREMENT, + * `uid` int(13) NOT NULL DEFAULT '0', + * `hashkey` varchar(12) NOT NULL DEFAULT '', + * `referee` varchar(18) NOT NULL DEFAULT '', + * `org` varchar(64) NOT NULL DEFAULT '', + * `name` varchar(64) NOT NULL DEFAULT '', + * `email` varchar(196) NOT NULL DEFAULT '', + * `phone` varchar(20) NOT NULL DEFAULT '', + * `message` mediumtext, + * `event` mediumtext, + * `cc` mediumtext, + * `bcc` mediumtext, + * `callback-url` varchar(255) NOT NULL DEFAULT '', + * `email-agreement-type` enum('Gardian','Clientel','Both') NOT NULL DEFAULT 'Both', + * `csv-lines` int(11) NOT NULL DEFAULT '0', + * `csv-bytes` int(11) NOT NULL DEFAULT '0', + * `csv-md5` varchar(32) NOT NULL DEFAULT ',', + * `csv-field` varchar(8) NOT NULL DEFAULT ',', + * `csv-terminated` varchar(8) NOT NULL DEFAULT '\n', + * `csv-string` varchar(8) NOT NULL DEFAULT '"', + * `response-weight` int(11) NOT NULL DEFAULT '0', + * `response-gardian-weight` int(11) NOT NULL DEFAULT '0', + * `response-clientel-weight` int(11) NOT NULL DEFAULT '0', + * `email-from` varchar(64) NOT NULL DEFAULT '', + * `email-sent` int(11) NOT NULL DEFAULT '0', + * `email-views` int(11) NOT NULL DEFAULT '0', + * `email-viewed` int(11) NOT NULL DEFAULT '0', + * `email-gardian-sent` int(11) NOT NULL DEFAULT '0', + * `email-gardian-views` int(11) NOT NULL DEFAULT '0', + * `email-gardian-viewed` int(11) NOT NULL DEFAULT '0', + * `email-clientel-sent` int(11) NOT NULL DEFAULT '0', + * `email-clientel-views` int(11) NOT NULL DEFAULT '0', + * `email-clientel-viewed` int(11) NOT NULL DEFAULT '0', + * `email-remiders-sent` int(11) NOT NULL DEFAULT '0', + * `email-remiders-views` int(11) NOT NULL DEFAULT '0', + * `email-remiders-viewed` int(11) NOT NULL DEFAULT '0', + * `email-progress-sent` int(11) NOT NULL DEFAULT '0', + * `email-progress-views` int(11) NOT NULL DEFAULT '0', + * `email-progress-viewed` int(11) NOT NULL DEFAULT '0', + * `email-recovery-sent` int(11) NOT NULL DEFAULT '0', + * `email-recovery-views` int(11) NOT NULL DEFAULT '0', + * `email-recovery-viewed` int(11) NOT NULL DEFAULT '0', + * `batches` int(11) NOT NULL DEFAULT '0', + * `gardians-created` int(11) NOT NULL DEFAULT '0', + * `clientel-created` int(11) NOT NULL DEFAULT '0', + * `gardians-existed` int(11) NOT NULL DEFAULT '0', + * `clientel-existed` int(11) NOT NULL DEFAULT '0', + * `batches-failed` int(11) NOT NULL DEFAULT '0', + * `gardians-failed` int(11) NOT NULL DEFAULT '0', + * `clientel-failed` int(11) NOT NULL DEFAULT '0', + * `batches-approved` int(11) NOT NULL DEFAULT '0', + * `gardians-approved` int(11) NOT NULL DEFAULT '0', + * `clientel-approved` int(11) NOT NULL DEFAULT '0', + * `batches-unapproved` int(11) NOT NULL DEFAULT '0', + * `gardians-unapproved` int(11) NOT NULL DEFAULT '0', + * `clientel-unapproved` int(11) NOT NULL DEFAULT '0', + * `batches-recovery` int(11) NOT NULL DEFAULT '0', + * `gardians-recovery` int(11) NOT NULL DEFAULT '0', + * `clientel-recovery` int(11) NOT NULL DEFAULT '0', + * `batches-recovered` int(11) NOT NULL DEFAULT '0', + * `gardians-recovered` int(11) NOT NULL DEFAULT '0', + * `clientel-recovered` int(11) NOT NULL DEFAULT '0', + * `approvals` int(11) NOT NULL DEFAULT '0', + * `reminders` int(11) NOT NULL DEFAULT '0', + * `recovery` int(11) NOT NULL DEFAULT '0', + * `created` int(11) NOT NULL DEFAULT '0', + * `timeout` int(11) NOT NULL DEFAULT '0', + * `reported` int(11) NOT NULL DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`hashkey`,`email`,`timeout`) USING BTREE KEY_BLOCK_SIZE=32 + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentBatches extends consentXoopsObject +{ + + var $handler = 'consentBatchesHandler'; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('fontid', XOBJ_DTYPE_INT, null, false); + self::initVar('value', XOBJ_DTYPE_INT, null, false); + + if (!empty($id) && !is_null($id)) + { + $handler = new $this->handler; + self::assignVars($handler->get($id)->getValues(array_keys($this->vars))); + } + + } + +} + + +/** + * Handler Class for Batches + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentBatchesHandler extends consentXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'consent_batches'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'consentBatches'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'value'; + + function __construct(&$db) + { + if (!is_object($db)) + $db = $GLOBAL["xoopsDB"]; + parent::__construct($db, $this->tbl, $this->child, $this->identity, $this->envalued); + } +} +?> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/class/batches.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/class/callbacks.php =================================================================== --- XoopsModules/consent/trunk/modules/consent/class/callbacks.php (rev 0) +++ XoopsModules/consent/trunk/modules/consent/class/callbacks.php 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1,114 @@ +<?php +/** + * Legal Consent is a module for obtain legal guardianship consent + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://fonts2web.org.uk + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage consent + * @description Legal Consent is a module for obtain legal guardianship consent + * @version 1.0.1 + * @link http://internetfounder.wordpress.com + */ + +if (!defined('_MD_consent_MODULE_DIRNAME')) { + return false; +} + +//* +require_once (__DIR__ . DIRECTORY_SEPARATOR . 'objects.php'); + +/** + * Database Table for Callbacks in Legal Consent Module + * + * For Table:- + * <code> + * CREATE TABLE `consent_callbacks` ( + * `when` int(12) NOT NULL, + * `uri` varchar(250) NOT NULL DEFAULT '', + * `timeout` int(4) NOT NULL DEFAULT '0', + * `connection` int(4) NOT NULL DEFAULT '0', + * `data` mediumtext NOT NULL, + * `queries` mediumtext NOT NULL, + * `fails` int(3) NOT NULL DEFAULT '0', + * PRIMARY KEY (`when`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentCallbacks extends consentXoopsObject +{ + + var $handler = 'consentCallbacksHandler'; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('fontid', XOBJ_DTYPE_INT, null, false); + self::initVar('value', XOBJ_DTYPE_INT, null, false); + + if (!empty($id) && !is_null($id)) + { + $handler = new $this->handler; + self::assignVars($handler->get($id)->getValues(array_keys($this->vars))); + } + + } + +} + + +/** + * Handler Class for Callbacks + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentCallbacksHandler extends consentXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'consent_callbacks'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'consentCallbacks'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'value'; + + function __construct(&$db) + { + if (!is_object($db)) + $db = $GLOBAL["xoopsDB"]; + parent::__construct($db, $this->tbl, $this->child, $this->identity, $this->envalued); + } +} +?> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/class/callbacks.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/class/clientel.php =================================================================== --- XoopsModules/consent/trunk/modules/consent/class/clientel.php (rev 0) +++ XoopsModules/consent/trunk/modules/consent/class/clientel.php 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1,123 @@ +<?php +/** + * Legal Consent is a module for obtain legal guardianship consent + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://fonts2web.org.uk + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage consent + * @description Legal Consent is a module for obtain legal guardianship consent + * @version 1.0.1 + * @link http://internetfounder.wordpress.com + */ + +if (!defined('_MD_consent_MODULE_DIRNAME')) { + return false; +} + +//* +require_once (__DIR__ . DIRECTORY_SEPARATOR . 'objects.php'); + +/** + * Database Table for Clientel in Legal Consent Module + * + * For Table:- + * <code> + * CREATE TABLE `consent_clientel` ( + * `id` int(20) NOT NULL AUTO_INCREMENT, + * `uid` int(13) NOT NULL DEFAULT '0', + * `hashkey` varchar(12) NOT NULL DEFAULT '', + * `name` varchar(64) NOT NULL DEFAULT '', + * `email` varchar(196) NOT NULL DEFAULT '', + * `phone` varchar(20) NOT NULL DEFAULT '', + * `created` int(11) NOT NULL DEFAULT '0', + * `emailed` int(11) NOT NULL DEFAULT '0', + * `response` int(11) NOT NULL DEFAULT '0', + * `undelivered` int(11) NOT NULL DEFAULT '0', + * `recovered` int(11) NOT NULL DEFAULT '0', + * `recovery-id` int(20) NOT NULL DEFAULT '0', + * `agreement-ids` mediumtext, + * `email-views` int(11) NOT NULL DEFAULT '0', + * `email-viewed` int(11) NOT NULL DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`hashkey`,`name`,`email`,`phone`) USING BTREE KEY_BLOCK_SIZE=32 + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentClientel extends consentXoopsObject +{ + + var $handler = 'consentClientelHandler'; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('fontid', XOBJ_DTYPE_INT, null, false); + self::initVar('value', XOBJ_DTYPE_INT, null, false); + + if (!empty($id) && !is_null($id)) + { + $handler = new $this->handler; + self::assignVars($handler->get($id)->getValues(array_keys($this->vars))); + } + + } + +} + + +/** + * Handler Class for Clientel + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentClientelHandler extends consentXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'consent_clientel'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'consentClientel'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'value'; + + function __construct(&$db) + { + if (!is_object($db)) + $db = $GLOBAL["xoopsDB"]; + parent::__construct($db, $this->tbl, $this->child, $this->identity, $this->envalued); + } +} +?> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/class/clientel.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/class/emails.php =================================================================== --- XoopsModules/consent/trunk/modules/consent/class/emails.php (rev 0) +++ XoopsModules/consent/trunk/modules/consent/class/emails.php 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1,121 @@ +<?php +/** + * Legal Consent is a module for obtain legal guardianship consent + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://fonts2web.org.uk + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage consent + * @description Legal Consent is a module for obtain legal guardianship consent + * @version 1.0.1 + * @link http://internetfounder.wordpress.com + */ + +if (!defined('_MD_consent_MODULE_DIRNAME')) { + return false; +} + +//* +require_once (__DIR__ . DIRECTORY_SEPARATOR . 'objects.php'); + +/** + * Database Table for Emails in Legal Consent Module + * + * For Table:- + * <code> + * CREATE TABLE `consent_emails` ( + * `id` int(32) NOT NULL AUTO_INCREMENT, + * `approval` enum('Delivered','Undelivered','Unknown') NOT NULL DEFAULT 'Unknown', + * `email-type` enum('Agreement','Reminder','Recovery','Progress','Unknown') NOT NULL DEFAULT 'Unknown', + * `email-target` enum('Batch','Gardian','Clientel','Webmaster','Unknown') NOT NULL DEFAULT 'Unknown', + * `agreement-id` int(20) NOT NULL DEFAULT '0', + * `batch-id` int(20) NOT NULL DEFAULT '0', + * `gardian-id` int(20) NOT NULL DEFAULT '0', + * `clientel-id` int(20) NOT NULL DEFAULT '0', + * `email` varchar(196) NOT NULL DEFAULT '', + * `referee` varchar(18) NOT NULL DEFAULT '', + * `created` int(11) NOT NULL DEFAULT '0', + * `timeout` int(11) NOT NULL DEFAULT '0', + * `checked` int(11) NOT NULL DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`approval`,`email-type`,`email-target`,`email`) USING BTREE KEY_BLOCK_SIZE=32 + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentEmails extends consentXoopsObject +{ + + var $handler = 'consentEmailsHandler'; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('fontid', XOBJ_DTYPE_INT, null, false); + self::initVar('value', XOBJ_DTYPE_INT, null, false); + + if (!empty($id) && !is_null($id)) + { + $handler = new $this->handler; + self::assignVars($handler->get($id)->getValues(array_keys($this->vars))); + } + + } + +} + + +/** + * Handler Class for Emails + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentEmailsHandler extends consentXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'consent_emails'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'consentEmails'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'value'; + + function __construct(&$db) + { + if (!is_object($db)) + $db = $GLOBAL["xoopsDB"]; + parent::__construct($db, $this->tbl, $this->child, $this->identity, $this->envalued); + } +} +?> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/class/emails.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/class/guardians.php =================================================================== --- XoopsModules/consent/trunk/modules/consent/class/guardians.php (rev 0) +++ XoopsModules/consent/trunk/modules/consent/class/guardians.php 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1,123 @@ +<?php +/** + * Legal Consent is a module for obtain legal guardianship consent + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://fonts2web.org.uk + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage consent + * @description Legal Consent is a module for obtain legal guardianship consent + * @version 1.0.1 + * @link http://internetfounder.wordpress.com + */ + +if (!defined('_MD_consent_MODULE_DIRNAME')) { + return false; +} + +//* +require_once (__DIR__ . DIRECTORY_SEPARATOR . 'objects.php'); + +/** + * Database Table for Guardians in Legal Consent Module + * + * For Table:- + * <code> + * CREATE TABLE `consent_guardians` ( + * `id` int(20) NOT NULL AUTO_INCREMENT, + * `uid` int(13) NOT NULL DEFAULT '0', + * `hashkey` varchar(12) NOT NULL DEFAULT '', + * `name` varchar(64) NOT NULL DEFAULT '', + * `email` varchar(196) NOT NULL DEFAULT '', + * `phone` varchar(20) NOT NULL DEFAULT '', + * `created` int(11) NOT NULL DEFAULT '0', + * `emailed` int(11) NOT NULL DEFAULT '0', + * `response` int(11) NOT NULL DEFAULT '0', + * `undelivered` int(11) NOT NULL DEFAULT '0', + * `recovered` int(11) NOT NULL DEFAULT '0', + * `recovery-id` int(20) NOT NULL DEFAULT '0', + * `agreement-ids` mediumtext, + * `email-views` int(11) NOT NULL DEFAULT '0', + * `email-viewed` int(11) NOT NULL DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`hashkey`,`name`,`email`,`phone`) USING BTREE KEY_BLOCK_SIZE=32 + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentGuardians extends consentXoopsObject +{ + + var $handler = 'consentGuardiansHandler'; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('fontid', XOBJ_DTYPE_INT, null, false); + self::initVar('value', XOBJ_DTYPE_INT, null, false); + + if (!empty($id) && !is_null($id)) + { + $handler = new $this->handler; + self::assignVars($handler->get($id)->getValues(array_keys($this->vars))); + } + + } + +} + + +/** + * Handler Class for Guardians + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentGuardiansHandler extends consentXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'consent_guardians'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'consentGuardians'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'value'; + + function __construct(&$db) + { + if (!is_object($db)) + $db = $GLOBAL["xoopsDB"]; + parent::__construct($db, $this->tbl, $this->child, $this->identity, $this->envalued); + } +} +?> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/class/guardians.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/class/index.html =================================================================== --- XoopsModules/consent/trunk/modules/consent/class/index.html (rev 0) +++ XoopsModules/consent/trunk/modules/consent/class/index.html 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/class/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/class/objects.php =================================================================== --- XoopsModules/consent/trunk/modules/consent/class/objects.php (rev 0) +++ XoopsModules/consent/trunk/modules/consent/class/objects.php 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1,140 @@ +<?php +/** + * Legal Consent is a module for obtain legal guardianship consent + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://fonts2web.org.uk + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage consent + * @description Legal Consent is a module for obtain legal guardianship consent + * @version 1.0.1 + * @link http://internetfounder.wordpress.com + */ + +if (!defined('_MI_CONSENT_MODULE_DIRNAME')) { + return false; +} + +require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'functions.php'; + +/** + * Class for Addresses in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentXoopsObject extends XoopsObject +{ + /** + * (non-PHPdoc) + * @see XoopsObject::assignVar() + */ + function assignVar($key, $value) + { + if ($this->vars[$key]['data_type'] == XOBJ_DTYPE_OTHER) { + parent::assignVar($key, consentDecompressData($value)); + } elseif (strpos($key, 'pass')||strpos($key, 'password')) { + parent::assignVar($key, consentDecryptPassword($value, PLEASE_SALT . PLEASE_SALT_WHENSET)); + } else + parent::assignVar($key, $value); + } + + /** + * (non-PHPdoc) + * @see XoopsObject::cleanVars() + */ + function cleanVars($object = null) + { + $ret = false; + if (empty($object)||is_null($object)) + $object = self; + if (is_a($object, "XoopsObject")) + if ($ret = parent::cleanVars($object)) + { + foreach(array_keys($object->vars) as $field) + { + if ($object->vars[$field]['data_type'] == XOBJ_DTYPE_OTHER) { + $object->vars[$field]['value'] = consentCompressData($object->vars[$field]['value']); + } elseif (strpos($field, 'pass')||strpos($field, 'password')) { + $object->vars[$field]['value'] = consentEncryptPassword($object->vars[$field]['value'], PLEASE_SALT . PLEASE_SALT_WHENSET); + } + } + } + return $ret; + } + + /** + * Returns MD5 Identify hash for handler getMD5()' + * + * @param string $field + * @return string + */ + function getMD5($field = 'id') + { + return md5(PLEASE_SALT . $this->getVar($field) . PLEASE_SALT); + } +} + +/** + * Handler Modelling Class for Addresses in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentXoopsObjectHandler extends XoopsPersistableObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = ''; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = ''; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = ''; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = ''; + + /** + * Class Constructor + * @param XoopsDB $db + * @param string $tbl + * @param string $child + * @param string $identity + * @param string $envalued + */ + function __construct($db, $tbl = '', $child = '', $identity = '', $envalued = '') + { + if (!is_object($db)) + $db = $GLOBAL["xoopsDB"]; + $this->tbl = $tbl; + $this->child = $child; + $this->identity = $identity; + $this->envalued = $envalued; + return parent::__construct($db, $this->tbl, $this->child, $this->identity, $this->envalued); + } + +} \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/class/objects.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/class/statistics.php =================================================================== --- XoopsModules/consent/trunk/modules/consent/class/statistics.php (rev 0) +++ XoopsModules/consent/trunk/modules/consent/class/statistics.php 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1,123 @@ +<?php +/** + * Legal Consent is a module for obtain legal guardianship consent + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://fonts2web.org.uk + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage consent + * @description Legal Consent is a module for obtain legal guardianship consent + * @version 1.0.1 + * @link http://internetfounder.wordpress.com + */ + +if (!defined('_MD_consent_MODULE_DIRNAME')) { + return false; +} + +//* +require_once (__DIR__ . DIRECTORY_SEPARATOR . 'objects.php'); + +/** + * Database Table for Statistics in Legal Consent Module + * + * For Table:- + * <code> + * CREATE TABLE `consent_statistics` ( + * `id` mediumint(32) NOT NULL AUTO_INCREMENT, + * `key` varchar(64) NOT NULL DEFAULT '', + * `when` int(13) NOT NULL DEFAULT '0', + * `year` int(4) NOT NULL DEFAULT '0', + * `month` int(2) NOT NULL DEFAULT '0', + * `day` int(2) NOT NULL DEFAULT '0', + * `week` int(2) NOT NULL DEFAULT '0', + * `hour` int(2) NOT NULL DEFAULT '0', + * `minute` int(2) NOT NULL DEFAULT '0', + * `seconds` int(2) NOT NULL DEFAULT '0', + * `quarter` enum('0-15','15-30','30-45','45-60') NOT NULL DEFAULT '0-15', + * `day-name` enum('Sun','Sat','Mon','Tue','Wed','Thu','Fri') NOT NULL DEFAULT 'Sun', + * `stat` float(22,9) NOT NULL DEFAULT '0.000000000', + * `adverage` float(22,9) NOT NULL DEFAULT '0.000000000', + * `stdev` float(22,9) NOT NULL DEFAULT '0.000000000', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`key`,`year`,`month`,`day`,`week`,`hour`,`minute`,`quarter`,`day-name`) USING BTREE KEY_BLOCK_SIZE=32 + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentStatistics extends consentXoopsObject +{ + + var $handler = 'consentStatisticsHandler'; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('fontid', XOBJ_DTYPE_INT, null, false); + self::initVar('value', XOBJ_DTYPE_INT, null, false); + + if (!empty($id) && !is_null($id)) + { + $handler = new $this->handler; + self::assignVars($handler->get($id)->getValues(array_keys($this->vars))); + } + + } + +} + + +/** + * Handler Class for Statistics + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentStatisticsHandler extends consentXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'consent_statistics'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'consentStatistics'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'value'; + + function __construct(&$db) + { + if (!is_object($db)) + $db = $GLOBAL["xoopsDB"]; + parent::__construct($db, $this->tbl, $this->child, $this->identity, $this->envalued); + } +} +?> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/class/statistics.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/header.php =================================================================== --- XoopsModules/consent/trunk/modules/consent/header.php (rev 0) +++ XoopsModules/consent/trunk/modules/consent/header.php 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1,59 @@ +<?php +/** + * Legal Consent is a module for obtain legal guardianship consent + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://fonts2web.org.uk + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage consent + * @description Legal Consent is a module for obtain legal guardianship consent + * @version 1.0.1 + * @link http://internetfounder.wordpress.com + */ + if (!defined(_MD_CONSENT_MODULE_DIRNAME)) + define('_MD_CONSENT_MODULE_DIRNAME', basename(__DIR__)); + + include_once (dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'mainfile.php'); + + ini_set('display_errors', true); + error_reporting(E_ALL); + + set_time_limit(8444); + + xoops_loadLanguage('modinfo', _MD_CONSENT_MODULE_DIRNAME); + xoops_loadLanguage('errors', _MD_CONSENT_MODULE_DIRNAME); + + global $consentModule, $consentConfigsList, $consentConfigs, $consentConfigsOptions; + + if (empty($consentModule)) + { + if (is_a($consentModule = xoops_gethandler('module')->getByDirname(_MD_CONSENT_MODULE_DIRNAME), "XoopsModule")) + { + if (empty($consentConfigsList)) + { + $consentConfigsList = xoops_gethandler('config')->getConfigList($consentModule->getVar('mid')); + if (!defined('_MD_CONSENT_DEFAULT_TWITTER')) + define('_MD_CONSENT_DEFAULT_TWITTER',$consentConfigsList['username']); + } + if (empty($consentConfigs)) + { + $consentConfigs = xoops_gethandler('config')->getConfigs(new Criteria('conf_modid', $consentModule->getVar('mid'))); + } + if (empty($consentConfigsOptions) && !empty($consentConfigs)) + { + foreach($consentConfigs as $key => $config) + $consentConfigsOptions[$config->getVar('conf_name')] = $config->getConfOptions(); + } + } + } + + include_once (__DIR__ . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'functions.php'); + +?> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/header.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/images/1x1.png =================================================================== (Binary files differ) Index: XoopsModules/consent/trunk/modules/consent/images/1x1.png =================================================================== --- XoopsModules/consent/trunk/modules/consent/images/1x1.png 2017-08-13 11:00:18 UTC (rev 13272) +++ XoopsModules/consent/trunk/modules/consent/images/1x1.png 2017-08-19 20:29:28 UTC (rev 13273) Property changes on: XoopsModules/consent/trunk/modules/consent/images/1x1.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/images/index.html =================================================================== --- XoopsModules/consent/trunk/modules/consent/images/index.html (rev 0) +++ XoopsModules/consent/trunk/modules/consent/images/index.html 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/images/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/include/data/batch-csv-template.ods =================================================================== (Binary files differ) Index: XoopsModules/consent/trunk/modules/consent/include/data/batch-csv-template.ods =================================================================== --- XoopsModules/consent/trunk/modules/consent/include/data/batch-csv-template.ods 2017-08-13 11:00:18 UTC (rev 13272) +++ XoopsModules/consent/trunk/modules/consent/include/data/batch-csv-template.ods 2017-08-19 20:29:28 UTC (rev 13273) Property changes on: XoopsModules/consent/trunk/modules/consent/include/data/batch-csv-template.ods ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/include/data/batch-csv-template.xlsx =================================================================== (Binary files differ) Index: XoopsModules/consent/trunk/modules/consent/include/data/batch-csv-template.xlsx =================================================================== --- XoopsModules/consent/trunk/modules/consent/include/data/batch-csv-template.xlsx 2017-08-13 11:00:18 UTC (rev 13272) +++ XoopsModules/consent/trunk/modules/consent/include/data/batch-csv-template.xlsx 2017-08-19 20:29:28 UTC (rev 13273) Property changes on: XoopsModules/consent/trunk/modules/consent/include/data/batch-csv-template.xlsx ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/include/data/index.html =================================================================== --- XoopsModules/consent/trunk/modules/consent/include/data/index.html (rev 0) +++ XoopsModules/consent/trunk/modules/consent/include/data/index.html 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/include/data/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/include/enumerators/index.html =================================================================== --- XoopsModules/consent/trunk/modules/consent/include/enumerators/index.html (rev 0) +++ XoopsModules/consent/trunk/modules/consent/include/enumerators/index.html 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/include/enumerators/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/include/functions.php =================================================================== --- XoopsModules/consent/trunk/modules/consent/include/functions.php (rev 0) +++ XoopsModules/consent/trunk/modules/consent/include/functions.php 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1,107 @@ +<?php +/** + * Legal Consent is a module for obtain legal guardianship consent + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://fonts2web.org.uk + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage consent + * @description Legal Consent is a module for obtain legal guardianship consent + * @version 1.0.1 + * @link http://internetfounder.wordpress.com + */ + +if (!function_exists("getEnumeratorValues")) { + /** + * Loads a field enumerator values + * + * @param string $filename + * @param string $variable + * @return array(): + */ + function getEnumeratorValues($filename = '', $variable = '') + { + $variable = str_replace(array('-', ' '), "_", $variable); + static $ret = array(); + if (!isset($ret[basename($file)])) + if (file_exists($file = __DIR__ . DIRECTORY_SEPARATOR . 'enumerators' . DIRECTORY_SEPARATOR . "$variable__" . str_replace("php", "diz", basename($filename)))) + foreach( file($file) as $id => $value ) + if (!empty($value)) + $ret[basename($file)][$value] = $value; + return $ret[basename($file)]; + } +} + +if (!function_exists("consentDecryptPassword")) { + /** + * Decrypts a password + * + * @param string $password + * @param string $cryptiopass + * @return string: + */ + function consentDecryptPassword($password = '', $cryptiopass = '') + { + $sql = "SELECT AES_DECRYPT(%s, %s) as `crypteec`"; + list($result) = $GLOBALS["xoopsDB"]->fetchRow($GLOBALS["xoopsDB"]->queryF(sprintf($sql, $GLOBALS["xoopsDB"]->quote($password), $GLOBALS["xoopsDB"]->quote($cryptiopass)))); + return $result; + } +} + + +if (!function_exists("consentEncryptPassword")) { + /** + * Encrypts a password + * + * @param string $password + * @param string $cryptiopass + * @return string: + */ + function consentEncryptPassword($password = '', $cryptiopass = '') + { + $sql = "SELECT AES_ENCRYPT(%s, %s) as `encrypic`"; + list($result) = $GLOBALS["xoopsDB"]->fetchRow($GLOBALS["xoopsDB"]->queryF(sprintf($sql, $GLOBALS["xoopsDB"]->quote($password), $GLOBALS["xoopsDB"]->quote($cryptiopass)))); + return $result; + } +} + + +if (!function_exists("consentCompressData")) { + /** + * Compresses a textualisation + * + * @param string $data + * @return string: + */ + function consentCompressData($data = '') + { + $sql = "SELECT COMPRESS(%s) as `compressed`"; + list($result) = $GLOBALS["xoopsDB"]->fetchRow($GLOBALS["xoopsDB"]->queryF(sprintf($sql, $GLOBALS["xoopsDB"]->quote($data)))); + return $result; + } +} + + +if (!function_exists("consentDecompressData")) { + /** + * Compresses a textualisation + * + * @param string $data + * @return string: + */ + function consentDecompressData($data = '') + { + $sql = "SELECT DECOMPRESS(%s) as `compressed`"; + list($result) = $GLOBALS["xoopsDB"]->fetchRow($GLOBALS["xoopsDB"]->queryF(sprintf($sql, $GLOBALS["xoopsDB"]->quote($data)))); + return $result; + } +} + +?> Property changes on: XoopsModules/consent/trunk/modules/consent/include/functions.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/include/index.html =================================================================== --- XoopsModules/consent/trunk/modules/consent/include/index.html (rev 0) +++ XoopsModules/consent/trunk/modules/consent/include/index.html 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/include/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/language/english/errors.php =================================================================== --- XoopsModules/consent/trunk/modules/consent/language/english/errors.php (rev 0) +++ XoopsModules/consent/trunk/modules/consent/language/english/errors.php 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1,24 @@ +<?php +/** + * Font Converter for fonts2web.org.uk +* +* You may not change or alter any portion of this comment or credits +* of supporting developers from this source code or any supporting source code +* which is considered copyrighted (c) material of the original comment or credit authors. +* 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. +* +* @copyright The XOOPS Project http://fonts2web.org.uk +* @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) +* @author Simon Roberts (wishcraft) <wis...@us...> +* @subpackage convert +* @description Converts fonts to web distributional format in a zip pack stamped +* @version 1.0.1 +* @link http://fonts2web.org.uk +* @link http://fonts.labs.coop +* @link http://internetfounder.wordpress.com +*/ + + +?> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/language/english/errors.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/language/english/index.html =================================================================== --- XoopsModules/consent/trunk/modules/consent/language/english/index.html (rev 0) +++ XoopsModules/consent/trunk/modules/consent/language/english/index.html 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/language/english/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/language/english/mail_templates/index.html =================================================================== --- XoopsModules/consent/trunk/modules/consent/language/english/mail_templates/index.html (rev 0) +++ XoopsModules/consent/trunk/modules/consent/language/english/mail_templates/index.html 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/language/english/mail_templates/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/language/english/modinfo.php =================================================================== --- XoopsModules/consent/trunk/modules/consent/language/english/modinfo.php (rev 0) +++ XoopsModules/consent/trunk/modules/consent/language/english/modinfo.php 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1,106 @@ +<?php +/** + * Legal Consent is a module for obtain legal guardianship consent + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://fonts2web.org.uk + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage consent + * @description Legal Consent is a module for obtain legal guardianship consent + * @version 1.0.1 + * @link http://internetfounder.wordpress.com + */ + +// Licencing Commonality & Defaults +define('_MD_CONSENT_LICENSE_EXTENSION','eot'); +define('_MD_CONSENT_LICENSE_NAME','Creative Commons - Share Alike'); +define('_MD_CONSENT_LICENSE_CODE','BY-SA'); +d... [truncated message content] |
From: <wis...@us...> - 2017-08-30 18:15:06
|
Revision: 13288 http://sourceforge.net/p/xoops/svn/13288 Author: wishcraft Date: 2017-08-30 18:15:02 +0000 (Wed, 30 Aug 2017) Log Message: ----------- Images module for releases.xoops.org -- still alpha1! Added Paths: ----------- XoopsModules/images/ XoopsModules/images/trunk/ XoopsModules/images/trunk/modules/ XoopsModules/images/trunk/modules/images/ XoopsModules/images/trunk/modules/images/admin/ XoopsModules/images/trunk/modules/images/class/ XoopsModules/images/trunk/modules/images/class/WideImage/ XoopsModules/images/trunk/modules/images/class/WideImage/Canvas.php XoopsModules/images/trunk/modules/images/class/WideImage/Coordinate.php XoopsModules/images/trunk/modules/images/class/WideImage/Exception.php XoopsModules/images/trunk/modules/images/class/WideImage/Font/ XoopsModules/images/trunk/modules/images/class/WideImage/Font/GDF.php XoopsModules/images/trunk/modules/images/class/WideImage/Font/PS.php XoopsModules/images/trunk/modules/images/class/WideImage/Font/TTF.php XoopsModules/images/trunk/modules/images/class/WideImage/Image.php XoopsModules/images/trunk/modules/images/class/WideImage/Mapper/ XoopsModules/images/trunk/modules/images/class/WideImage/Mapper/BMP.php XoopsModules/images/trunk/modules/images/class/WideImage/Mapper/GD.php XoopsModules/images/trunk/modules/images/class/WideImage/Mapper/GD2.php XoopsModules/images/trunk/modules/images/class/WideImage/Mapper/GIF.php XoopsModules/images/trunk/modules/images/class/WideImage/Mapper/JPEG.php XoopsModules/images/trunk/modules/images/class/WideImage/Mapper/PNG.php XoopsModules/images/trunk/modules/images/class/WideImage/Mapper/TGA.php XoopsModules/images/trunk/modules/images/class/WideImage/MapperFactory.php XoopsModules/images/trunk/modules/images/class/WideImage/Operation/ XoopsModules/images/trunk/modules/images/class/WideImage/Operation/AddNoise.php XoopsModules/images/trunk/modules/images/class/WideImage/Operation/ApplyConvolution.php XoopsModules/images/trunk/modules/images/class/WideImage/Operation/ApplyFilter.php XoopsModules/images/trunk/modules/images/class/WideImage/Operation/ApplyMask.php XoopsModules/images/trunk/modules/images/class/WideImage/Operation/AsGrayscale.php XoopsModules/images/trunk/modules/images/class/WideImage/Operation/AsNegative.php XoopsModules/images/trunk/modules/images/class/WideImage/Operation/AutoCrop.php XoopsModules/images/trunk/modules/images/class/WideImage/Operation/CopyChannelsPalette.php XoopsModules/images/trunk/modules/images/class/WideImage/Operation/CopyChannelsTrueColor.php XoopsModules/images/trunk/modules/images/class/WideImage/Operation/CorrectGamma.php XoopsModules/images/trunk/modules/images/class/WideImage/Operation/Crop.php XoopsModules/images/trunk/modules/images/class/WideImage/Operation/Flip.php XoopsModules/images/trunk/modules/images/class/WideImage/Operation/GetMask.php XoopsModules/images/trunk/modules/images/class/WideImage/Operation/Merge.php XoopsModules/images/trunk/modules/images/class/WideImage/Operation/Mirror.php XoopsModules/images/trunk/modules/images/class/WideImage/Operation/Resize.php XoopsModules/images/trunk/modules/images/class/WideImage/Operation/ResizeCanvas.php XoopsModules/images/trunk/modules/images/class/WideImage/Operation/Rotate.php XoopsModules/images/trunk/modules/images/class/WideImage/Operation/RoundCorners.php XoopsModules/images/trunk/modules/images/class/WideImage/Operation/Unsharp.php XoopsModules/images/trunk/modules/images/class/WideImage/OperationFactory.php XoopsModules/images/trunk/modules/images/class/WideImage/PaletteImage.php XoopsModules/images/trunk/modules/images/class/WideImage/README XoopsModules/images/trunk/modules/images/class/WideImage/TrueColorImage.php XoopsModules/images/trunk/modules/images/class/WideImage/VERSION XoopsModules/images/trunk/modules/images/class/WideImage/WideImage.php XoopsModules/images/trunk/modules/images/class/WideImage/gpl.txt XoopsModules/images/trunk/modules/images/class/WideImage/lgpl.txt XoopsModules/images/trunk/modules/images/class/WideImage/vendor/ XoopsModules/images/trunk/modules/images/class/WideImage/vendor/de77/ XoopsModules/images/trunk/modules/images/class/WideImage/vendor/de77/BMP.php XoopsModules/images/trunk/modules/images/class/WideImage/vendor/de77/TGA.php XoopsModules/images/trunk/modules/images/class/ascii/ XoopsModules/images/trunk/modules/images/class/ascii/engine.php XoopsModules/images/trunk/modules/images/class/ascii/php7.0/ XoopsModules/images/trunk/modules/images/class/ascii/php7.0/ascii_engine.php XoopsModules/images/trunk/modules/images/class/ascii/php7.0/php7.0.php XoopsModules/images/trunk/modules/images/class/ascii/text-image.com/ XoopsModules/images/trunk/modules/images/class/ascii/text-image.com/ascii_engine.php XoopsModules/images/trunk/modules/images/class/ascii/text-image.com/text-image.com.php XoopsModules/images/trunk/modules/images/class/images.php XoopsModules/images/trunk/modules/images/class/objects.php XoopsModules/images/trunk/modules/images/class/xcp/ XoopsModules/images/trunk/modules/images/class/xcp/xcp.base.php XoopsModules/images/trunk/modules/images/class/xcp/xcp.class.php XoopsModules/images/trunk/modules/images/class/xcp/xcp.enumerator.php XoopsModules/images/trunk/modules/images/class/xcp/xcp.leaver.php XoopsModules/images/trunk/modules/images/crons/ XoopsModules/images/trunk/modules/images/footer.php XoopsModules/images/trunk/modules/images/header.php XoopsModules/images/trunk/modules/images/images/ XoopsModules/images/trunk/modules/images/include/ XoopsModules/images/trunk/modules/images/include/enumerators/ XoopsModules/images/trunk/modules/images/include/enumerators/index.html XoopsModules/images/trunk/modules/images/include/enumerators/storage__images.diz XoopsModules/images/trunk/modules/images/include/enumerators/type__images.diz XoopsModules/images/trunk/modules/images/include/functions.php XoopsModules/images/trunk/modules/images/include/index.html XoopsModules/images/trunk/modules/images/language/ XoopsModules/images/trunk/modules/images/language/english/ XoopsModules/images/trunk/modules/images/language/english/admin.php XoopsModules/images/trunk/modules/images/language/english/forms.php XoopsModules/images/trunk/modules/images/language/english/index.html XoopsModules/images/trunk/modules/images/language/english/mail_templates/ XoopsModules/images/trunk/modules/images/language/english/main.php XoopsModules/images/trunk/modules/images/language/english/modinfo.php XoopsModules/images/trunk/modules/images/language/english/release.nfo XoopsModules/images/trunk/modules/images/language/english/release.xcode XoopsModules/images/trunk/modules/images/language/english/style.css XoopsModules/images/trunk/modules/images/preloads/ XoopsModules/images/trunk/modules/images/sql/ XoopsModules/images/trunk/modules/images/sql/index.html XoopsModules/images/trunk/modules/images/sql/mysql.sql XoopsModules/images/trunk/modules/images/templates/ XoopsModules/images/trunk/modules/images/templates/admin/ XoopsModules/images/trunk/modules/images/xoops_version.php Added: XoopsModules/images/trunk/modules/images/class/WideImage/Canvas.php =================================================================== --- XoopsModules/images/trunk/modules/images/class/WideImage/Canvas.php (rev 0) +++ XoopsModules/images/trunk/modules/images/class/WideImage/Canvas.php 2017-08-30 18:15:02 UTC (rev 13288) @@ -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}."); + } + } Property changes on: XoopsModules/images/trunk/modules/images/class/WideImage/Canvas.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/images/trunk/modules/images/class/WideImage/Coordinate.php =================================================================== --- XoopsModules/images/trunk/modules/images/class/WideImage/Coordinate.php (rev 0) +++ XoopsModules/images/trunk/modules/images/class/WideImage/Coordinate.php 2017-08-30 18:15:02 UTC (rev 13288) @@ -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; + } + } Property changes on: XoopsModules/images/trunk/modules/images/class/WideImage/Coordinate.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/images/trunk/modules/images/class/WideImage/Exception.php =================================================================== --- XoopsModules/images/trunk/modules/images/class/WideImage/Exception.php (rev 0) +++ XoopsModules/images/trunk/modules/images/class/WideImage/Exception.php 2017-08-30 18:15:02 UTC (rev 13288) @@ -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 Property changes on: XoopsModules/images/trunk/modules/images/class/WideImage/Exception.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/images/trunk/modules/images/class/WideImage/Font/GDF.php =================================================================== --- XoopsModules/images/trunk/modules/images/class/WideImage/Font/GDF.php (rev 0) +++ XoopsModules/images/trunk/modules/images/class/WideImage/Font/GDF.php 2017-08-30 18:15:02 UTC (rev 13288) @@ -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); + } + } Property changes on: XoopsModules/images/trunk/modules/images/class/WideImage/Font/GDF.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/images/trunk/modules/images/class/WideImage/Font/PS.php =================================================================== --- XoopsModules/images/trunk/modules/images/class/WideImage/Font/PS.php (rev 0) +++ XoopsModules/images/trunk/modules/images/class/WideImage/Font/PS.php 2017-08-30 18:15:02 UTC (rev 13288) @@ -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; + } + } Property changes on: XoopsModules/images/trunk/modules/images/class/WideImage/Font/PS.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/images/trunk/modules/images/class/WideImage/Font/TTF.php =================================================================== --- XoopsModules/images/trunk/modules/images/class/WideImage/Font/TTF.php (rev 0) +++ XoopsModules/images/trunk/modules/images/class/WideImage/Font/TTF.php 2017-08-30 18:15:02 UTC (rev 13288) @@ -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); + } + } Property changes on: XoopsModules/images/trunk/modules/images/class/WideImage/Font/TTF.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/images/trunk/modules/images/class/WideImage/Image.php =================================================================== --- XoopsModules/images/trunk/modules/images/class/WideImage/Image.php (rev 0) +++ XoopsModules/images/trunk/modules/images/class/WideImage/Image.php 2017-08-30 18:15:02 UTC (rev 13288) @@ -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 (!$res) + throw new WideImage_UnknownErrorWhileMappingException(get_class($mapper) . " returned an invalid result while writing the image data"); + + return ob_get_clean(); + } + + /** + * Output a header to browser. + * + * @param $name Name of the header + * @param $data Data + */ + protected function writeHeader($name, $data) + { + header($name . ": " . $data); + } + + /** + * Outputs the image to browser + * + * Sets headers Content-length and Content-type, and echoes the image in the specified format. + * All other headers (such as Content-disposition) must be added manually. + * + * Example: + * <code> + * WideImage::load('image1.png')->resize(100, 100)->output('gif'); + * </code> + * + * @param string $format Image format + */ + function output($format) + { + $args = func_get_args(); + $data = call_user_func_array(array($this, 'asString'), $args); + + $this->writeHeader('Content-length', strlen($data)); + $this->writeHeader('Content-type', WideImage_MapperFactory::mimeType($format)); + echo $data; + } + + /** + * @return int Image width + */ + function getWidth() + { + return imagesx($this->handle); + } + + /** + * @return int Image height + */ + function getHeight() + { + return imagesy($this->handle); + } + + /** + * Allocate a color by RGB values. + * + * @param mixed $R Red-component value or an RGB array (with red, green, blue keys) + * @param int $G If $R is int, this is the green component + * @param int $B If $R is int, this is the blue component + * @return int Image color index + */ + function allocateColor($R, $G = null, $B = null) + { + if (is_array($R)) + return imageColorAllocate($this->handle, $R['red'], $R['green'], $R['blue']); + else + return imageColorAllocate($this->handle, $R, $G, $B); + } + + /** + * @return bool True if the image is transparent, false otherwise + */ + function isTransparent() + { + return $this->getTransparentColor() >= 0; + } + + /** + * @return int Transparent color index + */ + function getTransparentColor() + { + return imagecolortransparent($this->handle); + } + + /** + * Sets the current transparent color index. Only makes sense for palette images (8-bit). + * + * @param int $color Transparent color index + */ + function setTransparentColor($color) + { + return imagecolortransparent($this->handle, $color); + } + + /** + * Returns a RGB array of the transparent color or null if none. + * + * @return mixed Transparent color RGBA array + */ + function getTransparentColorRGB() + { + $total = imagecolorstotal($this->handle); + $tc = $this->getTransparentColor(); + + if ($tc >= $total && $total > 0) + return null; + else + return $this->getColorRGB($tc); + } + + /** + * Returns a RGBA array for pixel at $x, $y + * + * @param int $x + * @param int $y + * @return array RGB array + */ + function getRGBAt($x, $y) + { + return $this->getColorRGB($this->getColorAt($x, $y)); + } + + /** + * Writes a pixel at the designated coordinates + * + * Takes an associative array of colours and uses getExactColor() to + * retrieve the exact index color to write to the image with. + * + * @param int $x + * @param int $y + * @param array $color + */ + function setRGBAt($x, $y, $color) + { + $this->setColorAt($x, $y, $this->getExactColor($color)); + } + + /** + * Returns a color's RGB + * + * @param int $colorIndex Color index + * @return mixed RGBA array for a color with index $colorIndex + */ + function getColorRGB($colorIndex) + { + return imageColorsForIndex($this->handle, $colorIndex); + } + + /** + * Returns an index of the color at $x, $y + * + * @param int $x + * @param int $y + * @return int Color index for a pixel at $x, $y + */ + function getColorAt($x, $y) + { + return imagecolorat($this->handle, $x, $y); + } + + /** + * Set the color index $color to a pixel at $x, $y + * + * @param int $x + * @param int $y + * @param int $color Color index + */ + function setColorAt($x, $y, $color) + { + return imagesetpixel($this->handle, $x, $y, $color); + } + + /** + * Returns closest color index that matches the given RGB value. Uses + * PHP's imagecolorclosest() + * + * @param mixed $R Red or RGBA array + * @param int $G Green component (or null if $R is an RGB array) + * @param int $B Blue component (or null if $R is an RGB array) + * @return int Color index + */ + function getClosestColor($R, $G = null, $B = null) + { + if (is_array($R)) + return imagecolorclosest($this->handle, $R['red'], $R['green'], $R['blue']); + else + return imagecolorclosest($this->handle, $R, $G, $B); + } + + /** + * Returns the color index that exactly matches the given RGB value. Uses + * PHP's imagecolorexact() + * + * @param mixed $R Red or RGBA array + * @param int $G Green component (or null if $R is an RGB array) + * @param int $B Blue component (or null if $R is an RGB array) + * @return int Color index + */ + function getExactColor($R, $G = null, $B = null) + { + if (is_array($R)) + return imagecolorexact($this->handle, $R['red'], $R['green'], $R['blue']); + else + return imagecolorexact($this->handle, $R, $G, $B); + } + + /** + * Copies transparency information from $sourceImage. Optionally fills + * the image with the transparent color at (0, 0). + * + * @param object $sourceImage + * @param bool $fill True if you want to fill the image with transparent color + */ + function copyTransparencyFrom($sourceImage, $fill = true) + { + if ($sourceImage->isTransparent()) + { + $rgba = $sourceImage->getTransparentColorRGB(); + if ($rgba === null) + return; + + if ($this->isTrueColor()) + { + $rgba['alpha'] = 127; + $color = $this->allocateColorAlpha($rgba); + } + else + $color = $this->allocateColor($rgba); + + $this->setTransparentColor($color); + if ($fill) + $this->fill(0, 0, $color); + } + } + + /** + * Fill the image at ($x, $y) with color index $color + * + * @param int $x + * @param int $y + * @param int $color + */ + function fill($x, $y, $color) + { + return imagefill($this->handle, $x, $y, $color); + } + + /** + * Used internally to create Operation objects + * + * @param string $name + * @return object + */ + protected function getOperation($name) + { + return WideImage_OperationFactory::get($name); + } + + /** + * Returns the image's mask + * + * Mask is a greyscale image where the shade defines the alpha channel (black = transparent, white = opaque). + * + * For opaque images (JPEG), the result will be white. For images with single-color transparency (GIF, 8-bit PNG), + * the areas with the transparent color will be black. For images with alpha channel transparenct, + * the result will be alpha channel. + * + * @return WideImage_Image An image mask + **/ + function getMask() + { + return $this->getOperation('GetMask')->execute($this); + } + + /** + * Resize the image to given dimensions. + * + * $width and $height are both smart coordinates. This means that you can pass any of these values in: + * - positive or negative integer (100, -20, ...) + * - positive or negative percent string (30%, -15%, ...) + * - complex coordinate (50% - 20, 15 + 30%, ...) + * + * If $width is null, it's calculated proportionally from $height, and vice versa. + * + * Example (resize to half-size): + * <code> + * $smaller = $image->resize('50%'); + * + * $smaller = $image->resize('100', '100', 'inside', 'down'); + * is the same as + * $smaller = $image->resizeDown(100, 100, 'inside'); + * </code> + * + * @param mixed $width The new width (smart coordinate), or null. + * @param mixed $height The new height (smart coordinate), or null. + * @param string $fit 'inside', 'outside', 'fill' + * @param string $scale 'down', 'up', 'any' + * @return WideImage_Image The resized image + */ + function resize($width = null, $height = null, $fit = 'inside', $scale = 'any') + { + return $this->getOperation('Resize')->execute($this, $width, $height, $fit, $scale); + } + + /** + * Same as WideImage_Image::resize(), but the image is only applied if it is larger then the given dimensions. + * Otherwise, the resulting image retains the source's dimensions. + * + * @param int $width New width, smart coordinate + * @param int $height New height, smart coordinate + * @param string $fit 'inside', 'outside', 'fill' + * @return WideImage_Image resized image + */ + function resizeDown($width = null, $height = null, $fit = 'inside') + { + return $this->resize($width, $height, $fit, 'down'); + } + + /** + * Same as WideImage_Image::resize(), but the image is only applied if it is smaller then the given dimensions. + * Otherwise, the resulting image retains the source's dimensions. + * + * @param int $width New width, smart coordinate + * @param int $height New height, smart coordinate + * @param string $fit 'inside', 'outside', 'fill' + * @return WideImage_Image resized image + */ + function resizeUp($width = null, $height = null, $fit = 'inside') + { + return $this->resize($width, $height, $fit, 'up'); + } + + /** + * Rotate the image for angle $angle clockwise. + * + * Preserves transparency. Has issues when saving to a BMP. + * + * @param int $angle Angle in degrees, clock-wise + * @param int $bgColor color of the new background + * @param bool $ignoreTransparent + * @return WideImage_Image The rotated image + */ + function rotate($angle, $bgColor = null, $ignoreTransparent = true) + { + return $this->getOperation('Rotate')->execute($this, $angle, $bgColor, $ignoreTransparent); + } + + /** + * This method lays the overlay (watermark) on the image. + * + * Hint: if the overlay is a truecolor image with alpha channel, you should leave $pct at 100. + * + * This operation supports alignment notation in coordinates: + * <code> + * $watermark = WideImage::load('logo.gif'); + * $base = WideImage::load('picture.jpg'); + * $result = $base->merge($watermark, "right - 10", "bottom - 10", 50); + * // applies a logo aligned to bottom-right corner with a 10 pixel margin + * </code> + * + * @param WideImage_Image $overlay The overlay image + * @param mixed $left Left position of the overlay, smart coordinate + * @param mixed $top Top position of the overlay, smart coordinate + * @param int $pct The opacity of the overlay + * @return WideImage_Image The merged image + */ + function merge($overlay, $left = 0, $top = 0, $pct = 100) + { + return $this->getOperation('Merge')->execute($this, $overlay, $left, $top, $pct); + } + + /** + * Resizes the canvas of the image, but doesn't scale the content of the image + * + * This operation creates an empty canvas with dimensions $width x $height, filled with + * background color $bg_color and draws the original image onto it at position [$pos_x, $pos_y]. + * + * Arguments $width, $height, $pos_x and $pos_y are all smart coordinates. $width and $height are + * relative to the current image size, $pos_x and $pos_y are relative to the newly calculated + * canvas size. This can be confusing, but it makes sense. See the example below. + * + * The example below loads a 100x150 image and then resizes its canvas to 200% x 100%+20 + * (which evaluates to 200x170). The image is placed at position [10, center+20], which evaluates to [10, 30]. + * <code> + * $image = WideImage::load('someimage.jpg'); // 100x150 + * $white = $image->allocateColor(255, 255, 255); + * $image->resizeCanvas('200%', '100% + 20', 10, 'center+20', $white); + * </code> + * + * The parameter $merge defines whether the original image should be merged onto the new canvas. + * This means it blends transparent color and alpha colors into the background color. If set to false, + * the original image is just copied over, preserving the transparency/alpha information. + * + * You can set the $scale parameter to limit when to resize the canvas. For example, if you want + * to resize the canvas only if the image is smaller than the new size, but leave the image intact + * if it's larger, set it to 'up'. Likewise, if you want to shrink the canvas, but don't want to + * change images that are already smaller, set it to 'down'. + * + * @param mixed $width Width of the new canvas (smart coordinate, relative to current image width) + * @param mixed $height Height of the new canvas (smart coordinate, relative to current image height) + * @param mixed $pos_x x-position of the image (smart coordinate, relative to the new width) + * @param mixed $pos_y y-position of the image (smart coordinate, relative to the new height) + * @param int $bg_color Background color (created with allocateColor or allocateColorAlpha), defaults to null (tries to use a transparent color) + * @param string $scale Possible values: 'up' (enlarge only), 'down' (downsize only), 'any' (resize precisely to $width x $height). Defaults to 'any'. + * @param bool $merge Merge the original image (flatten alpha channel and transparency) or copy it over (preserve). Defaults to false. + * @return WideImage_Image The resulting image with resized canvas + */ + function resizeCanvas($width, $height, $pos_x, $pos_y, $bg_color = null, $scale = 'any', $merge = false) + { + return $this->getOperation('ResizeCanvas')->execute($this, $width, $height, $pos_x, $pos_y, $bg_color, $scale, $merge); + } + + /** + * Returns an image with round corners + * + * You can either set the corners' color or set them transparent. + * + * Note on $smoothness: 1 means jagged edges, 2 is much better, more than 4 doesn't noticeably improve the quality. + * Rendering becomes increasingly slower if you increase smoothness. + * + * Example: + * <code> + * $nice = $ugly->roundCorners(20, $ugly->allocateColor(255, 0, 0), 2); + * </code> + * + * Use $corners parameter to specify which corners to draw rounded. Possible values are + * WideImage::SIDE_TOP_LEFT, WideImage::SIDE_TOP, + * WideImage::SIDE_TOP_RIGHT, WideImage::SIDE_RIGHT, + * WideImage::SIDE_BOTTOM_RIGHT, WideImage::SIDE_BOTTOM, + * WideImage::SIDE_BOTTOM_LEFT, WideImage::SIDE_LEFT, and WideImage::SIDE_ALL. + * You can specify any combination of corners with a + operation, see example below. + * + * Example: + * <code> + * $white = $image->allocateColor(255, 255, 255); + * $diagonal_corners = $image->roundCorners(15, $white, 2, WideImage::SIDE_TOP_LEFT + WideImage::SIDE_BOTTOM_RIGHT); + * $right_corners = $image->roundCorners(15, $white, 2, WideImage::SIDE_RIGHT); + * </code> + * + * @param int $radius Radius of the corners + * @param int $color The color of corners. If null, corners are rendered transparent (slower than using a solid color). + * @param int $smoothness Specify the level of smoothness. Suggested values from 1 to 4. + * @param int $corners Specify which corners to draw (defaults to WideImage::SIDE_ALL = all corners) + * @return WideImage_Image The resulting image with round corners + */ + function roundCorners($radius, $color = null, $smoothness = 2, $corners = 255) + { + return $this->getOperation('RoundCorners')->execute($this, $radius, $color, $smoothness, $corners); + } + + /** + * Returns an image with applied mask + * + * A mask is a grayscale image, where the shade determines the alpha channel. Black is fully transparent + * and white is fully opaque. + * + * @param WideImage_Image $mask The mask image, greyscale + * @param mixed $left Left coordinate, smart coordinate + * @param mixed $top Top coordinate, smart coordinate + * @return WideImage_Image The resulting image + **/ + function applyMask($mask, $left = 0, $top = 0) + { + return $this->getOperation('ApplyMask')->execute($this, $mask, $left, $top); + } + + /** + * Applies a filter + * + * @param int $filter One of the IMG_FILTER_* constants + * @param int $arg1 + * @param int $arg2 + * @param int $arg3 + * @param int $arg4 + * @return WideImage_Image + */ + function applyFilter($filter, $arg1 = null, $arg2 = null, $arg3 = null, $arg4 = null) + { + return $this->getOperation('ApplyFilter')->execute($this, $filter, $arg1, $arg2, $arg3, $arg4); + } + + /** + * Applies convolution matrix with imageconvolution() + * + * @param array $matrix + * @param float $div + * @param float $offset + * @return WideImage_Image + */ + function applyConvolution($matrix, $div, $offset) + { + return $this->getOperation('ApplyConvolution')->execute($this, $matrix, $div, $offset); + } + + /** + * Returns a cropped rectangular portion of the image + * + * If the rectangle specifies area that is out of bounds, it's limited to the current image bounds. + * + * Examples: + * <code> + * $cropped = $img->crop(10, 10, 150, 200); // crops a 150x200 rect at (10, 10) + * $cropped = $img->crop(-100, -50, 100, 50); // crops a 100x50 rect at the right-bottom of the image + * $cropped = $img->crop('25%', '25%', '50%', '50%'); // crops a 50%x50% rect from the center of the image + * </code> + * + * This operation supports alignment notation in left/top coordinates. + * Example: + * <code> + * $cropped = $img->crop("right", "bottom", 100, 200); // crops a 100x200 rect from right bottom + * $cropped = $img->crop("center", "middle", 50, 30); // crops a 50x30 from the center of the image + * </code> + * + * @param mixed $left Left-coordinate of the crop rect, smart coordinate + * @param mixed $top Top-coordinate of the crop rect, smart coordinate + * @param mixed $width Width of the crop rect, smart coordinate + * @param mixed $height Height of the crop rect, smart coordinate + * @return WideImage_Image The cropped image + **/ + function crop($left = 0, $top = 0, $width = '100%', $height = '100%') + { + return $this->getOperation('Crop')->execute($this, $left, $top, $width, $height); + } + + /** + * Performs an auto-crop on the image + * + * The image is auto-cropped from each of four sides. All sides are + * scanned for pixels that differ from $base_color for more than + * $rgb_threshold in absolute RGB difference. If more than $pixel_cutoff + * differentiating pixels are found, that line is considered to be the crop line for the side. + * If the line isn't different enough, the algorithm procedes to the next line + * towards the other edge of the image. + * + * When the crop rectangle is found, it's enlarged by the $margin value on each of the four sides. + * + * @param int $margin Margin for the crop rectangle, can be negative. + * @param int $rgb_threshold RGB difference which still counts as "same color". + * @param int $pixel_cutoff How many pixels need to be different to mark a cut line. + * @param int $base_color The base color index. If none specified (or null given), left-top pixel is used. + * @return WideImage_Image The cropped image + */ + function autoCrop($margin = 0, $rgb_threshold = 0, $pixel_cutoff = 1, $base_color = null) + { + return $this->getOperation('AutoCrop')->execute($this, $margin, $rgb_threshold, $pixel_cutoff, $base_color); + } + + /** + * Returns a negative of the image + * + * This operation differs from calling WideImage_Image::applyFilter(IMG_FILTER_NEGATIVE), because it's 8-bit and transparency safe. + * This means it will return an 8-bit image, if the source image is 8-bit. If that 8-bit image has a palette transparency, + * the resulting image will keep transparency. + * + * @return WideImage_Image negative of the image + */ + function asNegative() + { + return $this->getOperation('AsNegative')->execute($this); + } + + /** + * Returns a grayscale copy of the image + * + * @return WideImage_Image grayscale copy + **/ + function asGrayscale() + { + return $this->getOperation('AsGrayscale')->execute($this); + } + + /** + * Returns a mirrored copy of the image + * + * @return WideImage_Image Mirrored copy + **/ + function mirror() + { + return $this->getOperation('Mirror')->execute($this); + } + + /** + * Applies the unsharp filter + * + * @param float $amount + * @param float $radius + * @param float $threshold + * @return WideImage_Image Unsharpened copy of the image + **/ + function unsharp($amount, $radius, $threshold) + { + return $this->getOperation('Unsharp')->execute($this, $amount, $radius, $threshold); + } + + /** + * Returns a flipped (mirrored over horizontal line) copy of the image + * + * @return WideImage_Image Flipped copy + **/ + function flip() + { + return $this->getOperation('Flip')->execute($this); + } + + /** + * Corrects gamma on the image + * + * @param float $inputGamma + * @param float $outputGamma + * @return WideImage_Image Image with corrected gamma + **/ + function correctGamma($inputGamma, $outputGamma) + { + return $this->getOperation('CorrectGamma')->execute($this, $inputGamma, $outputGamma); + } + + /** + * Adds noise to the image + * + * @author Tomasz Kapusta + * + * @param int $amount Number of noise pixels to add + * @param string $type Type of noise 'salt&pepper', 'color' or 'mono' + * @return WideImage_Image Image with noise added + **/ + function addNoise($amount, $type) + { + return $this->getOperation('AddNoise')->execute($this, $amount, $type); + } + + /** + * Used internally to execute operations + * + * @param string $name + * @param array $args + * @return WideImage_Image + */ + function __call($name, $args) + { + $op = $this->getOperation($name); + array_unshift($args, $this); + return call_user_func_array(array($op, 'execute'), $args); + } + + /** + * Returns an image in GIF or PNG format + * + * @return string + */ + function __toString() + { + if ($this->isTransparent()) + return $this->asString('gif'); + else + return $this->asString('png'); + } + + /** + * Returns a copy of the image object + * + * @return WideImage_Image The copy + **/ + function copy() + { + $dest = $this->doCreate($this->getWidth(), $this->getHeight()); + $dest->copyTransparencyFrom($this, true); + $this->copyTo($dest, 0, 0); + return $dest; + } + + /** + * Copies this image onto another image + * + * @param WideImage_Image $dest + * @param int $left + * @param int $top + **/ + function copyTo($dest, $left = 0, $top = 0) + { + if (!imagecopy($dest->getHandle(), $this->handle, $left, $top, 0, 0, $this->getWidth(), $this->getHeight())) + throw new WideImage_GDFunctionResultException("imagecopy() returned false"); + } + + /** + * Returns the canvas object + * + * The Canvas object can be used to draw text and shapes on the image + * + * Examples: + * <code> + * $img = WideImage::load('pic.jpg); + * $canvas = $img->getCanvas(); + * $canvas->useFont('arial.ttf', 15, $img->allocateColor(200, 220, 255)); + * $canvas->writeText(10, 50, "Hello world!"); + * + * $canvas->filledRectangle(10, 10, 80, 40, $img->allocateColor(255, 127, 255)); + * $canvas->line(60, 80, 30, 100, $img->allocateColor(255, 0, 0)); + * $img->saveToFile('new.png'); + * </code> + * + * @return WideImage_Canvas The Canvas object + **/ + function getCanvas() + { + if ($this->canvas == null) + $this->canvas = new WideImage_Canvas($this); + return $this->canvas; + } + + /** + * Returns true if the image is true-color, false otherwise + * + * @return bool + **/ + abstract function isTrueColor(); + + /** + * Returns a true-color copy of the image + * + * @return WideImage_TrueColorImage + **/ + abstract function asTrueColor(); + + /** + * Returns a palette copy (8bit) of the image + * + * @param int $nColors Number of colors in the resulting image, more than 0, less or equal to 255 + * @param bool $dither Use dithering or not + * @param bool $matchPalette Set to true to use imagecolormatch() to match the resulting palette more closely to the original image + * @return WideImage_Image + **/ + abstract function asPalette($nColors = 255, $dither = null, $matchPalette = true); + + /** + * Retrieve an image with selected channels + * + * Examples: + * <code> + * $channels = $img->getChannels('red', 'blue'); + * $channels = $img->getChannels('alpha', 'green'); + * $channels = $img->getChannels(array('green', 'blue')); + * </code> + * + * @return WideImage_Image + **/ + abstract function getChannels(); + + /** + * Returns an image without an alpha channel + * + * @return WideImage_Image + **/ + abstract function copyNoAlpha(); + + /** + * Returns an array of serializable protected variables. Called automatically upon serialize(). + * + * @return array + */ + function __sleep() + { + $this->sdata = $this->asString('png'); + return array('sdata', 'handleReleased'); + } + + /** + * Restores an image from serialization. Called automatically upon unserialize(). + */ + function __wakeup() + { + $temp_image = WideImage::loadFromString($this->sdata); + $temp_image->releaseHandle(); + $this->handle = $temp_image->handle; + $temp_image = null; + $this->sdata = null; + } + } Property changes on: XoopsModules/images/trunk/modules/images/class/WideImage/Image.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/images/trunk/modules/images/class/WideImage/Mapper/BMP.php =================================================================== --- XoopsModules/images/trunk/modules/images/class/WideImage/Mapper/BMP.php (rev 0) +++ XoopsModules/images/trunk/modules/images/class/WideImage/Mapper/BMP.php 2017-08-30 18:15:02 UTC (rev 13288) @@ -0,0 +1,51 @@ +<?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.... [truncated message content] |
From: <chr...@us...> - 2018-10-22 00:45:38
|
Revision: 13389 http://sourceforge.net/p/xoops/svn/13389 Author: chronolabscoop Date: 2018-10-22 00:45:30 +0000 (Mon, 22 Oct 2018) Log Message: ----------- prealpha - renderments.org - organisational entities! Added Paths: ----------- XoopsModules/entities/ XoopsModules/entities/trunk/ XoopsModules/entities/trunk/modules/ XoopsModules/entities/trunk/modules/entities/ XoopsModules/entities/trunk/modules/entities/admin/ XoopsModules/entities/trunk/modules/entities/assets/ XoopsModules/entities/trunk/modules/entities/assets/css/ XoopsModules/entities/trunk/modules/entities/assets/fonts/ XoopsModules/entities/trunk/modules/entities/assets/icons/ XoopsModules/entities/trunk/modules/entities/assets/images/ XoopsModules/entities/trunk/modules/entities/assets/js/ XoopsModules/entities/trunk/modules/entities/assets/sql/ XoopsModules/entities/trunk/modules/entities/assets/sql/mysql.sql XoopsModules/entities/trunk/modules/entities/blocks/ XoopsModules/entities/trunk/modules/entities/class/ XoopsModules/entities/trunk/modules/entities/class/addresses.php XoopsModules/entities/trunk/modules/entities/class/departments.php XoopsModules/entities/trunk/modules/entities/class/emails.php XoopsModules/entities/trunk/modules/entities/class/facilities.php XoopsModules/entities/trunk/modules/entities/class/queue.php XoopsModules/entities/trunk/modules/entities/class/users.php XoopsModules/entities/trunk/modules/entities/footer.php XoopsModules/entities/trunk/modules/entities/header.php XoopsModules/entities/trunk/modules/entities/include/ XoopsModules/entities/trunk/modules/entities/include/data/ XoopsModules/entities/trunk/modules/entities/include/functions.php XoopsModules/entities/trunk/modules/entities/index.php XoopsModules/entities/trunk/modules/entities/language/ XoopsModules/entities/trunk/modules/entities/language/english/ XoopsModules/entities/trunk/modules/entities/language/english/admin.php XoopsModules/entities/trunk/modules/entities/language/english/forms.php XoopsModules/entities/trunk/modules/entities/language/english/index.html XoopsModules/entities/trunk/modules/entities/language/english/mail_templates/ XoopsModules/entities/trunk/modules/entities/language/english/main.php XoopsModules/entities/trunk/modules/entities/language/english/modinfo.php XoopsModules/entities/trunk/modules/entities/language/english/style.css XoopsModules/entities/trunk/modules/entities/preloads/ XoopsModules/entities/trunk/modules/entities/templates/ XoopsModules/entities/trunk/modules/entities/templates/admin/ XoopsModules/entities/trunk/modules/entities/templates/blocks/ XoopsModules/entities/trunk/modules/entities/templates/pdf/ XoopsModules/entities/trunk/modules/entities/xoops_version.php Added: XoopsModules/entities/trunk/modules/entities/assets/sql/mysql.sql =================================================================== --- XoopsModules/entities/trunk/modules/entities/assets/sql/mysql.sql (rev 0) +++ XoopsModules/entities/trunk/modules/entities/assets/sql/mysql.sql 2018-10-22 00:45:30 UTC (rev 13389) @@ -0,0 +1,242 @@ + +DROP TABLE IF EXISTS `entities_addresses`; + +CREATE TABLE `entities_addresses` ( + `id` mediumint(64) NOT NULL AUTO_INCREMENT, + `street-one` varchar(128) NOT NULL DEFAULT '', + `street-two` varchar(128) NOT NULL DEFAULT '', + `suburb` varchar(128) NOT NULL DEFAULT '', + `city` varchar(128) NOT NULL DEFAULT '', + `province` varchar(128) NOT NULL DEFAULT '', + `countryid` int(11) NOT NULL DEFAULT '0', + `vicinity` varchar(128) NOT NULL DEFAULT '', + `postcode` varchar(24) NOT NULL DEFAULT '', + `longitude` decimal(14,10) NOT NULL DEFAULT '0.0000000000', + `latitude` decimal(14,10) NOT NULL DEFAULT '0.0000000000', + `key` varchar(64) NOT NULL DEFAULT '', + `created` int(13) NOT NULL DEFAULT '0', + PRIMARY KEY (`id`), + KEY `SEARCH` (`suburb`,`province`,`city`,`countryid`,`vicinity`,`postcode`,`latitude`,`longitude`,`key`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +DROP TABLE IF EXISTS `entities_departments`; + +CREATE TABLE `entities_departments` ( + `id` mediumint(24) NOT NULL, + `typal` ENUM('new', 'manager', 'line-manager', 'staffing', 'established', 'merged', 'depreciated', 'hidden') NOT NULL DEFAULT 'new' + `parentid` mediumint(24) NOT NULL DEFAULT '0', + `mergedid` mediumint(24) NOT NULL DEFAULT '0', + `salt` varchar(250) NOT NULL DEFAULT '', + `key` varchar(32) NOT NULL DEFAULT '', + `unixname` varchar(64) NOT NULL DEFAULT '', + `countryid` int(11) NOT NULL DEFAULT '0', + `fullname` varchar(128) NOT NULL DEFAULT '', + `shortname` varchar(64) NOT NULL DEFAULT '', + `tags` varchar(250) NOT NULL DEFAULT '', + `rbn` varchar(32) NOT NULL DEFAULT '', + `rbn-url` TINYTEXT, + `established-year` int(4) NOT NULL DEFAULT '1999', + `established-month` int(2) NOT NULL DEFAULT '12', + `established-day` int(2) NOT NULL DEFAULT '31', + `main-hours` tinytext, + `main-url` tinytext, + `main-email` varchar(196) NOT NULL DEFAULT '', + `main-national-dialcode` varchar(24) NOT NULL DEFAULT '', + `main-international-dialcode` varchar(24) NOT NULL DEFAULT '', + `main-international-dialcode-countryid` int(11) NOT NULL DEFAULT '0', + `support-hours` tinytext, + `support-wiki-url` tinytext, + `support-url` tinytext, + `support-email` varchar(196) NOT NULL DEFAULT '', + `support-national-dialcode` varchar(24) NOT NULL DEFAULT '', + `support-international-dialcode` varchar(24) NOT NULL DEFAULT '', + `support-international-dialcode-countryid` int(11) NOT NULL DEFAULT '0', + `switch-hours` tinytext, + `switch-email` varchar(196) NOT NULL DEFAULT '', + `switch-national-dialcode` varchar(24) NOT NULL DEFAULT '', + `switch-international-dialcode` varchar(24) NOT NULL DEFAULT '', + `switch-international-dialcode-countryid` int(11) NOT NULL DEFAULT '0', + `related-countryids` blob, + `related-departmentsids` blob, + `relating` int(13) NOT NULL DEFAULT '0', + `logo` blob, + `logo-format` enum('SVG','PNG','GIF','JPG','UNKNOWN') NOT NULL DEFAULT 'UNKNOWN', + `ho-countryid` int(11) NOT NULL DEFAULT '0', + `ho-addressid` mediumint(64) NOT NULL DEFAULT '0', + `ho-longitude` decimal(14,10) NOT NULL DEFAULT '0.0000000000', + `ho-latitude` decimal(14,10) NOT NULL DEFAULT '0.0000000000', + `postal-countryid` int(11) NOT NULL DEFAULT '0', + `postal-addressid` mediumint(64) NOT NULL DEFAULT '0', + `facilities-countryids` blob, + `facilityids` blob, + `facilities` int(13) NOT NULL DEFAULT '0', + `creator-uid` int(13) NOT NULL DEFAULT '0', + `creator-hash` varchar(40) NOT NULL DEFAULT '', + `staff-uids` blob, + `staff-hashings` blob, + `zoning-uids` blob, + `zoning-hashings` blob, + `emailing-uids` blob, + `emailing-hashings` blob, + `manager-uids` blob, + `manager-hashings` blob, + `manager-uid` int(13) NOT NULL DEFAULT '0', + `manager-hash` varchar(40) NOT NULL DEFAULT '', + `manager-name` varchar(64) NOT NULL DEFAULT '', + `manager-email` varchar(196) NOT NULL DEFAULT '', + `manager-seal-auth-hash` varchar(40) NOT NULL DEFAULT '', + `repo-coding-type` enum('git-http','svn-http','ftp-user','git-https','svn-https','ftps-user') NOT NULL DEFAULT 'svn-http', + `repo-coding-host` enum('github.com','github.io','sourceforge.net','unknown') NOT NULL DEFAULT 'unknown', + `repo-coding-url` tinytext, + `repo-coding-username` varchar(64) NOT NULL DEFAULT '', + `repo-coding-password` varchar(255) NOT NULL DEFAULT '', + `repo-coding-pathings` blob, + `repo-documents-type` enum('git-http','svn-http','ftp-user','git-https','svn-https','ftps-user') NOT NULL DEFAULT 'svn-http', + `repo-documents-host` enum('github.com','github.io','sourceforge.net','unknown') NOT NULL DEFAULT 'unknown', + `repo-documents-url` tinytext, + `repo-documents-username` varchar(64) NOT NULL DEFAULT '', + `repo-documents-password` varchar(255) NOT NULL DEFAULT '', + `repo-documents-pathings` blob, + `repo-depreciated-type` enum('git-http','svn-http','ftp-user','git-https','svn-https','ftps-user') NOT NULL DEFAULT 'svn-http', + `repo-depreciated-host` enum('github.com','github.io','sourceforge.net','unknown') NOT NULL DEFAULT 'unknown', + `repo-depreciated-url` tinytext, + `repo-depreciated-username` varchar(64) NOT NULL DEFAULT '', + `repo-depreciated-password` varchar(255) NOT NULL DEFAULT '', + `repo-depreciated-pathings` blob, + `repo-media-type` enum('git-http','svn-http','ftp-user','git-https','svn-https','ftps-user') NOT NULL DEFAULT 'svn-http', + `repo-media-host` enum('github.com','github.io','sourceforge.net','unknown') NOT NULL DEFAULT 'unknown', + `repo-media-url` tinytext, + `repo-media-username` varchar(64) NOT NULL DEFAULT '', + `repo-media-password` varchar(255) NOT NULL DEFAULT '', + `repo-media-pathings` blob, + `repo-resources-type` enum('git-http','svn-http','ftp-user','git-https','svn-https','ftps-user') NOT NULL DEFAULT 'svn-http', + `repo-resources-host` enum('github.com','github.io','sourceforge.net','unknown') NOT NULL DEFAULT 'unknown', + `repo-resources-url` tinytext, + `repo-resources-username` varchar(64) NOT NULL DEFAULT '', + `repo-resources-password` varchar(255) NOT NULL DEFAULT '', + `repo-resources-pathings` blob, + `emailed-creator` int(11) NOT NULL DEFAULT '0', + `emailed-staff` int(11) NOT NULL DEFAULT '0', + `emailed-managers` int(11) NOT NULL DEFAULT '0', + `emailed-manager` int(11) NOT NULL DEFAULT '0', + `scanned-coding` int(11) NOT NULL DEFAULT '0', + `scanned-documents` int(11) NOT NULL DEFAULT '0', + `scanned-depreciated` int(11) NOT NULL DEFAULT '0', + `scanned-media` int(11) NOT NULL DEFAULT '0', + `scanned-resources` int(11) NOT NULL DEFAULT '0', + `mapping-coding` int(11) NOT NULL DEFAULT '0', + `mapping-documents` int(11) NOT NULL DEFAULT '0', + `mapping-depreciated` int(11) NOT NULL DEFAULT '0', + `mapping-media` int(11) NOT NULL DEFAULT '0', + `mapping-resources` int(11) NOT NULL DEFAULT '0', + `created` int(11) NOT NULL DEFAULT '0', + `released` int(11) NOT NULL DEFAULT '0', + `updated` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`id`), + KEY `SEARCH` (`unixname`,`countryid`,`fullname`,`shortname`,`established-year`,`established-month`,`established-day`,`ho-countryid`,`ho-addressid`,`ho-longitude`,`ho-latitude`,`postal-countryid`,`postal-addressid`,`creator-uid`,`manager-uid`,`created`), + KEY `CHRONOLOGISTICS` (`emailed-creator`,`emailed-staff`,`emailed-managers`,`emailed-manager`,`scanned-coding`,`scanned-documents`,`scanned-depreciated`,`scanned-media`,`scanned-resources`,`mapping-coding`,`mapping-documents`,`mapping-depreciated`,`mapping-media`,`mapping-resources`,`created`,`released`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +DROP TABLE IF EXISTS `entities_emails`; + +CREATE TABLE `entities_emails` ( + `id` mediumint(250) NOT NULL AUTO_INCREMENT, + `to` blob, + `cc` blob, + `bcc` blob, + `subject` varchar(250) NOT NULL DEFAULT '', + `body` blob, + `attachments` blob, + `created` int(11) NOT NULL DEFAULT '0', + `sending` int(11) NOT NULL DEFAULT '0', + `deleted` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + + +DROP TABLE IF EXISTS `entities_facilities`; + +CREATE TABLE `entities_facilities` ( + `id` mediumint(64) NOT NULL AUTO_INCREMENT, + `departmentid` mediumint(24) NOT NULL DEFAULT '0', + `facilityid` mediumint(64) NOT NULL DEFAULT '0', + `salt` varchar(250) NOT NULL DEFAULT '', + `key` varchar(32) NOT NULL DEFAULT '', + `unixname` varchar(64) NOT NULL DEFAULT '', + `fullname` varchar(128) NOT NULL DEFAULT '', + `shortname` varchar(128) NOT NULL DEFAULT '', + `rbn` varchar(32) NOT NULL DEFAULT '', + `rbn-url` TINYTEXT, + `logo` blob, + `logo-format` enum('SVG','PNG','GIF','JPG','UNKNOWN') NOT NULL DEFAULT 'UNKNOWN', + `hours` tinytext, + `url` tinytext, + `email` varchar(196) NOT NULL DEFAULT '', + `national-dialcode` varchar(24) NOT NULL DEFAULT '', + `international-dialcode` varchar(24) NOT NULL DEFAULT '', + `international-dialcode-countryid` int(11) NOT NULL DEFAULT '0', + `addressid` mediumint(64) NOT NULL DEFAULT '0', + `longitude` decimal(14,10) NOT NULL DEFAULT '0.0000000000', + `latitude` decimal(14,10) NOT NULL DEFAULT '0.0000000000', + `creator-uid` int(13) NOT NULL DEFAULT '0', + `line-manager-uid` int(13) NOT NULL DEFAULT '0', + `line-manager-name` varchar(128) NOT NULL DEFAULT '', + `line-manager-email` varchar(196) NOT NULL DEFAULT '', + `line-manager-hash` varchar(40) NOT NULL DEFAULT '', + `staff-uids` blob, + `staff-hashing` blob, + `staff-queued` int(8) NOT NULL DEFAULT '0', + `staff-signed` int(8) NOT NULL DEFAULT '0', + `release-uid` int(13) NOT NULL DEFAULT '0', + `releaseid` mediumint(250) NOT NULL DEFAULT '0', + `released` int(11) NOT NULL DEFAULT '0', + `releases` int(8) NOT NULL DEFAULT '0', + `emailed-creator` int(11) NOT NULL DEFAULT '0', + `emailed-manager` int(11) NOT NULL DEFAULT '0', + `emailed-staff` int(11) NOT NULL DEFAULT '0', + `emailed-queued` int(11) NOT NULL DEFAULT '0', + `emailed-signed` int(11) NOT NULL DEFAULT '0', + `emailed-release` int(11) NOT NULL DEFAULT '0', + `created` int(11) NOT NULL DEFAULT '0', + `updated` int(11) NOT NULL DEFAULT '0', + `merged` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`id`), + KEY `SEARCH` (`departmentid`,`facilityid`,`unixname`,`fullname`,`shortname`,`addressid`,`longitude`,`latitude`,`creator-uid`,`line-manager-uid`,`updated`,`staff-queued`,`staff-signed`,`release-uid`,`releaseid`), + KEY `CHRONOLOGISTICS` (`released`,`emailed-creator`,`emailed-manager`,`emailed-staff`,`emailed-queued`,`emailed-signed`,`emailed-release`,`created`,`updated`,`merged`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +DROP TABLE IF EXISTS `entities_queue`; + +CREATE TABLE `entities_queue` ( + `id` mediumint(250) NOT NULL AUTO_INCREMENT, + `typal` enum('MANAGER','LINE-MANAGER','STAFF','OTHER') NOT NULL DEFAULT 'OTHER', + `departmentid` mediumint(24) NOT NULL DEFAULT '0', + `facilityid` mediumint(64) NOT NULL DEFAULT '0', + `hash` varchar(40) NOT NULL DEFAULT '', + `key` varchar(32) NOT NULL DEFAULT '', + `name` varchar(128) NOT NULL DEFAULT '', + `email-department` varchar(196) NOT NULL DEFAULT '', + `email-personal` varchar(196) NOT NULL DEFAULT '', + `uid` int(13) NOT NULL DEFAULT '0', + `emails` int(8) NOT NULL DEFAULT '0', + `emailed` int(11) NOT NULL DEFAULT '0', + `created` int(11) NOT NULL DEFAULT '0', + `signed` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`id`), + KEY `SEARCH` (`typal`,`facilityid`,`departmentid`,`hash`,`key`,`name`,`email`,`uid`,`emails`), + KEY `CHRONOLOGISTICS` (`emailed`,`created`,`signed`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + + +DROP TABLE IF EXISTS `entities_users`; + +CREATE TABLE `entities_users` ( + `id` mediumint(250) NOT NULL AUTO_INCREMENT, + `typal` enum('MANAGER','LINE-MANAGER','STAFF','OTHER') NOT NULL DEFAULT 'OTHER', + `departmentid` mediumint(24) NOT NULL DEFAULT '0', + `facilityid` mediumint(64) NOT NULL DEFAULT '0', + `uid` int(13) NOT NULL DEFAULT '0', + PRIMARY KEY (`id`), + KEY `SEARCH` (`typal`,`departmentid`,`facilityid`,`uid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + Added: XoopsModules/entities/trunk/modules/entities/class/addresses.php =================================================================== --- XoopsModules/entities/trunk/modules/entities/class/addresses.php (rev 0) +++ XoopsModules/entities/trunk/modules/entities/class/addresses.php 2018-10-22 00:45:30 UTC (rev 13389) @@ -0,0 +1,82 @@ +<?php +/** + * XOOPS Organisational Entities management module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 + * @author Simon Roberts <wis...@us...> + * @subpackage entities + * @description Module for fitting organisations as entities on xoops 2.5 + * @version 1.0.1 + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.5/Modules/entities + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.6/Modules/entities + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/entities + * @link http://internetfounder.wordpress.com + */ + + + + +if (!defined("XOOPS_ROOT_PATH")) { + exit(); +} + +class EntitiesAddresses extends XoopsObject +{ + /** + * Constructor + * + * @param int $id ID of the tag, deprecated + */ + function __construct($id = null) + { + $this->initVar("id", XOBJ_DTYPE_INT, null, false); + $this->initVar("street-one", XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar("street-two", XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar("suburb", XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar("city", XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar("province", XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar("countryid", XOBJ_DTYPE_INT, null, false); + $this->initVar("vicinity", XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar("postcode", XOBJ_DTYPE_TXTBOX, null, false, 24); + $this->initVar("longitude", XOBJ_DTYPE_FLOAT, null, false); + $this->initVar("latitude", XOBJ_DTYPE_FLOAT, null, false); + $this->initVar("key", XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar("created", XOBJ_DTYPE_INT, null, false); + } + +} + +/** + * Tag object handler class. + * + * @author Taiwen Jiang <ph...@us...> + * @copyright copyright © The XOOPS Project + * + * {@link XoopsPersistableObjectHandler} + * + */ + +class EntitiesAddressesHandler extends XoopsPersistableObjectHandler +{ + + + /** + * Constructor + * + * @param object $db reference to the {@link XoopsDatabase} object + **/ + function __construct(&$db) + { + parent::__construct($db, "entities_addresses", "EntitiesAddresses", "id", "vicinity"); + } + +} +?> \ No newline at end of file Property changes on: XoopsModules/entities/trunk/modules/entities/class/addresses.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/entities/trunk/modules/entities/class/departments.php =================================================================== --- XoopsModules/entities/trunk/modules/entities/class/departments.php (rev 0) +++ XoopsModules/entities/trunk/modules/entities/class/departments.php 2018-10-22 00:45:30 UTC (rev 13389) @@ -0,0 +1,180 @@ +<?php +/** + * XOOPS Organisational Entities management module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 + * @author Simon Roberts <wis...@us...> + * @subpackage entities + * @description Module for fitting organisations as entities on xoops 2.5 + * @version 1.0.1 + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.5/Modules/entities + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.6/Modules/entities + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/entities + * @link http://internetfounder.wordpress.com + */ + + + + +if (!defined("XOOPS_ROOT_PATH")) { + exit(); +} + +class EntitiesDepartments extends XoopsObject +{ + /** + * Constructor + * + * @param int $id ID of the tag, deprecated + */ + function __construct($id = null) + { + $this->initVar("id", XOBJ_DTYPE_INT, null, false); + $this->initVar("typal", XOBJ_DTYPE_ENUM, null, false, false, false, array('new', 'manager', 'line-manager', 'staffing', 'established', 'merged', 'depreciated', 'hidden')); + $this->initVar("parentid", XOBJ_DTYPE_INT, null, false); + $this->initVar("mergedid", XOBJ_DTYPE_INT, null, false); + $this->initVar("salt", XOBJ_DTYPE_TXTBOX, null, false, 250); + $this->initVar("key", XOBJ_DTYPE_TXTBOX, null, false, 32); + $this->initVar("unixname", XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar("countryid", XOBJ_DTYPE_INT, null, false); + $this->initVar("fullname", XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar("shortname", XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar("tags", XOBJ_DTYPE_TXTBOX, null, false, 250); + $this->initVar("rbn", XOBJ_DTYPE_TXTBOX, null, false, 32); + $this->initVar("rbn-url", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("established-year", XOBJ_DTYPE_INT, null, false); + $this->initVar("established-month", XOBJ_DTYPE_INT, null, false); + $this->initVar("established-day", XOBJ_DTYPE_INT, null, false); + $this->initVar("main-hours", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("main-url", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("main-email", XOBJ_DTYPE_TXTBOX, null, false, 196); + $this->initVar("main-national-dialcode", XOBJ_DTYPE_TXTBOX, null, false, 24); + $this->initVar("main-international-dialcode", XOBJ_DTYPE_TXTBOX, null, false, 24); + $this->initVar("main-international-dialcode-countryid", XOBJ_DTYPE_INT, null, false); + $this->initVar("support-hours", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("support-url", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("support-wiki-url", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("support-email", XOBJ_DTYPE_TXTBOX, null, false, 196); + $this->initVar("support-national-dialcode", XOBJ_DTYPE_TXTBOX, null, false, 24); + $this->initVar("support-international-dialcode", XOBJ_DTYPE_TXTBOX, null, false, 24); + $this->initVar("support-international-dialcode-countryid", XOBJ_DTYPE_INT, null, false); + $this->initVar("switch-hours", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("switch-email", XOBJ_DTYPE_TXTBOX, null, false, 196); + $this->initVar("switch-national-dialcode", XOBJ_DTYPE_TXTBOX, null, false, 24); + $this->initVar("switch-international-dialcode", XOBJ_DTYPE_TXTBOX, null, false, 24); + $this->initVar("switch-international-dialcode-countryid", XOBJ_DTYPE_INT, null, false); + $this->initVar("related-countryids", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("related-departmentsids", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("relating", XOBJ_DTYPE_INT, null, false); + $this->initVar("logo", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("logo-format", XOBJ_DTYPE_ENUM, null, false, false, false, array('SVG','PNG','GIF','JPG','UNKNOWN')); + $this->initVar("ho-countryid", XOBJ_DTYPE_INT, null, false); + $this->initVar("ho-addressid", XOBJ_DTYPE_INT, null, false); + $this->initVar("ho-longitude", XOBJ_DTYPE_FLOAT, null, false); + $this->initVar("ho-latitude", XOBJ_DTYPE_FLOAT, null, false); + $this->initVar("postal-countryid", XOBJ_DTYPE_INT, null, false); + $this->initVar("postal-addressid", XOBJ_DTYPE_INT, null, false); + $this->initVar("facilities-countryids", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("facilityids", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("facilities", XOBJ_DTYPE_INT, null, false); + $this->initVar("creator-uid", XOBJ_DTYPE_INT, null, false); + $this->initVar("creator-hash", XOBJ_DTYPE_TXTBOX, null, false, 40); + $this->initVar("staff-uids", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("staff-hashings", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("zoning-uids", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("zoning-hashings", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("emailing-uids", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("emailing-hashings", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("manager-uids", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("manager-hashings", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("manager-uid", XOBJ_DTYPE_INT, null, false); + $this->initVar("manager-hash", XOBJ_DTYPE_TXTBOX, null, false, 40); + $this->initVar("manager-name", XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar("manager-email", XOBJ_DTYPE_TXTBOX, null, false, 196); + $this->initVar("manager-seal-auth-hash", XOBJ_DTYPE_TXTBOX, null, false, 40); + $this->initVar("repo-coding-type", XOBJ_DTYPE_ENUM, null, false, false, false, array('git-http','svn-http','ftp-user','git-https','svn-https','ftps-user')); + $this->initVar("repo-coding-host", XOBJ_DTYPE_ENUM, null, false, false, false, array('github.com','github.io','sourceforge.net','unknown')); + $this->initVar("repo-coding-url", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("repo-coding-username", XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar("repo-coding-password", XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar("repo-coding-pathings", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("repo-documents-type", XOBJ_DTYPE_ENUM, null, false, false, false, array('git-http','svn-http','ftp-user','git-https','svn-https','ftps-user')); + $this->initVar("repo-documents-host", XOBJ_DTYPE_ENUM, null, false, false, false, array('github.com','github.io','sourceforge.net','unknown')); + $this->initVar("repo-documents-url", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("repo-documents-username", XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar("repo-documents-password", XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar("repo-documents-pathings", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("repo-depreciated-type", XOBJ_DTYPE_ENUM, null, false, false, false, array('git-http','svn-http','ftp-user','git-https','svn-https','ftps-user')); + $this->initVar("repo-depreciated-host", XOBJ_DTYPE_ENUM, null, false, false, false, array('github.com','github.io','sourceforge.net','unknown')); + $this->initVar("repo-depreciated-url", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("repo-depreciated-username", XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar("repo-depreciated-password", XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar("repo-depreciated-pathings", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("repo-media-type", XOBJ_DTYPE_ENUM, null, false, false, false, array('git-http','svn-http','ftp-user','git-https','svn-https','ftps-user')); + $this->initVar("repo-media-host", XOBJ_DTYPE_ENUM, null, false, false, false, array('github.com','github.io','sourceforge.net','unknown')); + $this->initVar("repo-media-url", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("repo-media-username", XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar("repo-media-password", XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar("repo-media-pathings", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("repo-resources-type", XOBJ_DTYPE_ENUM, null, false, false, false, array('git-http','svn-http','ftp-user','git-https','svn-https','ftps-user')); + $this->initVar("repo-resources-host", XOBJ_DTYPE_ENUM, null, false, false, false, array('github.com','github.io','sourceforge.net','unknown')); + $this->initVar("repo-resources-url", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("repo-resources-username", XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar("repo-resources-password", XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar("repo-resources-pathings", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("emailed-creator", XOBJ_DTYPE_INT, null, false); + $this->initVar("emailed-staff", XOBJ_DTYPE_INT, null, false); + $this->initVar("emailed-managers", XOBJ_DTYPE_INT, null, false); + $this->initVar("emailed-manager", XOBJ_DTYPE_INT, null, false); + $this->initVar("scanned-coding", XOBJ_DTYPE_INT, null, false); + $this->initVar("scanned-documents", XOBJ_DTYPE_INT, null, false); + $this->initVar("scanned-depreciated", XOBJ_DTYPE_INT, null, false); + $this->initVar("scanned-media", XOBJ_DTYPE_INT, null, false); + $this->initVar("scanned-resources", XOBJ_DTYPE_INT, null, false); + $this->initVar("mapping-coding", XOBJ_DTYPE_INT, null, false); + $this->initVar("mapping-documents", XOBJ_DTYPE_INT, null, false); + $this->initVar("mapping-depreciated", XOBJ_DTYPE_INT, null, false); + $this->initVar("mapping-media", XOBJ_DTYPE_INT, null, false); + $this->initVar("mapping-resources", XOBJ_DTYPE_INT, null, false); + $this->initVar("created", XOBJ_DTYPE_INT, null, false); + $this->initVar("released", XOBJ_DTYPE_INT, null, false); + $this->initVar("updated", XOBJ_DTYPE_INT, null, false); + + } + +} + +/** + * Tag object handler class. + * + * @author Taiwen Jiang <ph...@us...> + * @copyright copyright © The XOOPS Project + * + * {@link XoopsPersistableObjectHandler} + * + */ + +class EntitiesDepartmentsHandler extends XoopsPersistableObjectHandler +{ + + + /** + * Constructor + * + * @param object $db reference to the {@link XoopsDatabase} object + **/ + function __construct(&$db) + { + parent::__construct($db, "entities_departments", "EntitiesDepartments", "id", "fullname"); + } + +} +?> \ No newline at end of file Property changes on: XoopsModules/entities/trunk/modules/entities/class/departments.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/entities/trunk/modules/entities/class/emails.php =================================================================== --- XoopsModules/entities/trunk/modules/entities/class/emails.php (rev 0) +++ XoopsModules/entities/trunk/modules/entities/class/emails.php 2018-10-22 00:45:30 UTC (rev 13389) @@ -0,0 +1,79 @@ +<?php +/** + * XOOPS Organisational Entities management module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 + * @author Simon Roberts <wis...@us...> + * @subpackage entities + * @description Module for fitting organisations as entities on xoops 2.5 + * @version 1.0.1 + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.5/Modules/entities + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.6/Modules/entities + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/entities + * @link http://internetfounder.wordpress.com + */ + + + + +if (!defined("XOOPS_ROOT_PATH")) { + exit(); +} + +class EntitiesEmails extends XoopsObject +{ + /** + * Constructor + * + * @param int $id ID of the tag, deprecated + */ + function __construct($id = null) + { + $this->initVar("id", XOBJ_DTYPE_INT, null, false); + $this->initVar("to", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("cc", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("bcc", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("subject", XOBJ_DTYPE_TXTBOX, null, false, 250); + $this->initVar("body", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("attachments", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("created", XOBJ_DTYPE_INT, null, false); + $this->initVar("sending", XOBJ_DTYPE_INT, null, false); + $this->initVar("deleted", XOBJ_DTYPE_INT, null, false); + } + +} + +/** + * Tag object handler class. + * + * @author Taiwen Jiang <ph...@us...> + * @copyright copyright © The XOOPS Project + * + * {@link XoopsPersistableObjectHandler} + * + */ + +class EntitiesEmailsHandler extends XoopsPersistableObjectHandler +{ + + + /** + * Constructor + * + * @param object $db reference to the {@link XoopsDatabase} object + **/ + function __construct(&$db) + { + parent::__construct($db, "entities_emails", "EntitiesEmails", "id", "subject"); + } + +} +?> \ No newline at end of file Property changes on: XoopsModules/entities/trunk/modules/entities/class/emails.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/entities/trunk/modules/entities/class/facilities.php =================================================================== --- XoopsModules/entities/trunk/modules/entities/class/facilities.php (rev 0) +++ XoopsModules/entities/trunk/modules/entities/class/facilities.php 2018-10-22 00:45:30 UTC (rev 13389) @@ -0,0 +1,111 @@ +<?php +/** + * XOOPS Organisational Entities management module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 + * @author Simon Roberts <wis...@us...> + * @subpackage entities + * @description Module for fitting organisations as entities on xoops 2.5 + * @version 1.0.1 + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.5/Modules/entities + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.6/Modules/entities + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/entities + * @link http://internetfounder.wordpress.com + */ + + + + +if (!defined("XOOPS_ROOT_PATH")) { + exit(); +} + +class EntitiesFacilities extends XoopsObject +{ + /** + * Constructor + * + * @param int $id ID of the tag, deprecated + */ + function __construct($id = null) + { + $this->initVar("id", XOBJ_DTYPE_INT, null, false); + $this->initVar("departmentid", XOBJ_DTYPE_INT, null, false); + $this->initVar("facilityid", XOBJ_DTYPE_INT, null, false); + $this->initVar("salt", XOBJ_DTYPE_TXTBOX, null, false, 250); + $this->initVar("key", XOBJ_DTYPE_TXTBOX, null, false, 32); + $this->initVar("unixname", XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar("fullname", XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar("shortname", XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar("rbn", XOBJ_DTYPE_TXTBOX, null, false, 32); + $this->initVar("rbn-url", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("hours", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("url", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("email", XOBJ_DTYPE_TXTBOX, null, false, 196); + $this->initVar("national-dialcode", XOBJ_DTYPE_TXTBOX, null, false, 24); + $this->initVar("international-dialcode", XOBJ_DTYPE_TXTBOX, null, false, 24); + $this->initVar("international-dialcode-countryid", XOBJ_DTYPE_INT, null, false); + $this->initVar("addressid", XOBJ_DTYPE_INT, null, false); + $this->initVar("longitude", XOBJ_DTYPE_FLOAT, null, false); + $this->initVar("latitude", XOBJ_DTYPE_FLOAT, null, false); + $this->initVar("creator-uid", XOBJ_DTYPE_INT, null, false); + $this->initVar("line-manager-uid", XOBJ_DTYPE_INT, null, false); + $this->initVar("line-manager-hash", XOBJ_DTYPE_TXTBOX, null, false, 40); + $this->initVar("line-manager-name", XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar("line-manager-email", XOBJ_DTYPE_TXTBOX, null, false, 196); + $this->initVar("staff-uids", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("staff-hashings", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("staff-queued", XOBJ_DTYPE_INT, null, false); + $this->initVar("staff-signed", XOBJ_DTYPE_INT, null, false); + $this->initVar("release-uid", XOBJ_DTYPE_INT, null, false); + $this->initVar("releaseid", XOBJ_DTYPE_INT, null, false); + $this->initVar("released", XOBJ_DTYPE_INT, null, false); + $this->initVar("releases", XOBJ_DTYPE_INT, null, false); + $this->initVar("emailed-creator", XOBJ_DTYPE_INT, null, false); + $this->initVar("emailed-manager", XOBJ_DTYPE_INT, null, false); + $this->initVar("emailed-staff", XOBJ_DTYPE_INT, null, false); + $this->initVar("emailed-queued", XOBJ_DTYPE_INT, null, false); + $this->initVar("emailed-signed", XOBJ_DTYPE_INT, null, false); + $this->initVar("emailed-release", XOBJ_DTYPE_INT, null, false); + $this->initVar("created", XOBJ_DTYPE_INT, null, false); + $this->initVar("updated", XOBJ_DTYPE_INT, null, false); + $this->initVar("merged", XOBJ_DTYPE_INT, null, false); + + } + +} + +/** + * Tag object handler class. + * + * @author Taiwen Jiang <ph...@us...> + * @copyright copyright © The XOOPS Project + * + * {@link XoopsPersistableObjectHandler} + * + */ + +class EntitiesFacilitiesHandler extends XoopsPersistableObjectHandler +{ + + + /** + * Constructor + * + * @param object $db reference to the {@link XoopsDatabase} object + **/ + function __construct(&$db) + { + parent::__construct($db, "entities_facilities", "EntitiesFacilities", "id", "vincitity"); + } + +} +?> \ No newline at end of file Property changes on: XoopsModules/entities/trunk/modules/entities/class/facilities.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/entities/trunk/modules/entities/class/queue.php =================================================================== --- XoopsModules/entities/trunk/modules/entities/class/queue.php (rev 0) +++ XoopsModules/entities/trunk/modules/entities/class/queue.php 2018-10-22 00:45:30 UTC (rev 13389) @@ -0,0 +1,84 @@ +<?php +/** + * XOOPS Organisational Entities management module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 + * @author Simon Roberts <wis...@us...> + * @subpackage entities + * @description Module for fitting organisations as entities on xoops 2.5 + * @version 1.0.1 + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.5/Modules/entities + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.6/Modules/entities + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/entities + * @link http://internetfounder.wordpress.com + */ + + + + +if (!defined("XOOPS_ROOT_PATH")) { + exit(); +} + +class EntitiesQueue extends XoopsObject +{ + /** + * Constructor + * + * @param int $id ID of the tag, deprecated + */ + function __construct($id = null) + { + $this->initVar("id", XOBJ_DTYPE_INT, null, false); + $this->initVar("typal", XOBJ_DTYPE_ENUM, null, false, false, false, array('MANAGER','LINE-MANAGER','STAFF','OTHER')); + $this->initVar("departmentid", XOBJ_DTYPE_INT, null, false); + $this->initVar("facilityid", XOBJ_DTYPE_INT, null, false); + $this->initVar("hash", XOBJ_DTYPE_TXTBOX, null, false, 40); + $this->initVar("key", XOBJ_DTYPE_TXTBOX, null, false, 32); + $this->initVar("name", XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar("email-department", XOBJ_DTYPE_TXTBOX, null, false, 196); + $this->initVar("email-personal", XOBJ_DTYPE_TXTBOX, null, false, 196); + $this->initVar("uid", XOBJ_DTYPE_INT, null, false); + $this->initVar("emails", XOBJ_DTYPE_INT, null, false); + $this->initVar("emailed", XOBJ_DTYPE_INT, null, false); + $this->initVar("created", XOBJ_DTYPE_INT, null, false); + $this->initVar("signed", XOBJ_DTYPE_INT, null, false); + + } + +} + +/** + * Tag object handler class. + * + * @author Taiwen Jiang <ph...@us...> + * @copyright copyright © The XOOPS Project + * + * {@link XoopsPersistableObjectHandler} + * + */ + +class EntitiesQueueHandler extends XoopsPersistableObjectHandler +{ + + + /** + * Constructor + * + * @param object $db reference to the {@link XoopsDatabase} object + **/ + function __construct(&$db) + { + parent::__construct($db, "entities_queue", "EntitiesQueue", "id", "vincitity"); + } + +} +?> \ No newline at end of file Property changes on: XoopsModules/entities/trunk/modules/entities/class/queue.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/entities/trunk/modules/entities/class/users.php =================================================================== --- XoopsModules/entities/trunk/modules/entities/class/users.php (rev 0) +++ XoopsModules/entities/trunk/modules/entities/class/users.php 2018-10-22 00:45:30 UTC (rev 13389) @@ -0,0 +1,74 @@ +<?php +/** + * XOOPS Organisational Entities management module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 + * @author Simon Roberts <wis...@us...> + * @subpackage entities + * @description Module for fitting organisations as entities on xoops 2.5 + * @version 1.0.1 + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.5/Modules/entities + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.6/Modules/entities + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/entities + * @link http://internetfounder.wordpress.com + */ + + + + +if (!defined("XOOPS_ROOT_PATH")) { + exit(); +} + +class EntitiesUsers extends XoopsObject +{ + /** + * Constructor + * + * @param int $id ID of the tag, deprecated + */ + function __construct($id = null) + { + $this->initVar("id", XOBJ_DTYPE_INT, null, false); + $this->initVar("typal", XOBJ_DTYPE_ENUM, null, false, false, false, array('MANAGER','LINE-MANAGER','STAFF','OTHER')); + $this->initVar("departmentid", XOBJ_DTYPE_INT, null, false); + $this->initVar("facilityid", XOBJ_DTYPE_INT, null, false); + $this->initVar("uid", XOBJ_DTYPE_INT, null, false); + } + +} + +/** + * Tag object handler class. + * + * @author Taiwen Jiang <ph...@us...> + * @copyright copyright © The XOOPS Project + * + * {@link XoopsPersistableObjectHandler} + * + */ + +class EntitiesUsersHandler extends XoopsPersistableObjectHandler +{ + + + /** + * Constructor + * + * @param object $db reference to the {@link XoopsDatabase} object + **/ + function __construct(&$db) + { + parent::__construct($db, "entities_users", "EntitiesUsers", "id", "uid"); + } + +} +?> \ No newline at end of file Property changes on: XoopsModules/entities/trunk/modules/entities/class/users.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/entities/trunk/modules/entities/footer.php =================================================================== --- XoopsModules/entities/trunk/modules/entities/footer.php (rev 0) +++ XoopsModules/entities/trunk/modules/entities/footer.php 2018-10-22 00:45:30 UTC (rev 13389) @@ -0,0 +1,28 @@ +<?php +/** + * XOOPS Organisational Entities management module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 + * @author Simon Roberts <wis...@us...> + * @subpackage entities + * @description Module for fitting organisations as entities on xoops 2.5 + * @version 1.0.1 + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.5/Modules/entities + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.6/Modules/entities + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/entities + * @link http://internetfounder.wordpress.com + */ + + + + +include_once XOOPS_ROOT_PATH . "/footer.php"; +?> \ No newline at end of file Property changes on: XoopsModules/entities/trunk/modules/entities/footer.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/entities/trunk/modules/entities/header.php =================================================================== --- XoopsModules/entities/trunk/modules/entities/header.php (rev 0) +++ XoopsModules/entities/trunk/modules/entities/header.php 2018-10-22 00:45:30 UTC (rev 13389) @@ -0,0 +1,79 @@ +<?php +/** + * XOOPS Organisational Entities management module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 + * @author Simon Roberts <wis...@us...> + * @subpackage entities + * @description Module for fitting organisations as entities on xoops 2.5 + * @version 1.0.1 + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.5/Modules/entities + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.6/Modules/entities + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/entities + * @link http://internetfounder.wordpress.com + */ + + + + +require_once dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'mainfile.php'; + +require_once __DIR__ . "/include/functions.php"; + + +$myts =& MyTextSanitizer::getInstance(); + +global $entitiesModule, $entitiesConfigsList, $entitiesConfigs, $entitiesConfigsOptions; + +if (empty($entitiesModule)) +{ + if (is_a($entitiesModule = xoops_getHandler('module')->getByDirname(basename(__DIR__)), "XoopsModule")) + { + if (empty($entitiesConfigsList)) + { + $entitiesConfigsList = countries_load_config(); + } + if (empty($entitiesConfigs)) + { + $entitiesConfigs = xoops_getHandler('config')->getConfigs(new Criteria('conf_modid', $entitiesModule->getVar('mid'))); + } + if (empty($entitiesConfigsOptions) && !empty($entitiesConfigs)) + { + foreach($entitiesConfigs as $key => $config) + $entitiesConfigsOptions[$config->getVar('conf_name')] = $config->getConfOptions(); + } + } +} + +global $xoopsConfig, $xoopsUser; +if (!defined('XOOPS_DOMAIN_COUNTRYID')) +foreach(explode('|', $entitiesConfigsList['domains']) as $domain) { + if (strtolower(substr(parse_url(XOOPS_URL, PHP_URL_HOST), strlen(parse_url(XOOPS_URL, PHP_URL_HOST)) - strlen($domain))) == strtolower($domain)) { + $parttld = str_replace('.'.$domain, '', parse_url(XOOPS_URL, PHP_URL_HOST)); + $parts = array_reverse(explode('.', $parttld)); + if (isset($parts[0]) && strlen($parts[0]) == 2) { + foreach(xoops_getModuleHandler('countries', basename(__DIR__))->getObjects(new Criteria('`tld`', "%".$parts[0]."%", 'LIKE')) as $country) { + if (!defined('XOOPS_DOMAIN_COUNTRYID') && isset($country) && !empty($country)) + define("XOOPS_DOMAIN_COUNTRYID", $country->getVar('countryid')); + if (count($parts) == 1) + $xoopsConfig['startpage'] = basename(dirname(__DIR__)); + + } + } + } +} + +global $start, $limit, $op; + +$op = empty($_REQUEST["op"]) || !in_array($_REQUEST['op'], array('default', 'save', 'delete', 'deleteconfirm')) ? 'default' : $_REQUEST["op"] ; +$start = intval( empty($_REQUEST["start"]) ? 0 : $_REQUEST["start"] ); +$limit = intval( empty($_REQUEST["limit"]) ? $entitiesConfigsList['items_perpage']: $_REQUEST["limit"] ); + Property changes on: XoopsModules/entities/trunk/modules/entities/header.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/entities/trunk/modules/entities/include/functions.php =================================================================== --- XoopsModules/entities/trunk/modules/entities/include/functions.php (rev 0) +++ XoopsModules/entities/trunk/modules/entities/include/functions.php 2018-10-22 00:45:30 UTC (rev 13389) @@ -0,0 +1,22 @@ +<?php +/** + * XOOPS Organisational Entities management module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 + * @author Simon Roberts <wis...@us...> + * @subpackage entities + * @description Module for fitting organisations as entities on xoops 2.5 + * @version 1.0.1 + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.5/Modules/entities + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.6/Modules/entities + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/entities + * @link http://internetfounder.wordpress.com + */ Added: XoopsModules/entities/trunk/modules/entities/index.php =================================================================== --- XoopsModules/entities/trunk/modules/entities/index.php (rev 0) +++ XoopsModules/entities/trunk/modules/entities/index.php 2018-10-22 00:45:30 UTC (rev 13389) @@ -0,0 +1,71 @@ +<?php +/** + * XOOPS Organisational Entities management module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 + * @author Simon Roberts <wis...@us...> + * @subpackage entities + * @description Module for fitting organisations as entities on xoops 2.5 + * @version 1.0.1 + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.5/Modules/entities + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.6/Modules/entities + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/entities + * @link http://internetfounder.wordpress.com + */ + + + + +global $countriesModule, $countriesConfigsList, $countriesConfigs, $countriesConfigsOptions; +global $start, $limit; + +include dirname(__FILE__) . "/header.php"; + +if ($countriesConfigsList['htaccess']) +{ + $url = XOOPS_URL . "/" . $countriesConfigsList['base'] . "/$start/$limit/index" . $countriesConfigsList['html']; + if (!strpos($url, $_SERVER["REQUEST_URI"])) + { + redirect_header($url, 0, ""); + exit(0); + } +} + +include XOOPS_ROOT_PATH . "/header.php"; +// Adds Stylesheet +if (is_file(XOOPS_ROOT_PATH . "/modules/" . basename(__DIR__) . "/language/" . $GLOBALS['xoopsConfig']['language'] . '/style.css')) + $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . "/modules/" . basename(__DIR__) . "/language/" . $GLOBALS['xoopsConfig']['language'] . '/style.css'); +elseif (is_file(XOOPS_ROOT_PATH . "/modules/" . basename(__DIR__) . '/language/english/style.css')) + $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . "/modules/" . basename(__DIR__) . '/language/english/style.css'); + +$countries_handler = xoops_getmodulehandler("countries", basename(__DIR__)); +$users_handler = xoops_getmodulehandler("users", basename(__DIR__)); + +if (defined('XOOPS_DOMAIN_COUNTRYID')) { + $country = xoops_getmodulehandler("countries", basename(__DIR__))->get(constant("XOOPS_DOMAIN_COUNTRYID")); + if ($countriesConfigsList['htaccess']) + $GLOBALS['xoopsTpl']->assign("countryflag", XOOPS_URL . '/modules/' . basename(__DIR__) . '/images/flag/' . $country->getVar('countryid') . '/Flag_of_' . str_replace(' ', '_', $country->getVar('country')) . '.png'); + else + $GLOBALS['xoopsTpl']->assign("coun... [truncated message content] |
From: <chr...@us...> - 2018-11-01 13:07:36
|
Revision: 13395 http://sourceforge.net/p/xoops/svn/13395 Author: chronolabscoop Date: 2018-11-01 13:07:22 +0000 (Thu, 01 Nov 2018) Log Message: ----------- FontSVN+ - Client for Sourceforge.net Web Fonts SVN! Added Paths: ----------- XoopsModules/fontsvn/ XoopsModules/fontsvn/trunk/ XoopsModules/fontsvn/trunk/modules/ XoopsModules/fontsvn/trunk/modules/fontsvn/ XoopsModules/fontsvn/trunk/modules/fontsvn/.htaccess XoopsModules/fontsvn/trunk/modules/fontsvn/admin/ XoopsModules/fontsvn/trunk/modules/fontsvn/admin/.htaccess XoopsModules/fontsvn/trunk/modules/fontsvn/admin/about.php XoopsModules/fontsvn/trunk/modules/fontsvn/admin/footer.php XoopsModules/fontsvn/trunk/modules/fontsvn/admin/header.php XoopsModules/fontsvn/trunk/modules/fontsvn/admin/identities.php XoopsModules/fontsvn/trunk/modules/fontsvn/admin/index.html XoopsModules/fontsvn/trunk/modules/fontsvn/admin/index.php XoopsModules/fontsvn/trunk/modules/fontsvn/admin/menu.php XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/ XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/fontier_block_tag.php XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/index.html XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/last_downloads_items.php XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/last_viewed_items.php XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/new_items.php XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/popular_downloads_items.php XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/popular_items.php XoopsModules/fontsvn/trunk/modules/fontsvn/class/ XoopsModules/fontsvn/trunk/modules/fontsvn/class/identities.php XoopsModules/fontsvn/trunk/modules/fontsvn/class/identities_indexes.php XoopsModules/fontsvn/trunk/modules/fontsvn/class/index.html XoopsModules/fontsvn/trunk/modules/fontsvn/class/indexes.php XoopsModules/fontsvn/trunk/modules/fontsvn/class/objects.php XoopsModules/fontsvn/trunk/modules/fontsvn/comment_delete.php XoopsModules/fontsvn/trunk/modules/fontsvn/comment_edit.php XoopsModules/fontsvn/trunk/modules/fontsvn/comment_new.php XoopsModules/fontsvn/trunk/modules/fontsvn/comment_post.php XoopsModules/fontsvn/trunk/modules/fontsvn/comment_reply.php XoopsModules/fontsvn/trunk/modules/fontsvn/crons/ XoopsModules/fontsvn/trunk/modules/fontsvn/crons/compare-json.php XoopsModules/fontsvn/trunk/modules/fontsvn/crons/index.html XoopsModules/fontsvn/trunk/modules/fontsvn/crons/pair-css.php XoopsModules/fontsvn/trunk/modules/fontsvn/crons/pair-json.php XoopsModules/fontsvn/trunk/modules/fontsvn/crons/repair-css.php XoopsModules/fontsvn/trunk/modules/fontsvn/crons/verify-svn.php XoopsModules/fontsvn/trunk/modules/fontsvn/download/ XoopsModules/fontsvn/trunk/modules/fontsvn/download/.htaccess XoopsModules/fontsvn/trunk/modules/fontsvn/download/index.html XoopsModules/fontsvn/trunk/modules/fontsvn/download.php XoopsModules/fontsvn/trunk/modules/fontsvn/font/ XoopsModules/fontsvn/trunk/modules/fontsvn/font/.htaccess XoopsModules/fontsvn/trunk/modules/fontsvn/font/index.html XoopsModules/fontsvn/trunk/modules/fontsvn/font.php XoopsModules/fontsvn/trunk/modules/fontsvn/glyph/ XoopsModules/fontsvn/trunk/modules/fontsvn/glyph/.htaccess XoopsModules/fontsvn/trunk/modules/fontsvn/glyph/index.html XoopsModules/fontsvn/trunk/modules/fontsvn/glyph.php XoopsModules/fontsvn/trunk/modules/fontsvn/header.php XoopsModules/fontsvn/trunk/modules/fontsvn/images/ XoopsModules/fontsvn/trunk/modules/fontsvn/images/assets/ XoopsModules/fontsvn/trunk/modules/fontsvn/images/assets/index.html XoopsModules/fontsvn/trunk/modules/fontsvn/images/icons/ XoopsModules/fontsvn/trunk/modules/fontsvn/images/icons/16x16/ XoopsModules/fontsvn/trunk/modules/fontsvn/images/icons/16x16/index.html XoopsModules/fontsvn/trunk/modules/fontsvn/images/icons/24x24/ XoopsModules/fontsvn/trunk/modules/fontsvn/images/icons/24x24/index.html XoopsModules/fontsvn/trunk/modules/fontsvn/images/icons/32x32/ XoopsModules/fontsvn/trunk/modules/fontsvn/images/icons/32x32/index.html XoopsModules/fontsvn/trunk/modules/fontsvn/images/icons/48x48/ XoopsModules/fontsvn/trunk/modules/fontsvn/images/icons/48x48/index.html XoopsModules/fontsvn/trunk/modules/fontsvn/images/icons/index.html XoopsModules/fontsvn/trunk/modules/fontsvn/images/icons/module_fontsvn+.png XoopsModules/fontsvn/trunk/modules/fontsvn/images/index.html XoopsModules/fontsvn/trunk/modules/fontsvn/include/ XoopsModules/fontsvn/trunk/modules/fontsvn/include/comment_functions.php XoopsModules/fontsvn/trunk/modules/fontsvn/include/functions.php XoopsModules/fontsvn/trunk/modules/fontsvn/include/index.html XoopsModules/fontsvn/trunk/modules/fontsvn/include/notification.inc.php XoopsModules/fontsvn/trunk/modules/fontsvn/index.php XoopsModules/fontsvn/trunk/modules/fontsvn/language/ XoopsModules/fontsvn/trunk/modules/fontsvn/language/english/ XoopsModules/fontsvn/trunk/modules/fontsvn/language/english/admin.php XoopsModules/fontsvn/trunk/modules/fontsvn/language/english/blocks.css XoopsModules/fontsvn/trunk/modules/fontsvn/language/english/blocks.php XoopsModules/fontsvn/trunk/modules/fontsvn/language/english/errors.php XoopsModules/fontsvn/trunk/modules/fontsvn/language/english/index.html XoopsModules/fontsvn/trunk/modules/fontsvn/language/english/mail_template/ XoopsModules/fontsvn/trunk/modules/fontsvn/language/english/mail_template/fontier_newfont_notify.tpl XoopsModules/fontsvn/trunk/modules/fontsvn/language/english/mail_template/fontier_newindex_notify.tpl XoopsModules/fontsvn/trunk/modules/fontsvn/language/english/main.php XoopsModules/fontsvn/trunk/modules/fontsvn/language/english/modinfo.php XoopsModules/fontsvn/trunk/modules/fontsvn/language/english/style.css XoopsModules/fontsvn/trunk/modules/fontsvn/language/index.html XoopsModules/fontsvn/trunk/modules/fontsvn/list.tag.php XoopsModules/fontsvn/trunk/modules/fontsvn/naming/ XoopsModules/fontsvn/trunk/modules/fontsvn/naming/.htaccess XoopsModules/fontsvn/trunk/modules/fontsvn/naming/index.html XoopsModules/fontsvn/trunk/modules/fontsvn/naming.php XoopsModules/fontsvn/trunk/modules/fontsvn/notification_update.php XoopsModules/fontsvn/trunk/modules/fontsvn/preloads/ XoopsModules/fontsvn/trunk/modules/fontsvn/preloads/index.html XoopsModules/fontsvn/trunk/modules/fontsvn/preloads/svn.php XoopsModules/fontsvn/trunk/modules/fontsvn/preview/ XoopsModules/fontsvn/trunk/modules/fontsvn/preview/.htaccess XoopsModules/fontsvn/trunk/modules/fontsvn/preview/index.html XoopsModules/fontsvn/trunk/modules/fontsvn/preview.php XoopsModules/fontsvn/trunk/modules/fontsvn/releases.php XoopsModules/fontsvn/trunk/modules/fontsvn/sql/ XoopsModules/fontsvn/trunk/modules/fontsvn/sql/index.html XoopsModules/fontsvn/trunk/modules/fontsvn/sql/mysql.sql XoopsModules/fontsvn/trunk/modules/fontsvn/sql/tables.diz XoopsModules/fontsvn/trunk/modules/fontsvn/templates/ XoopsModules/fontsvn/trunk/modules/fontsvn/templates/admin/ XoopsModules/fontsvn/trunk/modules/fontsvn/templates/admin/fontier_identities.html XoopsModules/fontsvn/trunk/modules/fontsvn/templates/admin/index.html XoopsModules/fontsvn/trunk/modules/fontsvn/templates/blocks/ XoopsModules/fontsvn/trunk/modules/fontsvn/templates/blocks/fontier_last_downloads_items.html XoopsModules/fontsvn/trunk/modules/fontsvn/templates/blocks/fontier_last_viewed_items.html XoopsModules/fontsvn/trunk/modules/fontsvn/templates/blocks/fontier_new_items.html XoopsModules/fontsvn/trunk/modules/fontsvn/templates/blocks/fontier_popular_downloads_items.html XoopsModules/fontsvn/trunk/modules/fontsvn/templates/blocks/fontier_popular_items.html XoopsModules/fontsvn/trunk/modules/fontsvn/templates/blocks/fontier_tag_block_cloud.html XoopsModules/fontsvn/trunk/modules/fontsvn/templates/blocks/fontier_tag_block_top.html XoopsModules/fontsvn/trunk/modules/fontsvn/templates/blocks/index.html XoopsModules/fontsvn/trunk/modules/fontsvn/templates/fontier_font.html XoopsModules/fontsvn/trunk/modules/fontsvn/templates/fontier_index.html XoopsModules/fontsvn/trunk/modules/fontsvn/templates/fontier_index_base.html XoopsModules/fontsvn/trunk/modules/fontsvn/templates/fontier_releases.html XoopsModules/fontsvn/trunk/modules/fontsvn/templates/fontier_uploads.html XoopsModules/fontsvn/trunk/modules/fontsvn/templates/index.html XoopsModules/fontsvn/trunk/modules/fontsvn/uploads.php XoopsModules/fontsvn/trunk/modules/fontsvn/uploads.php.save XoopsModules/fontsvn/trunk/modules/fontsvn/view.tag.php XoopsModules/fontsvn/trunk/modules/fontsvn/xoops_version.php Added: XoopsModules/fontsvn/trunk/modules/fontsvn/.htaccess =================================================================== --- XoopsModules/fontsvn/trunk/modules/fontsvn/.htaccess (rev 0) +++ XoopsModules/fontsvn/trunk/modules/fontsvn/.htaccess 2018-11-01 13:07:22 UTC (rev 13395) @@ -0,0 +1,47 @@ +############################################################################################################################ +# +# Chronolabs Cooperative Fontier+ +# +# You may not change or alter any portion of this comment or credits +# of supporting developers from this source code or any supporting source code +# which is considered copyrighted (c) material of the original comment or credit authors. +# 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. +# +# @copyright Chronolabs Cooperative http://labs.coop +# @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) +# @package fontsvn+ +# @since 1.0.1 +# @author Simon Roberts <wis...@us...> +# @subpackage fontsvn+ +# @description XOOPS Client for Fonts REST API - http://fonts.labs.coop +# @link http://fonts.labs.coop +# @link http://sourceforge.net/projects/chronolabs +# @link http://cipher.labs.coop +# +############################################################################################################################ +php_value memory_limit 360M +php_value error_reporting 0 +php_value display_errors 0 + +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d + +RewriteRule ^bin/(.*?)/(font).ufo/(.*?)$ $2.php?mode=ufo&clause=$1&path=$3 [L,NC,QSA] +RewriteRule ^bin/(.*?)/(font).(.*?)?(.*?)$ $2.php?mode=$3&clause=$1&$4 [L,NC,QSA] +RewriteRule ^bin/(.*?)/(font).(.*?)$ $2.php?mode=$3&clause=$1 [L,NC,QSA] +RewriteRule ^css/(.*?)/(.*?).(css)?(.*?)$ $3.php?clause=$1&$4 [L,NC,QSA] +RewriteRule ^css/(.*?)/(.*?).(css)$ $3.php?clause=$1 [L,NC,QSA] +RewriteRule ^api/(.*?)/(callback).api?(.*?)$ $2.php?mode=$1&$3 [L,NC,QSA] +RewriteRule ^api/(.*?)/(callback).api$ $2.php?mode=$1 [L,NC,QSA] +RewriteRule ^(download)/([0-9]+)$ $1.php?mode=$1&clause=$2 [L,NC,QSA] +RewriteRule ^([0-9a-z]+)/upload.html$ index.php?mode=upload&clause=$1 [L,NC,QSA] +RewriteRule ^([0-9a-z]+)/surveys.html$ index.php?mode=surveys&clause=$1 [L,NC,QSA] +RewriteRule ^([0-9a-z]+)/survey.html$ index.php?mode=survey&clause=$1 [L,NC,QSA] +RewriteRule ^([0-9a-z]+)/(.*?)/font.html$ index.php?mode=font&clause=$1&name=$2 [L,NC,QSA] +RewriteRule ^([0-9a-z]+)/node.html$ index.php?mode=node&clause=$1 [L,NC,QSA] +RewriteRule ^(keys|fixes|typal)/nodes.html$ index.php?mode=nodes&clause=$1 [L,NC,QSA] +RewriteRule ^index.html$ index.php?mode=index [L,NC,QSA] + Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/.htaccess ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/.htaccess =================================================================== --- XoopsModules/fontsvn/trunk/modules/fontsvn/admin/.htaccess (rev 0) +++ XoopsModules/fontsvn/trunk/modules/fontsvn/admin/.htaccess 2018-11-01 13:07:22 UTC (rev 13395) @@ -0,0 +1,38 @@ +############################################################################################################################ +# +# Chronolabs Cooperative Fontier+ +# +# You may not change or alter any portion of this comment or credits +# of supporting developers from this source code or any supporting source code +# which is considered copyrighted (c) material of the original comment or credit authors. +# 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. +# +# @copyright Chronolabs Cooperative http://labs.coop +# @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) +# @package fontsvn+ +# @since 1.0.1 +# @author Simon Roberts <wis...@us...> +# @subpackage fontsvn+ +# @description XOOPS Client for Fonts REST API - http://fonts.labs.coop +# @link http://fonts.labs.coop +# @link http://sourceforge.net/projects/chronolabs +# @link http://cipher.labs.coop +# +############################################################################################################################ +php_value memory_limit 360M +php_value error_reporting 0 +php_value display_errors 0 + +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d + +RewriteRule ^([0-9a-z]+)/upload.html$ admin.php?op=upload&clause=$1 [L,NC,QSA] +RewriteRule ^([0-9a-z]+)/surveys.html$ admin.php?op=surveys&clause=$1 [L,NC,QSA] +RewriteRule ^([0-9a-z]+)/survey.html$ admin.php?op=survey&clause=$1 [L,NC,QSA] +RewriteRule ^([0-9a-z]+)/(.*?)/font.html$ admin.php?op=font&clause=$1&name=$2 [L,NC,QSA] +RewriteRule ^([0-9a-z]+)/node.html$ admin.php?op=node&clause=$1 [L,NC,QSA] +RewriteRule ^(keys|fixes|typal)/nodes.html$ admin.php?op=nodes&clause=$1 [L,NC,QSA] + Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/.htaccess ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/about.php =================================================================== --- XoopsModules/fontsvn/trunk/modules/fontsvn/admin/about.php (rev 0) +++ XoopsModules/fontsvn/trunk/modules/fontsvn/admin/about.php 2018-11-01 13:07:22 UTC (rev 13395) @@ -0,0 +1,33 @@ +<?php +/** + * Font Converter for fonts2web.org.uk +* +* You may not change or alter any portion of this comment or credits +* of supporting developers from this source code or any supporting source code +* which is considered copyrighted (c) material of the original comment or credit authors. +* 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. +* +* @copyright The XOOPS Project http://fonts2web.org.uk +* @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) +* @author Simon Roberts (wishcraft) <wis...@us...> +* @subpackage convert +* @description Converts fonts to web distributional format in a zip pack stamped +* @version 1.0.1 +* @link http://fonts2web.org.uk +* @link http://fonts.labs.coop +* @link http://internetfounder.wordpress.com +*/ +include_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php'; +include_once __DIR__ . '/header.php'; +xoops_cp_header(); + +$module_info = $module_handler->get($xoopsModule->getVar('mid')); + +$aboutAdmin = new ModuleAdmin(); + +echo $aboutAdmin->addNavigation(basename(__FILE__)); +echo $aboutAdmin->renderAbout('XXXXXXXXXXXXX', false); + +include_once __DIR__ . '/footer.php'; Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/about.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/footer.php =================================================================== --- XoopsModules/fontsvn/trunk/modules/fontsvn/admin/footer.php (rev 0) +++ XoopsModules/fontsvn/trunk/modules/fontsvn/admin/footer.php 2018-11-01 13:07:22 UTC (rev 13395) @@ -0,0 +1,25 @@ +<?php +/** + * Font Converter for fonts2web.org.uk +* +* You may not change or alter any portion of this comment or credits +* of supporting developers from this source code or any supporting source code +* which is considered copyrighted (c) material of the original comment or credit authors. +* 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. +* +* @copyright The XOOPS Project http://fonts2web.org.uk +* @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) +* @author Simon Roberts (wishcraft) <wis...@us...> +* @subpackage convert +* @description Converts fonts to web distributional format in a zip pack stamped +* @version 1.0.1 +* @link http://fonts2web.org.uk +* @link http://fonts.labs.coop +* @link http://internetfounder.wordpress.com +*/ + +echo "<div class='adminfooter'>\n" . " <div style='text-align: center;'>\n" . " <a href='http://au.syd.labs.coop' rel='external'>Chronolabs Cooperative</a>\n" . " </div>\n" . '</div>'; + +xoops_cp_footer(); Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/footer.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/header.php =================================================================== --- XoopsModules/fontsvn/trunk/modules/fontsvn/admin/header.php (rev 0) +++ XoopsModules/fontsvn/trunk/modules/fontsvn/admin/header.php 2018-11-01 13:07:22 UTC (rev 13395) @@ -0,0 +1,57 @@ +<?php +/** + * Font Converter for fonts2web.org.uk +* +* You may not change or alter any portion of this comment or credits +* of supporting developers from this source code or any supporting source code +* which is considered copyrighted (c) material of the original comment or credit authors. +* 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. +* +* @copyright The XOOPS Project http://fonts2web.org.uk +* @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) +* @author Simon Roberts (wishcraft) <wis...@us...> +* @subpackage convert +* @description Converts fonts to web distributional format in a zip pack stamped +* @version 1.0.1 +* @link http://fonts2web.org.uk +* @link http://fonts.labs.coop +* @link http://internetfounder.wordpress.com +*/ + +$path = dirname(dirname(dirname(__DIR__))); +include_once dirname(__DIR__) . '/header.php'; +include_once $path . '/include/cp_functions.php'; +require_once $path . '/include/cp_header.php'; + +global $xoopsModule; + +$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname'); + +//if functions.php file exist +//require_once dirname(__DIR__) . '/include/functions.php'; + +// Load language files +xoops_loadLanguage('admin', $thisModuleDir); +xoops_loadLanguage('modinfo', $thisModuleDir); +xoops_loadLanguage('main', $thisModuleDir); + +$pathIcon16 = '../' . $xoopsModule->getInfo('icons16'); +$pathIcon32 = '../' . $xoopsModule->getInfo('icons32'); +$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); + +$myts = MyTextSanitizer::getInstance(); + +if (!isset($xoopsTpl) || !is_object($xoopsTpl)) { + include_once XOOPS_ROOT_PATH . '/class/template.php'; + $xoopsTpl = new XoopsTpl(); +} + +include_once $GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php'); + +xoops_loadLanguage('user'); +if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) { + include_once $GLOBALS['xoops']->path('/class/template.php'); + $GLOBALS['xoopsTpl'] = new XoopsTpl(); +} Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/header.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/identities.php =================================================================== --- XoopsModules/fontsvn/trunk/modules/fontsvn/admin/identities.php (rev 0) +++ XoopsModules/fontsvn/trunk/modules/fontsvn/admin/identities.php 2018-11-01 13:07:22 UTC (rev 13395) @@ -0,0 +1,72 @@ +<?php +/** + * Please Email Ticketer of Batch Group & User Emails + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage please + * @description Email Ticking for Support/Faults/Management of Batch Group & User managed emails tickets + * @version 1.0.5 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/please + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/please + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/please + * @link http://internetfounder.wordpress.com + */ + + require_once (__DIR__ . DIRECTORY_SEPARATOR . 'header.php'); + + xoops_loadLanguage('errors', _MD_FONTSVN_MODULE_DIRNAME); + + if (isset($_REQUEST['start'])) + $start = intval($_REQUEST['start']); + else + $start = 0; + + if (isset($_REQUEST['limit'])) + $limit = intval($_REQUEST['limit']); + else + $limit = 30; + + $identitiesHandler = xoops_getModuleHandler('identities', _MD_FONTSVN_MODULE_DIRNAME); + $criteria = new Criteria('polled',0,">"); + $total = $identitiesHandler->getCount($criteria); + $criteria->setStart($start); + $criteria->setLimit($limit); + $identities = $identitiesHandler->getObjects($criteria); + + if ($start>0 && count($identities)==0 && $total > 0) + { + $start = $start - $limit; + if ($start<0) + $start = 0; + header("Location: " . XOOPS_URL . "/modules/" . _MD_FONTSVN_MODULE_DIRNAME . "/admin/identities.php?start=$start&limit=$limit"); + exit(0); + } + + if ($start == 0 && count($identities) == 0) + { + redirect_header(XOOPS_URL . "/modules/" . _MD_FONTSVN_MODULE_DIRNAME . "/admin/index.php", 4, _ERR_FONTSVN_ADMIN_NOFONTS); + exit(0); + } + + xoops_cp_header(); + $identityAdmin = new ModuleAdmin(); + echo $identityAdmin->addNavigation(basename(__FILE__)); + foreach($identities as $identity) + $GLOBALS['xoopsTpl']->append('identities', $identity->getAdminPanelArray()); + xoops_load('XoopsPageNav'); + $nav = new XoopsPageNav($total, $limit, $start, 'start', '&limit='.$limit); + $GLOBALS['xoopsTpl']->assign('pagenav', $nav->renderNav(5)); + echo $GLOBALS['xoopsTpl']->display(dirname(__DIR__) . '/templates/admin/fontsvn_identities.html'); + xoops_cp_footer(); + exit(0); + +?> \ No newline at end of file Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/identities.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/index.html =================================================================== --- XoopsModules/fontsvn/trunk/modules/fontsvn/admin/index.html (rev 0) +++ XoopsModules/fontsvn/trunk/modules/fontsvn/admin/index.html 2018-11-01 13:07:22 UTC (rev 13395) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/index.php =================================================================== --- XoopsModules/fontsvn/trunk/modules/fontsvn/admin/index.php (rev 0) +++ XoopsModules/fontsvn/trunk/modules/fontsvn/admin/index.php 2018-11-01 13:07:22 UTC (rev 13395) @@ -0,0 +1,43 @@ +<?php +/** + * Font Converter for fonts2web.org.uk +* +* You may not change or alter any portion of this comment or credits +* of supporting developers from this source code or any supporting source code +* which is considered copyrighted (c) material of the original comment or credit authors. +* 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. +* +* @copyright The XOOPS Project http://fonts2web.org.uk +* @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) +* @author Simon Roberts (wishcraft) <wis...@us...> +* @subpackage convert +* @description Converts fonts to web distributional format in a zip pack stamped +* @version 1.0.1 +* @link http://fonts2web.org.uk +* @link http://fonts.labs.coop +* @link http://internetfounder.wordpress.com +*/ + +include_once __DIR__ . '/header.php'; +xoops_cp_header(); + +$indexAdmin = new ModuleAdmin(); + +$identitiesHandler = xoops_getModuleHandler('identities', _MD_FONTSVN_MODULE_DIRNAME); + +$indexAdmin->addInfoBox(_MA_FONTSVN_ADMIN_STATISTICS); +$indexAdmin->addInfoBoxLine(_MA_FONTSVN_ADMIN_STATISTICS, "<infolabel>" ._MA_FONTSVN_ADMIN_STATS_TOTALIDENTITIES. "</infolabel>", $identitiesHandler->getTotalIdentities(), 'Green'); +$indexAdmin->addInfoBoxLine(_MA_FONTSVN_ADMIN_STATISTICS, "<infolabel>" ._MA_FONTSVN_ADMIN_STATS_TOTALPOLLED. "</infolabel>", $identitiesHandler->getTotalPolled(), 'Green'); +$indexAdmin->addInfoBoxLine(_MA_FONTSVN_ADMIN_STATISTICS, "<infolabel>" ._MA_FONTSVN_ADMIN_STATS_TOTALTOPOLL. "</infolabel>", $identitiesHandler->getTotalToPoll(), 'Blue'); +$indexAdmin->addInfoBoxLine(_MA_FONTSVN_ADMIN_STATISTICS, "<infolabel>" ._MA_FONTSVN_ADMIN_STATS_TOTALVIEWS. "</infolabel>", $identitiesHandler->getTotalViews(), 'Purple'); +$indexAdmin->addInfoBoxLine(_MA_FONTSVN_ADMIN_STATISTICS, "<infolabel>" ._MA_FONTSVN_ADMIN_STATS_TOTALDOWNLOADS. "</infolabel>", $identitiesHandler->getTotalDownloads(), 'Purple'); +$indexAdmin->addInfoBoxLine(_MA_FONTSVN_ADMIN_STATISTICS, "<infolabel>" ._MA_FONTSVN_ADMIN_STATS_FILESINCACHE. "</infolabel>", $identitiesHandler->getTotalFilesInCache(), 'Red'); +$indexAdmin->addInfoBoxLine(_MA_FONTSVN_ADMIN_STATISTICS, "<infolabel>" ._MA_FONTSVN_ADMIN_STATS_MBSINCACHE. "</infolabel>", $identitiesHandler->getTotalMbsInCache(), 'Red'); + +echo $indexAdmin->addNavigation(basename(__FILE__)); +echo $indexAdmin->renderIndex(); + +include_once __DIR__ . '/footer.php'; +//xoops_cp_footer(); Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/index.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/menu.php =================================================================== --- XoopsModules/fontsvn/trunk/modules/fontsvn/admin/menu.php (rev 0) +++ XoopsModules/fontsvn/trunk/modules/fontsvn/admin/menu.php 2018-11-01 13:07:22 UTC (rev 13395) @@ -0,0 +1,52 @@ +<?php +/** + * Font Converter for fonts2web.org.uk +* +* You may not change or alter any portion of this comment or credits +* of supporting developers from this source code or any supporting source code +* which is considered copyrighted (c) material of the original comment or credit authors. +* 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. +* +* @copyright The XOOPS Project http://fonts2web.org.uk +* @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) +* @author Simon Roberts (wishcraft) <wis...@us...> +* @subpackage convert +* @description Converts fonts to web distributional format in a zip pack stamped +* @version 1.0.1 +* @link http://fonts2web.org.uk +* @link http://fonts.labs.coop +* @link http://internetfounder.wordpress.com +*/ + +$path = dirname(dirname(dirname(__DIR__))); +include_once $path . '/mainfile.php'; + +$dirname = basename(dirname(__DIR__)); +$module_handler = xoops_getHandler('module'); +$module = $module_handler->getByDirname($dirname); +$pathIcon32 = $module->getInfo('icons32'); +$pathModuleAdmin = $module->getInfo('dirmoduleadmin'); +$pathLanguage = $path . $pathModuleAdmin; + +if (!file_exists($fileinc = $pathLanguage . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/' . 'modinfo.php')) { + $fileinc = $pathLanguage . '/language/english/modinfo.php'; +} + +include_once $fileinc; + +$adminmenu = array(); + +$i = 1; +$adminmenu[$i]['title'] = _MD_FONTSVN_ADMINMENU_HOME; +$adminmenu[$i]['link'] = 'admin/index.php'; +$adminmenu[$i]['icon'] = $pathIcon32 . '/home.png'; +++$i; +$adminmenu[$i]['title'] = _MD_FONTSVN_ADMINMENU_FONTS; +$adminmenu[$i]['link'] = 'admin/identities.php'; +$adminmenu[$i]['icon'] = $pathIcon32 . '/download.png'; +++$i; +$adminmenu[$i]['title'] = _MD_FONTSVN_ADMINMENU_ABOUT; +$adminmenu[$i]['link'] = 'admin/about.php'; +$adminmenu[$i]['icon'] = $pathIcon32 . '/about.png'; Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/menu.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/fontier_block_tag.php =================================================================== --- XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/fontier_block_tag.php (rev 0) +++ XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/fontier_block_tag.php 2018-11-01 13:07:22 UTC (rev 13395) @@ -0,0 +1,78 @@ +<?php +/** + * Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services API + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage fontsvn+ + * @description Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services API + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/fontsvn + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/fontsvn + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/fontsvn + * @link http://internetfounder.wordpress.com + */ + + +require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'header.php'; + +/** + * + * @param unknown $options + * @return array|string[]|NULL[]|number[][][]|mixed[][][]|unknown[][][] + */ +function fontsvn_tag_block_cloud_show($options) +{ + include_once XOOPS_ROOT_PATH . "/modules/tag/blocks/block.php"; + if (file_exists(XOOPS_ROOT_PATH . "/modules/tag/blocks/block.php")) + return tag_block_cloud_show($options, _MD_FONTSVN_MODULE_DIRNAME); + return array(); +} + +/** + * + * @param unknown $options + * @return string + */ +function fontsvn_tag_block_cloud_edit($options) +{ + include_once XOOPS_ROOT_PATH . "/modules/tag/blocks/block.php"; + if (file_exists(XOOPS_ROOT_PATH . "/modules/tag/blocks/block.php")) + return tag_block_cloud_edit($options); + return ''; +} + + +/** + * + * @param unknown $options + * @return array|string[]|NULL[]|unknown[][][] + */ +function fontsvn_tag_block_top_show($options) +{ + include_once XOOPS_ROOT_PATH . "/modules/tag/blocks/block.php"; + if (file_exists(XOOPS_ROOT_PATH . "/modules/tag/blocks/block.php")) + return tag_block_top_show($options, _MD_FONTSVN_MODULE_DIRNAME); + return array(); +} + +/** + * + * @param unknown $options + * @return string + */ +function fontsvn_tag_block_top_edit($options) +{ + include_once XOOPS_ROOT_PATH . "/modules/tag/blocks/block.php"; + if (file_exists(XOOPS_ROOT_PATH . "/modules/tag/blocks/block.php")) + return tag_block_top_edit($options); + return ''; +} \ No newline at end of file Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/fontier_block_tag.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/index.html =================================================================== --- XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/index.html (rev 0) +++ XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/index.html 2018-11-01 13:07:22 UTC (rev 13395) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/last_downloads_items.php =================================================================== --- XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/last_downloads_items.php (rev 0) +++ XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/last_downloads_items.php 2018-11-01 13:07:22 UTC (rev 13395) @@ -0,0 +1,72 @@ +<?php +/** + * Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services API + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage fontsvn+ + * @description Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services API + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/fontsvn + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/fontsvn + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/fontsvn + * @link http://internetfounder.wordpress.com + */ + +require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'header.php'; + +function fontsvn_last_downloads_items_show($options) +{ + $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . "/modules/" . _MD_FONTSVN_MODULE_DIRNAME . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/blocks.css'); + + $block = array('display' => $options[1]); + $identitiesHandler = xoops_getModuleHandler('identities' ,basename(dirname(__DIR__))); + $criteria = new CriteriaCompo(new Criteria('downloaded', '0', '>')); + $criteria->setOrder('DESC'); + $criteria->setSort('downloaded'); + $criteria->setLimit($options[0]); + if ($identities = $identitiesHandler->getObjects($criteria)) + { + $block['items'] = array(); + foreach($identities as $key => $identity) + { + $block['items'][$key]['name'] = $identity->getVar('name'); + $block['items'][$key]['views'] = $identity->getVar('views'); + $block['items'][$key]['downloads'] = $identity->getVar('downloads'); + $block['items'][$key]['naming'] = $identity->getNamingURL(); + $block['items'][$key]['url'] = $identity->getFontURL('id'); + } + return $block; + } + return false; +} + + +function fontsvn_last_downloads_items_edit($options) +{ + $form = ''; + // Sort order ************************************************************* + // (0=older first, 1=newer first) + $form .= '<b>'._MB_FONTSVN_NUMBER."</b> <input type='textbox' name='option[]' size='8', maxlen='4' value='".$options[0]."' /><br/>"; + $form .= '<b>'._MB_FONTSVN_DISPLAY."</b> <select name='options[]'>\n"; + $form .= "<option value='naming'"; + if ( $options[1] == 'naming' ) { + $form .= " selected='selected'"; + } + $form .= '>'._MB_FONTSVN_NAMING."</option>\n"; + $form .= "<option value='text'"; + if($options[1] == 'text'){ + $form .= " selected='selected'"; + } + $form .= '>'._MB_FONTSVN_TEXT.'</option>'; + $form .= "</select>\n"; + return $form; +} Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/last_downloads_items.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/last_viewed_items.php =================================================================== --- XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/last_viewed_items.php (rev 0) +++ XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/last_viewed_items.php 2018-11-01 13:07:22 UTC (rev 13395) @@ -0,0 +1,72 @@ +<?php +/** + * Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services API + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage fontsvn+ + * @description Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services API + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/fontsvn + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/fontsvn + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/fontsvn + * @link http://internetfounder.wordpress.com + */ + +require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'header.php'; + +function fontsvn_last_viewed_items_show($options) +{ + $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . "/modules/" . _MD_FONTSVN_MODULE_DIRNAME . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/blocks.css'); + + $block = array('display' => $options[1]); + $identitiesHandler = xoops_getModuleHandler('identities' ,basename(dirname(__DIR__))); + $criteria = new CriteriaCompo(new Criteria('last', '0', '>')); + $criteria->setOrder('DESC'); + $criteria->setSort('last'); + $criteria->setLimit($options[0]); + if ($identities = $identitiesHandler->getObjects($criteria)) + { + $block['items'] = array(); + foreach($identities as $key => $identity) + { + $block['items'][$key]['name'] = $identity->getVar('name'); + $block['items'][$key]['views'] = $identity->getVar('views'); + $block['items'][$key]['downloads'] = $identity->getVar('downloads'); + $block['items'][$key]['naming'] = $identity->getNamingURL(); + $block['items'][$key]['url'] = $identity->getFontURL('id'); + } + return $block; + } + return false; +} + + +function fontsvn_last_viewed_items_edit($options) +{ + $form = ''; + // Sort order ************************************************************* + // (0=older first, 1=newer first) + $form .= '<b>'._MB_FONTSVN_NUMBER."</b> <input type='textbox' name='option[]' size='8', maxlen='4' value='".$options[0]."' /><br/>"; + $form .= '<b>'._MB_FONTSVN_DISPLAY."</b> <select name='options[]'>\n"; + $form .= "<option value='naming'"; + if ( $options[1] == 'naming' ) { + $form .= " selected='selected'"; + } + $form .= '>'._MB_FONTSVN_NAMING."</option>\n"; + $form .= "<option value='text'"; + if($options[1] == 'text'){ + $form .= " selected='selected'"; + } + $form .= '>'._MB_FONTSVN_TEXT.'</option>'; + $form .= "</select>\n"; + return $form; +} Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/last_viewed_items.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/new_items.php =================================================================== --- XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/new_items.php (rev 0) +++ XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/new_items.php 2018-11-01 13:07:22 UTC (rev 13395) @@ -0,0 +1,72 @@ +<?php +/** + * Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services API + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage fontsvn+ + * @description Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services API + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/fontsvn + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/fontsvn + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/fontsvn + * @link http://internetfounder.wordpress.com + */ + +require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'header.php'; + +function fontsvn_new_items_show($options) +{ + $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . "/modules/" . _MD_FONTSVN_MODULE_DIRNAME . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/blocks.css'); + + $block = array('display' => $options[1]); + $identitiesHandler = xoops_getModuleHandler('identities' ,basename(dirname(__DIR__))); + $criteria = new CriteriaCompo(new Criteria('polling', '0', '>')); + $criteria->setOrder('DESC'); + $criteria->setSort('polled'); + $criteria->setLimit($options[0]); + if ($identities = $identitiesHandler->getObjects($criteria)) + { + $block['items'] = array(); + foreach($identities as $key => $identity) + { + $block['items'][$key]['name'] = $identity->getVar('name'); + $block['items'][$key]['views'] = $identity->getVar('views'); + $block['items'][$key]['downloads'] = $identity->getVar('downloads'); + $block['items'][$key]['naming'] = $identity->getNamingURL(); + $block['items'][$key]['url'] = $identity->getFontURL('id'); + } + return $block; + } + return false; +} + + +function fontsvn_new_items_edit($options) +{ + $form = ''; + // Sort order ************************************************************* + // (0=older first, 1=newer first) + $form .= '<b>'._MB_FONTSVN_NUMBER."</b> <input type='textbox' name='option[]' size='8', maxlen='4' value='".$options[0]."' /><br/>"; + $form .= '<b>'._MB_FONTSVN_DISPLAY."</b> <select name='options[]'>\n"; + $form .= "<option value='naming'"; + if ( $options[1] == 'naming' ) { + $form .= " selected='selected'"; + } + $form .= '>'._MB_FONTSVN_NAMING."</option>\n"; + $form .= "<option value='text'"; + if($options[1] == 'text'){ + $form .= " selected='selected'"; + } + $form .= '>'._MB_FONTSVN_TEXT.'</option>'; + $form .= "</select>\n"; + return $form; +} Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/new_items.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/popular_downloads_items.php =================================================================== --- XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/popular_downloads_items.php (rev 0) +++ XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/popular_downloads_items.php 2018-11-01 13:07:22 UTC (rev 13395) @@ -0,0 +1,72 @@ +<?php +/** + * Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services API + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage fontsvn+ + * @description Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services API + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/fontsvn + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/fontsvn + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/fontsvn + * @link http://internetfounder.wordpress.com + */ + +require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'header.php'; + +function fontsvn_popular_downloads_items_show($options) +{ + $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . "/modules/" . _MD_FONTSVN_MODULE_DIRNAME . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/blocks.css'); + + $block = array('display' => $options[1]); + $identitiesHandler = xoops_getModuleHandler('identities' ,basename(dirname(__DIR__))); + $criteria = new CriteriaCompo(new Criteria('downloads', '0', '>')); + $criteria->setOrder('DESC'); + $criteria->setSort('downloads'); + $criteria->setLimit($options[0]); + if ($identities = $identitiesHandler->getObjects($criteria)) + { + $block['items'] = array(); + foreach($identities as $key => $identity) + { + $block['items'][$key]['name'] = $identity->getVar('name'); + $block['items'][$key]['views'] = $identity->getVar('views'); + $block['items'][$key]['downloads'] = $identity->getVar('downloads'); + $block['items'][$key]['naming'] = $identity->getNamingURL(); + $block['items'][$key]['url'] = $identity->getFontURL('id'); + } + return $block; + } + return false; +} + + +function fontsvn_popular_downloads_items_edit($options) +{ + $form = ''; + // Sort order ************************************************************* + // (0=older first, 1=newer first) + $form .= '<b>'._MB_FONTSVN_NUMBER."</b> <input type='textbox' name='option[]' size='8', maxlen='4' value='".$options[0]."' /><br/>"; + $form .= '<b>'._MB_FONTSVN_DISPLAY."</b> <select name='options[]'>\n"; + $form .= "<option value='naming'"; + if ( $options[1] == 'naming' ) { + $form .= " selected='selected'"; + } + $form .= '>'._MB_FONTSVN_NAMING."</option>\n"; + $form .= "<option value='text'"; + if($options[1] == 'text'){ + $form .= " selected='selected'"; + } + $form .= '>'._MB_FONTSVN_TEXT.'</option>'; + $form .= "</select>\n"; + return $form; +} Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/popular_downloads_items.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/popular_items.php =================================================================== --- XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/popular_items.php (rev 0) +++ XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/popular_items.php 2018-11-01 13:07:22 UTC (rev 13395) @@ -0,0 +1,72 @@ +<?php +/** + * Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services API + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage fontsvn+ + * @description Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services API + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/fontsvn + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/fontsvn + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/fontsvn + * @link http://internetfounder.wordpress.com + */ + +require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'header.php'; + +function fontsvn_popular_items_show($options) +{ + $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . "/modules/" . _MD_FONTSVN_MODULE_DIRNAME . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/blocks.css'); + + $block = array('display' => $options[1]); + $identitiesHandler = xoops_getModuleHandler('identities' ,basename(dirname(__DIR__))); + $criteria = new CriteriaCompo(new Criteria('views', '0', '>')); + $criteria->setOrder('DESC'); + $criteria->setSort('views'); + $criteria->setLimit($options[0]); + if ($identities = $identitiesHandler->getObjects($criteria)) + { + $block['items'] = array(); + foreach($identities as $key => $identity) + { + $block['items'][$key]['name'] = $identity->getVar('name'); + $block['items'][$key]['views'] = $identity->getVar('views'); + $block['items'][$key]['downloads'] = $identity->getVar('downloads'); + $block['items'][$key]['naming'] = $identity->getNamingURL(); + $block['items'][$key]['url'] = $identity->getFontURL('id'); + } + return $block; + } + return false; +} + + +function fontsvn_popular_items_edit($options) +{ + $form = ''; + // Sort order ************************************************************* + // (0=older first, 1=newer first) + $form .= '<b>'._MB_FONTSVN_NUMBER."</b> <input type='textbox' name='option[]' size='8', maxlen='4' value='".$options[0]."' /><br/>"; + $form .= '<b>'._MB_FONTSVN_DISPLAY."</b> <select name='options[]'>\n"; + $form .= "<option value='naming'"; + if ( $options[1] == 'naming' ) { + $form .= " selected='selected'"; + } + $form .= '>'._MB_FONTSVN_NAMING."</option>\n"; + $form .= "<option value='text'"; + if($options[1] == 'text'){ + $form .= " selected='selected'"; + } + $form .= '>'._MB_FONTSVN_TEXT.'</option>'; + $form .= "</select>\n"; + return $form; +} Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/popular_items.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontsvn/trunk/modules/fontsvn/class/identities.php =================================================================== --- XoopsModules/fontsvn/trunk/modules/fontsvn/class/identities.php (rev 0) +++ XoopsModules/fontsvn/trunk/modules/fontsvn/class/identities.php 2018-11-01 13:07:22 UTC (rev 13395) @@ -0,0 +1,576 @@ +<?php +/** + * Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services API + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage fontsvn+ + * @description Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services API + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/fontsvn + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/fontsvn + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/fontsvn + * @link http://internetfounder.wordpress.com + */ + + +if (!defined('_MD_FONTSVN_MODULE_DIRNAME')) { + return false; +} + +//* +require_once (__DIR__ . DIRECTORY_SEPARATOR . 'objects.php'); + +/** + * Class for Glyphs in Fonts2Web.org.uk Font Converter + * + * For Table:- + * <code> + * CREATE TABLE `fontsvn_identities` ( + * `id` mediumint(24) NOT NULL AUTO_INCREMENT, + * `identity` varchar(45) DEFAULT '', + * `base` varchar(1) DEFAULT '', + * `second` varchar(2) DEFAULT '', + * `thirds` varchar(3) DEFAULT '', + * `downloads` int(13) DEFAULT '0', + * `views` int(13) DEFAULT '0', + * `glyphs` tinytext, + * `name` varchar(255) DEFAULT '', + * `tags` varchar(255) DEFAULT '', + * `barcode` varchar(32) DEFAULT '', + * `referee` varchar(128) DEFAULT '', + * `filename` varchar(128) DEFAULT '', + * `preview` varchar(255) DEFAULT '', + * `naming` varchar(255) DEFAULT '', + * `css` varchar(255) DEFAULT '', + * `created` int(13) DEFAULT '0', + * `verify` int(13) DEFAULT '0', + * `last` int(13) DEFAULT '0', + * `downloaded` int(13) DEFAULT '0', + * `glyphed` int(13) DEFAULT '0', + * `notified` int(13) DEFAULT '0', + * `articleid` int(13) DEFAULT '0', + * PRIMARY KEY (`id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class fontsvnIdentities extends fontsvnXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, 0, false); + self::initVar('identity', XOBJ_DTYPE_TXTBOX, md5(null), false, 45); + self::initVar('base', XOBJ_DTYPE_TXTBOX, '', false, 1); + self::initVar('second', XOBJ_DTYPE_TXTBOX, '', false, 2); + self::initVar('thirds', XOBJ_DTYPE_TXTBOX, '', false, 3); + self::initVar('downloads', XOBJ_DTYPE_INT, 0, false); + self::initVar('views', XOBJ_DTYPE_INT, 0, false); + self::initVar('glyphs', XOBJ_DTYPE_ARRAY, array(), false); + self::initVar('name', XOBJ_DTYPE_TXTBOX, '', false, 255); + self::initVar('tags', XOBJ_DTYPE_TXTBOX, '', false, 255); + self::initVar('barcode', XOBJ_DTYPE_TXTBOX, '', false, 32); + self::initVar('referee', XOBJ_DTYPE_TXTBOX, '', false, 128); + self::initVar('filename', XOBJ_DTYPE_TXTBOX, '', false, 128); + self::initVar('preview', XOBJ_DTYPE_TXTBOX, '', false, 255); + self::initVar('naming', XOBJ_DTYPE_TXTBOX, '', false, 255); + self::initVar('css', XOBJ_DTYPE_TXTBOX, '', false, 255); + self::initVar('created', XOBJ_DTYPE_INT, 0, false); + self::initVar('verify', XOBJ_DTYPE_INT, 0, false); + self::initVar('verified', XOBJ_DTYPE_INT, 0, false); + self::initVar('files', XOBJ_DTYPE_INT, 0, false); + self::initVar('missing', XOBJ_DTYPE_INT, 0, false); + self::initVar('last', XOBJ_DTYPE_INT, 0, false); + self::initVar('downloaded', XOBJ_DTYPE_INT, 0, false); + self::initVar('glyphed', XOBJ_DTYPE_INT, 0, false); + self::initVar('notified', XOBJ_DTYPE_INT, 0, false); + self::initVar('articleid', XOBJ_DTYPE_INT, 0, false); + self::initVar('validation', XOBJ_DTYPE_ARRAY, array(), false); + + $this->handler = __CLASS__ . 'Handler'; + if (!empty($id) && !is_null($id)) + { + $handler = new $this->handler; + self::assignVars($handler->get($id)->getValues(array_keys($this->vars))); + } + + } + + /** + * + * @return boolean[]|string[]|mixed[]|NULL[]|array[] + */ + function getAdminPanelArray() + { + global $fontsvnConfigsList; + return array( 'name' => $this->getVar('name'), + 'views' => $this->getVar('views'), + 'downloads' => $this->getVar('downloads'), + 'url' => $this->getFontURL('id'), + 'naming' => $this->getNamingURL($fontsvnConfigsList['images']) ); + } + + /** + * + * @return string + */ + function getDescriptionTile() + { + global $fontsvnConfigsList; + $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . "/modules/" . _MD_FONTSVN_MODULE_DIRNAME . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/style.css'); + xoops_loadLanguage('main', _MD_FONTSVN_MODULE_DIRNAME); + $html = "<div style=\"margin: 8px; padding: 3px; text-align: center;\">\n + <img id=\"fontsvnfontnaming\" src=\"".$this->getNamingURL($fontsvnConfigsList['images']) ."\" title=\"" . $this->getVar('name') ."\" alt=\"" . $this->getVar('name') ."\" width='89%' />\n + <br />\n + <span id=\"fontsvnviewsdownloads\">"._MN_FONTSVN_FONT_VIEWS.": ".$this->getVar('views')... [truncated message content] |