Plugin Directory

Changeset 2107025


Ignore:
Timestamp:
06/16/2019 08:07:50 PM (7 years ago)
Author:
xcoobee
Message:

version 1.6.0

Location:
xcoobee/trunk
Files:
24 edited

Legend:

Unmodified
Added
Removed
  • xcoobee/trunk/assets/dist/css/admin/main.css

    r2087166 r2107025  
    203203        opacity: 0.5;
    204204        transition: 0.1s all ease; }
     205      .wrap.xbee .section.shortcodes .example .xbee-copy-text .tt, .wrap.xbee .section.helper-functions .example .xbee-copy-text .tt {
     206        display: none;
     207        position: absolute;
     208        top: 11px;
     209        right: -27px;
     210        background: #e1e1e1;
     211        color: #6b6b6b;
     212        padding: 2px 3px;
     213        font-size: 12px;
     214        z-index: 100; }
    205215      .wrap.xbee .section.shortcodes .example .headline, .wrap.xbee .section.helper-functions .example .headline {
    206216        display: block;
  • xcoobee/trunk/assets/dist/css/admin/main.min.css

    r2087166 r2107025  
    1 .hide,.xbee-hide{display:none !important}#adminmenu li#toplevel_page_xcoobee .wp-menu-image img{height:16px}#xbee-message-logs th,#xbee-data-requests th{padding-left:10px}#xbee-message-logs .status,#xbee-data-requests .status{padding:5px 10px;border-radius:4px;color:#777;background:#e5e5e5}#xbee-message-logs .status.delivered,#xbee-data-requests .status.delivered{background:#f8dda7;color:#94660c}#xbee-message-logs .status.failed,#xbee-data-requests .status.failed{background:#eba3a3;color:#761919}#xbee-message-logs .status.seen,#xbee-data-requests .status.seen{background:#c8d7e1;color:#2e4453}#xbee-message-logs .status.read,#xbee-data-requests .status.read{background:#c6e1c6;color:#5b841b}.wrap.xbee .postbox .inside{margin-bottom:0}.wrap.xbee .radio-buttons-group{display:inline-flex}.wrap.xbee .radio-buttons-group label{width:25%;line-height:28px;padding:0 1em;background:#f2f2f2;box-shadow:1px 1px 1px #d2d2d2}.wrap.xbee .radio-buttons-group label:first-of-type{border-radius:5px 0 0 5px}.wrap.xbee .radio-buttons-group label:last-of-type{border-radius:0 5px 5px 0}.wrap.xbee .radio-buttons-group label.checked{background:#d8d8d8}.wrap.xbee .radio-buttons-group label input{display:none}.wrap.xbee .nav-tab-wrapper{margin-bottom:10px}.wrap.xbee .xbee-notification{display:none;margin-top:10px;cursor:default}.wrap.xbee .xbee-notification .message{border-left:3px #428bca solid;color:#000;background-color:#fff;padding:5px 10px;display:inline-block}.wrap.xbee .xbee-notification.xbee-success .message{border-color:#5cb85c}.wrap.xbee .xbee-notification.xbee-error .message{border-color:#d9534f}.wrap.xbee .xbee-notification.xbee-warning .message{border-color:#f0ad4e}.wrap.xbee .xbee-notification.xbee-info .message{border-color:#5bc0de}.wrap.xbee input#test-keys{display:inline-block}.wrap.xbee .form-table td{vertical-align:top}.wrap.xbee .form-table [disabled]{cursor:not-allowed}.wrap.xbee .form-table.condensed td{padding:0}.wrap.xbee .form-table .wp-picker-container .wp-color-result{margin-right:5px;box-shadow:0 2px 10px #9c9c9c !important;width:27px;height:27px;padding:0;border-radius:50%;display:inline-block;border:0;box-shadow:none}.wrap.xbee .form-table .wp-picker-container .wp-picker-input-wrap .wp-color-picker{margin:0 5px 0 0}.wrap.xbee .form-table .iris-picker{position:absolute;z-index:100;display:none;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,0.2);margin-top:5px}.wrap.xbee .form-table .iris-picker .ui-slider{border:0 !important;margin:0 !important;width:auto !important;height:auto !important;background:none transparent !important}.wrap.xbee .form-table .iris-picker .ui-slider .ui-slider-handle{margin-bottom:0 !important}.wrap.xbee .form-table .iris-error{background-color:#ffafaf}.wrap.xbee .form-table .colorpickpreview{padding:7px 0;line-height:1em;display:inline-block;width:26px;border:1px solid #ddd;font-size:14px}.wrap.xbee .tabs{display:table;width:100%}.wrap.xbee .tabs:after{display:block;content:"";clear:both}.wrap.xbee .tabs .tabs-nav{display:table-cell;vertical-align:top;width:30%}.wrap.xbee .tabs .tabs-nav a.nav{color:#444;text-decoration:none;display:block;padding:10px;cursor:pointer}.wrap.xbee .tabs .tabs-nav a.nav code{background:initial;color:#23282d;padding:0;display:block;font-weight:bold;margin-bottom:5px}.wrap.xbee .tabs .tabs-nav a.nav.active{background:#d2d2d2}.wrap.xbee .tabs .tabs-nav a.nav:hover{background:#eee}.wrap.xbee .tabs .tabs-content{width:70%;display:table-cell;vertical-align:top;border-left:4px #d2d2d2 solid;padding:10px}.wrap.xbee .tabs .tabs-content .content{display:none}.wrap.xbee .tabs .tabs-content .content.active{display:block}.wrap.xbee .section{border:1px #e2e2e2 solid;box-shadow:0 0 1px 1px #f1f1f1;padding:16px;position:relative}.wrap.xbee .section>.headline{position:absolute;line-height:20px;top:-10px;font-size:20px;left:25px;padding:0 10px;background:#fff}.wrap.xbee .section.disabled h2,.wrap.xbee .section.disabled p,.wrap.xbee .section.disabled th,.wrap.xbee .section.disabled label,.wrap.xbee .section.disabled a,.wrap.xbee .section.disabled a:hover{color:#a0a5aa !important}.wrap.xbee .section.shortcodes .example,.wrap.xbee .section.helper-functions .example{background:#0185b9;color:#fff;padding:10px;margin-top:20px;position:relative}.wrap.xbee .section.shortcodes .example .xbee-copy-text:after,.wrap.xbee .section.helper-functions .example .xbee-copy-text:after{content:"";background:url("../../images/icon-copy-white.svg");background-repeat:no-repeat;background-size:contain;width:20px;height:20px;display:inline-block;position:absolute;top:10px;right:10px;cursor:pointer;opacity:1;transition:.1s all ease}.wrap.xbee .section.shortcodes .example .xbee-copy-text:active:after,.wrap.xbee .section.helper-functions .example .xbee-copy-text:active:after{opacity:.5;transition:.1s all ease}.wrap.xbee .section.shortcodes .example .headline,.wrap.xbee .section.helper-functions .example .headline{display:block;font-weight:bold;margin-bottom:10px;text-transform:uppercase;letter-spacing:1px}.wrap.xbee .section.shortcodes .example code,.wrap.xbee .section.helper-functions .example code{padding:0;background:0;line-height:1.5}.wrap.xbee .section.shortcodes table.shortcode-info,.wrap.xbee .section.helper-functions table.shortcode-info{width:100%}.wrap.xbee .section.shortcodes table.shortcode-info tr th,.wrap.xbee .section.shortcodes table.shortcode-info tr td,.wrap.xbee .section.helper-functions table.shortcode-info tr th,.wrap.xbee .section.helper-functions table.shortcode-info tr td{padding:10px;text-align:left}.wrap.xbee .tab .intro{background:#eee;padding:20px}.wrap.xbee .tab .intro:after{content:"";display:block;clear:both}.wrap.xbee .tab .intro .right{width:75%;margin-right:5%;float:left}.wrap.xbee .tab .intro .right h2{margin:0 0 1em 0}.wrap.xbee .tab .intro .right p{margin:0 0 1em 0;font-size:1.2em}.wrap.xbee .tab .intro .left{width:20%;float:left;text-align:right}.wrap.xbee .tab .intro .left img{width:80px}.wrap.xbee .tab .section{margin-top:40px}.wrap.xbee .tab p.message{font-size:1.2em}.wrap.xbee .tab-general input.endpoint-prefix{width:auto;background:#ededed}.wrap.xbee .tab-addons{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.wrap.xbee .tab-addons .addon{width:32.5%;padding:2%;margin-bottom:1.25%;box-sizing:border-box;background:#ededed;text-align:center}.wrap.xbee .tab-addons .addon .name{font-size:18px}.wrap.xbee .tab-addons .addon .icon{height:60px;margin:0 auto}.wrap.xbee .tab-addons .addon .action-links{margin:10px 0 0}.wrap.xbee .tab-addons .addon .action-links li{margin:0}.wrap.xbee .tab-addons:after{content:"";display:block;clear:both}#xbee-overlay{background:rgba(255,255,255,0.85);width:100%;height:100%;display:none;opacity:0;position:fixed;right:0;top:0;z-index:1000000}#xbee-overlay .loader{display:table-cell;vertical-align:middle;text-align:center}#xbee-overlay .loader img{display:block;margin:0 auto}#xbee-overlay .loader img.icon-xcoobee{margin-top:1em;max-width:60px}#xbee-overlay .loader img.loader{margin-top:1em;height:20px}#profile-page .xbee-clear-message-logs{margin-top:10px;display:inline-block;color:#dc3232;text-decoration:none}#profile-page .xbee-clear-message-logs:hover{text-decoration:underline}
     1.hide,.xbee-hide{display:none !important}#adminmenu li#toplevel_page_xcoobee .wp-menu-image img{height:16px}#xbee-message-logs th,#xbee-data-requests th{padding-left:10px}#xbee-message-logs .status,#xbee-data-requests .status{padding:5px 10px;border-radius:4px;color:#777;background:#e5e5e5}#xbee-message-logs .status.delivered,#xbee-data-requests .status.delivered{background:#f8dda7;color:#94660c}#xbee-message-logs .status.failed,#xbee-data-requests .status.failed{background:#eba3a3;color:#761919}#xbee-message-logs .status.seen,#xbee-data-requests .status.seen{background:#c8d7e1;color:#2e4453}#xbee-message-logs .status.read,#xbee-data-requests .status.read{background:#c6e1c6;color:#5b841b}.wrap.xbee .postbox .inside{margin-bottom:0}.wrap.xbee .radio-buttons-group{display:inline-flex}.wrap.xbee .radio-buttons-group label{width:25%;line-height:28px;padding:0 1em;background:#f2f2f2;box-shadow:1px 1px 1px #d2d2d2}.wrap.xbee .radio-buttons-group label:first-of-type{border-radius:5px 0 0 5px}.wrap.xbee .radio-buttons-group label:last-of-type{border-radius:0 5px 5px 0}.wrap.xbee .radio-buttons-group label.checked{background:#d8d8d8}.wrap.xbee .radio-buttons-group label input{display:none}.wrap.xbee .nav-tab-wrapper{margin-bottom:10px}.wrap.xbee .xbee-notification{display:none;margin-top:10px;cursor:default}.wrap.xbee .xbee-notification .message{border-left:3px #428bca solid;color:#000;background-color:#fff;padding:5px 10px;display:inline-block}.wrap.xbee .xbee-notification.xbee-success .message{border-color:#5cb85c}.wrap.xbee .xbee-notification.xbee-error .message{border-color:#d9534f}.wrap.xbee .xbee-notification.xbee-warning .message{border-color:#f0ad4e}.wrap.xbee .xbee-notification.xbee-info .message{border-color:#5bc0de}.wrap.xbee input#test-keys{display:inline-block}.wrap.xbee .form-table td{vertical-align:top}.wrap.xbee .form-table [disabled]{cursor:not-allowed}.wrap.xbee .form-table.condensed td{padding:0}.wrap.xbee .form-table .wp-picker-container .wp-color-result{margin-right:5px;box-shadow:0 2px 10px #9c9c9c !important;width:27px;height:27px;padding:0;border-radius:50%;display:inline-block;border:0;box-shadow:none}.wrap.xbee .form-table .wp-picker-container .wp-picker-input-wrap .wp-color-picker{margin:0 5px 0 0}.wrap.xbee .form-table .iris-picker{position:absolute;z-index:100;display:none;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,0.2);margin-top:5px}.wrap.xbee .form-table .iris-picker .ui-slider{border:0 !important;margin:0 !important;width:auto !important;height:auto !important;background:none transparent !important}.wrap.xbee .form-table .iris-picker .ui-slider .ui-slider-handle{margin-bottom:0 !important}.wrap.xbee .form-table .iris-error{background-color:#ffafaf}.wrap.xbee .form-table .colorpickpreview{padding:7px 0;line-height:1em;display:inline-block;width:26px;border:1px solid #ddd;font-size:14px}.wrap.xbee .tabs{display:table;width:100%}.wrap.xbee .tabs:after{display:block;content:"";clear:both}.wrap.xbee .tabs .tabs-nav{display:table-cell;vertical-align:top;width:30%}.wrap.xbee .tabs .tabs-nav a.nav{color:#444;text-decoration:none;display:block;padding:10px;cursor:pointer}.wrap.xbee .tabs .tabs-nav a.nav code{background:initial;color:#23282d;padding:0;display:block;font-weight:bold;margin-bottom:5px}.wrap.xbee .tabs .tabs-nav a.nav.active{background:#d2d2d2}.wrap.xbee .tabs .tabs-nav a.nav:hover{background:#eee}.wrap.xbee .tabs .tabs-content{width:70%;display:table-cell;vertical-align:top;border-left:4px #d2d2d2 solid;padding:10px}.wrap.xbee .tabs .tabs-content .content{display:none}.wrap.xbee .tabs .tabs-content .content.active{display:block}.wrap.xbee .section{border:1px #e2e2e2 solid;box-shadow:0 0 1px 1px #f1f1f1;padding:16px;position:relative}.wrap.xbee .section>.headline{position:absolute;line-height:20px;top:-10px;font-size:20px;left:25px;padding:0 10px;background:#fff}.wrap.xbee .section.disabled h2,.wrap.xbee .section.disabled p,.wrap.xbee .section.disabled th,.wrap.xbee .section.disabled label,.wrap.xbee .section.disabled a,.wrap.xbee .section.disabled a:hover{color:#a0a5aa !important}.wrap.xbee .section.shortcodes .example,.wrap.xbee .section.helper-functions .example{background:#0185b9;color:#fff;padding:10px;margin-top:20px;position:relative}.wrap.xbee .section.shortcodes .example .xbee-copy-text:after,.wrap.xbee .section.helper-functions .example .xbee-copy-text:after{content:"";background:url("../../images/icon-copy-white.svg");background-repeat:no-repeat;background-size:contain;width:20px;height:20px;display:inline-block;position:absolute;top:10px;right:10px;cursor:pointer;opacity:1;transition:.1s all ease}.wrap.xbee .section.shortcodes .example .xbee-copy-text:active:after,.wrap.xbee .section.helper-functions .example .xbee-copy-text:active:after{opacity:.5;transition:.1s all ease}.wrap.xbee .section.shortcodes .example .xbee-copy-text .tt,.wrap.xbee .section.helper-functions .example .xbee-copy-text .tt{display:none;position:absolute;top:11px;right:-27px;background:#e1e1e1;color:#6b6b6b;padding:2px 3px;font-size:12px;z-index:100}.wrap.xbee .section.shortcodes .example .headline,.wrap.xbee .section.helper-functions .example .headline{display:block;font-weight:bold;margin-bottom:10px;text-transform:uppercase;letter-spacing:1px}.wrap.xbee .section.shortcodes .example code,.wrap.xbee .section.helper-functions .example code{padding:0;background:0;line-height:1.5}.wrap.xbee .section.shortcodes table.shortcode-info,.wrap.xbee .section.helper-functions table.shortcode-info{width:100%}.wrap.xbee .section.shortcodes table.shortcode-info tr th,.wrap.xbee .section.shortcodes table.shortcode-info tr td,.wrap.xbee .section.helper-functions table.shortcode-info tr th,.wrap.xbee .section.helper-functions table.shortcode-info tr td{padding:10px;text-align:left}.wrap.xbee .tab .intro{background:#eee;padding:20px}.wrap.xbee .tab .intro:after{content:"";display:block;clear:both}.wrap.xbee .tab .intro .right{width:75%;margin-right:5%;float:left}.wrap.xbee .tab .intro .right h2{margin:0 0 1em 0}.wrap.xbee .tab .intro .right p{margin:0 0 1em 0;font-size:1.2em}.wrap.xbee .tab .intro .left{width:20%;float:left;text-align:right}.wrap.xbee .tab .intro .left img{width:80px}.wrap.xbee .tab .section{margin-top:40px}.wrap.xbee .tab p.message{font-size:1.2em}.wrap.xbee .tab-general input.endpoint-prefix{width:auto;background:#ededed}.wrap.xbee .tab-addons{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.wrap.xbee .tab-addons .addon{width:32.5%;padding:2%;margin-bottom:1.25%;box-sizing:border-box;background:#ededed;text-align:center}.wrap.xbee .tab-addons .addon .name{font-size:18px}.wrap.xbee .tab-addons .addon .icon{height:60px;margin:0 auto}.wrap.xbee .tab-addons .addon .action-links{margin:10px 0 0}.wrap.xbee .tab-addons .addon .action-links li{margin:0}.wrap.xbee .tab-addons:after{content:"";display:block;clear:both}#xbee-overlay{background:rgba(255,255,255,0.85);width:100%;height:100%;display:none;opacity:0;position:fixed;right:0;top:0;z-index:1000000}#xbee-overlay .loader{display:table-cell;vertical-align:middle;text-align:center}#xbee-overlay .loader img{display:block;margin:0 auto}#xbee-overlay .loader img.icon-xcoobee{margin-top:1em;max-width:60px}#xbee-overlay .loader img.loader{margin-top:1em;height:20px}#profile-page .xbee-clear-message-logs{margin-top:10px;display:inline-block;color:#dc3232;text-decoration:none}#profile-page .xbee-clear-message-logs:hover{text-decoration:underline}
  • xcoobee/trunk/assets/dist/js/admin/scripts.js

    r2070193 r2107025  
    259259    });
    260260    /**
    261      * Preventing typing values less/greater than the min/max values of a number input field.
     261     * Prevent typing values less/greater than the min/max values of a number input field.
    262262     */
    263263
     
    281281      });
    282282    });
     283    /**
     284     * Create and/or display tooltip on mouseover.
     285     */
     286
     287    $('.xbee-tooltip').on('mouseover', function () {
     288      var tooltip = $(this).children('.tt');
     289
     290      if (tooltip.length === 0) {
     291        $(this).append("<span class=\"tt\">".concat($(this).data('tooltip'), "</span>"));
     292      }
     293
     294      $(this).find('.tt').show();
     295    });
     296    /**
     297     * Hide tooltip on mouseout.
     298     */
     299
     300    $('.xbee-tooltip').on('mouseout', function () {
     301      $(this).find('.tt').hide();
     302    });
    283303  });
    284304})(jQuery, window, document);
  • xcoobee/trunk/assets/dist/js/admin/scripts.min.js

    r2070193 r2107025  
    1 "use strict";!function(o,e,a,t){e.xbeeShowSpinner=function(e){o('.xbee-spinner[data-spinner="'+e+'"]').css("display","inline-block")},e.xbeeHideSpinner=function(e){o('.xbee-spinner[data-spinner="'+e+'"').css("display","none")},e.xbeeLoadOverlay=function(){if(0===o("#xbee-overlay").length){var e=o("<div></div>").attr("id","xbee-overlay"),a=o("<div></div>").attr("class","loader"),t=o('<img class="icon-xcoobee" />').attr("src",xbeeAdminParams.images.iconXcooBee),s=o('<img class="loader" />').attr("src",xbeeAdminParams.images.loader);o(t).appendTo(a),o(s).appendTo(a),o(a).appendTo(e),o("body").append(e)}},e.xbeeShowOverlay=function(){o("#xbee-overlay").css("display","table").animate({opacity:1},200)},e.xbeeHideOverlay=function(){o("#xbee-overlay").animate({opacity:0},200,function(){return o("#xbee-overlay").css("display","none")})},e.xbeeNotification=function(e,a,t){(e=o('.xbee-notification[data-notification="'+e+'"]')).attr("class","xbee-notification");var s="xbee-"+a;e.addClass(s),e.html('<span class="message">'+t+"</span>"),e.slideDown(500)},e.xbeeInputDisallowChars=function(e,t){e.on("paste",function(e){e.preventDefault()}),e.on("keypress",function(a){t.forEach(function(e){a.which===e.charCodeAt(0)&&a.preventDefault()})})},o(a).ready(function(){o(".xbee-notification").on("click",function(){o(this).slideUp(500)}),o("[data-xbee-disallow-chars]").each(function(){var e=o(this).data("xbee-disallow-chars").split(""),a=o(this);xbeeInputDisallowChars(a,e)}),o(".radio-buttons-group input").each(function(){if(o(this).is(":checked")){var e=o(this).attr("id");o('.radio-buttons-group label[for="'+e+'"]').addClass("checked")}}),o(".radio-buttons-group label").on("click",function(){o(this).closest(".radio-buttons-group").find("input").prop("checked",!1),o(this).closest(".radio-buttons-group").find("label").removeClass("checked"),o(this).find("input").prop("checked",!0),o(this).addClass("checked")}),o(".xbee .tabs .tabs-nav .nav").on("click",function(e){e.preventDefault();var a=o(this).closest(".tabs"),t=o(this);if(!t.hasClass("active")){var s=t.data("nav");a.find(".tabs-nav .nav").removeClass("active"),a.find(".tabs-content .content").removeClass("active"),t.addClass("active"),o('.tabs-content .content[data-nav="'+s+'"]').addClass("active")}}),xbeeLoadOverlay(),o("#xbee-clear-message-logs").on("click",function(e){e.preventDefault();var a={action:"xbee_clear_message_logs",userId:o(e.target).data("userId")},t="";o.ajax({url:xbeeAdminParams.ajaxUrl,method:"post",data:a,success:function(e){e=JSON.parse(e),t=e.result?xbeeAdminParams.messages.successClearMessageLogs:e.errors?e.errors.join(" "):xbeeAdminParams.messages.errorClearMessageLogs,o("#xbee-message-logs tbody tr").css("background-color","#e1615f").fadeOut(500,function(){o("#xbee-message-logs tbody tr").remove(),o("#xbee-message-logs tbody").append("<tr><td>"+t+"</td></tr>")}),o(".xbee-information .xbee-clear-message-logs").remove()},error:function(){xbeeHideOverlay()}})}),o("#xbee-settings-general #test-keys").on("click",function(e){e.preventDefault();var a={action:"xbee_test_keys",apiKey:o('#xbee-settings-general [name="xbee_api_key"]').val(),apiSecret:o('#xbee-settings-general [name="xbee_api_secret"]').val()},t="";o.ajax({url:xbeeAdminParams.ajaxUrl,method:"post",data:a,beforeSend:function(){xbeeShowOverlay()},success:function(e){xbeeHideOverlay(),e=JSON.parse(e),t=e.result?xbeeAdminParams.messages.successValidKeys:e.errors?e.errors.join(" "):xbeeAdminParams.messages.errorTestKeys,xbeeNotification("test-api-keys",e.status,t)},error:function(){xbeeHideOverlay(),xbeeNotification("test-api-keys",response.status,xbeeAdminParams.messages.errorTestKeys.message)}})}),o("textarea, input").each(function(){var a=o(this),t=a.attr("maxlength");t&&a.on("keyup change paste",function(e){"1"==a.data("xbee-maxlen")&&e.target.value.length>=t?(a.css("border-color","#f00"),a.css("box-shadow","0 0 5px #ff7e7e"),setTimeout(function(){a.css("border-color",""),a.css("box-shadow","")},100)):e.target.value.length>=t?a.data("xbee-maxlen","1"):a.data("xbee-maxlen","0")})}),o('input[type="number"]').each(function(){var t=o(this),s=Number(t.attr("max")),n=Number(t.attr("min"));t.on("keyup keydown change paste",function(e){var a=Number(e.target.value);console.log(s),"number"==typeof s&&s<a&&(t.val(s),e.preventDefault()),"number"==typeof n&&a<n&&(t.val(n),e.preventDefault())})})})}(jQuery,window,document);
     1"use strict";!function(o,e,a){e.xbeeShowSpinner=function(e){o('.xbee-spinner[data-spinner="'+e+'"]').css("display","inline-block")},e.xbeeHideSpinner=function(e){o('.xbee-spinner[data-spinner="'+e+'"').css("display","none")},e.xbeeLoadOverlay=function(){if(0===o("#xbee-overlay").length){var e=o("<div></div>").attr("id","xbee-overlay"),a=o("<div></div>").attr("class","loader"),t=o('<img class="icon-xcoobee" />').attr("src",xbeeAdminParams.images.iconXcooBee),s=o('<img class="loader" />').attr("src",xbeeAdminParams.images.loader);o(t).appendTo(a),o(s).appendTo(a),o(a).appendTo(e),o("body").append(e)}},e.xbeeShowOverlay=function(){o("#xbee-overlay").css("display","table").animate({opacity:1},200)},e.xbeeHideOverlay=function(){o("#xbee-overlay").animate({opacity:0},200,function(){return o("#xbee-overlay").css("display","none")})},e.xbeeNotification=function(e,a,t){(e=o('.xbee-notification[data-notification="'+e+'"]')).attr("class","xbee-notification");var s="xbee-"+a;e.addClass(s),e.html('<span class="message">'+t+"</span>"),e.slideDown(500)},e.xbeeInputDisallowChars=function(e,t){e.on("paste",function(e){e.preventDefault()}),e.on("keypress",function(a){t.forEach(function(e){a.which===e.charCodeAt(0)&&a.preventDefault()})})},o(a).ready(function(){o(".xbee-notification").on("click",function(){o(this).slideUp(500)}),o("[data-xbee-disallow-chars]").each(function(){var e=o(this).data("xbee-disallow-chars").split(""),a=o(this);xbeeInputDisallowChars(a,e)}),o(".radio-buttons-group input").each(function(){if(o(this).is(":checked")){var e=o(this).attr("id");o('.radio-buttons-group label[for="'+e+'"]').addClass("checked")}}),o(".radio-buttons-group label").on("click",function(){o(this).closest(".radio-buttons-group").find("input").prop("checked",!1),o(this).closest(".radio-buttons-group").find("label").removeClass("checked"),o(this).find("input").prop("checked",!0),o(this).addClass("checked")}),o(".xbee .tabs .tabs-nav .nav").on("click",function(e){e.preventDefault();var a=o(this).closest(".tabs"),t=o(this);if(!t.hasClass("active")){var s=t.data("nav");a.find(".tabs-nav .nav").removeClass("active"),a.find(".tabs-content .content").removeClass("active"),t.addClass("active"),o('.tabs-content .content[data-nav="'+s+'"]').addClass("active")}}),xbeeLoadOverlay(),o("#xbee-clear-message-logs").on("click",function(e){e.preventDefault();var a={action:"xbee_clear_message_logs",userId:o(e.target).data("userId")},t="";o.ajax({url:xbeeAdminParams.ajaxUrl,method:"post",data:a,success:function(e){e=JSON.parse(e),t=e.result?xbeeAdminParams.messages.successClearMessageLogs:e.errors?e.errors.join(" "):xbeeAdminParams.messages.errorClearMessageLogs,o("#xbee-message-logs tbody tr").css("background-color","#e1615f").fadeOut(500,function(){o("#xbee-message-logs tbody tr").remove(),o("#xbee-message-logs tbody").append("<tr><td>"+t+"</td></tr>")}),o(".xbee-information .xbee-clear-message-logs").remove()},error:function(){xbeeHideOverlay()}})}),o("#xbee-settings-general #test-keys").on("click",function(e){e.preventDefault();var a={action:"xbee_test_keys",apiKey:o('#xbee-settings-general [name="xbee_api_key"]').val(),apiSecret:o('#xbee-settings-general [name="xbee_api_secret"]').val()},t="";o.ajax({url:xbeeAdminParams.ajaxUrl,method:"post",data:a,beforeSend:function(){xbeeShowOverlay()},success:function(e){xbeeHideOverlay(),e=JSON.parse(e),t=e.result?xbeeAdminParams.messages.successValidKeys:e.errors?e.errors.join(" "):xbeeAdminParams.messages.errorTestKeys,xbeeNotification("test-api-keys",e.status,t)},error:function(){xbeeHideOverlay(),xbeeNotification("test-api-keys",response.status,xbeeAdminParams.messages.errorTestKeys.message)}})}),o("textarea, input").each(function(){var a=o(this),t=a.attr("maxlength");t&&a.on("keyup change paste",function(e){"1"==a.data("xbee-maxlen")&&e.target.value.length>=t?(a.css("border-color","#f00"),a.css("box-shadow","0 0 5px #ff7e7e"),setTimeout(function(){a.css("border-color",""),a.css("box-shadow","")},100)):e.target.value.length>=t?a.data("xbee-maxlen","1"):a.data("xbee-maxlen","0")})}),o('input[type="number"]').each(function(){var t=o(this),s=Number(t.attr("max")),n=Number(t.attr("min"));t.on("keyup keydown change paste",function(e){var a=Number(e.target.value);console.log(s),"number"==typeof s&&s<a&&(t.val(s),e.preventDefault()),"number"==typeof n&&a<n&&(t.val(n),e.preventDefault())})}),o(".xbee-tooltip").on("mouseover",function(){0===o(this).children(".tt").length&&o(this).append('<span class="tt">'.concat(o(this).data("tooltip"),"</span>")),o(this).find(".tt").show()}),o(".xbee-tooltip").on("mouseout",function(){o(this).find(".tt").hide()})})}(jQuery,window,document);
  • xcoobee/trunk/assets/dist/js/scripts.min.js

    r2055454 r2107025  
    1 "use strict";!function(r,t,o,m){t.xbeeLoadModal=function(){var e=0<arguments.length&&arguments[0]!==m?arguments[0]:"",t=1<arguments.length&&arguments[1]!==m?arguments[1]:"",a=2<arguments.length&&arguments[2]!==m?arguments[2]:"",o=3<arguments.length&&arguments[3]!==m?arguments[3]:"";if(0===r('.xbee-modal[data-xbee-modal="'+e+'"]').length){var s=r("<div></div>").addClass("xbee-modal-container "+o),d=r("<div></div>").addClass("xbee-modal").attr("data-xbee-modal",e).attr("data-xbee-modal-type",o),n=r("<div></div>").addClass("xbee-modal-header"),l=r("<span></span>").addClass("xbee-modal-title").html(t),i=r("<img />").addClass("xbee-modal-close").attr("src",xbeeParams.images.close),c=r("<div></div>").addClass("xbee-modal-message").html(a);r(l).appendTo(n),r(i).appendTo(n),r(n).appendTo(d),r(c).appendTo(d),r(d).appendTo(s),r("body").append(s)}},t.xbeeIsLoggedIn=function(){localStorage.setItem("xbeeStatusCheck",!1);var e=o.getElementById("xbeeStatusCheck");e||((e=o.createElement("iframe")).id="xbeeStatusCheck",e.style.width="0",e.style.height="0",e.style.display="none",o.body.appendChild(e));var a="https://app.xcoobee.net";for("test"===xbeeParams.env&&(a="https://testapp.xcoobee.net"),e.setAttribute("src",a+"/scripts/status/statuscheck.html"),e.onload=function(){this.contentWindow.postMessage(JSON.stringify({action:"loginstatus"}),a)},t.addEventListener("message",function(e){var t=JSON.parse(e.data);e.origin===a&&(localStorage.setItem("xbeeLogin",t.loginstatus),localStorage.setItem("xbeeStatusCheck",!0))},!1);"false"===localStorage.getItem("xbeeStatusCheck");)return!(!localStorage.xbeeLogin||"true"!==localStorage.xbeeLogin)},r(o).ready(function(){r(o).on("click",".xbee-modal-close",function(){r(this).closest(".xbee-modal-container").remove()})})}(jQuery,window,document);
     1"use strict";!function(p,t,o,x){t.xbeeLoadModal=function(e,t,a,o){var s=0<arguments.length&&e!==x?e:"",d=1<arguments.length&&t!==x?t:"",n=2<arguments.length&&a!==x?a:"",l=3<arguments.length&&o!==x?o:"";if(0===p('.xbee-modal[data-xbee-modal="'+s+'"]').length){var i=p("<div></div>").addClass("xbee-modal-container "+l),c=p("<div></div>").addClass("xbee-modal").attr("data-xbee-modal",s).attr("data-xbee-modal-type",l),r=p("<div></div>").addClass("xbee-modal-header"),m=p("<span></span>").addClass("xbee-modal-title").html(d),b=p("<img />").addClass("xbee-modal-close").attr("src",xbeeParams.images.close),g=p("<div></div>").addClass("xbee-modal-message").html(n);p(m).appendTo(r),p(b).appendTo(r),p(r).appendTo(c),p(g).appendTo(c),p(c).appendTo(i),p("body").append(i)}},t.xbeeIsLoggedIn=function(){localStorage.setItem("xbeeStatusCheck",!1);var e=o.getElementById("xbeeStatusCheck");e||((e=o.createElement("iframe")).id="xbeeStatusCheck",e.style.width="0",e.style.height="0",e.style.display="none",o.body.appendChild(e));var a="https://app.xcoobee.net";for("test"===xbeeParams.env&&(a="https://testapp.xcoobee.net"),e.setAttribute("src",a+"/scripts/status/statuscheck.html"),e.onload=function(){this.contentWindow.postMessage(JSON.stringify({action:"loginstatus"}),a)},t.addEventListener("message",function(e){var t=JSON.parse(e.data);e.origin===a&&(localStorage.setItem("xbeeLogin",t.loginstatus),localStorage.setItem("xbeeStatusCheck",!0))},!1);"false"===localStorage.getItem("xbeeStatusCheck");)return!(!localStorage.xbeeLogin||"true"!==localStorage.xbeeLogin)},p(o).ready(function(){p(o).on("click",".xbee-modal-close",function(){p(this).closest(".xbee-modal-container").remove()})})}(jQuery,window,document);
  • xcoobee/trunk/includes/sdk/README.md

    r2087166 r2107025  
    603603    - result will contain true
    604604- status 400 if error
     605
     606
     607## declineConsentChange(consentId[, config])
     608Use this call to open dispute on consent.
     609
     610options:
     611```
     612consentId => the consent which should be disputed
     613config    => optional: the config object
     614```
     615
     616### response
     617
     618standard JSON response object
     619- status 200 if success:
     620    - result will contain true
     621- status 400 if error
     622
    605623
    606624## confirmDataDelete(consentId[, config])
     
    930948```
    931949$options['custom'] = [
    932     [
    933         'name'  => 'full_name',
    934         'value' => 'John Doe',
    935     ],
    936     [
    937         'name'  => 'age',
    938         'value' => 29
    939     ],
     950    'full_name' => 'John Doe',
     951    'age'       => 29
    940952]
    941953```
  • xcoobee/trunk/includes/sdk/composer.lock

    r2088395 r2107025  
    22    "_readme": [
    33        "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#composer-lock-the-lock-file",
     4        "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
    55        "This file is @generated automatically"
    66    ],
     
    270270        {
    271271            "name": "phpseclib/phpseclib",
    272             "version": "2.0.15",
     272            "version": "2.0.18",
    273273            "source": {
    274274                "type": "git",
    275275                "url": "https://github.com/phpseclib/phpseclib.git",
    276                 "reference": "11cf67cf78dc4acb18dc9149a57be4aee5036ce0"
    277             },
    278             "dist": {
    279                 "type": "zip",
    280                 "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/11cf67cf78dc4acb18dc9149a57be4aee5036ce0",
    281                 "reference": "11cf67cf78dc4acb18dc9149a57be4aee5036ce0",
     276                "reference": "60519001db8d791215a822efd366d24cafee9e63"
     277            },
     278            "dist": {
     279                "type": "zip",
     280                "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/60519001db8d791215a822efd366d24cafee9e63",
     281                "reference": "60519001db8d791215a822efd366d24cafee9e63",
    282282                "shasum": ""
    283283            },
     
    358358                "x509"
    359359            ],
    360             "time": "2019-03-10T16:53:45+00:00"
     360            "time": "2019-06-13T06:15:54+00:00"
    361361        },
    362362        {
     
    905905        {
    906906            "name": "php-mock/php-mock",
    907             "version": "2.1.1",
     907            "version": "2.1.2",
    908908            "source": {
    909909                "type": "git",
    910910                "url": "https://github.com/php-mock/php-mock.git",
    911                 "reference": "e2eea560cb01502148ca895221f0b58806c5a4df"
    912             },
    913             "dist": {
    914                 "type": "zip",
    915                 "url": "https://api.github.com/repos/php-mock/php-mock/zipball/e2eea560cb01502148ca895221f0b58806c5a4df",
    916                 "reference": "e2eea560cb01502148ca895221f0b58806c5a4df",
     911                "reference": "35379d7b382b787215617f124662d9ead72c15e3"
     912            },
     913            "dist": {
     914                "type": "zip",
     915                "url": "https://api.github.com/repos/php-mock/php-mock/zipball/35379d7b382b787215617f124662d9ead72c15e3",
     916                "reference": "35379d7b382b787215617f124662d9ead72c15e3",
    917917                "shasum": ""
    918918            },
     
    937937                        "tests/"
    938938                    ]
    939                 },
    940                 "files": [
    941                     "autoload.php"
    942                 ]
     939                }
    943940            },
    944941            "notification-url": "https://packagist.org/downloads/",
     
    965962                "test double"
    966963            ],
    967             "time": "2019-04-05T22:15:19+00:00"
     964            "time": "2019-06-05T20:10:01+00:00"
    968965        },
    969966        {
     
    10221019        {
    10231020            "name": "php-mock/php-mock-phpunit",
    1024             "version": "2.3.0",
     1021            "version": "2.4.0",
    10251022            "source": {
    10261023                "type": "git",
    10271024                "url": "https://github.com/php-mock/php-mock-phpunit.git",
    1028                 "reference": "d49b8c5c6e5e0119b98c250012a68ecb0fac65ab"
    1029             },
    1030             "dist": {
    1031                 "type": "zip",
    1032                 "url": "https://api.github.com/repos/php-mock/php-mock-phpunit/zipball/d49b8c5c6e5e0119b98c250012a68ecb0fac65ab",
    1033                 "reference": "d49b8c5c6e5e0119b98c250012a68ecb0fac65ab",
     1025                "reference": "04f78fe83df4855654373188aca8cccf8bf472ce"
     1026            },
     1027            "dist": {
     1028                "type": "zip",
     1029                "url": "https://api.github.com/repos/php-mock/php-mock-phpunit/zipball/04f78fe83df4855654373188aca8cccf8bf472ce",
     1030                "reference": "04f78fe83df4855654373188aca8cccf8bf472ce",
    10341031                "shasum": ""
    10351032            },
     
    10721069                "test double"
    10731070            ],
    1074             "time": "2019-04-06T07:29:41+00:00"
     1071            "time": "2019-06-07T12:26:51+00:00"
    10751072        },
    10761073        {
     
    12281225        {
    12291226            "name": "phpspec/prophecy",
    1230             "version": "1.8.0",
     1227            "version": "1.8.1",
    12311228            "source": {
    12321229                "type": "git",
    12331230                "url": "https://github.com/phpspec/prophecy.git",
    1234                 "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06"
    1235             },
    1236             "dist": {
    1237                 "type": "zip",
    1238                 "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
    1239                 "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
     1231                "reference": "1927e75f4ed19131ec9bcc3b002e07fb1173ee76"
     1232            },
     1233            "dist": {
     1234                "type": "zip",
     1235                "url": "https://api.github.com/repos/phpspec/prophecy/zipball/1927e75f4ed19131ec9bcc3b002e07fb1173ee76",
     1236                "reference": "1927e75f4ed19131ec9bcc3b002e07fb1173ee76",
    12401237                "shasum": ""
    12411238            },
     
    12581255            },
    12591256            "autoload": {
    1260                 "psr-0": {
    1261                     "Prophecy\\": "src/"
     1257                "psr-4": {
     1258                    "Prophecy\\": "src/Prophecy"
    12621259                }
    12631260            },
     
    12871284                "stub"
    12881285            ],
    1289             "time": "2018-08-05T17:53:17+00:00"
     1286            "time": "2019-06-13T12:50:23+00:00"
    12901287        },
    12911288        {
     
    14451442        {
    14461443            "name": "phpunit/php-timer",
    1447             "version": "2.1.1",
     1444            "version": "2.1.2",
    14481445            "source": {
    14491446                "type": "git",
    14501447                "url": "https://github.com/sebastianbergmann/php-timer.git",
    1451                 "reference": "8b389aebe1b8b0578430bda0c7c95a829608e059"
    1452             },
    1453             "dist": {
    1454                 "type": "zip",
    1455                 "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/8b389aebe1b8b0578430bda0c7c95a829608e059",
    1456                 "reference": "8b389aebe1b8b0578430bda0c7c95a829608e059",
     1448                "reference": "1038454804406b0b5f5f520358e78c1c2f71501e"
     1449            },
     1450            "dist": {
     1451                "type": "zip",
     1452                "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/1038454804406b0b5f5f520358e78c1c2f71501e",
     1453                "reference": "1038454804406b0b5f5f520358e78c1c2f71501e",
    14571454                "shasum": ""
    14581455            },
     
    14901487                "timer"
    14911488            ],
    1492             "time": "2019-02-20T10:12:59+00:00"
     1489            "time": "2019-06-07T04:22:29+00:00"
    14931490        },
    14941491        {
     
    15431540        {
    15441541            "name": "phpunit/phpunit",
    1545             "version": "7.5.11",
     1542            "version": "7.5.12",
    15461543            "source": {
    15471544                "type": "git",
    15481545                "url": "https://github.com/sebastianbergmann/phpunit.git",
    1549                 "reference": "64cb33f5b520da490a7b13149d39b43cf3c890c6"
    1550             },
    1551             "dist": {
    1552                 "type": "zip",
    1553                 "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/64cb33f5b520da490a7b13149d39b43cf3c890c6",
    1554                 "reference": "64cb33f5b520da490a7b13149d39b43cf3c890c6",
     1546                "reference": "9ba59817745b0fe0c1a5a3032dfd4a6d2994ad1c"
     1547            },
     1548            "dist": {
     1549                "type": "zip",
     1550                "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/9ba59817745b0fe0c1a5a3032dfd4a6d2994ad1c",
     1551                "reference": "9ba59817745b0fe0c1a5a3032dfd4a6d2994ad1c",
    15551552                "shasum": ""
    15561553            },
     
    16231620                "xunit"
    16241621            ],
    1625             "time": "2019-05-14T04:53:02+00:00"
     1622            "time": "2019-05-28T11:59:40+00:00"
    16261623        },
    16271624        {
     
    22512248        {
    22522249            "name": "theseer/tokenizer",
    2253             "version": "1.1.2",
     2250            "version": "1.1.3",
    22542251            "source": {
    22552252                "type": "git",
    22562253                "url": "https://github.com/theseer/tokenizer.git",
    2257                 "reference": "1c42705be2b6c1de5904f8afacef5895cab44bf8"
    2258             },
    2259             "dist": {
    2260                 "type": "zip",
    2261                 "url": "https://api.github.com/repos/theseer/tokenizer/zipball/1c42705be2b6c1de5904f8afacef5895cab44bf8",
    2262                 "reference": "1c42705be2b6c1de5904f8afacef5895cab44bf8",
     2254                "reference": "11336f6f84e16a720dae9d8e6ed5019efa85a0f9"
     2255            },
     2256            "dist": {
     2257                "type": "zip",
     2258                "url": "https://api.github.com/repos/theseer/tokenizer/zipball/11336f6f84e16a720dae9d8e6ed5019efa85a0f9",
     2259                "reference": "11336f6f84e16a720dae9d8e6ed5019efa85a0f9",
    22632260                "shasum": ""
    22642261            },
     
    22872284            ],
    22882285            "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
    2289             "time": "2019-04-04T09:56:43+00:00"
     2286            "time": "2019-06-13T22:48:21+00:00"
    22902287        },
    22912288        {
  • xcoobee/trunk/includes/sdk/src/XcooBee/Core/Api/Bees.php

    r2087166 r2107025  
    132132
    133133        $params = [
    134             'user_reference'    => array_key_exists('userReference', $options['process'])
     134            'user_reference' => array_key_exists('userReference', $options['process'])
    135135                ? $options['process']['userReference']
    136136                : null,
     
    141141        }
    142142
    143         if (array_key_exists('custom', $options)) {
    144             $params['custom'] = $options['custom'];
     143        if (array_key_exists('custom', $options) && is_array($options['custom'])) {
     144            $params['custom'] = [];
     145            foreach ($options['custom'] as $name => $value) {
     146                $params['custom'][] = [
     147                    'name'  => $name,
     148                    'value' => $value
     149                ];
     150            }
    145151        }
    146152
  • xcoobee/trunk/includes/sdk/src/XcooBee/Core/Api/Consents.php

    r2087166 r2107025  
    146146        $mutation = 'mutation confirmConsentChange($consentId: String!) {
    147147            confirm_consent_change(consent_cursor: $consentId) {
     148                consent_cursor
     149            }
     150        }';
     151
     152        $ConsentChangeResponse = $this->_request($mutation, ['consentId' => $consentId], $config);
     153        if ($ConsentChangeResponse->code !== 200) {
     154            return $ConsentChangeResponse;
     155        }
     156
     157        $response = new Response();
     158        $response->code = 200;
     159        $response->result = true;
     160
     161        return $response;
     162    }
     163
     164    /**
     165     * Opens consent related dispute
     166     *
     167     * @param string $consentId
     168     * @param array $config
     169     *
     170     * @return Response
     171     *
     172     * @throws XcooBeeException
     173     */
     174    public function declineConsentChange($consentId, $config = [])
     175    {
     176        if (!$consentId) {
     177            throw new XcooBeeException('No "consent" provided');
     178        }
     179
     180        $mutation = 'mutation declineConsentChange($consentId: String!) {
     181            decline_consent_change(consent_cursor: $consentId) {
    148182                consent_cursor
    149183            }
  • xcoobee/trunk/includes/sdk/test/src/XcooBee/Core/Api/ConsentsTest.php

    r2087166 r2107025  
    354354            'apiSecret' => 'testapisecret'
    355355        ]);
     356
     357        $this->assertEquals(200, $response->code);
     358        $this->assertTrue($response->result);
     359    }
     360
     361    /**
     362     * @expectedException \XcooBee\Exception\XcooBeeException
     363     */
     364    public function testDeclineConsentChange_noConsentProvided()
     365    {
     366        $consentsMock = $this->_getMock(\XcooBee\Core\Api\Consents::class, [
     367            '_request' => true,
     368        ]);
     369
     370        $consentsMock->declineConsentChange(null);
     371    }
     372
     373    public function testDeclineConsentChange()
     374    {
     375        $consentsMock = $this->_getMock(\XcooBee\Core\Api\Consents::class, [
     376            '_request' => $this->_createResponse(200, "testData")
     377        ]);
     378
     379        $consentsMock->expects($this->once())
     380            ->method('_request')
     381            ->will($this->returnCallback(function ($query, $params) {
     382                $this->assertEquals(['consentId' => 'testconsentId'], $params);
     383            }));
     384
     385        $response = $consentsMock->declineConsentChange('testconsentId');
    356386
    357387        $this->assertEquals(200, $response->code);
  • xcoobee/trunk/includes/sdk/vendor/autoload.php

    r2088395 r2107025  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit1582b5be159999cc9ce372091132b1e9::getLoader();
     7return ComposerAutoloaderInit32421748f5780922331a7f2baac98cfe::getLoader();
  • xcoobee/trunk/includes/sdk/vendor/composer/ClassLoader.php

    r2008115 r2107025  
    280280    public function setApcuPrefix($apcuPrefix)
    281281    {
    282         $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;
     282        $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
    283283    }
    284284
     
    378378            while (false !== $lastPos = strrpos($subPath, '\\')) {
    379379                $subPath = substr($subPath, 0, $lastPos);
    380                 $search = $subPath.'\\';
     380                $search = $subPath . '\\';
    381381                if (isset($this->prefixDirsPsr4[$search])) {
    382382                    $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
  • xcoobee/trunk/includes/sdk/vendor/composer/LICENSE

    r2055454 r2107025  
    1 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
    2 Upstream-Name: Composer
    3 Upstream-Contact: Jordi Boggiano <j.boggiano@seld.be>
    4 Source: https://github.com/composer/composer
     1Copyright (c) Nils Adermann, Jordi Boggiano
    52
    6 Files: *
    7 Copyright: 2016, Nils Adermann <naderman@naderman.de>
    8            2016, Jordi Boggiano <j.boggiano@seld.be>
    9 License: Expat
     3Permission is hereby granted, free of charge, to any person obtaining a copy
     4of this software and associated documentation files (the "Software"), to deal
     5in the Software without restriction, including without limitation the rights
     6to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     7copies of the Software, and to permit persons to whom the Software is furnished
     8to do so, subject to the following conditions:
    109
    11 Files: src/Composer/Util/TlsHelper.php
    12 Copyright: 2016, Nils Adermann <naderman@naderman.de>
    13            2016, Jordi Boggiano <j.boggiano@seld.be>
    14            2013, Evan Coury <me@evancoury.com>
    15 License: Expat and BSD-2-Clause
     10The above copyright notice and this permission notice shall be included in all
     11copies or substantial portions of the Software.
    1612
    17 License: BSD-2-Clause
    18  Redistribution and use in source and binary forms, with or without modification,
    19  are permitted provided that the following conditions are met:
    20  .
    21      * Redistributions of source code must retain the above copyright notice,
    22        this list of conditions and the following disclaimer.
    23  .
    24      * Redistributions in binary form must reproduce the above copyright notice,
    25        this list of conditions and the following disclaimer in the documentation
    26        and/or other materials provided with the distribution.
    27  .
    28  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
    29  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    30  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    31  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
    32  ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
    33  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
    34  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
    35  ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    36  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    37  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    38 
    39 License: Expat
    40  Permission is hereby granted, free of charge, to any person obtaining a copy
    41  of this software and associated documentation files (the "Software"), to deal
    42  in the Software without restriction, including without limitation the rights
    43  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    44  copies of the Software, and to permit persons to whom the Software is furnished
    45  to do so, subject to the following conditions:
    46  .
    47  The above copyright notice and this permission notice shall be included in all
    48  copies or substantial portions of the Software.
    49  .
    50  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    51  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    52  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    53  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    54  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    55  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    56  THE SOFTWARE.
     13THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     14IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     15FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
     16AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     17LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     18OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
     19THE SOFTWARE.
  • xcoobee/trunk/includes/sdk/vendor/composer/autoload_real.php

    r2088395 r2107025  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit1582b5be159999cc9ce372091132b1e9
     5class ComposerAutoloaderInit32421748f5780922331a7f2baac98cfe
    66{
    77    private static $loader;
     
    2020        }
    2121
    22         spl_autoload_register(array('ComposerAutoloaderInit1582b5be159999cc9ce372091132b1e9', 'loadClassLoader'), true, true);
     22        spl_autoload_register(array('ComposerAutoloaderInit32421748f5780922331a7f2baac98cfe', 'loadClassLoader'), true, true);
    2323        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    24         spl_autoload_unregister(array('ComposerAutoloaderInit1582b5be159999cc9ce372091132b1e9', 'loadClassLoader'));
     24        spl_autoload_unregister(array('ComposerAutoloaderInit32421748f5780922331a7f2baac98cfe', 'loadClassLoader'));
    2525
    2626        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    2828            require_once __DIR__ . '/autoload_static.php';
    2929
    30             call_user_func(\Composer\Autoload\ComposerStaticInit1582b5be159999cc9ce372091132b1e9::getInitializer($loader));
     30            call_user_func(\Composer\Autoload\ComposerStaticInit32421748f5780922331a7f2baac98cfe::getInitializer($loader));
    3131        } else {
    3232            $map = require __DIR__ . '/autoload_namespaces.php';
     
    4949
    5050        if ($useStaticLoader) {
    51             $includeFiles = Composer\Autoload\ComposerStaticInit1582b5be159999cc9ce372091132b1e9::$files;
     51            $includeFiles = Composer\Autoload\ComposerStaticInit32421748f5780922331a7f2baac98cfe::$files;
    5252        } else {
    5353            $includeFiles = require __DIR__ . '/autoload_files.php';
    5454        }
    5555        foreach ($includeFiles as $fileIdentifier => $file) {
    56             composerRequire1582b5be159999cc9ce372091132b1e9($fileIdentifier, $file);
     56            composerRequire32421748f5780922331a7f2baac98cfe($fileIdentifier, $file);
    5757        }
    5858
     
    6161}
    6262
    63 function composerRequire1582b5be159999cc9ce372091132b1e9($fileIdentifier, $file)
     63function composerRequire32421748f5780922331a7f2baac98cfe($fileIdentifier, $file)
    6464{
    6565    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • xcoobee/trunk/includes/sdk/vendor/composer/autoload_static.php

    r2088395 r2107025  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit1582b5be159999cc9ce372091132b1e9
     7class ComposerStaticInit32421748f5780922331a7f2baac98cfe
    88{
    99    public static $files = array (
     
    153153    {
    154154        return \Closure::bind(function () use ($loader) {
    155             $loader->prefixLengthsPsr4 = ComposerStaticInit1582b5be159999cc9ce372091132b1e9::$prefixLengthsPsr4;
    156             $loader->prefixDirsPsr4 = ComposerStaticInit1582b5be159999cc9ce372091132b1e9::$prefixDirsPsr4;
    157             $loader->classMap = ComposerStaticInit1582b5be159999cc9ce372091132b1e9::$classMap;
     155            $loader->prefixLengthsPsr4 = ComposerStaticInit32421748f5780922331a7f2baac98cfe::$prefixLengthsPsr4;
     156            $loader->prefixDirsPsr4 = ComposerStaticInit32421748f5780922331a7f2baac98cfe::$prefixDirsPsr4;
     157            $loader->classMap = ComposerStaticInit32421748f5780922331a7f2baac98cfe::$classMap;
    158158
    159159        }, null, ClassLoader::class);
  • xcoobee/trunk/includes/sdk/vendor/composer/installed.json

    r2055454 r2107025  
    271271    {
    272272        "name": "phpseclib/phpseclib",
    273         "version": "2.0.15",
    274         "version_normalized": "2.0.15.0",
     273        "version": "2.0.18",
     274        "version_normalized": "2.0.18.0",
    275275        "source": {
    276276            "type": "git",
    277277            "url": "https://github.com/phpseclib/phpseclib.git",
    278             "reference": "11cf67cf78dc4acb18dc9149a57be4aee5036ce0"
    279         },
    280         "dist": {
    281             "type": "zip",
    282             "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/11cf67cf78dc4acb18dc9149a57be4aee5036ce0",
    283             "reference": "11cf67cf78dc4acb18dc9149a57be4aee5036ce0",
     278            "reference": "60519001db8d791215a822efd366d24cafee9e63"
     279        },
     280        "dist": {
     281            "type": "zip",
     282            "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/60519001db8d791215a822efd366d24cafee9e63",
     283            "reference": "60519001db8d791215a822efd366d24cafee9e63",
    284284            "shasum": ""
    285285        },
     
    299299            "ext-openssl": "Install the OpenSSL extension in order to speed up a wide variety of cryptographic operations."
    300300        },
    301         "time": "2019-03-10T16:53:45+00:00",
     301        "time": "2019-06-13T06:15:54+00:00",
    302302        "type": "library",
    303303        "installation-source": "dist",
  • xcoobee/trunk/includes/sdk/vendor/phpseclib/phpseclib/README.md

    r2055454 r2107025  
    3838* Install using Composer: `composer require phpseclib/phpseclib ~1.0`
    3939* Install using PEAR: See [phpseclib PEAR Channel Documentation](http://phpseclib.sourceforge.net/pear.htm)
    40 * [Download 1.0.15 as ZIP](http://sourceforge.net/projects/phpseclib/files/phpseclib1.0.15.zip/download)
     40* [Download 1.0.16 as ZIP](http://sourceforge.net/projects/phpseclib/files/phpseclib1.0.16.zip/download)
    4141
    4242## Support
  • xcoobee/trunk/includes/sdk/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA.php

    r2055454 r2107025  
    183183     */
    184184    const PRIVATE_FORMAT_PKCS8 = 8;
     185    /**
     186     * OpenSSH formatted private key
     187     */
     188    const PRIVATE_FORMAT_OPENSSH = 9;
    185189    /**#@-*/
    186190
     
    821825
    822826                return $key;
     827            case self::PRIVATE_FORMAT_OPENSSH:
     828                if ($num_primes != 2) {
     829                    return false;
     830                }
     831                $publicKey = pack('Na*Na*Na*', strlen('ssh-rsa'), 'ssh-rsa', strlen($raw['publicExponent']), $raw['publicExponent'], strlen($raw['modulus']), $raw['modulus']);
     832                $privateKey = pack(
     833                    'Na*Na*Na*Na*Na*Na*Na*',
     834                    strlen('ssh-rsa'),
     835                    'ssh-rsa',
     836                    strlen($raw['modulus']),
     837                    $raw['modulus'],
     838                    strlen($raw['publicExponent']),
     839                    $raw['publicExponent'],
     840                    strlen($raw['privateExponent']),
     841                    $raw['privateExponent'],
     842                    strlen($raw['coefficient']),
     843                    $raw['coefficient'],
     844                    strlen($raw['prime1']),
     845                    $raw['prime1'],
     846                    strlen($raw['prime2']),
     847                    $raw['prime2']
     848                );
     849                $checkint = Random::string(4);
     850                $paddedKey = pack(
     851                    'a*Na*',
     852                    $checkint . $checkint . $privateKey,
     853                    strlen($this->comment),
     854                    $this->comment
     855                );
     856                $paddingLength = (7 * strlen($paddedKey)) % 8;
     857                for ($i = 1; $i <= $paddingLength; $i++) {
     858                    $paddedKey.= chr($i);
     859                }
     860                $key = pack(
     861                    'Na*Na*Na*NNa*Na*',
     862                    strlen('none'),
     863                    'none',
     864                    strlen('none'),
     865                    'none',
     866                    0,
     867                    '',
     868                    1,
     869                    strlen($publicKey),
     870                    $publicKey,
     871                    strlen($paddedKey),
     872                    $paddedKey
     873                );
     874                $key = "openssh-key-v1\0$key";
     875
     876                return "-----BEGIN OPENSSH PRIVATE KEY-----\r\n" .
     877                       chunk_split(base64_encode($key), 70) .
     878                       "-----END OPENSSH PRIVATE KEY-----";
    823879            default: // eg. self::PRIVATE_FORMAT_PKCS1
    824880                $components = array();
     
    14141470
    14151471                return $components;
     1472            case self::PRIVATE_FORMAT_OPENSSH:
     1473                $components = array();
     1474                $decoded = $this->_extractBER($key);
     1475                $magic = $this->_string_shift($decoded, 15);
     1476                if ($magic !== "openssh-key-v1\0") {
     1477                    return false;
     1478                }
     1479                $options = $this->_string_shift($decoded, 24);
     1480                // \0\0\0\4none = ciphername
     1481                // \0\0\0\4none = kdfname
     1482                // \0\0\0\0 = kdfoptions
     1483                // \0\0\0\1 = numkeys
     1484                if ($options != "\0\0\0\4none\0\0\0\4none\0\0\0\0\0\0\0\1") {
     1485                    return false;
     1486                }
     1487                extract(unpack('Nlength', $this->_string_shift($decoded, 4)));
     1488                if (strlen($decoded) < $length) {
     1489                    return false;
     1490                }
     1491                $publicKey = $this->_string_shift($decoded, $length);
     1492                extract(unpack('Nlength', $this->_string_shift($decoded, 4)));
     1493                if (strlen($decoded) < $length) {
     1494                    return false;
     1495                }
     1496                $paddedKey = $this->_string_shift($decoded, $length);
     1497
     1498                if ($this->_string_shift($publicKey, 11) !== "\0\0\0\7ssh-rsa") {
     1499                    return false;
     1500                }
     1501
     1502                $checkint1 = $this->_string_shift($paddedKey, 4);
     1503                $checkint2 = $this->_string_shift($paddedKey, 4);
     1504                if (strlen($checkint1) != 4 || $checkint1 !== $checkint2) {
     1505                    return false;
     1506                }
     1507
     1508                if ($this->_string_shift($paddedKey, 11) !== "\0\0\0\7ssh-rsa") {
     1509                    return false;
     1510                }
     1511
     1512                $values = array(
     1513                    &$components['modulus'],
     1514                    &$components['publicExponent'],
     1515                    &$components['privateExponent'],
     1516                    &$components['coefficients'][2],
     1517                    &$components['primes'][1],
     1518                    &$components['primes'][2]
     1519                );
     1520
     1521                foreach ($values as &$value) {
     1522                    extract(unpack('Nlength', $this->_string_shift($paddedKey, 4)));
     1523                    if (strlen($paddedKey) < $length) {
     1524                        return false;
     1525                    }
     1526                    $value = new BigInteger($this->_string_shift($paddedKey, $length), -256);
     1527                }
     1528
     1529                extract(unpack('Nlength', $this->_string_shift($paddedKey, 4)));
     1530                if (strlen($paddedKey) < $length) {
     1531                    return false;
     1532                }
     1533                $components['comment'] = $this->_string_shift($decoded, $length);
     1534
     1535                $temp = $components['primes'][1]->subtract($this->one);
     1536                $components['exponents'] = array(1 => $components['publicExponent']->modInverse($temp));
     1537                $temp = $components['primes'][2]->subtract($this->one);
     1538                $components['exponents'][] = $components['publicExponent']->modInverse($temp);
     1539
     1540                return $components;
    14161541        }
    14171542    }
     
    15701695                self::PRIVATE_FORMAT_XML,
    15711696                self::PRIVATE_FORMAT_PUTTY,
    1572                 self::PUBLIC_FORMAT_OPENSSH
     1697                self::PUBLIC_FORMAT_OPENSSH,
     1698                self::PRIVATE_FORMAT_OPENSSH
    15731699            );
    15741700            foreach ($types as $type) {
     
    22182344    function _equals($x, $y)
    22192345    {
     2346        if (function_exists('hash_equals')) {
     2347            return hash_equals($x, $y);
     2348        }
     2349
    22202350        if (strlen($x) != strlen($y)) {
    22212351            return false;
  • xcoobee/trunk/includes/sdk/vendor/phpseclib/phpseclib/phpseclib/File/ASN1.php

    r2008115 r2107025  
    245245            // process septets (since the eighth bit is ignored, it's not an octet)
    246246            do {
    247                 $loop = ord($encoded[0]) >> 7;
     247                $temp = ord($encoded[$encoded_pos++]);
     248                $loop = $temp >> 7;
    248249                $tag <<= 7;
    249                 $tag |= ord($encoded[$encoded_pos++]) & 0x7F;
     250                $tag |= $temp & 0x7F;
    250251                $start++;
    251252            } while ($loop);
     
    434435                break;
    435436            case self::TYPE_OBJECT_IDENTIFIER:
    436                 $temp = ord($content[$content_pos++]);
    437                 $current['content'] = sprintf('%d.%d', floor($temp / 40), $temp % 40);
    438                 $valuen = 0;
    439                 // process septets
    440                 $content_len = strlen($content);
    441                 while ($content_pos < $content_len) {
    442                     $temp = ord($content[$content_pos++]);
    443                     $valuen <<= 7;
    444                     $valuen |= $temp & 0x7F;
    445                     if (~$temp & 0x80) {
    446                         $current['content'].= ".$valuen";
    447                         $valuen = 0;
    448                     }
    449                 }
    450                 // the eighth bit of the last byte should not be 1
    451                 //if ($temp >> 7) {
    452                 //    return false;
    453                 //}
     437                $current['content'] = $this->_decodeOID(substr($content, $content_pos));
    454438                break;
    455439            /* Each character string type shall be encoded as if it had been declared:
     
    1014998                break;
    1015999            case self::TYPE_OBJECT_IDENTIFIER:
    1016                 $oid = preg_match('#(?:\d+\.)+#', $source) ? $source : array_search($source, $this->oids);
    1017                 if ($oid === false) {
    1018                     user_error('Invalid OID');
    1019                     return false;
    1020                 }
    1021                 $value = '';
    1022                 $parts = explode('.', $oid);
    1023                 $value = chr(40 * $parts[0] + $parts[1]);
    1024                 for ($i = 2; $i < count($parts); $i++) {
    1025                     $temp = '';
    1026                     if (!$parts[$i]) {
    1027                         $temp = "\0";
    1028                     } else {
    1029                         while ($parts[$i]) {
    1030                             $temp = chr(0x80 | ($parts[$i] & 0x7F)) . $temp;
    1031                             $parts[$i] >>= 7;
    1032                         }
    1033                         $temp[strlen($temp) - 1] = $temp[strlen($temp) - 1] & chr(0x7F);
    1034                     }
    1035                     $value.= $temp;
    1036                 }
     1000                $value = $this->_encodeOID($source);
    10371001                break;
    10381002            case self::TYPE_ANY:
     
    11311095        $temp = ltrim(pack('N', $length), chr(0));
    11321096        return pack('Ca*', 0x80 | strlen($temp), $temp);
     1097    }
     1098
     1099    /**
     1100     * BER-decode the OID
     1101     *
     1102     * Called by _decode_ber()
     1103     *
     1104     * @access private
     1105     * @param string $content
     1106     * @return string
     1107     */
     1108    function _decodeOID($content)
     1109    {
     1110        static $eighty;
     1111        if (!$eighty) {
     1112            $eighty = new BigInteger(80);
     1113        }
     1114
     1115        $oid = array();
     1116        $pos = 0;
     1117        $len = strlen($content);
     1118        $n = new BigInteger();
     1119        while ($pos < $len) {
     1120            $temp = ord($content[$pos++]);
     1121            $n = $n->bitwise_leftShift(7);
     1122            $n = $n->bitwise_or(new BigInteger($temp & 0x7F));
     1123            if (~$temp & 0x80) {
     1124                $oid[] = $n;
     1125                $n = new BigInteger();
     1126            }
     1127        }
     1128        $part1 = array_shift($oid);
     1129        $first = floor(ord($content[0]) / 40);
     1130        /*
     1131          "This packing of the first two object identifier components recognizes that only three values are allocated from the root
     1132           node, and at most 39 subsequent values from nodes reached by X = 0 and X = 1."
     1133
     1134          -- https://www.itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf#page=22
     1135        */
     1136        if ($first <= 2) { // ie. 0 <= ord($content[0]) < 120 (0x78)
     1137            array_unshift($oid, ord($content[0]) % 40);
     1138            array_unshift($oid, $first);
     1139        } else {
     1140            array_unshift($oid, $part1->subtract($eighty));
     1141            array_unshift($oid, 2);
     1142        }
     1143
     1144        return implode('.', $oid);
     1145    }
     1146
     1147    /**
     1148     * DER-encode the OID
     1149     *
     1150     * Called by _encode_der()
     1151     *
     1152     * @access private
     1153     * @param string $content
     1154     * @return string
     1155     */
     1156    function _encodeOID($source)
     1157    {
     1158        static $mask, $zero, $forty;
     1159        if (!$mask) {
     1160            $mask = new BigInteger(0x7F);
     1161            $zero = new BigInteger();
     1162            $forty = new BigInteger(40);
     1163        }
     1164
     1165        $oid = preg_match('#(?:\d+\.)+#', $source) ? $source : array_search($source, $this->oids);
     1166        if ($oid === false) {
     1167            user_error('Invalid OID');
     1168            return false;
     1169        }
     1170        $parts = explode('.', $oid);
     1171        $part1 = array_shift($parts);
     1172        $part2 = array_shift($parts);
     1173
     1174        $first = new BigInteger($part1);
     1175        $first = $first->multiply($forty);
     1176        $first = $first->add(new BigInteger($part2));
     1177
     1178        array_unshift($parts, $first->toString());
     1179
     1180        $value = '';
     1181        foreach ($parts as $part) {
     1182            if (!$part) {
     1183                $temp = "\0";
     1184            } else {
     1185                $temp = '';
     1186                $part = new BigInteger($part);
     1187                while (!$part->equals($zero)) {
     1188                    $submask = $part->bitwise_and($mask);
     1189                    $submask->setPrecision(8);
     1190                    $temp = (chr(0x80) | $submask->toBytes()) . $temp;
     1191                    $part = $part->bitwise_rightShift(7);
     1192                }
     1193                $temp[strlen($temp) - 1] = $temp[strlen($temp) - 1] & chr(0x7F);
     1194            }
     1195            $value.= $temp;
     1196        }
     1197
     1198        return $value;
    11331199    }
    11341200
  • xcoobee/trunk/includes/sdk/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger.php

    r2008115 r2107025  
    446446                // [^-0-9].*: find any non-numeric characters and then any characters that follow that
    447447                $x = preg_replace('#(?<!^)(?:-).*|(?<=^|-)0*|[^-0-9].*#', '', $x);
     448                if (!strlen($x) || $x == '-') {
     449                    $x = '0';
     450                }
    448451
    449452                switch (MATH_BIGINTEGER_MODE) {
     
    26922695        switch (MATH_BIGINTEGER_MODE) {
    26932696            case self::MODE_GMP:
    2694                 return gmp_cmp($this->value, $y->value);
     2697                $r = gmp_cmp($this->value, $y->value);
     2698                if ($r < -1) {
     2699                    $r = -1;
     2700                }
     2701                if ($r > 1) {
     2702                    $r = 1;
     2703                }
     2704                return $r;
    26952705            case self::MODE_BCMATH:
    26962706                return bccomp($this->value, $y->value, 0);
  • xcoobee/trunk/includes/sdk/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php

    r2055454 r2107025  
    29932993        }
    29942994
    2995         $this->curTimeout = false;
     2995        // in SSH2.php the timeout is cumulative per function call. eg. exec() will
     2996        // timeout after 10s. but for SFTP.php it's cumulative per packet
     2997        $this->curTimeout = $this->timeout;
    29962998
    29972999        $start = strtok(microtime(), ' ') + strtok(''); // http://php.net/microtime#61838
     
    30133015        $tempLength = $length;
    30143016        $tempLength-= strlen($this->packet_buffer);
     3017
     3018
     3019        // 256 * 1024 is what SFTP_MAX_MSG_LENGTH is set to in OpenSSH's sftp-common.h
     3020        if ($tempLength > 256 * 1024) {
     3021            user_error('Invalid SFTP packet size');
     3022            return false;
     3023        }
    30153024
    30163025        // SFTP packet type and data payload
  • xcoobee/trunk/includes/sdk/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php

    r2055454 r2107025  
    147147    const READ_REGEX = 2;
    148148    /**
    149      * Returns when a string matching the regular expression $expect is found
     149     * Returns whenever a data packet is received.
     150     *
     151     * Some data packets may only contain a single character so it may be necessary
     152     * to call read() multiple times when using this option
    150153     */
    151154    const READ_NEXT = 3;
     
    33083311        }
    33093312        foreach ($this->auth as $auth) {
    3310             $result = call_user_func_array(array(&$this, 'parent::login'), $auth);
     3313            $result = call_user_func_array(array(&$this, 'login'), $auth);
    33113314        }
    33123315        return $result;
     
    37103713                    if (!@stream_select($read, $write, $except, $sec, $usec) && !count($read)) {
    37113714                        $this->is_timeout = true;
     3715                        $this->_close_channel($client_channel);
    37123716                        return true;
    37133717                    }
  • xcoobee/trunk/readme.txt

    r2099358 r2107025  
    11=== XcooBee for WordPress ===
    22Contributors: xcoobee
    3 Tags: xcoobee, privacy, cookie, gdpr, security
     3Tags: xcoobee, privacy, cookie, gdpr, ccpa, consent, security
    44Requires at least: 4.4.0
    5 Tested up to: 5.2
    6 Stable tag: 1.5.3
     5Tested up to: 5.2.1
     6Stable tag: 1.6.0
    77License: GPLv3
    88License URI: https://www.gnu.org/licenses/gpl-3.0.html
    99
    10 Connects your website to the XcooBee privacy network and enables secure password recovery and login.
     10Connects your website to the XcooBee privacy network and enables secure password recovery and login. Base library for XcooBee GDPR and CCPA Add-ons.
    1111
    1212== Description ==
     
    1414XcooBee is a privacy-focused data exchange network with a mission to protect the digital rights and privacy of consumers and businesses alike.
    1515
    16 XcooBee offers a number of plugins and add-ons for users to pick and choose the tools they need to improve the privacy and GDPR compliance.
     16XcooBee offers a number of plugins and add-ons for users to pick and choose the tools they need to improve the privacy and (GDPR and CCPA) compliance.
    1717
    1818XcooBee for WordPress establishes connection to the XcooBee network and allows website running WordPress to securely message users via their XcooBee accounts. This is helpful in cases where increased security and privacy is needed especially around password recovery.
  • xcoobee/trunk/xcoobee.php

    r2099358 r2107025  
    44 * Plugin URI:  https://wordpress.org/plugins/xcoobee/
    55 * Author URI:  https://www.xcoobee.com/
    6  * Description: Connects your website to the XcooBee privacy network and enables secure password recovery and login.
    7  * Version:     1.5.3
     6 * Description: Connects your website to the XcooBee privacy network and enables secure password recovery and login. Base library for XcooBee GDPR and CCPA Add-ons.
     7 * Version:     1.6.0
    88 * Author:      XcooBee
    99 * License:     GPLv3
     
    1414 *
    1515 * Requires at least: 4.4.0
    16  * Tested up to: 5.2
     16 * Tested up to: 5.2.1
    1717 *
    1818 * @package XcooBee
Note: See TracChangeset for help on using the changeset viewer.