Changeset 2166154
- Timestamp:
- 10/01/2019 06:32:21 AM (6 years ago)
- Location:
- woo-dp-internetmarke
- Files:
-
- 439 added
- 1 deleted
- 84 edited
-
tags/2.1.8 (added)
-
tags/2.1.8/assets (added)
-
tags/2.1.8/assets/css (added)
-
tags/2.1.8/assets/css/dp.css (added)
-
tags/2.1.8/assets/css/main.css (added)
-
tags/2.1.8/assets/images (added)
-
tags/2.1.8/assets/images/dp-logo-128x128.jpg (added)
-
tags/2.1.8/assets/images/dp-logo-32x32.jpg (added)
-
tags/2.1.8/assets/images/dp-logo-64x64.jpg (added)
-
tags/2.1.8/assets/images/dp-logo-text-transparent.png (added)
-
tags/2.1.8/assets/images/internetmarke_logo_web.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00006.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00007.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00008.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00009.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00010.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00011.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00012.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00013.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00014.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00015.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00016.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00017.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00018.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00019.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00020.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00021.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00022.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00023.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00024.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00025.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00026.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00027.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00028.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00029.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00030.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00031.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00032.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00033.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00034.png (added)
-
tags/2.1.8/assets/images/packet_plus_previews/dppapl_f00035.png (added)
-
tags/2.1.8/assets/images/screenshot_dp_shop.jpg (added)
-
tags/2.1.8/assets/images/screenshot_installation.jpg (added)
-
tags/2.1.8/assets/images/screenshot_login.jpg (added)
-
tags/2.1.8/assets/images/screenshot_order.jpg (added)
-
tags/2.1.8/assets/images/screenshot_shipments.jpg (added)
-
tags/2.1.8/assets/images/sprite.png (added)
-
tags/2.1.8/assets/images/[email protected] (added)
-
tags/2.1.8/assets/images/teaser-btn-euro.png (added)
-
tags/2.1.8/assets/images/teaser-btn-pf.png (added)
-
tags/2.1.8/assets/images/teaser-btn-ppl.png (added)
-
tags/2.1.8/assets/images/teaser-btn.png (added)
-
tags/2.1.8/assets/js (added)
-
tags/2.1.8/assets/js/JavaScript-MD5 (added)
-
tags/2.1.8/assets/js/JavaScript-MD5/.eslintignore (added)
-
tags/2.1.8/assets/js/JavaScript-MD5/.eslintrc.js (added)
-
tags/2.1.8/assets/js/JavaScript-MD5/.gitignore (added)
-
tags/2.1.8/assets/js/JavaScript-MD5/.npmignore (added)
-
tags/2.1.8/assets/js/JavaScript-MD5/.travis.yml (added)
-
tags/2.1.8/assets/js/JavaScript-MD5/LICENSE.txt (added)
-
tags/2.1.8/assets/js/JavaScript-MD5/README.md (added)
-
tags/2.1.8/assets/js/JavaScript-MD5/css (added)
-
tags/2.1.8/assets/js/JavaScript-MD5/css/demo.css (added)
-
tags/2.1.8/assets/js/JavaScript-MD5/index.html (added)
-
tags/2.1.8/assets/js/JavaScript-MD5/js (added)
-
tags/2.1.8/assets/js/JavaScript-MD5/js/demo (added)
-
tags/2.1.8/assets/js/JavaScript-MD5/js/demo/demo.js (added)
-
tags/2.1.8/assets/js/JavaScript-MD5/js/md5.js (added)
-
tags/2.1.8/assets/js/JavaScript-MD5/js/md5.min.js (added)
-
tags/2.1.8/assets/js/JavaScript-MD5/js/md5.min.js.map (added)
-
tags/2.1.8/assets/js/JavaScript-MD5/package.json (added)
-
tags/2.1.8/assets/js/JavaScript-MD5/test (added)
-
tags/2.1.8/assets/js/JavaScript-MD5/test/index.html (added)
-
tags/2.1.8/assets/js/JavaScript-MD5/test/test.js (added)
-
tags/2.1.8/assets/js/JavaScript-MD5/test/vendor (added)
-
tags/2.1.8/assets/js/JavaScript-MD5/test/vendor/chai.js (added)
-
tags/2.1.8/assets/js/JavaScript-MD5/test/vendor/mocha.css (added)
-
tags/2.1.8/assets/js/JavaScript-MD5/test/vendor/mocha.js (added)
-
tags/2.1.8/assets/js/functions.js (added)
-
tags/2.1.8/assets/js/source.js (added)
-
tags/2.1.8/composer.json (added)
-
tags/2.1.8/composer.lock (added)
-
tags/2.1.8/i18n (added)
-
tags/2.1.8/i18n/wcdpi-de_DE.mo (added)
-
tags/2.1.8/i18n/wcdpi-de_DE.po (added)
-
tags/2.1.8/includes (added)
-
tags/2.1.8/includes/Address.php (added)
-
tags/2.1.8/includes/AjaxHandler.php (added)
-
tags/2.1.8/includes/Crypto.php (added)
-
tags/2.1.8/includes/Helper.php (added)
-
tags/2.1.8/includes/Internetmarke.php (added)
-
tags/2.1.8/includes/Logger.php (added)
-
tags/2.1.8/includes/PageFormat.php (added)
-
tags/2.1.8/includes/Setup.php (added)
-
tags/2.1.8/includes/Store.php (added)
-
tags/2.1.8/includes/Wizard.php (added)
-
tags/2.1.8/includes/abstracts (added)
-
tags/2.1.8/includes/abstracts/ApiResult.php (added)
-
tags/2.1.8/includes/abstracts/RestCurl.php (added)
-
tags/2.1.8/includes/admin (added)
-
tags/2.1.8/includes/admin/MetaBoxes.php (added)
-
tags/2.1.8/includes/admin/Notice.php (added)
-
tags/2.1.8/includes/components (added)
-
tags/2.1.8/includes/components/DPShop.php (added)
-
tags/2.1.8/includes/components/Dashboard.php (added)
-
tags/2.1.8/includes/components/Settings.php (added)
-
tags/2.1.8/includes/components/Shipments.php (added)
-
tags/2.1.8/includes/components/view (added)
-
tags/2.1.8/includes/components/view/Shipments.php (added)
-
tags/2.1.8/includes/connectors (added)
-
tags/2.1.8/includes/connectors/rest (added)
-
tags/2.1.8/includes/connectors/rest/FORKLane.php (added)
-
tags/2.1.8/includes/connectors/rest/PacketPlus.php (added)
-
tags/2.1.8/includes/connectors/soap (added)
-
tags/2.1.8/includes/connectors/soap/OC4A.php (added)
-
tags/2.1.8/includes/connectors/soap/OC4R.php (added)
-
tags/2.1.8/includes/connectors/soap/ProdWS.php (added)
-
tags/2.1.8/includes/enums (added)
-
tags/2.1.8/includes/enums/AdditionalOptions.php (added)
-
tags/2.1.8/includes/enums/Event.php (added)
-
tags/2.1.8/includes/enums/HttpDataType.php (added)
-
tags/2.1.8/includes/enums/PacketPlusEnv.php (added)
-
tags/2.1.8/includes/enums/RoutingResponseStatus.php (added)
-
tags/2.1.8/includes/enums/ShipmentAttachment.php (added)
-
tags/2.1.8/includes/enums/ShipmentStatus.php (added)
-
tags/2.1.8/includes/interfaces (added)
-
tags/2.1.8/includes/interfaces/ComponentIntegration.php (added)
-
tags/2.1.8/includes/interfaces/CountryRepository.php (added)
-
tags/2.1.8/includes/interfaces/FeatureRepository.php (added)
-
tags/2.1.8/includes/interfaces/Middleware.php (added)
-
tags/2.1.8/includes/interfaces/OrderRepository.php (added)
-
tags/2.1.8/includes/interfaces/PageFormatRepository.php (added)
-
tags/2.1.8/includes/interfaces/PartnerRepository.php (added)
-
tags/2.1.8/includes/interfaces/ProductRepository.php (added)
-
tags/2.1.8/includes/interfaces/Route.php (added)
-
tags/2.1.8/includes/interfaces/ShipmentRepository.php (added)
-
tags/2.1.8/includes/interfaces/SoapService.php (added)
-
tags/2.1.8/includes/interfaces/UserRepository.php (added)
-
tags/2.1.8/includes/middleware (added)
-
tags/2.1.8/includes/middleware/Authorisation.php (added)
-
tags/2.1.8/includes/middleware/DataUnification.php (added)
-
tags/2.1.8/includes/middleware/Error.php (added)
-
tags/2.1.8/includes/middleware/MiddlewareManager.php (added)
-
tags/2.1.8/includes/middleware/Security.php (added)
-
tags/2.1.8/includes/products (added)
-
tags/2.1.8/includes/products/AdditionalProductList.php (added)
-
tags/2.1.8/includes/products/SalesProductList.php (added)
-
tags/2.1.8/includes/repositories (added)
-
tags/2.1.8/includes/repositories/CountryWpdb.php (added)
-
tags/2.1.8/includes/repositories/FeatureWpdb.php (added)
-
tags/2.1.8/includes/repositories/MainWpdb.php (added)
-
tags/2.1.8/includes/repositories/OrderWpdb.php (added)
-
tags/2.1.8/includes/repositories/PageFormatWpdb.php (added)
-
tags/2.1.8/includes/repositories/PartnerWpdb.php (added)
-
tags/2.1.8/includes/repositories/ProductWpdb.php (added)
-
tags/2.1.8/includes/repositories/ShipmentWpdb.php (added)
-
tags/2.1.8/includes/repositories/UserWpdb.php (added)
-
tags/2.1.8/includes/routing (added)
-
tags/2.1.8/includes/routing/Main.php (added)
-
tags/2.1.8/includes/routing/RoutingManager.php (added)
-
tags/2.1.8/includes/routing/Shipment.php (added)
-
tags/2.1.8/includes/services (added)
-
tags/2.1.8/includes/services/Shipment.php (added)
-
tags/2.1.8/includes/settings (added)
-
tags/2.1.8/includes/settings/General.php (added)
-
tags/2.1.8/includes/settings/Internetmarke1C4A.php (added)
-
tags/2.1.8/includes/settings/Internetmarke1C4R.php (added)
-
tags/2.1.8/includes/settings/InternetmarkeProdWS.php (added)
-
tags/2.1.8/includes/settings/Logger.php (added)
-
tags/2.1.8/includes/settings/PacketPlusCrossBorder.php (added)
-
tags/2.1.8/includes/settings/PacketPlusInternational.php (added)
-
tags/2.1.8/includes/settings/PortChecker.php (added)
-
tags/2.1.8/includes/settings/Portokasse.php (added)
-
tags/2.1.8/includes/settings/ScheduledTasks.php (added)
-
tags/2.1.8/includes/settings/Tools.php (added)
-
tags/2.1.8/internetmarke.php (added)
-
tags/2.1.8/logs (added)
-
tags/2.1.8/logs/debug.log (added)
-
tags/2.1.8/logs/error.log (added)
-
tags/2.1.8/migrations (added)
-
tags/2.1.8/migrations/20181210100000_101_table_structure.php (added)
-
tags/2.1.8/migrations/20181210120000_101_migrate.php (added)
-
tags/2.1.8/migrations/20190114100000_203_table_structure_old_mysql.php (added)
-
tags/2.1.8/migrations/20190114120000_203_meta_insert_dt.php (added)
-
tags/2.1.8/migrations/20190114130000_203_migrate.php (added)
-
tags/2.1.8/migrations/20190128130000_206_update_features.php (added)
-
tags/2.1.8/migrations/20190701100000_207_update_features.php (added)
-
tags/2.1.8/readme.txt (added)
-
tags/2.1.8/templates (added)
-
tags/2.1.8/templates/dashboard.php (added)
-
tags/2.1.8/templates/header.php (added)
-
tags/2.1.8/templates/hero-banner.php (added)
-
tags/2.1.8/templates/order-meta-box-quick-buy.php (added)
-
tags/2.1.8/templates/order-meta-box.php (added)
-
tags/2.1.8/templates/product-list-empty.php (added)
-
tags/2.1.8/templates/settings (added)
-
tags/2.1.8/templates/settings.php (added)
-
tags/2.1.8/templates/settings/description.php (added)
-
tags/2.1.8/templates/settings/faq.php (added)
-
tags/2.1.8/templates/settings/internetmarke_1c4a.php (added)
-
tags/2.1.8/templates/settings/internetmarke_1c4r.php (added)
-
tags/2.1.8/templates/settings/internetmarke_prodws.php (added)
-
tags/2.1.8/templates/settings/packet_plus_cross_border.php (added)
-
tags/2.1.8/templates/settings/packet_plus_international.php (added)
-
tags/2.1.8/templates/settings/port_checker.php (added)
-
tags/2.1.8/templates/settings/portokasse.php (added)
-
tags/2.1.8/templates/settings/scheduled_tasks.php (added)
-
tags/2.1.8/templates/settings/synchronization.php (added)
-
tags/2.1.8/templates/settings/troubleshooting.php (added)
-
tags/2.1.8/templates/shipments.php (added)
-
tags/2.1.8/templates/wizard-dp-shop.php (added)
-
tags/2.1.8/templates/wizard-order.php (added)
-
tags/2.1.8/vendor (added)
-
tags/2.1.8/vendor/autoload.php (added)
-
tags/2.1.8/vendor/composer (added)
-
tags/2.1.8/vendor/composer/ClassLoader.php (added)
-
tags/2.1.8/vendor/composer/LICENSE (added)
-
tags/2.1.8/vendor/composer/autoload_classmap.php (added)
-
tags/2.1.8/vendor/composer/autoload_namespaces.php (added)
-
tags/2.1.8/vendor/composer/autoload_psr4.php (added)
-
tags/2.1.8/vendor/composer/autoload_real.php (added)
-
tags/2.1.8/vendor/composer/autoload_static.php (added)
-
tags/2.1.8/vendor/composer/installed.json (added)
-
tags/2.1.8/vendor/setasign (added)
-
tags/2.1.8/vendor/setasign/fpdf (added)
-
tags/2.1.8/vendor/setasign/fpdf/FAQ.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/README.md (added)
-
tags/2.1.8/vendor/setasign/fpdf/changelog.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/composer.json (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/__construct.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/acceptpagebreak.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/addfont.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/addlink.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/addpage.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/aliasnbpages.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/cell.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/close.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/error.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/footer.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/getpageheight.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/getpagewidth.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/getstringwidth.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/getx.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/gety.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/header.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/image.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/index.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/line.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/link.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/ln.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/multicell.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/output.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/pageno.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/rect.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/setauthor.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/setautopagebreak.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/setcompression.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/setcreator.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/setdisplaymode.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/setdrawcolor.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/setfillcolor.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/setfont.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/setfontsize.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/setkeywords.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/setleftmargin.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/setlinewidth.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/setlink.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/setmargins.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/setrightmargin.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/setsubject.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/settextcolor.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/settitle.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/settopmargin.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/setx.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/setxy.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/sety.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/text.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/doc/write.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/font (added)
-
tags/2.1.8/vendor/setasign/fpdf/font/courier.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/font/courierb.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/font/courierbi.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/font/courieri.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/font/helvetica.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/font/helveticab.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/font/helveticabi.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/font/helveticai.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/font/symbol.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/font/times.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/font/timesb.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/font/timesbi.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/font/timesi.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/font/zapfdingbats.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/fpdf.css (added)
-
tags/2.1.8/vendor/setasign/fpdf/fpdf.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/install.txt (added)
-
tags/2.1.8/vendor/setasign/fpdf/license.txt (added)
-
tags/2.1.8/vendor/setasign/fpdf/makefont (added)
-
tags/2.1.8/vendor/setasign/fpdf/makefont/cp1250.map (added)
-
tags/2.1.8/vendor/setasign/fpdf/makefont/cp1251.map (added)
-
tags/2.1.8/vendor/setasign/fpdf/makefont/cp1252.map (added)
-
tags/2.1.8/vendor/setasign/fpdf/makefont/cp1253.map (added)
-
tags/2.1.8/vendor/setasign/fpdf/makefont/cp1254.map (added)
-
tags/2.1.8/vendor/setasign/fpdf/makefont/cp1255.map (added)
-
tags/2.1.8/vendor/setasign/fpdf/makefont/cp1257.map (added)
-
tags/2.1.8/vendor/setasign/fpdf/makefont/cp1258.map (added)
-
tags/2.1.8/vendor/setasign/fpdf/makefont/cp874.map (added)
-
tags/2.1.8/vendor/setasign/fpdf/makefont/iso-8859-1.map (added)
-
tags/2.1.8/vendor/setasign/fpdf/makefont/iso-8859-11.map (added)
-
tags/2.1.8/vendor/setasign/fpdf/makefont/iso-8859-15.map (added)
-
tags/2.1.8/vendor/setasign/fpdf/makefont/iso-8859-16.map (added)
-
tags/2.1.8/vendor/setasign/fpdf/makefont/iso-8859-2.map (added)
-
tags/2.1.8/vendor/setasign/fpdf/makefont/iso-8859-4.map (added)
-
tags/2.1.8/vendor/setasign/fpdf/makefont/iso-8859-5.map (added)
-
tags/2.1.8/vendor/setasign/fpdf/makefont/iso-8859-7.map (added)
-
tags/2.1.8/vendor/setasign/fpdf/makefont/iso-8859-9.map (added)
-
tags/2.1.8/vendor/setasign/fpdf/makefont/koi8-r.map (added)
-
tags/2.1.8/vendor/setasign/fpdf/makefont/koi8-u.map (added)
-
tags/2.1.8/vendor/setasign/fpdf/makefont/makefont.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/makefont/ttfparser.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/tutorial (added)
-
tags/2.1.8/vendor/setasign/fpdf/tutorial/20k_c1.txt (added)
-
tags/2.1.8/vendor/setasign/fpdf/tutorial/20k_c2.txt (added)
-
tags/2.1.8/vendor/setasign/fpdf/tutorial/calligra.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/tutorial/calligra.ttf (added)
-
tags/2.1.8/vendor/setasign/fpdf/tutorial/calligra.z (added)
-
tags/2.1.8/vendor/setasign/fpdf/tutorial/countries.txt (added)
-
tags/2.1.8/vendor/setasign/fpdf/tutorial/index.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/tutorial/logo.png (added)
-
tags/2.1.8/vendor/setasign/fpdf/tutorial/makefont.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/tutorial/tuto1.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/tutorial/tuto1.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/tutorial/tuto2.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/tutorial/tuto2.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/tutorial/tuto3.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/tutorial/tuto3.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/tutorial/tuto4.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/tutorial/tuto4.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/tutorial/tuto5.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/tutorial/tuto5.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/tutorial/tuto6.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/tutorial/tuto6.php (added)
-
tags/2.1.8/vendor/setasign/fpdf/tutorial/tuto7.htm (added)
-
tags/2.1.8/vendor/setasign/fpdf/tutorial/tuto7.php (added)
-
tags/2.1.8/vendor/setasign/fpdi (added)
-
tags/2.1.8/vendor/setasign/fpdi-fpdf (added)
-
tags/2.1.8/vendor/setasign/fpdi-fpdf/LICENSE.txt (added)
-
tags/2.1.8/vendor/setasign/fpdi-fpdf/README.md (added)
-
tags/2.1.8/vendor/setasign/fpdi-fpdf/composer.json (added)
-
tags/2.1.8/vendor/setasign/fpdi/LICENSE.txt (added)
-
tags/2.1.8/vendor/setasign/fpdi/README.md (added)
-
tags/2.1.8/vendor/setasign/fpdi/composer.json (added)
-
tags/2.1.8/vendor/setasign/fpdi/src (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/FpdfTpl.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/FpdfTplTrait.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/Fpdi.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/FpdiException.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/FpdiTrait.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/CrossReference (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/CrossReference/AbstractReader.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/CrossReference/CrossReference.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/CrossReference/CrossReferenceException.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/CrossReference/FixedReader.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/CrossReference/LineReader.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/CrossReference/ReaderInterface.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Filter (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Filter/Ascii85.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Filter/Ascii85Exception.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Filter/AsciiHex.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Filter/FilterException.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Filter/FilterInterface.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Filter/Flate.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Filter/FlateException.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Filter/Lzw.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Filter/LzwException.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/PdfParser.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/PdfParserException.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/StreamReader.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Tokenizer.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Type (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Type/PdfArray.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Type/PdfBoolean.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Type/PdfDictionary.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Type/PdfHexString.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Type/PdfIndirectObject.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Type/PdfIndirectObjectReference.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Type/PdfName.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Type/PdfNull.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Type/PdfNumeric.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Type/PdfStream.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Type/PdfString.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Type/PdfToken.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Type/PdfType.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfParser/Type/PdfTypeException.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfReader (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfReader/DataStructure (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfReader/DataStructure/Rectangle.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfReader/Page.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfReader/PageBoundaries.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfReader/PdfReader.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/PdfReader/PdfReaderException.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/Tcpdf (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/Tcpdf/Fpdi.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/TcpdfFpdi.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/Tfpdf (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/Tfpdf/FpdfTpl.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/Tfpdf/Fpdi.php (added)
-
tags/2.1.8/vendor/setasign/fpdi/src/autoload.php (added)
-
tags/2.1.8/vendor/wsdltophp (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/.docker (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/.docker/Dockerfile (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/.editorconfig (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/.gitignore (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/.php_cs (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/.travis.yml (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/CHANGELOG.md (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/LICENSE (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/README.md (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/composer.json (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/docker-compose.yml (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/phpunit.xml.dist (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/src (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/src/Created.php (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/src/Element.php (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/src/Expires.php (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/src/Nonce.php (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/src/Password.php (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/src/Security.php (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/src/Timestamp.php (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/src/Username.php (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/src/UsernameToken.php (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/src/WsSecurity.php (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/tests (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/tests/TestCase.php (added)
-
tags/2.1.8/vendor/wsdltophp/wssecurity/tests/WsSecurityTest.php (added)
-
trunk/composer.json (modified) (1 diff)
-
trunk/composer.lock (modified) (30 diffs)
-
trunk/includes/Internetmarke.php (modified) (1 diff)
-
trunk/includes/Logger.php (modified) (12 diffs)
-
trunk/includes/components/Dashboard.php (modified) (4 diffs)
-
trunk/includes/components/Settings.php (modified) (3 diffs)
-
trunk/includes/connectors/soap/OC4A.php (modified) (2 diffs)
-
trunk/includes/enums/ShipmentStatus.php (modified) (2 diffs)
-
trunk/includes/repositories/ProductWpdb.php (modified) (6 diffs)
-
trunk/includes/repositories/ShipmentWpdb.php (modified) (1 diff)
-
trunk/includes/services/Shipment.php (modified) (6 diffs)
-
trunk/internetmarke.php (modified) (1 diff)
-
trunk/logs/debug.log (deleted)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (3 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.json (modified) (6 diffs)
-
trunk/vendor/setasign/fpdi-fpdf/README.md (modified) (2 diffs)
-
trunk/vendor/setasign/fpdi-fpdf/composer.json (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/FpdfTpl.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/FpdfTplTrait.php (modified) (3 diffs)
-
trunk/vendor/setasign/fpdi/src/Fpdi.php (modified) (3 diffs)
-
trunk/vendor/setasign/fpdi/src/FpdiException.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/FpdiTrait.php (modified) (5 diffs)
-
trunk/vendor/setasign/fpdi/src/PdfParser/CrossReference/AbstractReader.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/CrossReference/CrossReference.php (modified) (2 diffs)
-
trunk/vendor/setasign/fpdi/src/PdfParser/CrossReference/CrossReferenceException.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/CrossReference/FixedReader.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/CrossReference/LineReader.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/CrossReference/ReaderInterface.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/Filter/Ascii85.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/Filter/Ascii85Exception.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/Filter/AsciiHex.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/Filter/FilterException.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/Filter/FilterInterface.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/Filter/Flate.php (modified) (2 diffs)
-
trunk/vendor/setasign/fpdi/src/PdfParser/Filter/FlateException.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/Filter/Lzw.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/Filter/LzwException.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/PdfParser.php (modified) (2 diffs)
-
trunk/vendor/setasign/fpdi/src/PdfParser/PdfParserException.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/StreamReader.php (modified) (2 diffs)
-
trunk/vendor/setasign/fpdi/src/PdfParser/Tokenizer.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfArray.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfBoolean.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfDictionary.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfHexString.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfIndirectObject.php (modified) (2 diffs)
-
trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfIndirectObjectReference.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfName.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfNull.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfNumeric.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfStream.php (modified) (7 diffs)
-
trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfString.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfToken.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfType.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfTypeException.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfReader/DataStructure/Rectangle.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfReader/Page.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfReader/PageBoundaries.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfReader/PdfReader.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/PdfReader/PdfReaderException.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/Tcpdf/Fpdi.php (modified) (5 diffs)
-
trunk/vendor/setasign/fpdi/src/TcpdfFpdi.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/Tfpdf/FpdfTpl.php (modified) (1 diff)
-
trunk/vendor/setasign/fpdi/src/Tfpdf/Fpdi.php (modified) (3 diffs)
-
trunk/vendor/setasign/fpdi/src/autoload.php (modified) (1 diff)
-
trunk/vendor/wsdltophp/wssecurity/.gitignore (modified) (1 diff)
-
trunk/vendor/wsdltophp/wssecurity/.php_cs (modified) (2 diffs)
-
trunk/vendor/wsdltophp/wssecurity/.travis.yml (modified) (1 diff)
-
trunk/vendor/wsdltophp/wssecurity/CHANGELOG.md (modified) (1 diff)
-
trunk/vendor/wsdltophp/wssecurity/composer.json (modified) (3 diffs)
-
trunk/vendor/wsdltophp/wssecurity/src/Created.php (modified) (1 diff)
-
trunk/vendor/wsdltophp/wssecurity/src/Element.php (modified) (13 diffs)
-
trunk/vendor/wsdltophp/wssecurity/src/Expires.php (modified) (1 diff)
-
trunk/vendor/wsdltophp/wssecurity/src/Nonce.php (modified) (2 diffs)
-
trunk/vendor/wsdltophp/wssecurity/src/Password.php (modified) (6 diffs)
-
trunk/vendor/wsdltophp/wssecurity/src/Security.php (modified) (2 diffs)
-
trunk/vendor/wsdltophp/wssecurity/src/Timestamp.php (modified) (3 diffs)
-
trunk/vendor/wsdltophp/wssecurity/src/Username.php (modified) (1 diff)
-
trunk/vendor/wsdltophp/wssecurity/src/UsernameToken.php (modified) (3 diffs)
-
trunk/vendor/wsdltophp/wssecurity/src/WsSecurity.php (modified) (8 diffs)
-
trunk/vendor/wsdltophp/wssecurity/tests/TestCase.php (modified) (2 diffs)
-
trunk/vendor/wsdltophp/wssecurity/tests/WsSecurityTest.php (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-dp-internetmarke/trunk/composer.json
r2010628 r2166154 27 27 "require": { 28 28 "setasign/fpdi-fpdf": "^2.0", 29 "wsdltophp/wssecurity": "^1.1" 29 "wsdltophp/wssecurity": "^1.1", 30 "ext-soap": "*" 30 31 }, 31 32 "require-dev": { 32 33 "phpunit/phpunit": "7", 33 34 "brain/monkey": "^2.2" 35 }, 36 "config": { 37 "optimize-autoloader": true 34 38 } 35 39 } -
woo-dp-internetmarke/trunk/composer.lock
r2121236 r2166154 2 2 "_readme": [ 3 3 "This file locks the dependencies of your project to a known state", 4 "Read more about it at https://getcomposer.org/doc/01-basic-usage.md# installing-dependencies",4 "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", 5 5 "This file is @generated automatically" 6 6 ], … … 48 48 { 49 49 "name": "setasign/fpdi", 50 "version": "v2. 2.0",50 "version": "v2.1.1", 51 51 "source": { 52 52 "type": "git", 53 53 "url": "https://github.com/Setasign/FPDI.git", 54 "reference": "3 c266002f8044f61b17329f7cd702d44d73f0f7f"55 }, 56 "dist": { 57 "type": "zip", 58 "url": "https://api.github.com/repos/Setasign/FPDI/zipball/3 c266002f8044f61b17329f7cd702d44d73f0f7f",59 "reference": "3 c266002f8044f61b17329f7cd702d44d73f0f7f",54 "reference": "356de9cb6b6a826ac952c86aee6599463ea87362" 55 }, 56 "dist": { 57 "type": "zip", 58 "url": "https://api.github.com/repos/Setasign/FPDI/zipball/356de9cb6b6a826ac952c86aee6599463ea87362", 59 "reference": "356de9cb6b6a826ac952c86aee6599463ea87362", 60 60 "shasum": "" 61 61 }, … … 105 105 "pdf" 106 106 ], 107 "time": "201 9-01-30T14:11:19+00:00"107 "time": "2018-11-06T10:02:00+00:00" 108 108 }, 109 109 { 110 110 "name": "setasign/fpdi-fpdf", 111 "version": "v2. 2.0",111 "version": "v2.1.0", 112 112 "source": { 113 113 "type": "git", 114 114 "url": "https://github.com/Setasign/FPDI-FPDF.git", 115 "reference": " e4363ac09e1b766b38ebea1c3cbe82b3480a11e9"116 }, 117 "dist": { 118 "type": "zip", 119 "url": "https://api.github.com/repos/Setasign/FPDI-FPDF/zipball/ e4363ac09e1b766b38ebea1c3cbe82b3480a11e9",120 "reference": " e4363ac09e1b766b38ebea1c3cbe82b3480a11e9",115 "reference": "c13ff727115f4fab040d58b559929113cc1be8e2" 116 }, 117 "dist": { 118 "type": "zip", 119 "url": "https://api.github.com/repos/Setasign/FPDI-FPDF/zipball/c13ff727115f4fab040d58b559929113cc1be8e2", 120 "reference": "c13ff727115f4fab040d58b559929113cc1be8e2", 121 121 "shasum": "" 122 122 }, 123 123 "require": { 124 124 "setasign/fpdf": "^1.8", 125 "setasign/fpdi": "^2. 2"125 "setasign/fpdi": "^2.1" 126 126 }, 127 127 "type": "library", … … 144 144 "pdf" 145 145 ], 146 "time": "201 9-01-30T14:38:19+00:00"146 "time": "2018-11-06T10:40:46+00:00" 147 147 }, 148 148 { 149 149 "name": "wsdltophp/wssecurity", 150 "version": "1. 2.2",150 "version": "1.1.0", 151 151 "source": { 152 152 "type": "git", 153 153 "url": "https://github.com/WsdlToPhp/WsSecurity.git", 154 "reference": "6 a450af3cd462cbf73fdb3a09e80322da893af4f"155 }, 156 "dist": { 157 "type": "zip", 158 "url": "https://api.github.com/repos/WsdlToPhp/WsSecurity/zipball/6 a450af3cd462cbf73fdb3a09e80322da893af4f",159 "reference": "6 a450af3cd462cbf73fdb3a09e80322da893af4f",154 "reference": "67ba2bf3fe9cb08c2d130286f27c72e5a36f0fa3" 155 }, 156 "dist": { 157 "type": "zip", 158 "url": "https://api.github.com/repos/WsdlToPhp/WsSecurity/zipball/67ba2bf3fe9cb08c2d130286f27c72e5a36f0fa3", 159 "reference": "67ba2bf3fe9cb08c2d130286f27c72e5a36f0fa3", 160 160 "shasum": "" 161 161 }, … … 194 194 "email": "[email protected]", 195 195 "role": "Contributor" 196 },197 {198 "name": "NtlBldrv",199 "role": "Contributor"200 },201 {202 "name": "baijunyao",203 "email": "[email protected]",204 "role": "Contributor"205 196 } 206 197 ], … … 211 202 "wsse" 212 203 ], 213 "time": "201 9-04-09T08:40:37+00:00"204 "time": "2018-10-03T19:26:08+00:00" 214 205 } 215 206 ], … … 258 249 { 259 250 "name": "brain/monkey", 260 "version": "2.2. 1",251 "version": "2.2.0", 261 252 "source": { 262 253 "type": "git", 263 254 "url": "https://github.com/Brain-WP/BrainMonkey.git", 264 "reference": " 326a537bf518edd61bc57ab275e8b075ebb8a1a9"265 }, 266 "dist": { 267 "type": "zip", 268 "url": "https://api.github.com/repos/Brain-WP/BrainMonkey/zipball/ 326a537bf518edd61bc57ab275e8b075ebb8a1a9",269 "reference": " 326a537bf518edd61bc57ab275e8b075ebb8a1a9",255 "reference": "ed9e0698bc1292f33698719da8ca1aa2e18acc51" 256 }, 257 "dist": { 258 "type": "zip", 259 "url": "https://api.github.com/repos/Brain-WP/BrainMonkey/zipball/ed9e0698bc1292f33698719da8ca1aa2e18acc51", 260 "reference": "ed9e0698bc1292f33698719da8ca1aa2e18acc51", 270 261 "shasum": "" 271 262 }, … … 318 309 "testing" 319 310 ], 320 "time": "201 9-03-15T13:42:24+00:00"311 "time": "2017-12-01T16:32:09+00:00" 321 312 }, 322 313 { 323 314 "name": "doctrine/instantiator", 324 "version": "1. 2.0",315 "version": "1.1.0", 325 316 "source": { 326 317 "type": "git", 327 318 "url": "https://github.com/doctrine/instantiator.git", 328 "reference": " a2c590166b2133a4633738648b6b064edae0814a"329 }, 330 "dist": { 331 "type": "zip", 332 "url": "https://api.github.com/repos/doctrine/instantiator/zipball/ a2c590166b2133a4633738648b6b064edae0814a",333 "reference": " a2c590166b2133a4633738648b6b064edae0814a",319 "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda" 320 }, 321 "dist": { 322 "type": "zip", 323 "url": "https://api.github.com/repos/doctrine/instantiator/zipball/185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda", 324 "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda", 334 325 "shasum": "" 335 326 }, … … 338 329 }, 339 330 "require-dev": { 340 " doctrine/coding-standard": "^6.0",331 "athletic/athletic": "~0.1.8", 341 332 "ext-pdo": "*", 342 333 "ext-phar": "*", 343 "phpbench/phpbench": "^0.13", 344 "phpstan/phpstan-phpunit": "^0.11", 345 "phpstan/phpstan-shim": "^0.11", 346 "phpunit/phpunit": "^7.0" 334 "phpunit/phpunit": "^6.2.3", 335 "squizlabs/php_codesniffer": "^3.0.2" 347 336 }, 348 337 "type": "library", … … 369 358 ], 370 359 "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", 371 "homepage": "https:// www.doctrine-project.org/projects/instantiator.html",360 "homepage": "https://github.com/doctrine/instantiator", 372 361 "keywords": [ 373 362 "constructor", 374 363 "instantiate" 375 364 ], 376 "time": "201 9-03-17T17:37:11+00:00"365 "time": "2017-07-22T11:58:36+00:00" 377 366 }, 378 367 { … … 426 415 { 427 416 "name": "mockery/mockery", 428 "version": "1.2. 2",417 "version": "1.2.0", 429 418 "source": { 430 419 "type": "git", 431 420 "url": "https://github.com/mockery/mockery.git", 432 "reference": " 0eb0b48c3f07b3b89f5169ce005b7d05b18cf1d2"433 }, 434 "dist": { 435 "type": "zip", 436 "url": "https://api.github.com/repos/mockery/mockery/zipball/ 0eb0b48c3f07b3b89f5169ce005b7d05b18cf1d2",437 "reference": " 0eb0b48c3f07b3b89f5169ce005b7d05b18cf1d2",421 "reference": "100633629bf76d57430b86b7098cd6beb996a35a" 422 }, 423 "dist": { 424 "type": "zip", 425 "url": "https://api.github.com/repos/mockery/mockery/zipball/100633629bf76d57430b86b7098cd6beb996a35a", 426 "reference": "100633629bf76d57430b86b7098cd6beb996a35a", 438 427 "shasum": "" 439 428 }, … … 444 433 }, 445 434 "require-dev": { 446 "phpunit/phpunit": "~5.7.10|~6.5|~7.0 |~8.0"435 "phpunit/phpunit": "~5.7.10|~6.5|~7.0" 447 436 }, 448 437 "type": "library", … … 487 476 "testing" 488 477 ], 489 "time": "201 9-02-13T09:37:52+00:00"478 "time": "2018-10-02T21:52:37+00:00" 490 479 }, 491 480 { 492 481 "name": "myclabs/deep-copy", 493 "version": "1. 9.1",482 "version": "1.8.1", 494 483 "source": { 495 484 "type": "git", 496 485 "url": "https://github.com/myclabs/DeepCopy.git", 497 "reference": " e6828efaba2c9b79f4499dae1d66ef8bfa7b2b72"498 }, 499 "dist": { 500 "type": "zip", 501 "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/ e6828efaba2c9b79f4499dae1d66ef8bfa7b2b72",502 "reference": " e6828efaba2c9b79f4499dae1d66ef8bfa7b2b72",486 "reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8" 487 }, 488 "dist": { 489 "type": "zip", 490 "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8", 491 "reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8", 503 492 "shasum": "" 504 493 }, … … 535 524 "object graph" 536 525 ], 537 "time": "201 9-04-07T13:18:21+00:00"526 "time": "2018-06-11T23:09:50+00:00" 538 527 }, 539 528 { … … 695 684 { 696 685 "name": "phpdocumentor/reflection-docblock", 697 "version": "4.3. 1",686 "version": "4.3.0", 698 687 "source": { 699 688 "type": "git", 700 689 "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", 701 "reference": " bdd9f737ebc2a01c06ea7ff4308ec6697db9b53c"702 }, 703 "dist": { 704 "type": "zip", 705 "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/ bdd9f737ebc2a01c06ea7ff4308ec6697db9b53c",706 "reference": " bdd9f737ebc2a01c06ea7ff4308ec6697db9b53c",690 "reference": "94fd0001232e47129dd3504189fa1c7225010d08" 691 }, 692 "dist": { 693 "type": "zip", 694 "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/94fd0001232e47129dd3504189fa1c7225010d08", 695 "reference": "94fd0001232e47129dd3504189fa1c7225010d08", 707 696 "shasum": "" 708 697 }, … … 742 731 ], 743 732 "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", 744 "time": "201 9-04-30T17:48:53+00:00"733 "time": "2017-11-30T07:14:17+00:00" 745 734 }, 746 735 { … … 793 782 { 794 783 "name": "phpspec/prophecy", 795 "version": "1.8. 1",784 "version": "1.8.0", 796 785 "source": { 797 786 "type": "git", 798 787 "url": "https://github.com/phpspec/prophecy.git", 799 "reference": " 1927e75f4ed19131ec9bcc3b002e07fb1173ee76"800 }, 801 "dist": { 802 "type": "zip", 803 "url": "https://api.github.com/repos/phpspec/prophecy/zipball/ 1927e75f4ed19131ec9bcc3b002e07fb1173ee76",804 "reference": " 1927e75f4ed19131ec9bcc3b002e07fb1173ee76",788 "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06" 789 }, 790 "dist": { 791 "type": "zip", 792 "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06", 793 "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06", 805 794 "shasum": "" 806 795 }, … … 823 812 }, 824 813 "autoload": { 825 "psr- 4": {826 "Prophecy\\": "src/ Prophecy"814 "psr-0": { 815 "Prophecy\\": "src/" 827 816 } 828 817 }, … … 852 841 "stub" 853 842 ], 854 "time": "201 9-06-13T12:50:23+00:00"843 "time": "2018-08-05T17:53:17+00:00" 855 844 }, 856 845 { … … 1007 996 { 1008 997 "name": "phpunit/php-timer", 1009 "version": "2. 1.2",998 "version": "2.0.0", 1010 999 "source": { 1011 1000 "type": "git", 1012 1001 "url": "https://github.com/sebastianbergmann/php-timer.git", 1013 "reference": " 1038454804406b0b5f5f520358e78c1c2f71501e"1014 }, 1015 "dist": { 1016 "type": "zip", 1017 "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/ 1038454804406b0b5f5f520358e78c1c2f71501e",1018 "reference": " 1038454804406b0b5f5f520358e78c1c2f71501e",1002 "reference": "8b8454ea6958c3dee38453d3bd571e023108c91f" 1003 }, 1004 "dist": { 1005 "type": "zip", 1006 "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/8b8454ea6958c3dee38453d3bd571e023108c91f", 1007 "reference": "8b8454ea6958c3dee38453d3bd571e023108c91f", 1019 1008 "shasum": "" 1020 1009 }, … … 1028 1017 "extra": { 1029 1018 "branch-alias": { 1030 "dev-master": "2. 1-dev"1019 "dev-master": "2.0-dev" 1031 1020 } 1032 1021 }, … … 1052 1041 "timer" 1053 1042 ], 1054 "time": "201 9-06-07T04:22:29+00:00"1043 "time": "2018-02-01T13:07:23+00:00" 1055 1044 }, 1056 1045 { 1057 1046 "name": "phpunit/php-token-stream", 1058 "version": "3.0. 2",1047 "version": "3.0.1", 1059 1048 "source": { 1060 1049 "type": "git", 1061 1050 "url": "https://github.com/sebastianbergmann/php-token-stream.git", 1062 "reference": "c 4a66b97f040e3e20b3aa2a243230a1c3a9f7c8c"1063 }, 1064 "dist": { 1065 "type": "zip", 1066 "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/c 4a66b97f040e3e20b3aa2a243230a1c3a9f7c8c",1067 "reference": "c 4a66b97f040e3e20b3aa2a243230a1c3a9f7c8c",1051 "reference": "c99e3be9d3e85f60646f152f9002d46ed7770d18" 1052 }, 1053 "dist": { 1054 "type": "zip", 1055 "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/c99e3be9d3e85f60646f152f9002d46ed7770d18", 1056 "reference": "c99e3be9d3e85f60646f152f9002d46ed7770d18", 1068 1057 "shasum": "" 1069 1058 }, … … 1101 1090 "tokenizer" 1102 1091 ], 1103 "time": "201 9-07-08T05:24:54+00:00"1092 "time": "2018-10-30T05:52:18+00:00" 1104 1093 }, 1105 1094 { … … 1237 1226 "xunit" 1238 1227 ], 1239 "abandoned": true,1240 1228 "time": "2018-05-29T13:54:20+00:00" 1241 1229 }, … … 1351 1339 { 1352 1340 "name": "sebastian/diff", 1353 "version": "3.0. 2",1341 "version": "3.0.1", 1354 1342 "source": { 1355 1343 "type": "git", 1356 1344 "url": "https://github.com/sebastianbergmann/diff.git", 1357 "reference": " 720fcc7e9b5cf384ea68d9d930d480907a0c1a29"1358 }, 1359 "dist": { 1360 "type": "zip", 1361 "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/ 720fcc7e9b5cf384ea68d9d930d480907a0c1a29",1362 "reference": " 720fcc7e9b5cf384ea68d9d930d480907a0c1a29",1345 "reference": "366541b989927187c4ca70490a35615d3fef2dce" 1346 }, 1347 "dist": { 1348 "type": "zip", 1349 "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/366541b989927187c4ca70490a35615d3fef2dce", 1350 "reference": "366541b989927187c4ca70490a35615d3fef2dce", 1363 1351 "shasum": "" 1364 1352 }, … … 1367 1355 }, 1368 1356 "require-dev": { 1369 "phpunit/phpunit": "^7. 5 || ^8.0",1357 "phpunit/phpunit": "^7.0", 1370 1358 "symfony/process": "^2 || ^3.3 || ^4" 1371 1359 }, … … 1403 1391 "unified diff" 1404 1392 ], 1405 "time": "201 9-02-04T06:01:07+00:00"1393 "time": "2018-06-10T07:54:39+00:00" 1406 1394 }, 1407 1395 { … … 1804 1792 }, 1805 1793 { 1806 "name": "symfony/polyfill-ctype",1807 "version": "v1.11.0",1808 "source": {1809 "type": "git",1810 "url": "https://github.com/symfony/polyfill-ctype.git",1811 "reference": "82ebae02209c21113908c229e9883c419720738a"1812 },1813 "dist": {1814 "type": "zip",1815 "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/82ebae02209c21113908c229e9883c419720738a",1816 "reference": "82ebae02209c21113908c229e9883c419720738a",1817 "shasum": ""1818 },1819 "require": {1820 "php": ">=5.3.3"1821 },1822 "suggest": {1823 "ext-ctype": "For best performance"1824 },1825 "type": "library",1826 "extra": {1827 "branch-alias": {1828 "dev-master": "1.11-dev"1829 }1830 },1831 "autoload": {1832 "psr-4": {1833 "Symfony\\Polyfill\\Ctype\\": ""1834 },1835 "files": [1836 "bootstrap.php"1837 ]1838 },1839 "notification-url": "https://packagist.org/downloads/",1840 "license": [1841 "MIT"1842 ],1843 "authors": [1844 {1845 "name": "Symfony Community",1846 "homepage": "https://symfony.com/contributors"1847 },1848 {1849 "name": "Gert de Pagter",1850 "email": "[email protected]"1851 }1852 ],1853 "description": "Symfony polyfill for ctype functions",1854 "homepage": "https://symfony.com",1855 "keywords": [1856 "compatibility",1857 "ctype",1858 "polyfill",1859 "portable"1860 ],1861 "time": "2019-02-06T07:57:58+00:00"1862 },1863 {1864 1794 "name": "theseer/tokenizer", 1865 "version": "1.1. 3",1795 "version": "1.1.0", 1866 1796 "source": { 1867 1797 "type": "git", 1868 1798 "url": "https://github.com/theseer/tokenizer.git", 1869 "reference": " 11336f6f84e16a720dae9d8e6ed5019efa85a0f9"1870 }, 1871 "dist": { 1872 "type": "zip", 1873 "url": "https://api.github.com/repos/theseer/tokenizer/zipball/ 11336f6f84e16a720dae9d8e6ed5019efa85a0f9",1874 "reference": " 11336f6f84e16a720dae9d8e6ed5019efa85a0f9",1799 "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b" 1800 }, 1801 "dist": { 1802 "type": "zip", 1803 "url": "https://api.github.com/repos/theseer/tokenizer/zipball/cb2f008f3f05af2893a87208fe6a6c4985483f8b", 1804 "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b", 1875 1805 "shasum": "" 1876 1806 }, … … 1899 1829 ], 1900 1830 "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", 1901 "time": "201 9-06-13T22:48:21+00:00"1831 "time": "2017-04-07T12:08:54+00:00" 1902 1832 }, 1903 1833 { 1904 1834 "name": "webmozart/assert", 1905 "version": "1. 4.0",1835 "version": "1.3.0", 1906 1836 "source": { 1907 1837 "type": "git", 1908 1838 "url": "https://github.com/webmozart/assert.git", 1909 "reference": "83e253c8e0be5b0257b881e1827274667c5c17a9" 1910 }, 1911 "dist": { 1912 "type": "zip", 1913 "url": "https://api.github.com/repos/webmozart/assert/zipball/83e253c8e0be5b0257b881e1827274667c5c17a9", 1914 "reference": "83e253c8e0be5b0257b881e1827274667c5c17a9", 1915 "shasum": "" 1916 }, 1917 "require": { 1918 "php": "^5.3.3 || ^7.0", 1919 "symfony/polyfill-ctype": "^1.8" 1839 "reference": "0df1908962e7a3071564e857d86874dad1ef204a" 1840 }, 1841 "dist": { 1842 "type": "zip", 1843 "url": "https://api.github.com/repos/webmozart/assert/zipball/0df1908962e7a3071564e857d86874dad1ef204a", 1844 "reference": "0df1908962e7a3071564e857d86874dad1ef204a", 1845 "shasum": "" 1846 }, 1847 "require": { 1848 "php": "^5.3.3 || ^7.0" 1920 1849 }, 1921 1850 "require-dev": { … … 1950 1879 "validate" 1951 1880 ], 1952 "time": "2018- 12-25T11:19:39+00:00"1881 "time": "2018-01-29T19:49:41+00:00" 1953 1882 } 1954 1883 ], -
woo-dp-internetmarke/trunk/includes/Internetmarke.php
r2121236 r2166154 31 31 * @var string 32 32 */ 33 public $version = '2. 1.8';33 public $version = '2.2.0'; 34 34 35 35 /** -
woo-dp-internetmarke/trunk/includes/Logger.php
r2115536 r2166154 3 3 namespace WCDPI; 4 4 5 /** 6 * WCDPI Logger. 7 * 8 * @version 1.0.0 9 */ 5 use DateTime; 6 use Exception; 7 use SoapFault; 8 use Throwable; 10 9 11 10 defined('ABSPATH') || exit; 12 11 13 /**14 * Logger class.15 */16 12 class Logger 17 13 { 18 14 /** 19 * Directory containing the log files (inside the main plugin folder) 20 * 21 * @var string 22 * @since 1.0.0 23 */ 24 const LOG_DIR = 'logs'; 25 26 /** 27 * Debug file name 28 * 29 * @var string 30 * @since 1.0.0 15 * @var string 31 16 */ 32 17 const DEBUG_FILE = 'debug.log'; 33 18 34 19 /** 35 * Error file name 36 * 37 * @var string 38 * @since 1.0.0 20 * @var string 39 21 */ 40 22 const ERROR_FILE = 'error.log'; … … 53 35 return false; 54 36 } 55 } else { 56 return false; 57 } 58 } 59 60 /** 61 * Calculates and returns the given log file size. 62 * 63 * @param string $file either 'error' or 'debug' 64 * 65 * @return string 66 */ 67 public static function getFileSize($file) 68 { 69 if ($file == 'error') { 70 $file_name = WCDPI_LOG_DIR . self::ERROR_FILE; 71 } elseif ($file == 'debug') { 72 $file_name = WCDPI_LOG_DIR . self::DEBUG_FILE; 73 } 74 75 if (file_exists($file_name)) { 76 return self::formatBytes(filesize($file_name)); 77 } else { 78 return self::formatBytes(0); 79 } 80 } 81 82 /** 83 * Format a number of bytes into a human readable string 84 * 85 * @param integer $bytes Number of bytes to calculate 86 * @param integer $precision Defines the decimal precision 87 * 37 } 38 39 return false; 40 } 41 42 /** 43 * Format a number of bytes into a human readable string. 44 * 45 * @param int $bytes Number of bytes to calculate 46 * @param int $precision Defines the decimal precision 47 * 88 48 * @return string 89 49 */ … … 96 56 $pow = min($pow, count($units) - 1); 97 57 98 // Uncomment one of the following alternatives99 // $bytes /= pow(1024, $pow);100 // $bytes /= (1 << (10 * $pow));101 102 58 return round($bytes, $precision) . ' ' . $units[$pow]; 103 59 } … … 106 62 * Helper function for converting any PHP value into a string. 107 63 * 108 * @param object $object The given object to convert 109 * @param boolean $JSCode Identifies the object as JavaScript Code. 110 * 111 * @since 1.0.0 64 * @param object $object The given object to convert 65 * @param bool $JSCode Identifies the object as JavaScript Code. 66 * 112 67 * @return string 113 68 */ … … 167 122 * Helper function for getting a log label from the backtrace. 168 123 * 169 * @ since 1.0.0124 * @return string 170 125 */ 171 126 protected static function labelFromBacktrace($backtrace) … … 177 132 * Log a value to the browser console. 178 133 * 179 * @since 1.0.0 134 * @param mixed $object 135 * @param null $label 180 136 */ 181 137 public static function console($object, $label = null) … … 201 157 * Log the backtrace to the browser console. 202 158 * 203 * @since 1.0.0 159 * @param bool $chronological 160 * @param null $label 204 161 */ 205 162 public static function consoleBacktrace($chronological = true, $label = null) 206 163 { 207 if (!self::isLoggerEnabled()) return; 164 if (!self::isLoggerEnabled()) { 165 return; 166 } 208 167 209 168 $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); 169 210 170 if (gettype($label) !== 'string') { 211 171 $label = self::labelFromBacktrace($backtrace); 212 172 } 173 213 174 foreach ($backtrace as &$entry) { 214 175 if (isset($entry['file'])) { … … 216 177 } 217 178 } 179 218 180 if ($chronological) { 219 181 $backtrace = array_reverse($backtrace); 220 182 array_pop($backtrace); 221 } else { 183 } 184 185 else { 222 186 array_shift($backtrace); 223 187 } 188 224 189 self::console($backtrace, $label); 225 190 } … … 228 193 * Log a value to a file. 229 194 * 230 * @since 1.0.0 195 * @param mixed $object 196 * @param string $filename 197 * @param null $label 231 198 */ 232 199 public static function file($object, $filename = self::DEBUG_FILE, $label = null) 233 200 { 234 if (!self::isLoggerEnabled()) return; 201 if (!self::isLoggerEnabled()) { 202 return; 203 } 235 204 236 205 static $log_files = array(); … … 262 231 * Log the backtrace to a file. 263 232 * 264 * @since 1.0.0 233 * @param bool $chronological 234 * @param string $filename 235 * @param null $label 265 236 */ 266 237 public static function fileBacktrace($chronological = true, $filename = self::DEBUG_FILE, $label = null) 267 238 { 268 if (!self::isLoggerEnabled()) return; 239 if (!self::isLoggerEnabled()) { 240 return; 241 } 269 242 270 243 $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); … … 283 256 $backtrace = array_reverse($backtrace); 284 257 array_pop($backtrace); 285 } else { 258 } 259 260 else { 286 261 array_shift($backtrace); 287 262 } … … 291 266 292 267 /** 293 * Log error messages or exception to the exception log. 294 * 295 * @since 1.0.0 268 * Logs throwable errors. 269 * 270 * @param Throwable $error 271 * @throws Exception 296 272 */ 297 273 public static function exception($error) 298 274 { 299 if (!self::isLoggerEnabled()) return; 300 301 if ($error instanceof \Exception || $error instanceof \SoapFault) { 302 303 $date = new \DateTime(); 304 305 if ($error instanceof \Exception) { 306 $message = sprintf("Exception thrown at: %s\n", $date->format('Y-m-d H:i')); 307 } elseif ($error instanceof \SoapFault) { 308 $message = sprintf("SoapFault thrown at: %s\n", $date->format('Y-m-d H:i')); 275 if (!self::isLoggerEnabled() 276 || !$error instanceof Exception 277 || !$error instanceof SoapFault 278 ) { 279 return; 280 } 281 282 $date = new DateTime(); 283 $message = ''; 284 285 if ($error instanceof Exception) { 286 $message = sprintf("Exception thrown at: %s\n", $date->format('Y-m-d H:i')); 287 } 288 289 elseif ($error instanceof SoapFault) { 290 $message = sprintf("SoapFault thrown at: %s\n", $date->format('Y-m-d H:i')); 291 } 292 293 if ($error instanceof SoapFault 294 && property_exists($error, 'detail') 295 && property_exists($error->detail, 'ShoppingCartValidationException') 296 && property_exists($error->detail->ShoppingCartValidationException, 'errors') 297 ) { 298 $message .= sprintf( 299 "Message: %s (%s: %s)\n", 300 $error->getMessage(), 301 $error->detail->ShoppingCartValidationException->errors->id, 302 $error->detail->ShoppingCartValidationException->errors->message 303 ); 304 } 305 306 else { 307 $message .= 'Message: ' . $error->getMessage() . "\n"; 308 } 309 310 $message .= 'Code: ' . $error->getCode() . "\n"; 311 $message .= 'Thrown at: ' . $error->getFile() . ':' . $error->getLine() . "\n"; 312 $message .= "Trace:\n"; 313 314 315 foreach ($error->getTrace() as $id => $trace) { 316 $message .= ' [' . $id . '] '; 317 318 if (isset($trace['class']) && isset($trace['type'])) { 319 $message .= $trace['class'] . $trace['type'] . $trace['function'] . '() | '; 320 } else { 321 $message .= $trace['function'] . '() | '; 309 322 } 310 323 311 $message .= 'Message: ' . $error->getMessage() . "\n"; 312 $message .= 'Code: ' . $error->getCode() . "\n"; 313 $message .= 'Thrown at: ' . $error->getFile() . ':' . $error->getLine() . "\n"; 314 $message .= "Trace:\n"; 315 316 foreach ($error->getTrace() as $id => $trace) { 317 $message .= ' [' . $id . '] '; 318 if (isset($trace['class']) && isset($trace['type'])) { 319 $message .= $trace['class'] . $trace['type'] . $trace['function'] . '() | '; 320 } else { 321 $message .= $trace['function'] . '() | '; 322 } 323 $message .= $trace['file'] . ':' . $trace['line'] . "\n"; 324 } 325 326 self::file($message, self::ERROR_FILE); 327 } else { 328 self::file($error, self::ERROR_FILE); 329 } 330 } 331 324 $message .= $trace['file'] . ':' . $trace['line'] . "\n"; 325 } 326 327 self::file($message, self::ERROR_FILE); 328 } 329 330 /** 331 * Wraps text in a HTML code block. 332 * 333 * @param $string 334 */ 332 335 public static function code($string) 333 336 { -
woo-dp-internetmarke/trunk/includes/components/Dashboard.php
r2115536 r2166154 27 27 private $user_wpdb; 28 28 29 /**30 * Shipment repository.31 *32 * @var \WCDPI\Interfaces\ShipmentRepository33 */34 private $shipment_wpdb;35 36 /**37 * OneClickForApplication connector.38 *39 * @var \WCDPI\Connectors\SOAP\OC4A40 */41 protected $oc4a;29 /** 30 * Shipment repository. 31 * 32 * @var \WCDPI\Interfaces\ShipmentRepository 33 */ 34 private $shipment_wpdb; 35 36 /** 37 * OneClickForApplication connector. 38 * 39 * @var \WCDPI\Connectors\SOAP\OC4A 40 */ 41 protected $oc4a; 42 42 /** 43 43 * Class constructor. 44 44 */ 45 45 46 /**47 * Helper48 *49 * @var \WCDPI\Helper50 */51 private $helper;52 53 /**54 * ProdWS55 *56 * @var \WCDPI\Connectors\SOAP\ProdWS57 */58 private $prodws;59 60 /**61 * ProductWpdb62 *63 * @var \WCDPI\Repositories\ProductWpdb64 */65 private $product_wpdb;66 67 /**68 * ProductWpdb69 *70 * @var \WCDPI\Repositories\ProductWpdb71 */72 private $page_format_wpdb;46 /** 47 * Helper 48 * 49 * @var \WCDPI\Helper 50 */ 51 private $helper; 52 53 /** 54 * ProdWS 55 * 56 * @var \WCDPI\Connectors\SOAP\ProdWS 57 */ 58 private $prodws; 59 60 /** 61 * ProductWpdb 62 * 63 * @var \WCDPI\Repositories\ProductWpdb 64 */ 65 private $product_wpdb; 66 67 /** 68 * ProductWpdb 69 * 70 * @var \WCDPI\Repositories\ProductWpdb 71 */ 72 private $page_format_wpdb; 73 73 74 74 public function __construct( 75 75 \WCDPI\Interfaces\UserRepository $user_wpdb, 76 76 \WCDPI\Interfaces\ShipmentRepository $shipment_wpdb, 77 \WCDPI\Connectors\SOAP\OC4A $oc4a,78 \WCDPI\Helper $helper,79 \WCDPI\Connectors\SOAP\ProdWS $prodws,80 \WCDPI\Interfaces\ProductRepository $product_wpdb,81 \WCDPI\Interfaces\PageFormatRepository $page_format_wpdb77 \WCDPI\Connectors\SOAP\OC4A $oc4a, 78 \WCDPI\Helper $helper, 79 \WCDPI\Connectors\SOAP\ProdWS $prodws, 80 \WCDPI\Interfaces\ProductRepository $product_wpdb, 81 \WCDPI\Interfaces\PageFormatRepository $page_format_wpdb 82 82 ) { 83 83 $this->user_wpdb = $user_wpdb; … … 85 85 $this->oc4a = $oc4a; 86 86 $this->helper = $helper; 87 $this->prodws = $prodws;88 $this->product_wpdb = $product_wpdb;89 $this->page_format_wpdb = $page_format_wpdb;87 $this->prodws = $prodws; 88 $this->product_wpdb = $product_wpdb; 89 $this->page_format_wpdb = $page_format_wpdb; 90 90 91 91 add_action('admin_menu', array($this, 'init'), 10); 92 add_action('admin_post_wcdpi_update_product_list_dashboard', [$this, 'updateProductList']);93 add_action('admin_post_wcdpi_update_page_formats_dashboard', [$this, 'updatePageFormats']);92 add_action('admin_post_wcdpi_update_product_list_dashboard', [$this, 'updateProductList']); 93 add_action('admin_post_wcdpi_update_page_formats_dashboard', [$this, 'updatePageFormats']); 94 94 } 95 95 … … 119 119 public function showPage() 120 120 { 121 // Portokasse122 $portokasse_email = get_option("_wcdpi_settings_portokasse")["_wcdpi_portokasse_email"];123 $portokasse_wallet = $this->helper->price(get_option('_wcdpi_portokasse_wallet') / 100);124 $portokasse_settings_url = add_query_arg([121 // Portokasse 122 $portokasse_email = get_option("_wcdpi_settings_portokasse")["_wcdpi_portokasse_email"]; 123 $portokasse_wallet = $this->helper->price(get_option('_wcdpi_portokasse_wallet') / 100); 124 $portokasse_settings_url = add_query_arg([ 125 125 'page' => 'internetmarke_settings', 126 126 'tab' => 'services', 127 'section' => 'portokasse' 128 ], admin_url() . 'admin.php'); 129 130 // Wallet Top-Up 131 $wallet_top_up_field = "_wcdpi_portokasse_wallet_topup"; 132 $wallet_top_up_credentials = $this->user_wpdb->getCredentials(); 133 $wallet_top_up_userToken = ""; 134 $wallet_top_up_walletBalance = ""; 135 if ($wallet_top_up_credentials["email"]) { 136 $wallet_top_up_auth = $this->oc4a->authenticateUser(); 137 $wallet_top_up_userToken = $wallet_top_up_auth->userToken; 138 $wallet_top_up_walletBalance = $wallet_top_up_auth->walletBalance; 139 } 140 141 // Shipments 142 $status_groups = $this->shipment_wpdb->getShipmentStatusGroups(); 143 $shipments_shipment_status_groups = []; 144 foreach ($status_groups as $entry) { 145 if ($entry["status"] == ShipmentStatus::DELETED) continue; 146 147 $status_url = add_query_arg(['page' => 'internetmarke_shipments', 'status' => ShipmentStatus::$statusKeys[$entry["status"]]], admin_url() . 'admin.php'); 148 $status_desc = ""; 149 switch ($entry["status"]) { 150 case ShipmentStatus::PREPARED: 151 $status_desc = __("Prepared", "wcdpi"); 152 break; 153 case ShipmentStatus::READY_TO_SHIP: 154 $status_desc = __("Ready to ship", "wcdpi"); 155 break; 156 case ShipmentStatus::SHIPPED: 157 $status_desc = __("Shipped", "wcdpi"); 158 break; 159 case ShipmentStatus::DELIVERED: 160 $status_desc = __("Delivered", "wcdpi"); 161 break; 162 case ShipmentStatus::REFUNDED: 163 $status_desc = __("Refunded", "wcdpi"); 164 break; 165 case ShipmentStatus::RETURNED: 166 $status_desc = __("Returned", "wcdpi"); 167 break; 168 default: 169 $status_desc = ""; 170 break; 171 } 172 173 array_push($shipments_shipment_status_groups, [ 174 "status" => $entry["status"], 175 "status_count" => $entry["status_count"], 176 "status_desc" => $status_desc, 177 "status_url" => $status_url 178 ]); 179 } 180 $shipments_url = add_query_arg([ 181 'page' => 'internetmarke_shipments' 182 ], admin_url() . 'admin.php'); 183 184 // Synchronization 185 $synchronization_product_list_last_update = get_option("_wcdpi_settings_tools")["_wcdpi_update_product_list_timestamp"]; 186 $synchronization_page_formats_last_update = get_option("_wcdpi_settings_tools")["_wcdpi_update_page_formats_timestamp"]; 187 $synchronization_tool_url = add_query_arg([ 188 'page' => 'internetmarke_settings', 189 'tab' => 'tools', 190 'section' => 'synchronization' 191 ], admin_url() . 'admin.php'); 192 193 include_once WCDPI_TEMPLATES_DIR . 'dashboard.php'; 194 } 195 196 public function updateProductList() 197 { 198 wp_verify_nonce("wcdpi_update_product_list_dashboard"); 199 do_action('_wcdpi_update_product_list'); 127 'section' => 'portokasse' 128 ], admin_url() . 'admin.php'); 129 130 // Wallet Top-Up 131 $wallet_top_up_field = "_wcdpi_portokasse_wallet_topup"; 132 $wallet_top_up_credentials = $this->user_wpdb->getCredentials(); 133 $wallet_top_up_userToken = ""; 134 $wallet_top_up_walletBalance = ""; 135 136 if ($wallet_top_up_credentials["email"]) { 137 $wallet_top_up_auth = $this->oc4a->authenticateUser(); 138 $wallet_top_up_userToken = $wallet_top_up_auth->userToken; 139 $wallet_top_up_walletBalance = $wallet_top_up_auth->walletBalance; 140 } 141 142 // Shipments 143 $status_groups = $this->shipment_wpdb->getShipmentStatusGroups(); 144 $shipments_shipment_status_groups = []; 145 foreach ($status_groups as $entry) { 146 if ($entry["status"] == ShipmentStatus::DELETED) continue; 147 148 $status_url = add_query_arg(['page' => 'internetmarke_shipments', 'status' => ShipmentStatus::$statusKeys[$entry["status"]]], admin_url() . 'admin.php'); 149 $status_desc = ""; 150 switch ($entry["status"]) { 151 case ShipmentStatus::PREPARED: 152 $status_desc = __("Prepared", "wcdpi"); 153 break; 154 case ShipmentStatus::READY_TO_SHIP: 155 $status_desc = __("Ready to ship", "wcdpi"); 156 break; 157 case ShipmentStatus::SHIPPED: 158 $status_desc = __("Shipped", "wcdpi"); 159 break; 160 case ShipmentStatus::DELIVERED: 161 $status_desc = __("Delivered", "wcdpi"); 162 break; 163 case ShipmentStatus::REFUNDED: 164 $status_desc = __("Refunded", "wcdpi"); 165 break; 166 case ShipmentStatus::RETURNED: 167 $status_desc = __("Returned", "wcdpi"); 168 break; 169 default: 170 $status_desc = ""; 171 break; 172 } 173 174 array_push($shipments_shipment_status_groups, [ 175 "status" => $entry["status"], 176 "status_count" => $entry["status_count"], 177 "status_desc" => $status_desc, 178 "status_url" => $status_url 179 ]); 180 } 181 $shipments_url = add_query_arg([ 182 'page' => 'internetmarke_shipments' 183 ], admin_url() . 'admin.php'); 184 185 // Synchronization 186 $synchronization_product_list_last_update = get_option("_wcdpi_settings_tools")["_wcdpi_update_product_list_timestamp"]; 187 $synchronization_page_formats_last_update = get_option("_wcdpi_settings_tools")["_wcdpi_update_page_formats_timestamp"]; 188 $synchronization_tool_url = add_query_arg([ 189 'page' => 'internetmarke_settings', 190 'tab' => 'tools', 191 'section' => 'synchronization' 192 ], admin_url() . 'admin.php'); 193 194 include_once WCDPI_TEMPLATES_DIR . 'dashboard.php'; 195 } 196 197 public function updateProductList() 198 { 199 wp_verify_nonce("wcdpi_update_product_list_dashboard"); 200 do_action('_wcdpi_update_product_list'); 200 201 201 202 $tmpSettings = get_option("_wcdpi_settings_tools"); … … 203 204 update_option('_wcdpi_settings_tools', $tmpSettings); 204 205 205 $url = add_query_arg([206 'page' => "internetmarke"207 ], admin_url() . 'admin.php');208 wp_redirect(htmlspecialchars_decode($url));209 exit();210 }211 212 public function updatePageFormats()213 {214 wp_verify_nonce("wcdpi_update_page_formats_dashboard");215 do_action("_wcdpi_update_page_formats");206 $url = add_query_arg([ 207 'page' => "internetmarke" 208 ], admin_url() . 'admin.php'); 209 wp_redirect(htmlspecialchars_decode($url)); 210 exit(); 211 } 212 213 public function updatePageFormats() 214 { 215 wp_verify_nonce("wcdpi_update_page_formats_dashboard"); 216 do_action("_wcdpi_update_page_formats"); 216 217 217 218 $tmpSettings = get_option("_wcdpi_settings_tools"); 218 219 $tmpSettings["_wcdpi_update_page_formats_timestamp"] = date('d.m.Y, H:i'); 219 220 update_option('_wcdpi_settings_tools', $tmpSettings); 220 221 $url = add_query_arg([222 'page' => "internetmarke"223 ], admin_url() . 'admin.php');224 wp_redirect(htmlspecialchars_decode($url));221 222 $url = add_query_arg([ 223 'page' => "internetmarke" 224 ], admin_url() . 'admin.php'); 225 wp_redirect(htmlspecialchars_decode($url)); 225 226 226 227 $tmpSettings = get_option("_wcdpi_settings_tools"); 227 228 $tmpSettings["_wcdpi_update_page_formats_timestamp"] = date('d.m.Y, H:i'); 228 229 update_option('_wcdpi_settings_tools', $tmpSettings); 229 230 exit();231 }230 231 exit(); 232 } 232 233 } -
woo-dp-internetmarke/trunk/includes/components/Settings.php
r2115536 r2166154 128 128 { 129 129 try { 130 $auth = $this->oc4a->authenticateUser(); 130 131 $product_list = $this->prodws->getProductList(1); 132 $contract_products = $this->oc4a->retrieveContractProducts($auth->userToken); 131 133 } catch (\SoapFault $sf) { 132 134 SettingsLogger::exception($sf); … … 136 138 137 139 $this->product_wpdb->updateProductList($product_list); 140 $this->product_wpdb->updateContractProducts($contract_products); 138 141 } 139 142 … … 153 156 public function portokasseLogout() 154 157 { 155 delete_option('_wcdpi_user_credentials');156 delete_option('_wcdpi_settings_portokasse');158 delete_option('_wcdpi_user_credentials'); 159 delete_option('_wcdpi_settings_portokasse'); 157 160 } 158 161 159 public function packetPlusInternationalLogout()160 {161 delete_option('_wcdpi_settings_packet_plus_international');162 }162 public function packetPlusInternationalLogout() 163 { 164 delete_option('_wcdpi_settings_packet_plus_international'); 165 } 163 166 164 public function packetPlusCrossBorderLogout()165 {166 delete_option('_wcdpi_settings_packet_plus_cross_border');167 }167 public function packetPlusCrossBorderLogout() 168 { 169 delete_option('_wcdpi_settings_packet_plus_cross_border'); 170 } 168 171 } -
woo-dp-internetmarke/trunk/includes/connectors/soap/OC4A.php
r2115536 r2166154 3 3 namespace WCDPI\Connectors\SOAP; 4 4 5 use \WCDPI\PageFormat;6 use \WCDPI\Logger as OC4ALogger;7 use \WCDPI\Interfaces\SoapService;5 use WCDPI\PageFormat; 6 use WCDPI\Logger as OC4ALogger; 7 use WCDPI\Interfaces\SoapService; 8 8 9 9 /** … … 173 173 'username' => $email, 174 174 'password' => $password 175 ) 176 ) 177 ); 178 } 179 180 public function retrieveContractProducts($user_token) 181 { 182 return $this->__soapCall( 183 'retrieveContractProducts', 184 array( 185 'RetrieveContractProductsRequest' => array( 186 'userToken' => $user_token 175 187 ) 176 188 ) -
woo-dp-internetmarke/trunk/includes/enums/ShipmentStatus.php
r2115536 r2166154 3 3 namespace WCDPI\Enums; 4 4 5 /**6 * Enum for shipment status.7 *8 * @since 1.1.09 * @version 1.0.010 */11 12 5 defined('ABSPATH') || exit; 13 6 14 /**15 * ShipmentStatus Enum.16 */17 7 abstract class ShipmentStatus 18 8 { … … 34 24 ]; 35 25 36 public static $statusKeys = [37 self::PREPARED => 'prepared',38 self::READY_TO_SHIP => 'ready_to_ship',39 self::SHIPPED => 'shipped',40 self::DELIVERED => 'delivered',41 self::REFUNDED => 'refunded',42 self::RETURNED => 'returned'43 ];26 public static $statusKeys = [ 27 self::PREPARED => 'prepared', 28 self::READY_TO_SHIP => 'ready_to_ship', 29 self::SHIPPED => 'shipped', 30 self::DELIVERED => 'delivered', 31 self::REFUNDED => 'refunded', 32 self::RETURNED => 'returned' 33 ]; 44 34 } -
woo-dp-internetmarke/trunk/includes/repositories/ProductWpdb.php
r2115536 r2166154 18 18 class ProductWpdb extends MainWpdb implements ProductRepository 19 19 { 20 /**21 * Helper22 *23 * @var \WCDPI\Helper24 */25 private $helper;20 /** 21 * Helper 22 * 23 * @var \WCDPI\Helper 24 */ 25 private $helper; 26 26 27 27 /** … … 31 31 \WCDPI\Helper $helper 32 32 ) { 33 parent::__construct();33 parent::__construct(); 34 34 35 35 $this->helper = $helper; … … 421 421 } 422 422 423 /** 424 * Updates the contract product prices. 425 * 426 * @param \stdClass $contract_products 427 */ 428 public function updateContractProducts($contract_products) 429 { 430 if (!$contract_products instanceof \stdClass 431 || !property_exists($contract_products,'products') 432 || !is_array($contract_products->products) 433 || count($contract_products->products) === 0 434 ) { 435 return; 436 } 437 438 global $wpdb; 439 440 foreach ($contract_products->products as $contract_product) { 441 if (!property_exists($contract_product, 'price') 442 || !property_exists($contract_product, 'productCode') 443 ) { 444 continue; 445 } 446 447 $wpdb->update( 448 $this->product_sales_table_name, 449 array( 450 'price' => $contract_product->price 451 ), 452 array( 453 'product_code' => $contract_product->productCode 454 ), 455 array('%d'), 456 array('%d') 457 ); 458 } 459 } 460 423 461 public function getBasicProducts($prodws_id = null) 424 462 { … … 518 556 * @param $args['where'] 519 557 * @param $args['value'] 520 * 558 * 521 559 * @return int 522 560 */ … … 553 591 public function getFeatureUniqueId($prodws_id, $service) 554 592 { 555 global $wpdb;556 557 $products_table = $this->product_sales_table_name;558 $feature_table = $this->app_service_feature_table_name;559 $service_table = $this->app_service_table_name;560 561 $sql = "593 global $wpdb; 594 595 $products_table = $this->product_sales_table_name; 596 $feature_table = $this->app_service_feature_table_name; 597 $service_table = $this->app_service_table_name; 598 599 $sql = " 562 600 SELECT 563 601 {$feature_table}.app_service_feature_unique_id … … 576 614 "; 577 615 578 return $wpdb->get_row($sql);616 return $wpdb->get_row($sql); 579 617 } 580 618 } -
woo-dp-internetmarke/trunk/includes/repositories/ShipmentWpdb.php
r2115536 r2166154 299 299 $product_quantity = $product["qty"]; 300 300 $product_id = $product["product_id"]; 301 $sql = $wpdb->prepare(" 302 SELECT 303 %d AS 'order_id' 304 , %d AS 'product_id' 305 , SUM(t_shipment_item.product_quantity) AS 'quantity' 306 , %d - SUM(t_shipment_item.product_quantity) AS 'quantity_open' 307 FROM 308 $shipment_item_table_name t_shipment_item 309 INNER JOIN $shipment_table_name t_shipment 310 ON 1=1 311 AND t_shipment_item.shipment_id = t_shipment.id 312 WHERE 313 1=1 314 AND t_shipment_item.order_id = %d 315 AND t_shipment_item.product_quantity <= %d 316 AND t_shipment_item.product_id = %d 317 AND t_shipment.status <> %d 318 ; 319 ", $order_id, $product_id, $product_quantity, $order_id, $product_quantity, $product_id, ShipmentStatusEnum::REFUNDED); 301 $sql = $wpdb->prepare( 302 " 303 SELECT 304 %d AS 'order_id' 305 , %d AS 'product_id' 306 , SUM(t_shipment_item.product_quantity) AS 'quantity' 307 , %d - SUM(t_shipment_item.product_quantity) AS 'quantity_open' 308 FROM 309 $shipment_item_table_name t_shipment_item 310 INNER JOIN $shipment_table_name t_shipment 311 ON 1=1 312 AND t_shipment_item.shipment_id = t_shipment.id 313 WHERE 314 1=1 315 AND t_shipment_item.order_id = %d 316 AND t_shipment_item.product_quantity <= %d 317 AND t_shipment_item.product_id = %d 318 AND t_shipment.status NOT IN (%d, %d) 319 ; 320 ", 321 $order_id, 322 $product_id, 323 $product_quantity, 324 $order_id, 325 $product_quantity, 326 $product_id, 327 ShipmentStatusEnum::REFUNDED, 328 ShipmentStatusEnum::DELETED 329 ); 330 320 331 $result = $wpdb->get_row($sql, ARRAY_A); 321 332 -
woo-dp-internetmarke/trunk/includes/services/Shipment.php
r2116694 r2166154 144 144 ); 145 145 146 // Prepare Shipment 146 147 if ($shipment_action == 'prepare') { 147 148 … … 159 160 160 161 return $return_data; 161 } elseif ($shipment_action == 'create') { 162 163 // Purchase Label 162 } 163 164 // Purchase Label 165 elseif ($shipment_action == 'create') { 164 166 $data['product_code'] = $product_code; 165 167 $data['shipment_id'] = $shipment_id; … … 181 183 $data['wcdpi_redirect_url'] 182 184 ); 183 } else { 185 } 186 187 else { 184 188 $return_data['wcdpi_redirect'] = false; 185 189 } … … 188 192 } 189 193 194 } 195 190 196 // OneClickForApp order 191 }else {197 else { 192 198 $feature = $this->feature_wpdb->getFeatureByUniqueId($data['wcdpi_feature']); 193 199 $feature_service = $this->feature_wpdb->getFeatureService($feature['t_feature_app_service_feature_unique_id']); … … 205 211 ); 206 212 213 // Prepare Shipment 207 214 if ($shipment_action == 'prepare') { 208 209 215 $return_data['wcdpi_status'] = RoutingResponseStatus::R_SUCCESS; 210 216 … … 221 227 return $return_data; 222 228 223 } elseif ($shipment_action == 'create') { 224 // Purchase Label 229 } 230 231 // Purchase Label 232 elseif ($shipment_action == 'create') { 225 233 $this->purchaseOC4ALabel([ 226 234 'product_code' => $product_code, -
woo-dp-internetmarke/trunk/internetmarke.php
r2121236 r2166154 4 4 * Plugin URI: https://shop.deutschepost.de/internetmarke 5 5 * Description: WordPress and WooCommerce integration for the Deutsche Post Internetmarke service. 6 * Version: 2. 1.86 * Version: 2.2.0 7 7 * Author: STINA 8 8 * Author URI: https://www.stina-global.com/ -
woo-dp-internetmarke/trunk/readme.txt
r2121236 r2166154 4 4 Requires at least: 4.7 5 5 Tested up to: 5.2 6 Stable tag: 2. 1.86 Stable tag: 2.2.0 7 7 License: GPLv3 8 8 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 67 67 68 68 == Changelog == 69 70 = 2.2.0 - 2019-09-30 = 71 * Add - Support for individual contract product prices. 72 * Fix - You can now create shipments for the line items of deleted shipments, they now count as unshipped (as it should be). 73 * Tweak - Better error logging of non-harmonized label purchase errors. 69 74 70 75 = 2.1.8 - 2019-07-11 = -
woo-dp-internetmarke/trunk/vendor/autoload.php
r2121236 r2166154 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit5 539e907670f7955cc0069f6aeb61627::getLoader();7 return ComposerAutoloaderInit5299b7f875a8f20db22354a0382596cb::getLoader(); -
woo-dp-internetmarke/trunk/vendor/composer/autoload_real.php
r2121236 r2166154 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit5 539e907670f7955cc0069f6aeb616275 class ComposerAutoloaderInit5299b7f875a8f20db22354a0382596cb 6 6 { 7 7 private static $loader; … … 20 20 } 21 21 22 spl_autoload_register(array('ComposerAutoloaderInit5 539e907670f7955cc0069f6aeb61627', 'loadClassLoader'), true, true);22 spl_autoload_register(array('ComposerAutoloaderInit5299b7f875a8f20db22354a0382596cb', 'loadClassLoader'), true, true); 23 23 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 24 spl_autoload_unregister(array('ComposerAutoloaderInit5 539e907670f7955cc0069f6aeb61627', 'loadClassLoader'));24 spl_autoload_unregister(array('ComposerAutoloaderInit5299b7f875a8f20db22354a0382596cb', 'loadClassLoader')); 25 25 26 26 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 28 28 require_once __DIR__ . '/autoload_static.php'; 29 29 30 call_user_func(\Composer\Autoload\ComposerStaticInit5 539e907670f7955cc0069f6aeb61627::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInit5299b7f875a8f20db22354a0382596cb::getInitializer($loader)); 31 31 } else { 32 32 $map = require __DIR__ . '/autoload_namespaces.php'; -
woo-dp-internetmarke/trunk/vendor/composer/autoload_static.php
r2121236 r2166154 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit5 539e907670f7955cc0069f6aeb616277 class ComposerStaticInit5299b7f875a8f20db22354a0382596cb 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 272 272 { 273 273 return \Closure::bind(function () use ($loader) { 274 $loader->prefixLengthsPsr4 = ComposerStaticInit5 539e907670f7955cc0069f6aeb61627::$prefixLengthsPsr4;275 $loader->prefixDirsPsr4 = ComposerStaticInit5 539e907670f7955cc0069f6aeb61627::$prefixDirsPsr4;276 $loader->classMap = ComposerStaticInit5 539e907670f7955cc0069f6aeb61627::$classMap;274 $loader->prefixLengthsPsr4 = ComposerStaticInit5299b7f875a8f20db22354a0382596cb::$prefixLengthsPsr4; 275 $loader->prefixDirsPsr4 = ComposerStaticInit5299b7f875a8f20db22354a0382596cb::$prefixDirsPsr4; 276 $loader->classMap = ComposerStaticInit5299b7f875a8f20db22354a0382596cb::$classMap; 277 277 278 278 }, null, ClassLoader::class); -
woo-dp-internetmarke/trunk/vendor/composer/installed.json
r2115536 r2166154 43 43 { 44 44 "name": "setasign/fpdi", 45 "version": "v2. 2.0",46 "version_normalized": "2. 2.0.0",45 "version": "v2.1.1", 46 "version_normalized": "2.1.1.0", 47 47 "source": { 48 48 "type": "git", 49 49 "url": "https://github.com/Setasign/FPDI.git", 50 "reference": "3 c266002f8044f61b17329f7cd702d44d73f0f7f"51 }, 52 "dist": { 53 "type": "zip", 54 "url": "https://api.github.com/repos/Setasign/FPDI/zipball/3 c266002f8044f61b17329f7cd702d44d73f0f7f",55 "reference": "3 c266002f8044f61b17329f7cd702d44d73f0f7f",50 "reference": "356de9cb6b6a826ac952c86aee6599463ea87362" 51 }, 52 "dist": { 53 "type": "zip", 54 "url": "https://api.github.com/repos/Setasign/FPDI/zipball/356de9cb6b6a826ac952c86aee6599463ea87362", 55 "reference": "356de9cb6b6a826ac952c86aee6599463ea87362", 56 56 "shasum": "" 57 57 }, … … 72 72 "setasign/fpdi-tfpdf": "Use this package to automatically evaluate dependencies to tFPDF." 73 73 }, 74 "time": "201 9-01-30T14:11:19+00:00",74 "time": "2018-11-06T10:02:00+00:00", 75 75 "type": "library", 76 76 "installation-source": "dist", … … 106 106 { 107 107 "name": "setasign/fpdi-fpdf", 108 "version": "v2. 2.0",109 "version_normalized": "2. 2.0.0",108 "version": "v2.1.0", 109 "version_normalized": "2.1.0.0", 110 110 "source": { 111 111 "type": "git", 112 112 "url": "https://github.com/Setasign/FPDI-FPDF.git", 113 "reference": " e4363ac09e1b766b38ebea1c3cbe82b3480a11e9"114 }, 115 "dist": { 116 "type": "zip", 117 "url": "https://api.github.com/repos/Setasign/FPDI-FPDF/zipball/ e4363ac09e1b766b38ebea1c3cbe82b3480a11e9",118 "reference": " e4363ac09e1b766b38ebea1c3cbe82b3480a11e9",113 "reference": "c13ff727115f4fab040d58b559929113cc1be8e2" 114 }, 115 "dist": { 116 "type": "zip", 117 "url": "https://api.github.com/repos/Setasign/FPDI-FPDF/zipball/c13ff727115f4fab040d58b559929113cc1be8e2", 118 "reference": "c13ff727115f4fab040d58b559929113cc1be8e2", 119 119 "shasum": "" 120 120 }, 121 121 "require": { 122 122 "setasign/fpdf": "^1.8", 123 "setasign/fpdi": "^2. 2"124 }, 125 "time": "201 9-01-30T14:38:19+00:00",123 "setasign/fpdi": "^2.1" 124 }, 125 "time": "2018-11-06T10:40:46+00:00", 126 126 "type": "library", 127 127 "installation-source": "dist", … … 147 147 { 148 148 "name": "wsdltophp/wssecurity", 149 "version": "1. 2.2",150 "version_normalized": "1. 2.2.0",149 "version": "1.1.0", 150 "version_normalized": "1.1.0.0", 151 151 "source": { 152 152 "type": "git", 153 153 "url": "https://github.com/WsdlToPhp/WsSecurity.git", 154 "reference": "6 a450af3cd462cbf73fdb3a09e80322da893af4f"155 }, 156 "dist": { 157 "type": "zip", 158 "url": "https://api.github.com/repos/WsdlToPhp/WsSecurity/zipball/6 a450af3cd462cbf73fdb3a09e80322da893af4f",159 "reference": "6 a450af3cd462cbf73fdb3a09e80322da893af4f",154 "reference": "67ba2bf3fe9cb08c2d130286f27c72e5a36f0fa3" 155 }, 156 "dist": { 157 "type": "zip", 158 "url": "https://api.github.com/repos/WsdlToPhp/WsSecurity/zipball/67ba2bf3fe9cb08c2d130286f27c72e5a36f0fa3", 159 "reference": "67ba2bf3fe9cb08c2d130286f27c72e5a36f0fa3", 160 160 "shasum": "" 161 161 }, … … 168 168 "phpunit/phpunit": "^4.8 || ^6.0" 169 169 }, 170 "time": "201 9-04-09T08:40:37+00:00",170 "time": "2018-10-03T19:26:08+00:00", 171 171 "type": "library", 172 172 "installation-source": "dist", … … 196 196 "email": "[email protected]", 197 197 "role": "Contributor" 198 },199 {200 "name": "NtlBldrv",201 "role": "Contributor"202 },203 {204 "name": "baijunyao",205 "email": "[email protected]",206 "role": "Contributor"207 198 } 208 199 ], -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi-fpdf/README.md
r2115536 r2166154 5 5 6 6 ```bash 7 $ composer require setasign/fpdi-fpdf:2. 27 $ composer require setasign/fpdi-fpdf:2.1 8 8 ``` 9 9 … … 13 13 { 14 14 "require": { 15 "setasign/fpdi-fpdf": "^2. 2"15 "setasign/fpdi-fpdf": "^2.1" 16 16 } 17 17 } -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi-fpdf/composer.json
r2115536 r2166154 15 15 "require": { 16 16 "setasign/fpdf": "^1.8", 17 "setasign/fpdi": "^2. 2"17 "setasign/fpdi": "^2.1" 18 18 } 19 19 } -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/FpdfTpl.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/FpdfTplTrait.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi; … … 87 87 * Draws a template onto the page or another template. 88 88 * 89 * Give only one of the size parameters (width, height) to calculate the other one automatically in view to the90 * aspectratio.89 * Omit one of the size parameters (width, height) to calculate the other one automatically in view to the aspect 90 * ratio. 91 91 * 92 92 * @param mixed $tpl The template id … … 142 142 * Get the size of a template. 143 143 * 144 * Give only one of the size parameters (width, height) to calculate the other one automatically in view to the145 * aspectratio.144 * Omit one of the size parameters (width, height) to calculate the other one automatically in view to the aspect 145 * ratio. 146 146 * 147 147 * @param mixed $tpl The template id -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/Fpdi.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi; … … 31 31 * @string 32 32 */ 33 const VERSION = '2.2.0'; 34 35 protected function _enddoc() 36 { 37 parent::_enddoc(); 38 $this->cleanUp(); 39 } 33 const VERSION = '2.1.1'; 40 34 41 35 /** 42 36 * Draws an imported page or a template onto the page or another template. 43 37 * 44 * Give only one of the size parameters (width, height) to calculate the other one automatically in view to the45 * aspectratio.38 * Omit one of the size parameters (width, height) to calculate the other one automatically in view to the aspect 39 * ratio. 46 40 * 47 41 * @param mixed $tpl The template id … … 71 65 * Get the size of an imported page or template. 72 66 * 73 * Give only one of the size parameters (width, height) to calculate the other one automatically in view to the74 * aspectratio.67 * Omit one of the size parameters (width, height) to calculate the other one automatically in view to the aspect 68 * ratio. 75 69 * 76 70 * @param mixed $tpl The template id -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/FpdiException.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/FpdiTrait.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi; … … 55 55 56 56 /** 57 * Instances created internally. 57 * The current reader id. 58 * 59 * @var string 60 */ 61 protected $currentReaderId; 62 63 /** 64 * Data of all imported pages. 58 65 * 59 66 * @var array 60 67 */ 61 protected $createdReaders = []; 62 63 /** 64 * The current reader id. 65 * 66 * @var string 67 */ 68 protected $currentReaderId; 69 70 /** 71 * Data of all imported pages. 68 protected $importedPages = []; 69 70 /** 71 * A map from object numbers of imported objects to new assigned object numbers by FPDF. 72 72 * 73 73 * @var array 74 74 */ 75 protected $ importedPages= [];76 77 /** 78 * A map from object numbers of imported objects to new assigned object numbers by FPDF.75 protected $objectMap = []; 76 77 /** 78 * An array with information about objects, which needs to be copied to the resulting document. 79 79 * 80 80 * @var array 81 81 */ 82 protected $objectMap = [];83 84 /**85 * An array with information about objects, which needs to be copied to the resulting document.86 *87 * @var array88 */89 82 protected $objectsToCopy = []; 90 91 /**92 * Release resources and file handles.93 *94 * This method is called internally when the document is created successfully. By default it only cleans up95 * stream reader instances which were created internally.96 *97 * @param bool $allReaders98 */99 public function cleanUp($allReaders = false)100 {101 $readers = $allReaders ? array_keys($this->readers) : $this->createdReaders;102 foreach ($readers as $id) {103 $this->readers[$id]->getParser()->getStreamReader()->cleanUp();104 unset($this->readers[$id]);105 }106 107 $this->createdReaders= [];108 }109 83 110 84 /** … … 171 145 } elseif (\is_string($file)) { 172 146 $streamReader = StreamReader::createByFile($file); 173 $this->createdReaders[] = $id;174 147 } else { 175 148 $streamReader = $file; … … 386 359 * Draws an imported page onto the page. 387 360 * 388 * Give only one of the size parameters (width, height) to calculate the other one automatically in view to the389 * aspectratio.361 * Omit one of the size parameters (width, height) to calculate the other one automatically in view to the aspect 362 * ratio. 390 363 * 391 364 * @param mixed $pageId The page id … … 441 414 * Get the size of an imported page. 442 415 * 443 * Give only one of the size parameters (width, height) to calculate the other one automatically in view to the444 * aspectratio.416 * Omit one of the size parameters (width, height) to calculate the other one automatically in view to the aspect 417 * ratio. 445 418 * 446 419 * @param mixed $tpl The template id -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/CrossReference/AbstractReader.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\CrossReference; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/CrossReference/CrossReference.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\CrossReference; … … 65 65 /** @noinspection TypeUnsafeComparisonInspection */ 66 66 while ($offset != false) { // By doing an unsafe comparsion we ignore faulty references to byte offset 0 67 try { 68 $reader = $this->readXref($offset + $this->fileHeaderOffset); 69 } catch (CrossReferenceException $e) { 70 // sometimes the file header offset is part of the byte offsets, so let's retry by resetting it to zero. 71 if ($e->getCode() === CrossReferenceException::INVALID_DATA && $this->fileHeaderOffset !== 0) { 72 $this->fileHeaderOffset = 0; 73 $reader = $this->readXref($offset + $this->fileHeaderOffset); 74 } else { 75 throw $e; 76 } 77 } 78 67 $reader = $this->readXref($offset + $this->fileHeaderOffset); 79 68 $trailer = $reader->getTrailer(); 80 69 $this->checkForEncryption($trailer); -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/CrossReference/CrossReferenceException.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\CrossReference; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/CrossReference/FixedReader.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\CrossReference; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/CrossReference/LineReader.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\CrossReference; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/CrossReference/ReaderInterface.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\CrossReference; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/Filter/Ascii85.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\Filter; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/Filter/Ascii85Exception.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\Filter; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/Filter/AsciiHex.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\Filter; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/Filter/FilterException.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\Filter; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/Filter/FilterInterface.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\Filter; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/Filter/Flate.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\Filter; … … 51 51 52 52 if ($data === false) { 53 // let's try if the checksum is CRC3254 $fh = fopen('php://temp', 'w+b');55 \fwrite($fh, "\x1f\x8b\x08\x00\x00\x00\x00\x00" . $oData);56 \stream_filter_append($fh, 'zlib.inflate', \STREAM_FILTER_READ, ['window' => 30]);57 \fseek($fh, 0);58 $data = \stream_get_contents($fh);59 \fclose($fh);60 }61 62 if (!$data) {63 53 throw new FlateException( 64 54 'Error while decompressing stream.', -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/Filter/FlateException.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\Filter; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/Filter/Lzw.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\Filter; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/Filter/LzwException.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\Filter; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/PdfParser.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser; … … 113 113 * 114 114 * @throws PdfParserException 115 * @return int116 115 */ 117 116 protected function resolveFileHeader() -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/PdfParserException.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/StreamReader.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser; … … 125 125 public function __destruct() 126 126 { 127 $this->cleanUp(); 128 } 129 130 /** 131 * Closes the file handle. 132 */ 133 public function cleanUp() 134 { 135 if ($this->closeStream && is_resource($this->stream)) { 127 if ($this->closeStream) { 136 128 \fclose($this->stream); 137 129 } -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/Tokenizer.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfArray.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\Type; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfBoolean.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\Type; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfDictionary.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\Type; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfHexString.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\Type; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfIndirectObject.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\Type; … … 46 46 $nextToken = $tokenizer->getNextToken(); 47 47 if ($nextToken === 'stream') { 48 $value = PdfStream::parse($value, $reader , $parser);48 $value = PdfStream::parse($value, $reader); 49 49 } elseif ($nextToken !== false) { 50 50 $tokenizer->pushStack($nextToken); -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfIndirectObjectReference.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\Type; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfName.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\Type; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfNull.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\Type; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfNumeric.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\Type; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfStream.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\Type; 11 11 12 use setasign\Fpdi\PdfParser\CrossReference\CrossReferenceException;13 12 use setasign\Fpdi\PdfParser\Filter\Ascii85; 14 13 use setasign\Fpdi\PdfParser\Filter\AsciiHex; … … 16 15 use setasign\Fpdi\PdfParser\Filter\Flate; 17 16 use setasign\Fpdi\PdfParser\Filter\Lzw; 18 use setasign\Fpdi\PdfParser\PdfParser;19 17 use setasign\Fpdi\PdfParser\PdfParserException; 20 18 use setasign\Fpdi\PdfParser\StreamReader; … … 33 31 * @param PdfDictionary $dictionary 34 32 * @param StreamReader $reader 35 * @param PdfParser $parser Optional to keep backwards compatibility36 33 * @return self 37 34 * @throws PdfTypeException 38 35 */ 39 public static function parse(PdfDictionary $dictionary, StreamReader $reader , PdfParser $parser = null)36 public static function parse(PdfDictionary $dictionary, StreamReader $reader) 40 37 { 41 38 $v = new self; 42 39 $v->value = $dictionary; 43 40 $v->reader = $reader; 44 $v->parser = $parser;45 41 46 42 $offset = $reader->getOffset(); … … 121 117 122 118 /** 123 * The PDF parser instance.124 *125 * @var PdfParser126 */127 protected $parser;128 129 /**130 119 * Get the stream data. 131 120 * … … 133 122 * @return bool|string 134 123 * @throws PdfTypeException 135 * @throws CrossReferenceException136 * @throws PdfParserException137 124 */ 138 125 public function getStream($cache = false) … … 140 127 if (\is_int($this->stream)) { 141 128 $length = PdfDictionary::get($this->value, 'Length'); 142 if ($this->parser !== null) { 143 $length = PdfType::resolve($length, $this->parser); 144 } 145 129 $this->reader->reset($this->stream, $length->value); 146 130 if (!($length instanceof PdfNumeric) || $length->value === 0) { 147 $this->reader->reset($this->stream, 100000); 148 $buffer = $this->extractStream(); 131 while (true) { 132 $buffer = $this->reader->getBuffer(false); 133 $length = \strpos($buffer, 'endstream'); 134 if ($length === false) { 135 if (!$this->reader->increaseLength(100000)) { 136 return false; 137 } 138 continue; 139 } 140 break; 141 } 142 143 $buffer = \substr($buffer, 0, $length); 144 $lastByte = \substr($buffer, -1); 145 146 // Check for EOL 147 if ($lastByte === "\n") { 148 $buffer = \substr($buffer, 0, -1); 149 } 150 151 $lastByte = \substr($buffer, -1); 152 if ($lastByte === "\r") { 153 $buffer = \substr($buffer, 0, -1); 154 } 155 149 156 } else { 150 $this->reader->reset($this->stream, $length->value);151 157 $buffer = $this->reader->getBuffer(false); 152 if ($this->parser !== null) { 153 $this->reader->reset($this->stream + strlen($buffer)); 154 $this->parser->getTokenizer()->clearStack(); 155 $token = $this->parser->readValue(); 156 if ($token === false || !($token instanceof PdfToken) || $token->value !== 'endstream') { 157 $this->reader->reset($this->stream, 100000); 158 $buffer = $this->extractStream(); 159 $this->reader->reset($this->stream + strlen($buffer)); 160 } 161 } 162 } 163 158 } 164 159 if ($cache === false) { 165 160 return $buffer; … … 171 166 172 167 return $this->stream; 173 }174 175 /**176 * Extract the stream "manually".177 *178 * @return string179 * @throws PdfTypeException180 */181 protected function extractStream()182 {183 while (true) {184 $buffer = $this->reader->getBuffer(false);185 $length = \strpos($buffer, 'endstream');186 if ($length === false) {187 if (!$this->reader->increaseLength(100000)) {188 throw new PdfTypeException('Cannot extract stream.');189 }190 continue;191 }192 break;193 }194 195 $buffer = \substr($buffer, 0, $length);196 $lastByte = \substr($buffer, -1);197 198 /* Check for EOL marker =199 * CARRIAGE RETURN (\r) and a LINE FEED (\n) or just a LINE FEED (\n},200 * and not by a CARRIAGE RETURN (\r) alone201 */202 if ($lastByte === "\n") {203 $buffer = \substr($buffer, 0, -1);204 205 $lastByte = \substr($buffer, -1);206 if ($lastByte === "\r") {207 $buffer = \substr($buffer, 0, -1);208 }209 }210 211 return $buffer;212 168 } 213 169 -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfString.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\Type; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfToken.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\Type; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfType.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\Type; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfParser/Type/PdfTypeException.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfParser\Type; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfReader/DataStructure/Rectangle.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfReader\DataStructure; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfReader/Page.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfReader; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfReader/PageBoundaries.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfReader; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfReader/PdfReader.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfReader; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/PdfReader/PdfReaderException.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\PdfReader; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/Tcpdf/Fpdi.php
r2115536 r2166154 35 35 * @string 36 36 */ 37 const VERSION = '2. 2.0';37 const VERSION = '2.1.1'; 38 38 39 39 /** … … 51 51 protected $currentObjectNumber; 52 52 53 protected function _enddoc()54 {55 parent::_enddoc();56 $this->cleanUp();57 }58 59 53 /** 60 54 * Get the next template id. … … 70 64 * Draws an imported page onto the page or another template. 71 65 * 72 * Give only one of the size parameters (width, height) to calculate the other one automatically in view to the73 * aspectratio.66 * Omit one of the size parameters (width, height) to calculate the other one automatically in view to the aspect 67 * ratio. 74 68 * 75 69 * @param mixed $tpl The template id … … 91 85 * Draws an imported page onto the page. 92 86 * 93 * Give only one of the size parameters (width, height) to calculate the other one automatically in view to the94 * aspectratio.87 * Omit one of the size parameters (width, height) to calculate the other one automatically in view to the aspect 88 * ratio. 95 89 * 96 90 * @param mixed $pageId The page id … … 118 112 * Get the size of an imported page. 119 113 * 120 * Give only one of the size parameters (width, height) to calculate the other one automatically in view to the121 * aspectratio.114 * Omit one of the size parameters (width, height) to calculate the other one automatically in view to the aspect 115 * ratio. 122 116 * 123 117 * @param mixed $tpl The template id -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/TcpdfFpdi.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/Tfpdf/FpdfTpl.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\Tfpdf; -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/Tfpdf/Fpdi.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 namespace setasign\Fpdi\Tfpdf; … … 32 32 * @string 33 33 */ 34 const VERSION = '2.2.0'; 35 36 public function _enddoc() 37 { 38 parent::_enddoc(); 39 $this->cleanUp(); 40 } 34 const VERSION = '2.1.1'; 41 35 42 36 /** 43 37 * Draws an imported page or a template onto the page or another template. 44 38 * 45 * Give only one of the size parameters (width, height) to calculate the other one automatically in view to the46 * aspectratio.39 * Omit one of the size parameters (width, height) to calculate the other one automatically in view to the aspect 40 * ratio. 47 41 * 48 42 * @param mixed $tpl The template id … … 72 66 * Get the size of an imported page or template. 73 67 * 74 * Give only one of the size parameters (width, height) to calculate the other one automatically in view to the75 * aspectratio.68 * Omit one of the size parameters (width, height) to calculate the other one automatically in view to the aspect 69 * ratio. 76 70 * 77 71 * @param mixed $tpl The template id -
woo-dp-internetmarke/trunk/vendor/setasign/fpdi/src/autoload.php
r2115536 r2166154 4 4 * 5 5 * @package setasign\Fpdi 6 * @copyright Copyright (c) 201 9Setasign - Jan Slabon (https://www.setasign.com)6 * @copyright Copyright (c) 2018 Setasign - Jan Slabon (https://www.setasign.com) 7 7 * @license http://opensource.org/licenses/mit-license The MIT License 8 */8 */ 9 9 10 10 spl_autoload_register(function ($class) { -
woo-dp-internetmarke/trunk/vendor/wsdltophp/wssecurity/.gitignore
r2115536 r2166154 2 2 composer.lock 3 3 phpunit.xml 4 .idea -
woo-dp-internetmarke/trunk/vendor/wsdltophp/wssecurity/.php_cs
r2115536 r2166154 9 9 ->setRules(array( 10 10 '@PSR2' => true, 11 '@PhpCsFixer' => true,12 11 'array_syntax' => [ 13 12 'syntax' => 'short', … … 17 16 'ternary_operator_spaces' => true, 18 17 'cast_spaces' => true, 19 'trailing_comma_in_multiline_array' => true, 20 'concat_space' => [ 21 'spacing' => 'one', 22 ], 23 'blank_line_before_statement' => [ 24 'statements' => [ 25 'return', 26 'declare', 27 ], 28 ], 29 'php_unit_test_class_requires_covers' => false, 18 'trailing_comma_in_multiline_array' => true 30 19 )) 31 20 ->setFinder($finder); -
woo-dp-internetmarke/trunk/vendor/wsdltophp/wssecurity/.travis.yml
r2115536 r2166154 11 11 - 7.2 12 12 13 before_install: 14 - composer self-update 15 13 16 install: 14 17 - composer install -
woo-dp-internetmarke/trunk/vendor/wsdltophp/wssecurity/CHANGELOG.md
r2115536 r2166154 1 1 # CHANGELOG 2 3 ## 1.2.24 - Merged PR #95 6 ## 1.2.17 - Fixed issue #78 9 ## 1.2.010 - Merged PR #511 - Fix minor typo12 2 13 3 ## 1.1.0 -
woo-dp-internetmarke/trunk/vendor/wsdltophp/wssecurity/composer.json
r2115536 r2166154 21 21 "email": "[email protected]", 22 22 "role": "Contributor" 23 },24 {25 "name": "NtlBldrv",26 "role": "Contributor"27 },28 {29 "name": "baijunyao",30 "email": "[email protected]",31 "role": "Contributor"32 23 } 33 24 ], … … 41 32 "scripts": { 42 33 "test": "vendor/bin/phpunit", 43 "lint": "vendor/bin/php-cs-fixer fix --ansi --diff --verbose"34 "lint": "vendor/bin/php-cs-fixer fix" 44 35 }, 45 36 "require-dev": { 46 " friendsofphp/php-cs-fixer": "^2.0",47 " phpunit/phpunit": "^4.8 || ^6.0"37 "phpunit/phpunit": "^4.8 || ^6.0", 38 "friendsofphp/php-cs-fixer": "^2.0" 48 39 }, 49 40 "autoload" : { … … 56 47 "WsdlToPhp\\WsSecurity\\Tests\\": "tests" 57 48 } 58 },59 "config": {60 "sort-packages": true61 49 } 62 50 } -
woo-dp-internetmarke/trunk/vendor/wsdltophp/wssecurity/src/Created.php
r2115536 r2166154 6 6 { 7 7 /** 8 * Element name. 9 * 8 * Element name 10 9 * @var string 11 10 */ 12 11 const NAME = 'Created'; 13 14 12 /** 15 * Constructor for Created element. 16 * 17 * @param int $_timestamp the timestamp value 13 * Constructor for Created element 14 * @param int $_timestamp the timestamp value 18 15 * @param string $_namespace the namespace 19 16 */ -
woo-dp-internetmarke/trunk/vendor/wsdltophp/wssecurity/src/Element.php
r2115536 r2166154 12 12 { 13 13 /** 14 * Namespace for WSSE elements. 15 * 14 * Namespace for WSSE elements 16 15 * @var string 17 16 */ 18 17 const NS_WSSE = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'; 19 18 /** 20 * Namespace name for WSSE elements. 21 * 19 * Namespace name for WSSE elements 22 20 * @var string 23 21 */ 24 22 const NS_WSSE_NAME = 'wsse'; 25 23 /** 26 * Namespace for WSSU elements. 27 * 24 * Namespace for WSSU elements 28 25 * @var string 29 26 */ 30 27 const NS_WSSU = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd'; 31 28 /** 32 * Namespace name for WSSU elements. 33 * 29 * Namespace name for WSSU elements 34 30 * @var string 35 31 */ 36 32 const NS_WSSU_NAME = 'wssu'; 37 33 /** 38 * Name of the element used as the WS-Security tag. 39 * 34 * Name of the element used as the WS-Security tag 40 35 * @var string 41 36 */ … … 43 38 /** 44 39 * Value of the element. 45 * It can either be a string value or a Element object. 46 * 47 * @var Element|string 40 * It can either be a string value or a Element object 41 * @var string|Element 48 42 */ 49 43 protected $value = ''; 50 44 /** 51 * Array of attributes that must contains the element. 52 * 45 * Array of attributes that must contains the element 53 46 * @var array 54 47 */ 55 48 protected $attributes = []; 56 49 /** 57 * The namespace the element belongs to. 58 * 50 * The namespace the element belongs to 59 51 * @var string 60 52 */ 61 53 protected $namespace = ''; 62 54 /** 63 * Nonce used to generate digest password. 64 * 65 * @var string 66 */ 67 protected $nonceValue; 68 /** 69 * Timestamp used to generate digest password. 70 * 55 * Nonce used to generate digest password 56 * @var string 57 */ 58 protected $nonceValue = null; 59 /** 60 * Timestamp used to generate digest password 71 61 * @var int 72 62 */ 73 protected $timestampValue; 74 /** 75 * Current \DOMDocument used to generate XML content. 76 * 63 protected $timestampValue = null; 64 /** 65 * Current \DOMDocument used to generate XML content 77 66 * @var \DOMDocument 78 67 */ 79 68 protected static $dom = null; 80 81 /** 82 * Generic constructor. 83 * 69 /** 70 * Generic constructor 84 71 * @param string $name 85 72 * @param string $namespace 86 * @param mixed $value87 * @param array $attributes73 * @param mixed $value 74 * @param array $attributes 88 75 */ 89 76 public function __construct($name, $namespace, $value = null, array $attributes = []) … … 93 80 ->setNamespace($namespace) 94 81 ->setValue($value) 95 ->setAttributes($attributes) 96 ; 97 } 98 99 /** 100 * Method called to generate the string XML request to be sent among the SOAP Header. 101 * 102 * @param bool $asDomElement returns elements as a \DOMElement or as a string 103 * 104 * @return \DOMElement|string 105 */ 106 protected function __toSend($asDomElement = false) 107 { 108 /** 109 * Create element tag. 110 */ 111 $element = self::getDom()->createElement($this->getNamespacedName()); 112 $element->setAttributeNS('http://www.w3.org/2000/xmlns/', sprintf('xmlns:%s', $this->getNamespacePrefix()), $this->getNamespace()); 113 /* 114 * Define element value 115 * Add attributes if there are any 116 */ 117 $this 118 ->appendValueToElementToSend($this->getValue(), $element) 119 ->appendAttributesToElementToSend($element) 120 ; 121 // Returns element content 122 if ($asDomElement) { 123 return $element; 124 } 125 126 return self::getDom()->saveXML($element); 127 } 128 82 ->setAttributes($attributes); 83 } 129 84 /** 130 85 * @return string … … 134 89 return $this->name; 135 90 } 136 137 91 /** 138 92 * @param string $name 139 *140 93 * @return Element 141 94 */ … … 143 96 { 144 97 $this->name = $name; 145 146 return $this; 147 } 148 98 return $this; 99 } 149 100 /** 150 101 * @return array … … 154 105 return $this->attributes; 155 106 } 156 157 107 /** 158 108 * @param array $attributes 159 *160 109 * @return Element 161 110 */ … … 163 112 { 164 113 $this->attributes = $attributes; 165 166 return $this; 167 } 168 114 return $this; 115 } 169 116 /** 170 117 * @param string $name 171 * @param mixed $value 172 * 118 * @param mixed $value 173 119 * @return Element 174 120 */ … … 176 122 { 177 123 $this->attributes[$name] = $value; 178 179 return $this; 180 } 181 124 return $this; 125 } 182 126 /** 183 127 * @return bool true|false … … 187 131 return count($this->attributes) > 0; 188 132 } 189 190 133 /** 191 134 * @return string … … 195 138 return $this->namespace; 196 139 } 197 198 /**199 * @param string $namespace200 *201 * @return Element202 */203 public function setNamespace($namespace)204 {205 $this->namespace = $namespace;206 207 return $this;208 }209 210 /**211 * @return Element|string212 */213 public function getValue()214 {215 return $this->value;216 }217 218 /**219 * @param Element|string220 * @param mixed $value221 *222 * @return Element223 */224 public function setValue($value)225 {226 $this->value = $value;227 228 return $this;229 }230 231 /**232 * @return string233 */234 public function getNonceValue()235 {236 return $this->nonceValue;237 }238 239 /**240 * @param string $nonceValue241 *242 * @return Element243 */244 public function setNonceValue($nonceValue)245 {246 $this->nonceValue = $nonceValue;247 248 return $this;249 }250 251 /**252 * @param mixed $formatted253 *254 * @return int|string255 */256 public function getTimestampValue($formatted = false)257 {258 return ($formatted && $this->timestampValue > 0) ? gmdate('Y-m-d\TH:i:s\Z', $this->timestampValue) : $this->timestampValue;259 }260 261 /**262 * @param int $timestampValue263 *264 * @return Element265 */266 public function setTimestampValue($timestampValue)267 {268 $this->timestampValue = $timestampValue;269 270 return $this;271 }272 273 /**274 * Returns the element to send as WS-Security header.275 *276 * @return string277 */278 public function toSend()279 {280 self::setDom(new \DOMDocument('1.0', 'UTF-8'));281 282 return $this->__toSend();283 }284 285 /**286 * Handle adding value to element according to the value type.287 *288 * @param mixed $value289 * @param \DOMElement $element290 *291 * @return Element292 */293 protected function appendValueToElementToSend($value, \DOMElement $element)294 {295 if ($value instanceof Element) {296 $this->appendElementToElementToSend($value, $element);297 } elseif (is_array($value)) {298 $this->appendValuesToElementToSend($value, $element);299 } elseif (!empty($value)) {300 $element->appendChild(self::getDom()->createTextNode($value));301 }302 303 return $this;304 }305 306 /**307 * @param Element $element308 * @param \DOMElement $element309 */310 protected function appendElementToElementToSend(Element $value, \DOMElement $element)311 {312 $toSend = $value->__toSend(true);313 if ($toSend instanceof \DOMElement) {314 $element->appendChild($toSend);315 }316 }317 318 /**319 * @param array $values320 * @param \DOMElement $element321 */322 protected function appendValuesToElementToSend(array $values, \DOMElement $element)323 {324 foreach ($values as $value) {325 $this->appendValueToElementToSend($value, $element);326 }327 }328 329 /**330 * @param \DOMElement $element331 *332 * @return Element333 */334 protected function appendAttributesToElementToSend(\DOMElement $element)335 {336 if ($this->hasAttributes()) {337 foreach ($this->getAttributes() as $attributeName => $attributeValue) {338 $matches = [];339 if (0 === preg_match(sprintf('/(%s|%s):/', self::NS_WSSU_NAME, self::NS_WSSE_NAME), $attributeName, $matches)) {340 $element->setAttribute($attributeName, $attributeValue);341 } else {342 $element->setAttributeNS(self::NS_WSSE_NAME === $matches[1] ? self::NS_WSSE : self::NS_WSSU, $attributeName, $attributeValue);343 }344 }345 }346 347 return $this;348 }349 350 /**351 * Returns the name with its namespace.352 *353 * @return string354 */355 protected function getNamespacedName()356 {357 return sprintf('%s:%s', $this->getNamespacePrefix(), $this->getName());358 }359 360 140 /** 361 141 * @return string … … 372 152 break; 373 153 } 374 375 154 return $namespacePrefix; 376 155 } 377 156 /** 157 * @param string $namespace 158 * @return Element 159 */ 160 public function setNamespace($namespace) 161 { 162 $this->namespace = $namespace; 163 return $this; 164 } 165 /** 166 * @return string|Element 167 */ 168 public function getValue() 169 { 170 return $this->value; 171 } 172 /** 173 * @param string|Element 174 * @return Element 175 */ 176 public function setValue($value) 177 { 178 $this->value = $value; 179 return $this; 180 } 181 /** 182 * @return string 183 */ 184 public function getNonceValue() 185 { 186 return $this->nonceValue; 187 } 188 /** 189 * @param string $nonceValue 190 * @return Element 191 */ 192 public function setNonceValue($nonceValue) 193 { 194 $this->nonceValue = $nonceValue; 195 return $this; 196 } 197 /** 198 * @return int|string 199 */ 200 public function getTimestampValue($formated = false) 201 { 202 return ($formated && $this->timestampValue > 0) ? gmdate('Y-m-d\TH:i:s\Z', $this->timestampValue) : $this->timestampValue; 203 } 204 /** 205 * @param int $timestampValue 206 * @return Element 207 */ 208 public function setTimestampValue($timestampValue) 209 { 210 $this->timestampValue = $timestampValue; 211 return $this; 212 } 378 213 /** 379 214 * @return \DOMDocument … … 383 218 return self::$dom; 384 219 } 385 386 220 /** 387 221 * @param \DOMDocument $dom 388 *389 222 * @return \DOMDocument 390 223 */ … … 393 226 self::$dom = $dom; 394 227 } 228 /** 229 * Method called to generate the string XML request to be sent among the SOAP Header 230 * @param bool $asDomElement returns elements as a \DOMElement or as a string 231 * @return string|\DOMElement 232 */ 233 protected function __toSend($asDomElement = false) 234 { 235 /** 236 * Create element tag 237 */ 238 $element = self::getDom()->createElement($this->getNamespacedName()); 239 $element->setAttributeNS('http://www.w3.org/2000/xmlns/', sprintf('xmlns:%s', $this->getNamespacePrefix()), $this->getNamespace()); 240 /** 241 * Define element value 242 * Add attributes if there are any 243 */ 244 $this 245 ->appendValueToElementToSend($this->getValue(), $element) 246 ->appendAttributesToElementToSend($element); 247 /** 248 * Returns element content 249 */ 250 if ($asDomElement) { 251 return $element; 252 } else { 253 return self::getDom()->saveXML($element); 254 } 255 } 256 /** 257 * Handle adding value to element according to the value type 258 * @param mixed $value 259 * @param \DOMElement $element 260 * @return Element 261 */ 262 protected function appendValueToElementToSend($value, \DOMElement $element) 263 { 264 if ($value instanceof Element) { 265 $this->appendElementToElementToSend($value, $element); 266 } elseif (is_array($value)) { 267 $this->appendValuesToElementToSend($value, $element); 268 } elseif (!empty($value)) { 269 $element->appendChild(self::getDom()->createTextNode($value)); 270 } 271 return $this; 272 } 273 /** 274 * @param Element $element 275 * @param \DOMElement $element 276 */ 277 protected function appendElementToElementToSend(Element $value, \DOMElement $element) 278 { 279 $toSend = $value->__toSend(true); 280 if ($toSend instanceof \DOMElement) { 281 $element->appendChild($toSend); 282 } 283 } 284 /** 285 * @param array $values 286 * @param \DOMElement $element 287 */ 288 protected function appendValuesToElementToSend(array $values, \DOMElement $element) 289 { 290 foreach ($values as $value) { 291 $this->appendValueToElementToSend($value, $element); 292 } 293 } 294 /** 295 * @param \DOMElement $element 296 * @return Element 297 */ 298 protected function appendAttributesToElementToSend(\DOMElement $element) 299 { 300 if ($this->hasAttributes()) { 301 foreach ($this->getAttributes() as $attributeName => $attributeValue) { 302 $element->setAttribute($attributeName, $attributeValue); 303 } 304 } 305 return $this; 306 } 307 /** 308 * Returns the name with its namespace 309 * @return string 310 */ 311 protected function getNamespacedName() 312 { 313 return sprintf('%s:%s', $this->getNamespacePrefix(), $this->getName()); 314 } 315 /** 316 * Returns the element to send as WS-Security header 317 * @return string 318 */ 319 public function toSend() 320 { 321 self::setDom(new \DOMDocument('1.0', 'UTF-8')); 322 return $this->__toSend(); 323 } 395 324 } -
woo-dp-internetmarke/trunk/vendor/wsdltophp/wssecurity/src/Expires.php
r2115536 r2166154 6 6 { 7 7 /** 8 * Element name. 9 * 8 * Element name 10 9 * @var string 11 10 */ 12 11 const NAME = 'Expires'; 13 14 12 /** 15 * Constructor for Expires element. 16 * 17 * @param int $timestamp the timestamp value 18 * @param int $expiresIn the expires in time 13 * Constructor for Expires element 14 * @param int $timestamp the timestamp value 15 * @param int $expiresIn the expires in time 19 16 * @param string $namespace the namespace 20 17 */ -
woo-dp-internetmarke/trunk/vendor/wsdltophp/wssecurity/src/Nonce.php
r2115536 r2166154 6 6 { 7 7 /** 8 * Element name. 9 * 8 * Element name 10 9 * @var string 11 10 */ 12 11 const NAME = 'Nonce'; 13 12 /** 14 * Element name. 15 * 13 * Element name 16 14 * @var string 17 15 */ 18 16 const ATTRIBUTE_ENCODING_TYPE = 'EncodingType'; 19 17 /** 20 * Element name. 21 * 18 * Element name 22 19 * @var string 23 20 */ 24 21 const NS_ENCODING = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary'; 25 26 22 /** 27 * Constructor for Nonce element. 28 * 29 * @param string $nonce the nonce value 23 * Constructor for Nonce element 24 * @param string $nonce the nonce value 30 25 * @param string $namespace the namespace 31 26 */ … … 36 31 ]); 37 32 } 38 39 33 /** 40 * Encode Nonce value. 41 * 34 * Encode Nonce value 42 35 * @param string $nonce 43 *44 36 * @return string 45 37 */ -
woo-dp-internetmarke/trunk/vendor/wsdltophp/wssecurity/src/Password.php
r2115536 r2166154 4 4 5 5 /** 6 * Class that represents the Password element. 7 * 6 * Class that represents the Password element 8 7 * @author WsdlToPhp Team <[email protected]> 9 8 */ … … 11 10 { 12 11 /** 13 * Element name. 14 * 12 * Element name 15 13 * @var string 16 14 */ 17 15 const NAME = 'Password'; 18 16 /** 19 * Element attribute type name. 20 * 17 * Element attribute type name 21 18 * @var string 22 19 */ 23 20 const ATTRIBUTE_TYPE = 'Type'; 24 21 /** 25 * Passwor must be sent using digest. 26 * 22 * Passwor must be sent using digest 27 23 * @var string 28 24 */ 29 25 const TYPE_PASSWORD_DIGEST = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest'; 30 26 /** 31 * Passwor must be sent in text. 32 * 27 * Passwor must be sent in text 33 28 * @var string 34 29 */ 35 30 const TYPE_PASSWORD_TEXT = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText'; 36 31 /** 37 * TypeValue of password. 38 * 32 * TypeValue of password 39 33 * @var string 40 34 */ 41 protected $typeValue; 42 35 protected $typeValue = null; 43 36 /** 44 * Constructor for Password element. 45 * 46 * @param string $password the password 47 * @param string $typeValue the typeValue 37 * Constructor for Password element 38 * @param string $password the password 39 * @param string $typeValue the typeValue 48 40 * @param string $timestampValue the timestamp to use 49 * @param string $namespace the namespace41 * @param string $namespace the namespace 50 42 */ 51 43 public function __construct($password, $typeValue = self::TYPE_PASSWORD_TEXT, $timestampValue = 0, $namespace = self::NS_WSSE) … … 54 46 ->setTypeValue($typeValue) 55 47 ->setTimestampValue($timestampValue ? $timestampValue : time()) 56 ->setNonceValue(mt_rand()) 57 ; 48 ->setNonceValue(mt_rand()); 58 49 parent::__construct(self::NAME, $namespace, $this->convertPassword($password), [ 59 50 self::ATTRIBUTE_TYPE => $typeValue, 60 51 ]); 61 52 } 62 63 53 /** 64 * Returns the converted form of the password accroding to the password typeValue. 65 * 54 * Returns the converted form of the password accroding to the password typeValue 66 55 * @param string $password 67 56 */ 68 57 public function convertPassword($password) 69 58 { 70 if ( self::TYPE_PASSWORD_DIGEST === $this->getTypeValue()) {59 if ($this->getTypeValue() === self::TYPE_PASSWORD_DIGEST) { 71 60 $password = $this->digestPassword($password); 72 61 } 73 74 62 return $password; 75 63 } 76 77 64 /** 78 * When generating the password digest, we define values (nonce and timestamp) that can be used in other place. 79 * 65 * When generating the password digest, we define values (nonce and timestamp) that can be used in other place 80 66 * @param string $password 81 67 */ … … 87 73 $hash = sha1($packedNonce . $packedTimestamp . $packedPassword); 88 74 $packedHash = pack('H*', $hash); 89 90 75 return base64_encode($packedHash); 91 76 } 92 93 77 /** 94 78 * @return string … … 98 82 return $this->typeValue; 99 83 } 100 101 84 /** 102 85 * @param string $typeValue 103 *104 86 * @return Password 105 87 */ … … 107 89 { 108 90 $this->typeValue = $typeValue; 109 110 91 return $this; 111 92 } -
woo-dp-internetmarke/trunk/vendor/wsdltophp/wssecurity/src/Security.php
r2115536 r2166154 6 6 { 7 7 /** 8 * Element name. 9 * 8 * Element name 10 9 * @var string 11 10 */ 12 11 const NAME = 'Security'; 13 12 /** 14 * Element attribute mustunderstand name. 15 * 13 * Element attribute mustunderstand name 16 14 * @var string 17 15 */ 18 const ATTRIBUTE_MUST_UNDERSTAND = ' :mustunderstand';16 const ATTRIBUTE_MUST_UNDERSTAND = 'SOAP-ENV:mustunderstand'; 19 17 /** 20 * Element attribute mustunderstand name. 21 * 18 * Element attribute mustunderstand name 22 19 * @var string 23 20 */ 24 const ATTRIBUTE_ACTOR = ' :actor';21 const ATTRIBUTE_ACTOR = 'SOAP-ENV:actor'; 25 22 /** 26 * Envelop namespace. 27 * 28 * @var string 29 */ 30 const ENV_NAMESPACE = 'SOAP-ENV'; 31 /** 32 * UsernameToken element. 33 * 23 * UsernameToken element 34 24 * @var UsernameToken 35 25 */ 36 26 protected $usernameToken; 37 27 /** 38 * Timestamp element. 39 * 28 * Timestamp element 40 29 * @var Timestamp 41 30 */ 42 31 protected $timestamp; 43 44 32 /** 45 * Constructor for Nonce element. 46 * 47 * @param bool $mustunderstand 33 * Constructor for Nonce element 34 * @param bool $mustunderstand 48 35 * @param string $actor 49 * @param string $envelopeNamespace 50 * @param string $namespace the namespace 36 * @param string $namespace the namespace 51 37 */ 52 public function __construct($mustunderstand = false, $actor = null, $namespace = self::NS_WSSE , $envelopeNamespace = self::ENV_NAMESPACE)38 public function __construct($mustunderstand = false, $actor = null, $namespace = self::NS_WSSE) 53 39 { 54 40 parent::__construct(self::NAME, $namespace); 55 // Sets attributes 56 if (true === $mustunderstand) { 57 $this->setAttribute($envelopeNamespace . self::ATTRIBUTE_MUST_UNDERSTAND, $mustunderstand); 41 /** 42 * Sets attributes 43 */ 44 if ($mustunderstand === true) { 45 $this->setAttribute(self::ATTRIBUTE_MUST_UNDERSTAND, $mustunderstand); 58 46 } 59 47 if (!empty($actor)) { 60 $this->setAttribute( $envelopeNamespace .self::ATTRIBUTE_ACTOR, $actor);48 $this->setAttribute(self::ATTRIBUTE_ACTOR, $actor); 61 49 } 62 50 } 63 64 51 /** 65 * Overrides methods in order to set the values. 66 * 52 * @return UsernameToken 53 */ 54 public function getUsernameToken() 55 { 56 return $this->usernameToken; 57 } 58 /** 59 * @param UsernameToken $usernameToken 60 * @return Security 61 */ 62 public function setUsernameToken(UsernameToken $usernameToken) 63 { 64 $this->usernameToken = $usernameToken; 65 return $this; 66 } 67 /** 68 * @return Timestamp 69 */ 70 public function getTimestamp() 71 { 72 return $this->timestamp; 73 } 74 /** 75 * @param Timestamp $timestamp 76 * @return Security 77 */ 78 public function setTimestamp(Timestamp $timestamp) 79 { 80 $this->timestamp = $timestamp; 81 return $this; 82 } 83 /** 84 * Overrides methods in order to set the values 67 85 * @param bool $asDomElement returns elements as a DOMElement or as a string 68 * 69 * @return \DOMElement|string 86 * @return string 70 87 */ 71 88 protected function __toSend($asDomElement = false) … … 75 92 $this->getTimestamp(), 76 93 ]); 77 78 94 return parent::__toSend($asDomElement); 79 95 } 80 81 /**82 * @return UsernameToken83 */84 public function getUsernameToken()85 {86 return $this->usernameToken;87 }88 89 /**90 * @param UsernameToken $usernameToken91 *92 * @return Security93 */94 public function setUsernameToken(UsernameToken $usernameToken)95 {96 $this->usernameToken = $usernameToken;97 98 return $this;99 }100 101 /**102 * @return Timestamp103 */104 public function getTimestamp()105 {106 return $this->timestamp;107 }108 109 /**110 * @param Timestamp $timestamp111 *112 * @return Security113 */114 public function setTimestamp(Timestamp $timestamp)115 {116 $this->timestamp = $timestamp;117 118 return $this;119 }120 96 } -
woo-dp-internetmarke/trunk/vendor/wsdltophp/wssecurity/src/Timestamp.php
r2115536 r2166154 6 6 { 7 7 /** 8 * Element name. 9 * 8 * Element name 10 9 * @var string 11 10 */ 12 11 const NAME = 'Timestamp'; 13 12 /** 14 * Created element. 15 * 13 * Created element 16 14 * @var Created 17 15 */ 18 protected $created ;16 protected $created = null; 19 17 /** 20 * Created element. 21 * 18 * Created element 22 19 * @var Expires 23 20 */ 24 protected $expires; 25 21 protected $expires = null; 26 22 /** 27 * Constructor for Timestamp element. 28 * 23 * Constructor for Timestamp element 29 24 * @param string $namespace the namespace 30 25 */ … … 33 28 parent::__construct(self::NAME, $namespace); 34 29 } 35 36 30 /** 37 * Overrides method in order to add created and expires values if they are set. 38 * 31 * @return Created 32 */ 33 public function getCreated() 34 { 35 return $this->created; 36 } 37 /** 38 * @param Created $created 39 * @return Timestamp 40 */ 41 public function setCreated(Created $created) 42 { 43 $this->created = $created; 44 return $this; 45 } 46 /** 47 * @return Expires 48 */ 49 public function getExpires() 50 { 51 return $this->expires; 52 } 53 /** 54 * @param Expires $expires 55 * @return Expires 56 */ 57 public function setExpires(Expires $expires) 58 { 59 $this->expires = $expires; 60 return $this; 61 } 62 /** 63 * Overrides method in order to add created and expires values if they are set 39 64 * @param bool $asDomElement returns elements as a DOMElement or as a string 40 *41 65 * @return string 42 66 */ … … 47 71 $this->getExpires(), 48 72 ]); 49 50 73 return parent::__toSend($asDomElement); 51 74 } 52 53 /**54 * @return Created55 */56 public function getCreated()57 {58 return $this->created;59 }60 61 /**62 * @param Created $created63 *64 * @return Timestamp65 */66 public function setCreated(Created $created)67 {68 $this->created = $created;69 70 return $this;71 }72 73 /**74 * @return Expires75 */76 public function getExpires()77 {78 return $this->expires;79 }80 81 /**82 * @param Expires $expires83 *84 * @return Expires85 */86 public function setExpires(Expires $expires)87 {88 $this->expires = $expires;89 90 return $this;91 }92 75 } -
woo-dp-internetmarke/trunk/vendor/wsdltophp/wssecurity/src/Username.php
r2115536 r2166154 6 6 { 7 7 /** 8 * Element name. 9 * 8 * Element name 10 9 * @var string 11 10 */ 12 11 const NAME = 'Username'; 13 14 12 /** 15 * Constructor for Username element. 16 * 17 * @param string $username the username 13 * Constructor for Username element 14 * @param string $username the username 18 15 * @param string $namespace the namespace 19 16 */ -
woo-dp-internetmarke/trunk/vendor/wsdltophp/wssecurity/src/UsernameToken.php
r2115536 r2166154 6 6 { 7 7 /** 8 * Element name. 9 * 8 * Element name 10 9 * @var string 11 10 */ 12 11 const NAME = 'UsernameToken'; 13 12 /** 14 * Attribute id name. 15 * 13 * Attribute id name 16 14 * @var string 17 15 */ 18 16 const ATTRIBUTE_ID = 'Id'; 19 17 /** 20 * Username element. 21 * 18 * Username element 22 19 * @var Username 23 20 */ 24 21 protected $username; 25 22 /** 26 * Password element. 27 * 23 * Password element 28 24 * @var Password 29 25 */ 30 26 protected $password; 31 27 /** 32 * Created element. 33 * 28 * Created element 34 29 * @var Created 35 30 */ 36 31 protected $created; 37 32 /** 38 * Nonce element. 39 * 33 * Nonce element 40 34 * @var Nonce 41 35 */ 42 36 protected $nonce; 43 44 37 /** 45 * Constructor for UsernameToken element. 46 * 38 * Constructor for UsernameToken element 47 39 * @see Element::__construct() 48 *49 40 * @param string $id 50 41 * @param string $namespace the namespace … … 56 47 ]); 57 48 } 58 59 49 /** 60 * Overrides method in order to add username, password and created values if they are set. 61 * 50 * @return Username 51 */ 52 public function getUsername() 53 { 54 return $this->username; 55 } 56 /** 57 * @param Username $username 58 * @return UsernameToken 59 */ 60 public function setUsername(Username $username) 61 { 62 $this->username = $username; 63 return $this; 64 } 65 /** 66 * @return Password 67 */ 68 public function getPassword() 69 { 70 return $this->password; 71 } 72 /** 73 * @param Password $password 74 * @return UsernameToken 75 */ 76 public function setPassword($password) 77 { 78 $this->password = $password; 79 return $this; 80 } 81 /** 82 * @return Created 83 */ 84 public function getCreated() 85 { 86 return $this->created; 87 } 88 /** 89 * @param Created $created 90 * @return UsernameToken 91 */ 92 public function setCreated($created) 93 { 94 $this->created = $created; 95 return $this; 96 } 97 /** 98 * @return Nonce 99 */ 100 public function getNonce() 101 { 102 return $this->nonce; 103 } 104 /** 105 * @param Nonce $nonce 106 * @return UsernameToken 107 */ 108 public function setNonce($nonce) 109 { 110 $this->nonce = $nonce; 111 return $this; 112 } 113 /** 114 * Overrides method in order to add username, password and created values if they are set 62 115 * @param bool $asDomElement returns elements as a DOMElement or as a string 63 *64 116 * @return string 65 117 */ … … 72 124 $this->getNonce(), 73 125 ]); 74 75 126 return parent::__toSend($asDomElement); 76 127 } 77 78 /**79 * @return Username80 */81 public function getUsername()82 {83 return $this->username;84 }85 86 /**87 * @param Username $username88 *89 * @return UsernameToken90 */91 public function setUsername(Username $username)92 {93 $this->username = $username;94 95 return $this;96 }97 98 /**99 * @return Password100 */101 public function getPassword()102 {103 return $this->password;104 }105 106 /**107 * @param Password $password108 *109 * @return UsernameToken110 */111 public function setPassword($password)112 {113 $this->password = $password;114 115 return $this;116 }117 118 /**119 * @return Created120 */121 public function getCreated()122 {123 return $this->created;124 }125 126 /**127 * @param Created $created128 *129 * @return UsernameToken130 */131 public function setCreated($created)132 {133 $this->created = $created;134 135 return $this;136 }137 138 /**139 * @return Nonce140 */141 public function getNonce()142 {143 return $this->nonce;144 }145 146 /**147 * @param Nonce $nonce148 *149 * @return UsernameToken150 */151 public function setNonce($nonce)152 {153 $this->nonce = $nonce;154 155 return $this;156 }157 128 } -
woo-dp-internetmarke/trunk/vendor/wsdltophp/wssecurity/src/WsSecurity.php
r2115536 r2166154 9 9 */ 10 10 protected $security; 11 12 11 /** 13 12 * @param string $username 14 13 * @param string $password 15 * @param bool $passwordDigest16 * @param int $addCreated17 * @param int $addExpires18 * @param bool $mustunderstand14 * @param bool $passwordDigest 15 * @param int $addCreated 16 * @param int $addExpires 17 * @param bool $mustunderstand 19 18 * @param string $actor 20 19 * @param string $usernameId 21 * @param bool $addNonce 22 * @param string $envelopeNamespace 20 * @param bool $addNonce 23 21 */ 24 protected function __construct( 25 $username, 26 $password, 27 $passwordDigest = false, 28 $addCreated = 0, 29 $addExpires = 0, 30 $mustunderstand = false, 31 $actor = null, 32 $usernameId = null, 33 $addNonce = true, 34 $envelopeNamespace = Security::ENV_NAMESPACE 35 ) { 22 protected function __construct($username, $password, $passwordDigest = false, $addCreated = 0, $addExpires = 0, $mustunderstand = false, $actor = null, $usernameId = null, $addNonce = true) 23 { 36 24 $this 37 ->initSecurity($mustunderstand, $actor , $envelopeNamespace)25 ->initSecurity($mustunderstand, $actor) 38 26 ->setUsernameToken($username, $usernameId) 39 27 ->setPassword($password, $passwordDigest, $addCreated) 40 28 ->setNonce($addNonce) 41 29 ->setCreated($addCreated) 42 ->setTimestamp($addCreated, $addExpires) 43 ; 30 ->setTimestamp($addCreated, $addExpires); 44 31 } 45 32 /** 33 * @param bool $mustunderstand 34 * @param string $actor 35 * @return WsSecurity 36 */ 37 protected function initSecurity($mustunderstand = false, $actor = null) 38 { 39 $this->security = new Security($mustunderstand, $actor); 40 return $this; 41 } 46 42 /** 47 43 * @return Security … … 51 47 return $this->security; 52 48 } 53 54 49 /** 55 50 * Create the SoapHeader object to send as SoapHeader in the SOAP request. 56 *57 51 * @param string $username 58 52 * @param string $password 59 * @param bool $passwordDigest 60 * @param int $addCreated 61 * @param int $addExpires 62 * @param bool $returnSoapHeader 63 * @param bool $mustunderstand 53 * @param bool $passwordDigest 54 * @param int $addCreated 55 * @param int $addExpires 56 * @param bool $mustunderstand 64 57 * @param string $actor 65 58 * @param string $usernameId 66 * @param bool $addNonce 67 * @param string $envelopeNamespace 68 * 59 * @param bool $addNonce 69 60 * @return \SoapHeader|\SoapVar 70 61 */ 71 public static function createWsSecuritySoapHeader( 72 $username, 73 $password, 74 $passwordDigest = false, 75 $addCreated = 0, 76 $addExpires = 0, 77 $returnSoapHeader = true, 78 $mustunderstand = false, 79 $actor = null, 80 $usernameId = null, 81 $addNonce = true, 82 $envelopeNamespace = Security::ENV_NAMESPACE 83 ) { 84 $self = new WsSecurity($username, $password, $passwordDigest, $addCreated, $addExpires, $mustunderstand, $actor, $usernameId, $addNonce, $envelopeNamespace); 62 public static function createWsSecuritySoapHeader($username, $password, $passwordDigest = false, $addCreated = 0, $addExpires = 0, $returnSoapHeader = true, $mustunderstand = false, $actor = null, $usernameId = null, $addNonce = true) 63 { 64 $self = new WsSecurity($username, $password, $passwordDigest, $addCreated, $addExpires, $mustunderstand, $actor, $usernameId, $addNonce); 85 65 if ($returnSoapHeader) { 86 66 if (!empty($actor)) { 87 67 return new \SoapHeader(Element::NS_WSSE, 'Security', new \SoapVar($self->getSecurity()->toSend(), XSD_ANYXML), $mustunderstand, $actor); 68 } else { 69 return new \SoapHeader(Element::NS_WSSE, 'Security', new \SoapVar($self->getSecurity()->toSend(), XSD_ANYXML), $mustunderstand); 88 70 } 89 90 return new \Soap Header(Element::NS_WSSE, 'Security', new \SoapVar($self->getSecurity()->toSend(), XSD_ANYXML), $mustunderstand);71 } else { 72 return new \SoapVar($self->getSecurity()->toSend(), XSD_ANYXML); 91 73 } 92 93 return new \SoapVar($self->getSecurity()->toSend(), XSD_ANYXML);94 74 } 95 96 /**97 * @param bool $mustunderstand98 * @param string $actor99 * @param string $envelopeNamespace100 *101 * @return WsSecurity102 */103 protected function initSecurity($mustunderstand = false, $actor = null, $envelopeNamespace = Security::ENV_NAMESPACE)104 {105 $this->security = new Security($mustunderstand, $actor, Security::NS_WSSE, $envelopeNamespace);106 107 return $this;108 }109 110 75 /** 111 76 * @param string $username 112 77 * @param string $usernameId 113 *114 78 * @return WsSecurity 115 79 */ … … 119 83 $usernameToken->setUsername(new Username($username)); 120 84 $this->security->setUsernameToken($usernameToken); 121 122 85 return $this; 123 86 } 124 125 87 /** 126 88 * @param string $password 127 * @param bool $passwordDigest 128 * @param int $addCreated 129 * 89 * @param bool $passwordDigest 90 * @param int $addCreated 130 91 * @return WsSecurity 131 92 */ … … 133 94 { 134 95 $this->getUsernameToken()->setPassword(new Password($password, $passwordDigest ? Password::TYPE_PASSWORD_DIGEST : Password::TYPE_PASSWORD_TEXT, is_bool($addCreated) ? 0 : ($addCreated > 0 ? $addCreated : 0))); 135 136 96 return $this; 137 97 } 138 139 98 /** 140 * @param bool $addNonce 141 * 99 * @param bool $addNonce 142 100 * @return WsSecurity 143 101 */ … … 150 108 } 151 109 } 152 153 110 return $this; 154 111 } 155 156 112 /** 157 113 * @param int $addCreated 158 *159 114 * @return WsSecurity 160 115 */ … … 163 118 $passwordDigest = $this->getPassword()->getTypeValue(); 164 119 $timestampValue = $this->getPassword()->getTimestampValue(); 165 if (($addCreated || Password::TYPE_PASSWORD_DIGEST === $passwordDigest) && $timestampValue > 0) {120 if (($addCreated || $passwordDigest === Password::TYPE_PASSWORD_DIGEST) && $timestampValue > 0) { 166 121 $this->getUsernameToken()->setCreated(new Created($timestampValue)); 167 122 } 168 169 123 return $this; 170 124 } 171 172 125 /** 173 126 * @param int $addCreated 174 127 * @param int $addExpires 175 *176 128 * @return WsSecurity 177 129 */ … … 185 137 $this->security->setTimestamp($timestamp); 186 138 } 187 188 139 return $this; 189 140 } 190 191 141 /** 192 142 * @return UsernameToken … … 196 146 return $this->security->getUsernameToken(); 197 147 } 198 199 148 /** 200 149 * @return Password -
woo-dp-internetmarke/trunk/vendor/wsdltophp/wssecurity/tests/TestCase.php
r2115536 r2166154 1 1 <?php 2 3 2 namespace WsdlToPhp\WsSecurity\Tests; 4 3 … … 15 14 ], '', $string))); 16 15 } 17 18 16 public static function assertMatches($pattern, $string) 19 17 { 20 return parent::assert RegExp(sprintf('/%s/', str_replace('/', '\/', $pattern)), $string);18 return parent::assertTrue(preg_match('/' . str_replace('/', '\/', $pattern) . '/', $string) > 0, $string); 21 19 } 22 20 } -
woo-dp-internetmarke/trunk/vendor/wsdltophp/wssecurity/tests/WsSecurityTest.php
r2115536 r2166154 1 1 <?php 2 3 2 namespace WsdlToPhp\WsSecurity\Tests; 4 3 4 use WsdlToPhp\WsSecurity\Tests\TestCase; 5 5 use WsdlToPhp\WsSecurity\WsSecurity; 6 6 7 /** 8 * @internal 9 */ 10 final class WsSecurityTest extends TestCase 7 class WsSecurityTest extends TestCase 11 8 { 12 9 public function testCreateWithExpiresIn() … … 28 25 </wsse:Security>'), $header->data->enc_value); 29 26 } 30 31 27 public function testCreateWithoutExpiresIn() 32 28 { … … 43 39 </wsse:Security>'), $header->data->enc_value); 44 40 } 45 46 41 public function testCreateWithMustUnderstand() 47 42 { … … 58 53 </wsse:Security>'), $header->data->enc_value); 59 54 } 60 61 55 public function testCreateWithMustUnderstandAndActor() 62 56 { … … 73 67 </wsse:Security>'), $header->data->enc_value); 74 68 } 75 76 69 public function testCreateSoapVar() 77 70 { … … 88 81 </wsse:Security>'), $header->enc_value); 89 82 } 90 91 83 public function testCreateWithPasswordDigest() 92 84 { … … 103 95 </wsse:Security>'), $header->enc_value); 104 96 } 105 106 97 public function testCreateWithUsernameId() 107 98 { … … 110 101 $this->assertMatches(self::innerTrim(' 111 102 <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP-ENV:mustunderstand="1" SOAP-ENV:actor="BAR"> 112 <wsse:UsernameToken xmlns:wssu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"wssu:Id="X90I3u8">103 <wsse:UsernameToken wssu:Id="X90I3u8"> 113 104 <wsse:Username>foo</wsse:Username> 114 105 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">bar</wsse:Password> … … 118 109 </wsse:Security>'), $header->data->enc_value); 119 110 } 120 121 111 public function testCreateWithoutNonce() 122 112 { … … 125 115 $this->assertMatches(self::innerTrim(' 126 116 <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP-ENV:mustunderstand="1" SOAP-ENV:actor="BAR"> 127 <wsse:UsernameToken xmlns:wssu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"wssu:Id="X90I3u8">117 <wsse:UsernameToken wssu:Id="X90I3u8"> 128 118 <wsse:Username>foo</wsse:Username> 129 119 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">bar</wsse:Password> … … 132 122 </wsse:Security>'), $header->data->enc_value); 133 123 } 134 135 public function testCreateWithEnvelopeNamespace()136 {137 $header = WsSecurity::createWsSecuritySoapHeader(138 'foo',139 'bar',140 false,141 1459451824,142 0,143 true,144 true,145 'BAR',146 null,147 true,148 'env'149 );150 151 $this->assertInstanceOf('\SoapHeader', $header);152 $this->assertMatches(self::innerTrim('153 <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" env:mustunderstand="1" env:actor="BAR">154 <wsse:UsernameToken>155 <wsse:Username>foo</wsse:Username>156 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">bar</wsse:Password>157 <wssu:Created xmlns:wssu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2016-03-31T19:17:04Z</wssu:Created>158 <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">([a-zA-Z0-9=]*)</wsse:Nonce>159 </wsse:UsernameToken>160 </wsse:Security>'), $header->data->enc_value);161 }162 124 }
Note: See TracChangeset
for help on using the changeset viewer.