diff --git a/wp-content/plugins/wp-maximum-upload-file-size/admin/class-wmufs-admin.php b/wp-content/plugins/wp-maximum-upload-file-size/admin/class-wmufs-admin.php new file mode 100644 index 000000000..24b700fd7 --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/admin/class-wmufs-admin.php @@ -0,0 +1,188 @@ + admin_url('admin-ajax.php'), + 'nonce' => $admin_notice_nonce, + ) + ); + } + + + // get plugin version from header + static function get_plugin_version() { + $plugin_data = get_file_data(__FILE__, array( 'version' => 'Version' ), 'plugin'); + + return $plugin_data['version']; + } // get_plugin_version + + + // test if we're on plugin's page + static function is_plugin_page() { + $current_screen = get_current_screen(); + + if ( $current_screen->id == 'media_page_upload_max_file_size' ) { + return true; + } else { + return false; + } + } // is_plugin_page + + + // add settings link to plugins page + static function plugin_action_links( $links ) { + $settings_link = 'Settings'; + + array_unshift($links, $settings_link); + + return $links; + } // plugin_action_links + + + // add links to plugin's description in plugins table + static function plugin_meta_links( $links, $file ) { + $support_link = 'Support'; + + + if ( $file == plugin_basename(__FILE__) ) { + $links[] = $support_link; + } + + return $links; + } // plugin_meta_links + + + // additional powered by text in admin footer; only on plugin's page + static function admin_footer_text( $text ) { + if ( ! self::is_plugin_page() ) { + return $text; + } + + $text = 'If you like WP Maximum Upload File Size please leave us a ★★★★★ rating. A huge thank you in advance!'; + return $text; + } // admin_footer_text + + + /** + * Add menu pages + * + * @since 1.0 + * + * @return null + * + */ + static function upload_max_file_size_add_pages() { + // Add a new menu on main menu + add_submenu_page( + 'upload.php', // Parent Slug. + 'Increase Max Upload File Size', // Page Title. + 'Increase Upload Limit', // Menu Title + 'manage_options', + 'upload_max_file_size', + [ __CLASS__, 'upload_max_file_size_dash' ] + ); + + } + + /** + * Get closest value from array + * @param $search + * @param $arr + * @return mixed|null + */ + static function get_closest( $search, $arr ) { + $closest = null; + foreach ( $arr as $item ) { + if ( $closest === null || abs($search - $closest) > abs($item - $search) ) { + $closest = $item; + } + } + return $closest; + } // get_closest + + + /** + * Dashboard Page + */ + static function upload_max_file_size_dash() { + + include_once(WMUFS_PLUGIN_PATH . 'inc/class-wmufs-helper.php'); + include_once WMUFS_PLUGIN_PATH . 'admin/templates/class-wmufs-template.php'; + + add_action('admin_head', [ __CLASS__, 'wmufs_remove_admin_action' ]); + } + + + /** + * Remove admin notices in admin page. + * + * @return array|mixed. + */ + static function wmufs_remove_admin_action() { + remove_all_actions('user_admin_notices'); + remove_all_actions('admin_notices'); + } + + /** + * Filter to increase max_file_size + * + * @since 1.4 + * + * @return int max_size in bytes + * + */ + static function upload_max_increase_upload( $data ) { + return get_option('max_file_size') ? get_option('max_file_size') : $data; + } + + +} + +/** + * Instance of the class // Codepopular_WMUFS + */ +add_action('init', array( 'Codepopular_WMUFS', 'init' )); diff --git a/wp-content/plugins/wp-maximum-upload-file-size/admin/templates/class-wmufs-sidebar.php b/wp-content/plugins/wp-maximum-upload-file-size/admin/templates/class-wmufs-sidebar.php new file mode 100644 index 000000000..7b99841b3 --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/admin/templates/class-wmufs-sidebar.php @@ -0,0 +1,49 @@ + + + +
+
+

+ +
+
+ + + +
+
+

+ +
+
+ + + +
+
+ +
+
+ + + + + diff --git a/wp-content/plugins/wp-maximum-upload-file-size/admin/templates/class-wmufs-template.php b/wp-content/plugins/wp-maximum-upload-file-size/admin/templates/class-wmufs-template.php new file mode 100644 index 000000000..4c98bc9e5 --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/admin/templates/class-wmufs-template.php @@ -0,0 +1,127 @@ + +
+

+
+ '16 MB', + '32' => '32 MB', + '40' => '40 MB', + '64' => '64 MB', + '128' => '128 MB', + '256' => '256 MB', + '512' => '512 MB', + '1024' => '1 GB', + '2048' => '2 GB', + '3072' => '3 GB', + '4096' => '4 GB', + '5120' => '5 GB', +); + +//$current_max_size = self::get_closest($max_size, $upload_sizes); + + +$wpufs_max_execution_time = get_option('wmufs_maximum_execution_time') != '' ? get_option('wmufs_maximum_execution_time') : ini_get('max_execution_time'); + + +?> + +
+


+
+ +
+ + +
+
+ + + + + + + + + + + + + +
+ +
+ +
Example: 300, 600, 1800, 3600 +
+ + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + +

+ + +

+ + + +
+ + +
+

+ +
+ + +
+ + + +
+ +
+ + +
+
+
+ diff --git a/wp-content/plugins/wp-maximum-upload-file-size/assets/css/_promotion.scss b/wp-content/plugins/wp-maximum-upload-file-size/assets/css/_promotion.scss new file mode 100644 index 000000000..5a2e228c0 --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/assets/css/_promotion.scss @@ -0,0 +1,173 @@ + +/**---------------------------------------- + CodePopular Promotion. +--------------------------------------------*/ + +.codepopular_notice { + padding: 20px 10px; + + h4{ + font-size: 16px; + } + + p { + font-size: 14px; + line-height: 1.5714285714; + max-width: 800px + } + + a { + box-shadow: none; + color: #2271b1; + outline: none; + text-decoration: underline; + transition: opacity .3s; + + &:hover { + opacity: .5 + } + } + + + &__buttons { + margin-top: -10px; + overflow: hidden; + padding: 10px 0 + } + + &__button { + float: left; + margin: 20px 20px 0 0; + + &:last-child { + margin-right: 0 + } + + + } + + + + .codepopular__button { + background-color: #fff; + border: 1px solid transparent; + box-shadow: none !important; + box-sizing: border-box; + cursor: pointer; + display: inline-block; + font-size: 14px; + font-weight: 500; + line-height: 1.5714285714; + min-width: 180px; + opacity: 1 !important; + outline: none !important; + padding: 9px 30px; + position: relative; + margin:3px; + text-align: center; + text-decoration: none !important; + transition: color .3s !important; + z-index: 10; + + &:before { + float: left; + font-family: dashicons; + font-size: 20px; + line-height: 1.1; + margin-right: 10px + } + + &:after { + content: ""; + height: 100%; + left: 0; + position: absolute; + top: 0; + transition: width .3s; + width: 0; + z-index: -1 + } + + &:hover:after { + width: 100% + } + + + } + + + .btn__blue:hover, + .btn__gray:hover, + .btn__green:hover, + .btn__yellow:hover, + .btn__dark:hover, + .btn__red:hover { + color: #fff !important + } + + .btn__blue { + border-color: #2271b1; + color: #2271b1 !important; + + &:after { + background-color: #2271b1 + } + } + + + .btn__green { + border-color: #00a32a; + color: #00a32a !important; + + &:after { + background-color: #00a32a + } + + } + + .btn__yellow { + border-color: #ffad43; + color: #ffa23b!important; + + &:after { + background-color: #eea404 + } + + + } + + .btn__dark { + border-color: #838280; + color: #4b4640!important; + + &:after { + background-color: #51504e + } + + + } + + .btn__red { + border-color: #d63638; + color: #d63638 !important; + + &:after { + background-color: #d63638 + } + + } + + .btn__gray { + border-color: #c3c4c7; + color: #c3c4c7 !important; + + &:after { + background-color: #c3c4c7 + } + + + } + + + +} \ No newline at end of file diff --git a/wp-content/plugins/wp-maximum-upload-file-size/assets/css/wmufs.css b/wp-content/plugins/wp-maximum-upload-file-size/assets/css/wmufs.css new file mode 100644 index 000000000..47acdb4dd --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/assets/css/wmufs.css @@ -0,0 +1,304 @@ +.form-table th { + width: 230px; +} + +.gray-box { + display: inline-block; + padding: 15px; + background-color: #e6e6e6; +} + +.support-ticket { + text-align: center; + border: 1px solid #ccc; + margin-top: 20px; + padding: 20px; +} +.support-ticket h2 { + font-size: 25px; +} +.support-ticket a { + text-decoration: none; + font-size: 16px; + background: #6d0eff; + padding: 9px 23px; + color: #fff; + border-radius: 20px; + display: inline-block; +} + +.wmufs_support_btn { + color: white; + display: flex; + align-items: center; + justify-content: center; + background: #525252 !important; + font-size: 20px; + font-weight: bold; + padding: 20px 10px; +} +.wmufs_support_btn .dashicons { + padding-right: 10px; +} + +.wmufs_mb_50 { + margin-bottom: 50px; +} + +.wmufs_mb_20 { + margin-bottom: 20px; +} + +.wmufs_row { + display: flex; + width: 100%; + overflow: hidden; + justify-content: space-between; +} + +.wmufs_card { + background: #fff; + border: 1px solid #eee; + box-shadow: 1px 3px 9px 1px #eee; + padding: 10px 20px; +} + +.wmufs-col-8 { + width: 100%; + margin-right: 20px; +} + +.wmufs-col-4 { + width: 21.3333333333%; + flex: 0 0 auto; + margin-right: 20px; +} + +.wmufs_card_mini { + border: 1px solid #eee; + padding: 10px; +} + +.wmufs-title h3 { + border: 1px solid #eee; + padding: 10px; + text-align: center; + background: #f5f5f5; + margin: 0px 0px 10px 0px; + font-size: 18px; +} + +/** +Button Design +*/ +.wmufs-btn { + background: #6d0eff; + text-align: center; +} +.wmufs-btn a { + color: #fff; + text-decoration: none; + padding: 10px; + font-weight: bold; + font-size: 16px; + display: block; +} +.wmufs-btn a:hover, +.wmufs-btn a:focus, +.wmufs-btn a:active { + outline: 0; + box-shadow: none; +} + +.wmufs-recommended-content img { + width: 100%; +} + +.wmufs-recommended-content a { + text-decoration: none; +} + +/******** System Status ******************/ +.wmufs-system-status { + width: 100%; +} +.wmufs-system-status .dashicons-warning { + color: #cd5c5c; + font-size: 20px; +} +.wmufs-system-status .dashicons-yes { + color: green; + font-size: 20px; +} +.wmufs-system-status tr td:first-child { + text-align: left; +} +.wmufs-system-status th { + border: 1px solid #ccc; + padding: 10px; + border-bottom: none; +} +.wmufs-system-status th:first-child { + border-right: none; +} +.wmufs-system-status th:last-child { + border-left: none; +} +.wmufs-system-status td { + border: 1px solid #ccc; + padding: 10px; + border-bottom: none; +} +.wmufs-system-status td:nth-child(2) { + border-left: none; + text-align: center; +} +.wmufs-system-status td:last-child { + border-left: none; +} +.wmufs-system-status tr:last-child td { + border-bottom: 1px solid #ccc; +} + +.wpifw_status_message { + margin: 0; +} + +@media (max-width: 786px) { + .wmufs_row { + display: block; + } + .wmufs-col-8 { + width: 100%; + } + .wmufs-col-4 { + width: 100%; + } +} +/**---------------------------------------- + CodePopular Promotion. +--------------------------------------------*/ +.codepopular_notice { + padding: 20px 10px; +} +.codepopular_notice h4 { + font-size: 16px; +} +.codepopular_notice p { + font-size: 14px; + line-height: 1.5714285714; + max-width: 800px; +} +.codepopular_notice a { + box-shadow: none; + color: #2271b1; + outline: none; + text-decoration: underline; + transition: opacity 0.3s; +} +.codepopular_notice a:hover { + opacity: 0.5; +} +.codepopular_notice__buttons { + margin-top: -10px; + overflow: hidden; + padding: 10px 0; +} +.codepopular_notice__button { + float: left; + margin: 20px 20px 0 0; +} +.codepopular_notice__button:last-child { + margin-right: 0; +} +.codepopular_notice .codepopular__button { + background-color: #fff; + border: 1px solid transparent; + box-shadow: none !important; + box-sizing: border-box; + cursor: pointer; + display: inline-block; + font-size: 14px; + font-weight: 500; + line-height: 1.5714285714; + min-width: 180px; + opacity: 1 !important; + outline: none !important; + padding: 9px 30px; + position: relative; + margin: 3px; + text-align: center; + text-decoration: none !important; + transition: color 0.3s !important; + z-index: 10; +} +.codepopular_notice .codepopular__button:before { + float: left; + font-family: dashicons; + font-size: 20px; + line-height: 1.1; + margin-right: 10px; +} +.codepopular_notice .codepopular__button:after { + content: ""; + height: 100%; + left: 0; + position: absolute; + top: 0; + transition: width 0.3s; + width: 0; + z-index: -1; +} +.codepopular_notice .codepopular__button:hover:after { + width: 100%; +} +.codepopular_notice .btn__blue:hover, +.codepopular_notice .btn__gray:hover, +.codepopular_notice .btn__green:hover, +.codepopular_notice .btn__yellow:hover, +.codepopular_notice .btn__dark:hover, +.codepopular_notice .btn__red:hover { + color: #fff !important; +} +.codepopular_notice .btn__blue { + border-color: #2271b1; + color: #2271b1 !important; +} +.codepopular_notice .btn__blue:after { + background-color: #2271b1; +} +.codepopular_notice .btn__green { + border-color: #00a32a; + color: #00a32a !important; +} +.codepopular_notice .btn__green:after { + background-color: #00a32a; +} +.codepopular_notice .btn__yellow { + border-color: #ffad43; + color: #ffa23b !important; +} +.codepopular_notice .btn__yellow:after { + background-color: #eea404; +} +.codepopular_notice .btn__dark { + border-color: #838280; + color: #4b4640 !important; +} +.codepopular_notice .btn__dark:after { + background-color: #51504e; +} +.codepopular_notice .btn__red { + border-color: #d63638; + color: #d63638 !important; +} +.codepopular_notice .btn__red:after { + background-color: #d63638; +} +.codepopular_notice .btn__gray { + border-color: #c3c4c7; + color: #c3c4c7 !important; +} +.codepopular_notice .btn__gray:after { + background-color: #c3c4c7; +}/*# sourceMappingURL=wmufs.css.map */ \ No newline at end of file diff --git a/wp-content/plugins/wp-maximum-upload-file-size/assets/css/wmufs.css.map b/wp-content/plugins/wp-maximum-upload-file-size/assets/css/wmufs.css.map new file mode 100644 index 000000000..178306a3b --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/assets/css/wmufs.css.map @@ -0,0 +1,10 @@ +{ + "version": 3, + "mappings": "AAAA,AAAA,WAAW,CAAC,EAAE,CAAC;EACX,KAAK,EAAE,KAAK;CACf;;AAED,AAAA,SAAS,CAAC;EACN,OAAO,EAAE,YAAY;EACrB,OAAO,EAAE,IAAI;EACb,gBAAgB,EAAE,OAAO;CAC5B;;AAGD,AAAA,eAAe,CAAC;EACZ,UAAU,EAAE,MAAM;EAClB,MAAM,EAAE,cAAc;EACtB,UAAU,EAAE,IAAI;EAChB,OAAO,EAAE,IAAI;CAkBhB;;AAtBD,AAOI,eAPW,CAOX,EAAE,CAAC;EACC,SAAS,EAAE,IAAI;CAClB;;AATL,AAWI,eAXW,CAWX,CAAC,CAAC;EACE,eAAe,EAAE,IAAI;EACrB,SAAS,EAAE,IAAI;EACf,UAAU,EAAE,OAAO;EACnB,OAAO,EAAE,QAAQ;EACjB,KAAK,EAAE,IAAI;EACX,aAAa,EAAE,IAAI;EACnB,OAAO,EAAE,YAAY;CACxB;;AAML,AAAA,kBAAkB,CAAC;EACf,KAAK,EAAE,KAAK;EACZ,OAAO,EAAE,IAAI;EACb,WAAW,EAAE,MAAM;EACnB,eAAe,EAAE,MAAM;EACvB,UAAU,EAAE,kBAAkB;EAC9B,SAAS,EAAE,IAAI;EACf,WAAW,EAAE,IAAI;EACjB,OAAO,EAAE,SAAS;CAKrB;;AAbD,AAUI,kBAVc,CAUd,UAAU,CAAC;EACP,aAAa,EAAE,IACnB;CAAC;;AAKL,AAAA,YAAY,CAAC;EACT,aAAa,EAAE,IAAI;CACtB;;AAED,AAAA,YAAY,CAAC;EACT,aAAa,EAAE,IAAI;CACtB;;AAED,AAAA,UAAU,CAAC;EACP,OAAO,EAAE,IAAI;EACb,KAAK,EAAE,IAAI;EACX,QAAQ,EAAE,MAAM;EAChB,eAAe,EAAE,aAAa;CACjC;;AAED,AAAA,WAAW,CAAC;EACR,UAAU,EAAE,IAAI;EAChB,MAAM,EAAE,cAAc;EACtB,UAAU,EAAE,oBAAoB;EAChC,OAAO,EAAE,SACb;CAAC;;AAED,AAAA,YAAY,CAAC;EACT,KAAK,EAAE,IAAI;EACX,YAAY,EAAE,IAAI;CACrB;;AAED,AAAA,YAAY,CAAC;EACT,KAAK,EAAE,cAAc;EACrB,IAAI,EAAE,QAAQ;EACd,YAAY,EAAE,IAClB;CAAC;;AAID,AAAA,gBAAgB,CAAC;EACb,MAAM,EAAE,cAAc;EACtB,OAAO,EAAE,IACb;CAAC;;AAED,AAAA,YAAY,CAAC,EAAE,CAAC;EACZ,MAAM,EAAE,cAAc;EACtB,OAAO,EAAE,IAAI;EACb,UAAU,EAAE,MAAM;EAClB,UAAU,EAAE,OAAO;EACnB,MAAM,EAAE,gBAAgB;EACxB,SAAS,EAAE,IAAI;CAElB;;AAED;;EAEE;AAEF,AAAA,UAAU,CAAC;EACP,UAAU,EAAE,OAAO;EACnB,UAAU,EAAE,MAAM;CAmBrB;;AArBD,AAII,UAJM,CAIN,UAAU,CAAC,CAAC,CAAC;EACT,KAAK,EAAE,IAAI;EACX,eAAe,EAAE,IAAI;EACrB,OAAO,EAAE,IAAI;EACb,OAAO,EAAE,YAAY;EACrB,WAAW,EAAE,IAAI;EACjB,SAAS,EAAE,IAAI;CAClB;;AAXL,AAaI,UAbM,CAaN,CAAC,AAAA,MAAM;AAbX,UAAU,CAcN,CAAC,AAAA,MAAM;AAdX,UAAU,CAeN,CAAC,AAAA,OAAO,CAAC;EACL,OAAO,EAAE,CAAC;EACV,UAAU,EAAE,IAAI;CACnB;;AAOL,AAAA,0BAA0B,CAAC,GAAG,CAAC;EAC3B,KAAK,EAAE,IACX;CAAC;;AAED,AAAA,0BAA0B,CAAC,CAAC,CAAC;EACzB,eAAe,EAAE,IAAI;CACxB;;AAKD,2CAA2C;AAE3C,AAAA,oBAAoB,CAAC;EACjB,KAAK,EAAE,IAAI;CAuDd;;AAxDD,AAGI,oBAHgB,CAGhB,kBAAkB,CAAC;EACf,KAAK,EAAE,OAAO;EACd,SAAS,EAAE,IAAI;CAClB;;AANL,AAQI,oBARgB,CAQhB,cAAc,CAAC;EACX,KAAK,EAAE,KAAK;EACZ,SAAS,EAAE,IAAI;CAClB;;AAXL,AAaI,oBAbgB,CAahB,EAAE,CAAC,EAAE,AAAA,YAAY,CAAC;EACd,UAAU,EAAE,IAAI;CACnB;;AAfL,AAkBI,oBAlBgB,CAkBhB,EAAE,CAAC;EACC,MAAM,EAAE,cAAc;EACtB,OAAO,EAAE,IAAI;EACb,aAAa,EAAE,IAAI;CACtB;;AAtBL,AAwBI,oBAxBgB,CAwBhB,EAAE,AAAA,YAAY,CAAC;EACX,YAAY,EAAE,IAAI;CACrB;;AA1BL,AA8BI,oBA9BgB,CA8BhB,EAAE,AAAA,WAAW,CAAC;EACV,WAAW,EAAE,IAAI;CACpB;;AAhCL,AAkCI,oBAlCgB,CAkChB,EAAE,CAAC;EACC,MAAM,EAAE,cAAc;EACtB,OAAO,EAAE,IAAI;EACb,aAAa,EAAE,IAAI;CACtB;;AAtCL,AAwCI,oBAxCgB,CAwChB,EAAE,AAAA,UAAW,CAAA,CAAC,EAAE;EACZ,WAAW,EAAE,IAAI;EACjB,UAAU,EAAE,MAAM;CACrB;;AA3CL,AA8CI,oBA9CgB,CA8ChB,EAAE,AAAA,WAAW,CAAC;EACV,WAAW,EAAE,IAAI;CACpB;;AAhDL,AAkDI,oBAlDgB,CAkDhB,EAAE,AAAA,WAAW,CAAC,EAAE,CAAC;EACb,aAAa,EAAE,cAAc;CAChC;;AAQL,AAAA,qBAAqB,CAAC;EAClB,MAAM,EAAE,CAAC;CACZ;;AAID,MAAM,EAAC,SAAS,EAAE,KAAK;EACnB,AAAA,UAAU,CAAC;IACP,OAAO,EAAE,KACb;GAAC;EAED,AAAA,YAAY,CAAC;IACT,KAAK,EAAE,IAAI;GACd;EAED,AAAA,YAAY,CAAC;IACT,KAAK,EAAE,IAAI;GACd;;;AC7NL;;8CAE8C;AAE9C,AAAA,mBAAmB,CAAC;EAChB,OAAO,EAAE,SAAS;CAsKrB;;AAvKD,AAGI,mBAHe,CAGf,EAAE,CAAA;EACE,SAAS,EAAE,IAAI;CAClB;;AALL,AAOI,mBAPe,CAOf,CAAC,CAAC;EACE,SAAS,EAAE,IAAI;EACf,WAAW,EAAE,YAAY;EACzB,SAAS,EAAE,KACf;CAAC;;AAXL,AAaI,mBAbe,CAaf,CAAC,CAAC;EACE,UAAU,EAAE,IAAI;EAChB,KAAK,EAAE,OAAO;EACd,OAAO,EAAE,IAAI;EACb,eAAe,EAAE,SAAS;EAC1B,UAAU,EAAE,WAAW;CAK1B;;AAvBL,AAoBQ,mBApBW,CAaf,CAAC,AAOI,MAAM,CAAC;EACJ,OAAO,EAAE,EACb;CAAC;;AAIJ,AAAD,4BAAU,CAAC;EACP,UAAU,EAAE,KAAK;EACjB,QAAQ,EAAE,MAAM;EAChB,OAAO,EAAE,MACb;CAAC;;AAEA,AAAD,2BAAS,CAAC;EACN,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,aAAa;CAOxB;;AATA,AAIG,2BAJK,AAIJ,WAAW,CAAC;EACT,YAAY,EAAE,CAClB;CAAC;;AAtCT,AA6CI,mBA7Ce,CA6Cf,oBAAoB,CAAC;EACjB,gBAAgB,EAAE,IAAI;EACtB,MAAM,EAAE,qBAAqB;EAC7B,UAAU,EAAE,eAAe;EAC3B,UAAU,EAAE,UAAU;EACtB,MAAM,EAAE,OAAO;EACf,OAAO,EAAE,YAAY;EACrB,SAAS,EAAE,IAAI;EACf,WAAW,EAAE,GAAG;EAChB,WAAW,EAAE,YAAY;EACzB,SAAS,EAAE,KAAK;EAChB,OAAO,EAAE,YAAY;EACrB,OAAO,EAAE,eAAe;EACxB,OAAO,EAAE,QAAQ;EACjB,QAAQ,EAAE,QAAQ;EAClB,MAAM,EAAC,GAAG;EACV,UAAU,EAAE,MAAM;EAClB,eAAe,EAAE,eAAe;EAChC,UAAU,EAAE,oBAAoB;EAChC,OAAO,EAAE,EAAE;CA0Bd;;AA1FL,AAkEQ,mBAlEW,CA6Cf,oBAAoB,AAqBf,OAAO,CAAC;EACL,KAAK,EAAE,IAAI;EACX,WAAW,EAAE,SAAS;EACtB,SAAS,EAAE,IAAI;EACf,WAAW,EAAE,GAAG;EAChB,YAAY,EAAE,IAClB;CAAC;;AAxET,AA0EQ,mBA1EW,CA6Cf,oBAAoB,AA6Bf,MAAM,CAAC;EACJ,OAAO,EAAE,EAAE;EACX,MAAM,EAAE,IAAI;EACZ,IAAI,EAAE,CAAC;EACP,QAAQ,EAAE,QAAQ;EAClB,GAAG,EAAE,CAAC;EACN,UAAU,EAAE,SAAS;EACrB,KAAK,EAAE,CAAC;EACR,OAAO,EAAE,EACb;CAAC;;AAnFT,AAqFQ,mBArFW,CA6Cf,oBAAoB,AAwCf,MAAM,AAAA,MAAM,CAAC;EACV,KAAK,EAAE,IACX;CAAC;;AAvFT,AA6FI,mBA7Fe,CA6Ff,UAAU,AAAA,MAAM;AA7FpB,mBAAmB,CA8Ff,UAAU,AAAA,MAAM;AA9FpB,mBAAmB,CA+Ff,WAAW,AAAA,MAAM;AA/FrB,mBAAmB,CAgGf,YAAY,AAAA,MAAM;AAhGtB,mBAAmB,CAiGf,UAAU,AAAA,MAAM;AAjGpB,mBAAmB,CAkGf,SAAS,AAAA,MAAM,CAAC;EACZ,KAAK,EAAE,eACX;CAAC;;AApGL,AAsGI,mBAtGe,CAsGf,UAAU,CAAC;EACP,YAAY,EAAE,OAAO;EACrB,KAAK,EAAE,kBAAkB;CAK5B;;AA7GL,AA0GQ,mBA1GW,CAsGf,UAAU,AAIL,MAAM,CAAC;EACJ,gBAAgB,EAAE,OACtB;CAAC;;AA5GT,AAgHI,mBAhHe,CAgHf,WAAW,CAAC;EACR,YAAY,EAAE,OAAO;EACrB,KAAK,EAAE,kBAAkB;CAM5B;;AAxHL,AAoHQ,mBApHW,CAgHf,WAAW,AAIN,MAAM,CAAC;EACJ,gBAAgB,EAAE,OACtB;CAAC;;AAtHT,AA0HI,mBA1He,CA0Hf,YAAY,CAAC;EACT,YAAY,EAAE,OAAO;EACrB,KAAK,EAAE,OAAO,CAAA,UAAU;CAO3B;;AAnIL,AA8HQ,mBA9HW,CA0Hf,YAAY,AAIP,MAAM,CAAC;EACJ,gBAAgB,EAAE,OACtB;CAAC;;AAhIT,AAqII,mBArIe,CAqIf,UAAU,CAAC;EACP,YAAY,EAAE,OAAO;EACrB,KAAK,EAAE,OAAO,CAAA,UAAU;CAO3B;;AA9IL,AAyIQ,mBAzIW,CAqIf,UAAU,AAIL,MAAM,CAAC;EACJ,gBAAgB,EAAE,OACtB;CAAC;;AA3IT,AAgJI,mBAhJe,CAgJf,SAAS,CAAC;EACN,YAAY,EAAE,OAAO;EACrB,KAAK,EAAE,kBAAkB;CAM5B;;AAxJL,AAoJQ,mBApJW,CAgJf,SAAS,AAIJ,MAAM,CAAC;EACJ,gBAAgB,EAAE,OACtB;CAAC;;AAtJT,AA0JI,mBA1Je,CA0Jf,UAAU,CAAC;EACP,YAAY,EAAE,OAAO;EACrB,KAAK,EAAE,kBAAkB;CAO5B;;AAnKL,AA8JQ,mBA9JW,CA0Jf,UAAU,AAIL,MAAM,CAAC;EACJ,gBAAgB,EAAE,OACtB;CAAC", + "sources": [ + "wmufs.scss", + "_promotion.scss" + ], + "names": [], + "file": "wmufs.css" +} \ No newline at end of file diff --git a/wp-content/plugins/wp-maximum-upload-file-size/assets/css/wmufs.min.css b/wp-content/plugins/wp-maximum-upload-file-size/assets/css/wmufs.min.css new file mode 100644 index 000000000..f115735bf --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/assets/css/wmufs.min.css @@ -0,0 +1 @@ +.form-table th{width:230px}.gray-box{display:inline-block;padding:15px;background-color:#e6e6e6}.support-ticket{text-align:center;border:1px solid #ccc;margin-top:20px;padding:20px}.support-ticket h2{font-size:25px}.support-ticket a{text-decoration:none;font-size:16px;background:#6d0eff;padding:9px 23px;color:#fff;border-radius:20px;display:inline-block}.wmufs_support_btn{color:#fff;display:flex;align-items:center;justify-content:center;background:#525252 !important;font-size:20px;font-weight:bold;padding:20px 10px}.wmufs_support_btn .dashicons{padding-right:10px}.wmufs_mb_50{margin-bottom:50px}.wmufs_mb_20{margin-bottom:20px}.wmufs_row{display:flex;width:100%;overflow:hidden;justify-content:space-between}.wmufs_card{background:#fff;border:1px solid #eee;box-shadow:1px 3px 9px 1px #eee;padding:10px 20px}.wmufs-col-8{width:100%;margin-right:20px}.wmufs-col-4{width:21.3333333333%;flex:0 0 auto;margin-right:20px}.wmufs_card_mini{border:1px solid #eee;padding:10px}.wmufs-title h3{border:1px solid #eee;padding:10px;text-align:center;background:#f5f5f5;margin:0px 0px 10px 0px;font-size:18px}.wmufs-btn{background:#6d0eff;text-align:center}.wmufs-btn a{color:#fff;text-decoration:none;padding:10px;font-weight:bold;font-size:16px;display:block}.wmufs-btn a:hover,.wmufs-btn a:focus,.wmufs-btn a:active{outline:0;box-shadow:none}.wmufs-recommended-content img{width:100%}.wmufs-recommended-content a{text-decoration:none}.wmufs-system-status{width:100%}.wmufs-system-status .dashicons-warning{color:#cd5c5c;font-size:20px}.wmufs-system-status .dashicons-yes{color:green;font-size:20px}.wmufs-system-status tr td:first-child{text-align:left}.wmufs-system-status th{border:1px solid #ccc;padding:10px;border-bottom:none}.wmufs-system-status th:first-child{border-right:none}.wmufs-system-status th:last-child{border-left:none}.wmufs-system-status td{border:1px solid #ccc;padding:10px;border-bottom:none}.wmufs-system-status td:nth-child(2){border-left:none;text-align:center}.wmufs-system-status td:last-child{border-left:none}.wmufs-system-status tr:last-child td{border-bottom:1px solid #ccc}.wpifw_status_message{margin:0}@media(max-width: 786px){.wmufs_row{display:block}.wmufs-col-8{width:100%}.wmufs-col-4{width:100%}}.codepopular_notice{padding:20px 10px}.codepopular_notice h4{font-size:16px}.codepopular_notice p{font-size:14px;line-height:1.5714285714;max-width:800px}.codepopular_notice a{box-shadow:none;color:#2271b1;outline:none;text-decoration:underline;transition:opacity .3s}.codepopular_notice a:hover{opacity:.5}.codepopular_notice__buttons{margin-top:-10px;overflow:hidden;padding:10px 0}.codepopular_notice__button{float:left;margin:20px 20px 0 0}.codepopular_notice__button:last-child{margin-right:0}.codepopular_notice .codepopular__button{background-color:#fff;border:1px solid rgba(0,0,0,0);box-shadow:none !important;box-sizing:border-box;cursor:pointer;display:inline-block;font-size:14px;font-weight:500;line-height:1.5714285714;min-width:180px;opacity:1 !important;outline:none !important;padding:9px 30px;position:relative;margin:3px;text-align:center;text-decoration:none !important;transition:color .3s !important;z-index:10}.codepopular_notice .codepopular__button:before{float:left;font-family:dashicons;font-size:20px;line-height:1.1;margin-right:10px}.codepopular_notice .codepopular__button:after{content:"";height:100%;left:0;position:absolute;top:0;transition:width .3s;width:0;z-index:-1}.codepopular_notice .codepopular__button:hover:after{width:100%}.codepopular_notice .btn__blue:hover,.codepopular_notice .btn__gray:hover,.codepopular_notice .btn__green:hover,.codepopular_notice .btn__yellow:hover,.codepopular_notice .btn__dark:hover,.codepopular_notice .btn__red:hover{color:#fff !important}.codepopular_notice .btn__blue{border-color:#2271b1;color:#2271b1 !important}.codepopular_notice .btn__blue:after{background-color:#2271b1}.codepopular_notice .btn__green{border-color:#00a32a;color:#00a32a !important}.codepopular_notice .btn__green:after{background-color:#00a32a}.codepopular_notice .btn__yellow{border-color:#ffad43;color:#ffa23b !important}.codepopular_notice .btn__yellow:after{background-color:#eea404}.codepopular_notice .btn__dark{border-color:#838280;color:#4b4640 !important}.codepopular_notice .btn__dark:after{background-color:#51504e}.codepopular_notice .btn__red{border-color:#d63638;color:#d63638 !important}.codepopular_notice .btn__red:after{background-color:#d63638}.codepopular_notice .btn__gray{border-color:#c3c4c7;color:#c3c4c7 !important}.codepopular_notice .btn__gray:after{background-color:#c3c4c7}/*# sourceMappingURL=wmufs.min.css.map */ \ No newline at end of file diff --git a/wp-content/plugins/wp-maximum-upload-file-size/assets/css/wmufs.min.css.map b/wp-content/plugins/wp-maximum-upload-file-size/assets/css/wmufs.min.css.map new file mode 100644 index 000000000..5704e38f3 --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/assets/css/wmufs.min.css.map @@ -0,0 +1,10 @@ +{ + "version": 3, + "mappings": "AAAA,AAAA,WAAW,CAAC,EAAE,AAAC,CACX,KAAK,CAAE,KAAK,CACf,AAED,AAAA,SAAS,AAAC,CACN,OAAO,CAAE,YAAY,CACrB,OAAO,CAAE,IAAI,CACb,gBAAgB,CAAE,OAAO,CAC5B,AAGD,AAAA,eAAe,AAAC,CACZ,UAAU,CAAE,MAAM,CAClB,MAAM,CAAE,cAAc,CACtB,UAAU,CAAE,IAAI,CAChB,OAAO,CAAE,IAAI,CAkBhB,AAtBD,AAOI,eAPW,CAOX,EAAE,AAAC,CACC,SAAS,CAAE,IAAI,CAClB,AATL,AAWI,eAXW,CAWX,CAAC,AAAC,CACE,eAAe,CAAE,IAAI,CACrB,SAAS,CAAE,IAAI,CACf,UAAU,CAAE,OAAO,CACnB,OAAO,CAAE,QAAQ,CACjB,KAAK,CAAE,IAAI,CACX,aAAa,CAAE,IAAI,CACnB,OAAO,CAAE,YAAY,CACxB,AAML,AAAA,kBAAkB,AAAC,CACf,KAAK,CAAE,KAAK,CACZ,OAAO,CAAE,IAAI,CACb,WAAW,CAAE,MAAM,CACnB,eAAe,CAAE,MAAM,CACvB,UAAU,CAAE,kBAAkB,CAC9B,SAAS,CAAE,IAAI,CACf,WAAW,CAAE,IAAI,CACjB,OAAO,CAAE,SAAS,CAKrB,AAbD,AAUI,kBAVc,CAUd,UAAU,AAAC,CACP,aAAa,CAAE,IACnB,CAAC,AAKL,AAAA,YAAY,AAAC,CACT,aAAa,CAAE,IAAI,CACtB,AAED,AAAA,YAAY,AAAC,CACT,aAAa,CAAE,IAAI,CACtB,AAED,AAAA,UAAU,AAAC,CACP,OAAO,CAAE,IAAI,CACb,KAAK,CAAE,IAAI,CACX,QAAQ,CAAE,MAAM,CAChB,eAAe,CAAE,aAAa,CACjC,AAED,AAAA,WAAW,AAAC,CACR,UAAU,CAAE,IAAI,CAChB,MAAM,CAAE,cAAc,CACtB,UAAU,CAAE,oBAAoB,CAChC,OAAO,CAAE,SACb,CAAC,AAED,AAAA,YAAY,AAAC,CACT,KAAK,CAAE,IAAI,CACX,YAAY,CAAE,IAAI,CACrB,AAED,AAAA,YAAY,AAAC,CACT,KAAK,CAAE,cAAc,CACrB,IAAI,CAAE,QAAQ,CACd,YAAY,CAAE,IAClB,CAAC,AAID,AAAA,gBAAgB,AAAC,CACb,MAAM,CAAE,cAAc,CACtB,OAAO,CAAE,IACb,CAAC,AAED,AAAA,YAAY,CAAC,EAAE,AAAC,CACZ,MAAM,CAAE,cAAc,CACtB,OAAO,CAAE,IAAI,CACb,UAAU,CAAE,MAAM,CAClB,UAAU,CAAE,OAAO,CACnB,MAAM,CAAE,gBAAgB,CACxB,SAAS,CAAE,IAAI,CAElB,AAMD,AAAA,UAAU,AAAC,CACP,UAAU,CAAE,OAAO,CACnB,UAAU,CAAE,MAAM,CAmBrB,AArBD,AAII,UAJM,CAIN,UAAU,CAAC,CAAC,AAAC,CACT,KAAK,CAAE,IAAI,CACX,eAAe,CAAE,IAAI,CACrB,OAAO,CAAE,IAAI,CACb,OAAO,CAAE,YAAY,CACrB,WAAW,CAAE,IAAI,CACjB,SAAS,CAAE,IAAI,CAClB,AAXL,AAaI,UAbM,CAaN,CAAC,AAAA,MAAM,CAbX,UAAU,CAcN,CAAC,AAAA,MAAM,CAdX,UAAU,CAeN,CAAC,AAAA,OAAO,AAAC,CACL,OAAO,CAAE,CAAC,CACV,UAAU,CAAE,IAAI,CACnB,AAOL,AAAA,0BAA0B,CAAC,GAAG,AAAC,CAC3B,KAAK,CAAE,IACX,CAAC,AAED,AAAA,0BAA0B,CAAC,CAAC,AAAC,CACzB,eAAe,CAAE,IAAI,CACxB,AAOD,AAAA,oBAAoB,AAAC,CACjB,KAAK,CAAE,IAAI,CAuDd,AAxDD,AAGI,oBAHgB,CAGhB,kBAAkB,AAAC,CACf,KAAK,CAAE,OAAO,CACd,SAAS,CAAE,IAAI,CAClB,AANL,AAQI,oBARgB,CAQhB,cAAc,AAAC,CACX,KAAK,CAAE,KAAK,CACZ,SAAS,CAAE,IAAI,CAClB,AAXL,AAaI,oBAbgB,CAahB,EAAE,CAAC,EAAE,AAAA,YAAY,AAAC,CACd,UAAU,CAAE,IAAI,CACnB,AAfL,AAkBI,oBAlBgB,CAkBhB,EAAE,AAAC,CACC,MAAM,CAAE,cAAc,CACtB,OAAO,CAAE,IAAI,CACb,aAAa,CAAE,IAAI,CACtB,AAtBL,AAwBI,oBAxBgB,CAwBhB,EAAE,AAAA,YAAY,AAAC,CACX,YAAY,CAAE,IAAI,CACrB,AA1BL,AA8BI,oBA9BgB,CA8BhB,EAAE,AAAA,WAAW,AAAC,CACV,WAAW,CAAE,IAAI,CACpB,AAhCL,AAkCI,oBAlCgB,CAkChB,EAAE,AAAC,CACC,MAAM,CAAE,cAAc,CACtB,OAAO,CAAE,IAAI,CACb,aAAa,CAAE,IAAI,CACtB,AAtCL,AAwCI,oBAxCgB,CAwChB,EAAE,AAAA,UAAW,CAAA,CAAC,CAAE,CACZ,WAAW,CAAE,IAAI,CACjB,UAAU,CAAE,MAAM,CACrB,AA3CL,AA8CI,oBA9CgB,CA8ChB,EAAE,AAAA,WAAW,AAAC,CACV,WAAW,CAAE,IAAI,CACpB,AAhDL,AAkDI,oBAlDgB,CAkDhB,EAAE,AAAA,WAAW,CAAC,EAAE,AAAC,CACb,aAAa,CAAE,cAAc,CAChC,AAQL,AAAA,qBAAqB,AAAC,CAClB,MAAM,CAAE,CAAC,CACZ,AAID,MAAM,EAAC,SAAS,EAAE,KAAK,EACnB,AAAA,UAAU,AAAC,CACP,OAAO,CAAE,KACb,CAAC,AAED,AAAA,YAAY,AAAC,CACT,KAAK,CAAE,IAAI,CACd,AAED,AAAA,YAAY,AAAC,CACT,KAAK,CAAE,IAAI,CACd,CCzNL,AAAA,mBAAmB,AAAC,CAChB,OAAO,CAAE,SAAS,CAsKrB,AAvKD,AAGI,mBAHe,CAGf,EAAE,AAAA,CACE,SAAS,CAAE,IAAI,CAClB,AALL,AAOI,mBAPe,CAOf,CAAC,AAAC,CACE,SAAS,CAAE,IAAI,CACf,WAAW,CAAE,YAAY,CACzB,SAAS,CAAE,KACf,CAAC,AAXL,AAaI,mBAbe,CAaf,CAAC,AAAC,CACE,UAAU,CAAE,IAAI,CAChB,KAAK,CAAE,OAAO,CACd,OAAO,CAAE,IAAI,CACb,eAAe,CAAE,SAAS,CAC1B,UAAU,CAAE,WAAW,CAK1B,AAvBL,AAoBQ,mBApBW,CAaf,CAAC,AAOI,MAAM,AAAC,CACJ,OAAO,CAAE,EACb,CAAC,AAIJ,AAAD,4BAAU,AAAC,CACP,UAAU,CAAE,KAAK,CACjB,QAAQ,CAAE,MAAM,CAChB,OAAO,CAAE,MACb,CAAC,AAEA,AAAD,2BAAS,AAAC,CACN,KAAK,CAAE,IAAI,CACX,MAAM,CAAE,aAAa,CAOxB,AATA,AAIG,2BAJK,AAIJ,WAAW,AAAC,CACT,YAAY,CAAE,CAClB,CAAC,AAtCT,AA6CI,mBA7Ce,CA6Cf,oBAAoB,AAAC,CACjB,gBAAgB,CAAE,IAAI,CACtB,MAAM,CAAE,qBAAqB,CAC7B,UAAU,CAAE,eAAe,CAC3B,UAAU,CAAE,UAAU,CACtB,MAAM,CAAE,OAAO,CACf,OAAO,CAAE,YAAY,CACrB,SAAS,CAAE,IAAI,CACf,WAAW,CAAE,GAAG,CAChB,WAAW,CAAE,YAAY,CACzB,SAAS,CAAE,KAAK,CAChB,OAAO,CAAE,YAAY,CACrB,OAAO,CAAE,eAAe,CACxB,OAAO,CAAE,QAAQ,CACjB,QAAQ,CAAE,QAAQ,CAClB,MAAM,CAAC,GAAG,CACV,UAAU,CAAE,MAAM,CAClB,eAAe,CAAE,eAAe,CAChC,UAAU,CAAE,oBAAoB,CAChC,OAAO,CAAE,EAAE,CA0Bd,AA1FL,AAkEQ,mBAlEW,CA6Cf,oBAAoB,AAqBf,OAAO,AAAC,CACL,KAAK,CAAE,IAAI,CACX,WAAW,CAAE,SAAS,CACtB,SAAS,CAAE,IAAI,CACf,WAAW,CAAE,GAAG,CAChB,YAAY,CAAE,IAClB,CAAC,AAxET,AA0EQ,mBA1EW,CA6Cf,oBAAoB,AA6Bf,MAAM,AAAC,CACJ,OAAO,CAAE,EAAE,CACX,MAAM,CAAE,IAAI,CACZ,IAAI,CAAE,CAAC,CACP,QAAQ,CAAE,QAAQ,CAClB,GAAG,CAAE,CAAC,CACN,UAAU,CAAE,SAAS,CACrB,KAAK,CAAE,CAAC,CACR,OAAO,CAAE,EACb,CAAC,AAnFT,AAqFQ,mBArFW,CA6Cf,oBAAoB,AAwCf,MAAM,AAAA,MAAM,AAAC,CACV,KAAK,CAAE,IACX,CAAC,AAvFT,AA6FI,mBA7Fe,CA6Ff,UAAU,AAAA,MAAM,CA7FpB,mBAAmB,CA8Ff,UAAU,AAAA,MAAM,CA9FpB,mBAAmB,CA+Ff,WAAW,AAAA,MAAM,CA/FrB,mBAAmB,CAgGf,YAAY,AAAA,MAAM,CAhGtB,mBAAmB,CAiGf,UAAU,AAAA,MAAM,CAjGpB,mBAAmB,CAkGf,SAAS,AAAA,MAAM,AAAC,CACZ,KAAK,CAAE,eACX,CAAC,AApGL,AAsGI,mBAtGe,CAsGf,UAAU,AAAC,CACP,YAAY,CAAE,OAAO,CACrB,KAAK,CAAE,kBAAkB,CAK5B,AA7GL,AA0GQ,mBA1GW,CAsGf,UAAU,AAIL,MAAM,AAAC,CACJ,gBAAgB,CAAE,OACtB,CAAC,AA5GT,AAgHI,mBAhHe,CAgHf,WAAW,AAAC,CACR,YAAY,CAAE,OAAO,CACrB,KAAK,CAAE,kBAAkB,CAM5B,AAxHL,AAoHQ,mBApHW,CAgHf,WAAW,AAIN,MAAM,AAAC,CACJ,gBAAgB,CAAE,OACtB,CAAC,AAtHT,AA0HI,mBA1He,CA0Hf,YAAY,AAAC,CACT,YAAY,CAAE,OAAO,CACrB,KAAK,CAAE,OAAO,CAAA,UAAU,CAO3B,AAnIL,AA8HQ,mBA9HW,CA0Hf,YAAY,AAIP,MAAM,AAAC,CACJ,gBAAgB,CAAE,OACtB,CAAC,AAhIT,AAqII,mBArIe,CAqIf,UAAU,AAAC,CACP,YAAY,CAAE,OAAO,CACrB,KAAK,CAAE,OAAO,CAAA,UAAU,CAO3B,AA9IL,AAyIQ,mBAzIW,CAqIf,UAAU,AAIL,MAAM,AAAC,CACJ,gBAAgB,CAAE,OACtB,CAAC,AA3IT,AAgJI,mBAhJe,CAgJf,SAAS,AAAC,CACN,YAAY,CAAE,OAAO,CACrB,KAAK,CAAE,kBAAkB,CAM5B,AAxJL,AAoJQ,mBApJW,CAgJf,SAAS,AAIJ,MAAM,AAAC,CACJ,gBAAgB,CAAE,OACtB,CAAC,AAtJT,AA0JI,mBA1Je,CA0Jf,UAAU,AAAC,CACP,YAAY,CAAE,OAAO,CACrB,KAAK,CAAE,kBAAkB,CAO5B,AAnKL,AA8JQ,mBA9JW,CA0Jf,UAAU,AAIL,MAAM,AAAC,CACJ,gBAAgB,CAAE,OACtB,CAAC", + "sources": [ + "wmufs.scss", + "_promotion.scss" + ], + "names": [], + "file": "wmufs.min.css" +} \ No newline at end of file diff --git a/wp-content/plugins/wp-maximum-upload-file-size/assets/css/wmufs.scss b/wp-content/plugins/wp-maximum-upload-file-size/assets/css/wmufs.scss new file mode 100644 index 000000000..4e0b5efe1 --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/assets/css/wmufs.scss @@ -0,0 +1,236 @@ +.form-table th { + width: 230px; +} + +.gray-box { + display: inline-block; + padding: 15px; + background-color: #e6e6e6; +} + + +.support-ticket { + text-align: center; + border: 1px solid #ccc; + margin-top: 20px; + padding: 20px; + + + h2 { + font-size: 25px; + } + + a { + text-decoration: none; + font-size: 16px; + background: #6d0eff; + padding: 9px 23px; + color: #fff; + border-radius: 20px; + display: inline-block; + } + + +} + + +.wmufs_support_btn { + color: white; + display: flex; + align-items: center; + justify-content: center; + background: #525252 !important; + font-size: 20px; + font-weight: bold; + padding: 20px 10px; + + .dashicons { + padding-right: 10px + } +} + + + +.wmufs_mb_50 { + margin-bottom: 50px; +} + +.wmufs_mb_20 { + margin-bottom: 20px; +} + +.wmufs_row { + display: flex; + width: 100%; + overflow: hidden; + justify-content: space-between; +} + +.wmufs_card { + background: #fff; + border: 1px solid #eee; + box-shadow: 1px 3px 9px 1px #eee; + padding: 10px 20px +} + +.wmufs-col-8 { + width: 100%; + margin-right: 20px; +} + +.wmufs-col-4 { + width: 21.3333333333%; + flex: 0 0 auto; + margin-right: 20px +} + + + +.wmufs_card_mini { + border: 1px solid #eee; + padding: 10px +} + +.wmufs-title h3 { + border: 1px solid #eee; + padding: 10px; + text-align: center; + background: #f5f5f5; + margin: 0px 0px 10px 0px; + font-size: 18px; + +} + +/** +Button Design +*/ + +.wmufs-btn { + background: #6d0eff; + text-align: center; + + .wmufs-btn a { + color: #fff; + text-decoration: none; + padding: 10px; + display: inline-block; + font-weight: bold; + font-size: 16px; + } + + a:hover, + a:focus, + a:active { + outline: 0; + box-shadow: none; + } + + +} + + + +.wmufs-recommended-content img { + width: 100% +} + +.wmufs-recommended-content a { + text-decoration: none; +} + + + + +/******** System Status ******************/ + +.wmufs-system-status { + width: 100%; + + .dashicons-warning { + color: #cd5c5c; + font-size: 20px; + } + + .dashicons-yes { + color: green; + font-size: 20px; + } + + tr td:first-child { + text-align: left; + } + + + th { + border: 1px solid #ccc; + padding: 10px; + border-bottom: none; + } + + th:first-child { + border-right: none; + } + + + + th:last-child { + border-left: none; + } + + td { + border: 1px solid #ccc; + padding: 10px; + border-bottom: none; + } + + td:nth-child(2) { + border-left: none; + text-align: center; + } + + + td:last-child { + border-left: none; + } + + tr:last-child td { + border-bottom: 1px solid #ccc; + } + + + +} + + + +.wpifw_status_message { + margin: 0; +} + + + +@media(max-width: 786px) { + .wmufs_row { + display: block + } + + .wmufs-col-8 { + width: 100%; + } + + .wmufs-col-4 { + width: 100%; + } + + +} + + +@import "./promotion"; + + + + + + + diff --git a/wp-content/plugins/wp-maximum-upload-file-size/assets/images/best-elementor-countdown-timer.png b/wp-content/plugins/wp-maximum-upload-file-size/assets/images/best-elementor-countdown-timer.png new file mode 100644 index 000000000..073719585 Binary files /dev/null and b/wp-content/plugins/wp-maximum-upload-file-size/assets/images/best-elementor-countdown-timer.png differ diff --git a/wp-content/plugins/wp-maximum-upload-file-size/assets/images/dostart.png b/wp-content/plugins/wp-maximum-upload-file-size/assets/images/dostart.png new file mode 100644 index 000000000..d903922ff Binary files /dev/null and b/wp-content/plugins/wp-maximum-upload-file-size/assets/images/dostart.png differ diff --git a/wp-content/plugins/wp-maximum-upload-file-size/assets/images/unlimited-theme-addon.png b/wp-content/plugins/wp-maximum-upload-file-size/assets/images/unlimited-theme-addon.png new file mode 100644 index 000000000..216cd402a Binary files /dev/null and b/wp-content/plugins/wp-maximum-upload-file-size/assets/images/unlimited-theme-addon.png differ diff --git a/wp-content/plugins/wp-maximum-upload-file-size/assets/js/admin.js b/wp-content/plugins/wp-maximum-upload-file-size/assets/js/admin.js new file mode 100644 index 000000000..b0bb0cd11 --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/assets/js/admin.js @@ -0,0 +1,36 @@ + + (function ($) { + + "use strict"; + + $('#hideWmufsNotice').on('click', function(){ + + $.ajax( + { + url: wmufs_admin_notice_ajax_object.wmufs_admin_notice_ajax_url, + type: 'post', + dataType: 'json', + data: { + action: 'wmufs_admin_notice_ajax_object_save', data: 1, + _ajax_nonce: wmufs_admin_notice_ajax_object.nonce, + }, + success: function (data) { + console.log("success"); + console.log(data); + if (data.success == true) { + $('.hideWmufsNotice').hide('fast'); + } + }, + error: function (error) { + console.log(error); + + } + } + + ) + + + }); + + +})(jQuery); \ No newline at end of file diff --git a/wp-content/plugins/wp-maximum-upload-file-size/inc/class-wmufs-chunk-files.php b/wp-content/plugins/wp-maximum-upload-file-size/inc/class-wmufs-chunk-files.php new file mode 100644 index 000000000..23a2e063d --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/inc/class-wmufs-chunk-files.php @@ -0,0 +1,511 @@ +max_upload_size = wp_max_upload_size(); + add_action( 'wp_ajax_wmufs_chunker', array( $this, 'wmufs_ajax_chunk_receiver' ) ); + add_filter( 'plupload_init', array( $this, 'wmufs_filter_plupload_settings' ) ); + add_filter( 'plupload_default_settings', array( $this, 'wmufs_filter_plupload_settings' ) ); + add_filter( 'plupload_default_params', array( $this, 'wmufs_filter_plupload_params' ) ); + add_filter( 'upload_post_params', array( $this, 'wmufs_filter_plupload_params' ) ); + } + + + + + + /** + * @param $plupload_params + * @return mixed + */ + public function wmufs_filter_plupload_params( $plupload_params ) { + + $plupload_params['action'] = 'wmufs_chunker'; + + return $plupload_params; + + } + + + /** + * AJAX chunk receiver. + * + * Ajax callback for plupload to handle chunked uploads. + * Based on code by Davit Barbakadze + * https://gist.github.com/jayarjo/5846636 + * + * Mirrors /wp-admin/async-upload.php + * + */ + public function wmufs_ajax_chunk_receiver() { + + /** Check that we have an upload and there are no errors. */ + if ( empty( $_FILES ) || $_FILES['async-upload']['error'] ) { + /** Failed to move uploaded file. */ + die(); + } + + /** Authenticate user. */ + if ( ! is_user_logged_in() || ! current_user_can( 'upload_files' ) ) { + wp_die( __( 'Sorry, you are not allowed to upload files.' ) ); + } + check_admin_referer( 'media-form' ); + + /** Check and get file chunks. */ + $chunk = isset( $_REQUEST['chunk'] ) ? intval( $_REQUEST['chunk'] ) : 0; //zero index + $current_part = $chunk + 1; + $chunks = isset( $_REQUEST['chunks'] ) ? intval( $_REQUEST['chunks'] ) : 0; + + /** Get file name and path + name. */ + $fileName = isset( $_REQUEST['name'] ) ? $_REQUEST['name'] : $_FILES['async-upload']['name']; + + + $wmufs_temp_dir = apply_filters( 'wmufs_temp_dir', WP_CONTENT_DIR . '/wmufs-temp' ); + + //only run on first chunk + if ( $chunk === 0 ) { + // Create temp directory if it doesn't exist + if ( ! @is_dir( $wmufs_temp_dir ) ) { + wp_mkdir_p( $wmufs_temp_dir ); + } + + // Protect temp directory from browsing. + $index_pathname = $wmufs_temp_dir . '/index.php'; + if ( ! file_exists( $index_pathname ) ) { + $file = fopen( $index_pathname, 'w' ); + if ( false !== $file ) { + fwrite( $file, "get_upload_limit(); + if ( file_exists( $filePath ) && filesize( $filePath ) + filesize( $_FILES['async-upload']['tmp_name'] ) > $wmufs_max_upload_size ) { + if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { + error_log( "WMUFS: File size limit exceeded." ); + } + + if ( ! $chunks || $chunk == $chunks - 1 ) { + @unlink( $filePath ); + + if ( ! isset( $_REQUEST['short'] ) || ! isset( $_REQUEST['type'] ) ) { + echo wp_json_encode( array( + 'success' => false, + 'data' => array( + 'message' => __( 'The file size has exceeded the maximum file size setting.', 'tuxedo-big-file-uploads' ), + 'filename' => $fileName, + ), + ) ); + wp_die(); + } else { + status_header( 202 ); + printf( + '
%s %s
%s
', + sprintf( + '', + __( 'Dismiss' ) + ), + sprintf( + /* translators: %s: Name of the file that failed to upload. */ + __( '“%s” has failed to upload.' ), + esc_html( $fileName ) + ), + __( 'The file size has exceeded the maximum file size setting.', 'tuxedo-big-file-uploads' ) + ); + exit; + } +} + + die(); + } + + /** Open temp file. */ + if ( $chunk == 0 ) { + $out = @fopen( $filePath, 'wb'); + } elseif ( is_writable( $filePath ) ) { // + $out = @fopen( $filePath, 'ab' ); + } else { + $out = false; + } + + if ( $out ) { + + /** Read binary input stream and append it to temp file. */ + $in = @fopen( $_FILES['async-upload']['tmp_name'], 'rb' ); + + if ( $in ) { + while ( $buff = fread( $in, 4096 ) ) { + fwrite( $out, $buff ); + } + } else { + /** Failed to open input stream. */ + /** Attempt to clean up unfinished output. */ + @fclose( $out ); + @unlink( $filePath ); + error_log( "WMUFS: Error reading uploaded part $current_part of $chunks." ); + + if ( ! isset( $_REQUEST['short'] ) || ! isset( $_REQUEST['type'] ) ) { + echo wp_json_encode( + array( + 'success' => false, + 'data' => array( + 'message' => sprintf( __( 'There was an error reading uploaded part %1$d of %2$d.', 'tuxedo-big-file-uploads' ), $current_part, $chunks ), + 'filename' => esc_html( $fileName ), + ), + ) + ); + wp_die(); + } else { + status_header( 202 ); + printf( + '
%s %s
%s
', + sprintf( + '', + __( 'Dismiss' ) + ), + sprintf( + /* translators: %s: Name of the file that failed to upload. */ + __( '“%s” has failed to upload.' ), + esc_html( $fileName ) + ), + sprintf( __( 'There was an error reading uploaded part %1$d of %2$d.', 'tuxedo-big-file-uploads' ), $current_part, $chunks ) + ); + exit; + } + } + + @fclose( $in ); + @fclose( $out ); + @unlink( $_FILES['async-upload']['tmp_name'] ); + } else { + /** Failed to open output stream. */ + error_log( "BFU: Failed to open output stream $filePath to write part $current_part of $chunks." ); + + if ( ! isset( $_REQUEST['short'] ) || ! isset( $_REQUEST['type'] ) ) { + echo wp_json_encode( + array( + 'success' => false, + 'data' => array( + 'message' => sprintf( __( 'There was an error opening the temp file %s for writing. Available temp directory space may be exceeded or the temp file was cleaned up before the upload completed.', 'tuxedo-big-file-uploads' ), esc_html( $filePath ) ), + 'filename' => esc_html( $fileName ), + ), + ) + ); + wp_die(); + } else { + status_header( 202 ); + printf( + '
%s %s
%s
', + sprintf( + '', + __( 'Dismiss' ) + ), + sprintf( + /* translators: %s: Name of the file that failed to upload. */ + __( '“%s” has failed to upload.' ), + esc_html( $fileName ) + ), + sprintf( __( 'There was an error opening the temp file %s for writing. Available temp directory space may be exceeded or the temp file was cleaned up before the upload completed.', 'tuxedo-big-file-uploads' ), esc_html( $filePath ) ) + ); + exit; + } + } + + /** Check if file has finished uploading all parts. */ + if ( ! $chunks || $chunk == $chunks - 1 ) { + + //debugging + if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { + $size = file_exists( $filePath ) ? size_format( filesize( $filePath ), 3 ) : '0 B'; + error_log( "BFU: Completing \"$fileName\" upload with a $size final size." ); + } + + /** Recreate upload in $_FILES global and pass off to WordPress. */ + $_FILES['async-upload']['tmp_name'] = $filePath; + $_FILES['async-upload']['name'] = $fileName; + $_FILES['async-upload']['size'] = filesize( $_FILES['async-upload']['tmp_name'] ); + $wp_filetype = wp_check_filetype_and_ext( $_FILES['async-upload']['tmp_name'], $_FILES['async-upload']['name'] ); + $_FILES['async-upload']['type'] = $wp_filetype['type']; + + header( 'Content-Type: text/plain; charset=' . get_option( 'blog_charset' ) ); + + if ( ! isset( $_REQUEST['short'] ) || ! isset( $_REQUEST['type'] ) ) { //ajax like media uploader in modal + + // Compatibility with Easy Digital Downloads plugin. + if ( function_exists( 'edd_change_downloads_upload_dir' ) ) { + global $pagenow; + $pagenow = 'async-upload.php'; + edd_change_downloads_upload_dir(); + } + + send_nosniff_header(); + nocache_headers(); + + $this->wp_ajax_upload_attachment(); + die( '0' ); + + } else { //non-ajax like add new media page + $post_id = 0; + if ( isset( $_REQUEST['post_id'] ) ) { + $post_id = absint( $_REQUEST['post_id'] ); + if ( ! get_post( $post_id ) || ! current_user_can( 'edit_post', $post_id ) ) + $post_id = 0; + } + + $id = media_handle_upload( 'async-upload', $post_id, [], [ + 'action' => 'wp_handle_sideload', + 'test_form' => false, + ] ); + if ( is_wp_error( $id ) ) { + printf( + '
%s %s
%s
', + sprintf( + '', + __( 'Dismiss' ) + ), + sprintf( + /* translators: %s: Name of the file that failed to upload. */ + __( '“%s” has failed to upload.' ), + esc_html( $_FILES['async-upload']['name'] ) + ), + esc_html( $id->get_error_message() ) + ); + exit; + } + + if ( $_REQUEST['short'] ) { + // Short form response - attachment ID only. + echo $id; + } else { + // Long form response - big chunk of HTML. + $type = $_REQUEST['type']; + + /** + * Filters the returned ID of an uploaded attachment. + * + * The dynamic portion of the hook name, `$type`, refers to the attachment type. + * + * Possible hook names include: + * + * - `async_upload_audio` + * - `async_upload_file` + * - `async_upload_image` + * - `async_upload_video` + * + * @since 1.1.0 + * + * @param int $id Uploaded attachment ID. + */ + echo apply_filters( "async_upload_{$type}", $id ); + } +} +} + + die(); + } + + /** + * Return the maximum upload limit in bytes for the current user. + * + * @since 1.1.0 + * + * @return integer + */ + function get_upload_limit() { + $max_size = (int) get_option('max_file_size'); + if ( ! $max_size ) { + $max_size = wp_max_upload_size(); + } + return $max_size; + } + + + /** + * Copied from wp-admin/includes/ajax-actions.php because we have to override the args for + * the media_handle_upload function. As of WP 6.0.1 + */ + function wp_ajax_upload_attachment() { + check_ajax_referer( 'media-form' ); + /* + * This function does not use wp_send_json_success() / wp_send_json_error() + * as the html4 Plupload handler requires a text/html content-type for older IE. + * See https://core.trac.wordpress.org/ticket/31037 + */ + + if ( ! current_user_can( 'upload_files' ) ) { + echo wp_json_encode( + array( + 'success' => false, + 'data' => array( + 'message' => __( 'Sorry, you are not allowed to upload files.' ), + 'filename' => esc_html( $_FILES['async-upload']['name'] ), + ), + ) + ); + + wp_die(); + } + + if ( isset( $_REQUEST['post_id'] ) ) { + $post_id = $_REQUEST['post_id']; + + if ( ! current_user_can( 'edit_post', $post_id ) ) { + echo wp_json_encode( + array( + 'success' => false, + 'data' => array( + 'message' => __( 'Sorry, you are not allowed to attach files to this post.' ), + 'filename' => esc_html( $_FILES['async-upload']['name'] ), + ), + ) + ); + + wp_die(); + } + } else { + $post_id = null; + } + + $post_data = ! empty( $_REQUEST['post_data'] ) ? _wp_get_allowed_postdata( _wp_translate_postdata( false, (array) $_REQUEST['post_data'] ) ) : array(); + + if ( is_wp_error( $post_data ) ) { + wp_die( $post_data->get_error_message() ); + } + + // If the context is custom header or background, make sure the uploaded file is an image. + if ( isset( $post_data['context'] ) && in_array( $post_data['context'], array( 'custom-header', 'custom-background' ), true ) ) { + $wp_filetype = wp_check_filetype_and_ext( $_FILES['async-upload']['tmp_name'], $_FILES['async-upload']['name'] ); + + if ( ! wp_match_mime_types( 'image', $wp_filetype['type'] ) ) { + echo wp_json_encode( + array( + 'success' => false, + 'data' => array( + 'message' => __( 'The uploaded file is not a valid image. Please try again.' ), + 'filename' => esc_html( $_FILES['async-upload']['name'] ), + ), + ) + ); + + wp_die(); + } + } + + //this is the modded function from wp-admin/includes/ajax-actions.php + $attachment_id = media_handle_upload( 'async-upload', $post_id, $post_data, [ + 'action' => 'wp_handle_sideload', + 'test_form' => false, + ] ); + + if ( is_wp_error( $attachment_id ) ) { + echo wp_json_encode( + array( + 'success' => false, + 'data' => array( + 'message' => $attachment_id->get_error_message(), + 'filename' => esc_html( $_FILES['async-upload']['name'] ), + ), + ) + ); + + wp_die(); + } + + if ( isset( $post_data['context'] ) && isset( $post_data['theme'] ) ) { + if ( 'custom-background' === $post_data['context'] ) { + update_post_meta( $attachment_id, '_wp_attachment_is_custom_background', $post_data['theme'] ); + } + + if ( 'custom-header' === $post_data['context'] ) { + update_post_meta( $attachment_id, '_wp_attachment_is_custom_header', $post_data['theme'] ); + } + } + + $attachment = wp_prepare_attachment_for_js( $attachment_id ); + if ( ! $attachment ) { + wp_die(); + } + + echo wp_json_encode( + array( + 'success' => true, + 'data' => $attachment, + ) + ); + + wp_die(); + } + + + /** + * Filter plupload settings. + * + * @since 1.1.0 + */ + public function wmufs_filter_plupload_settings( $plupload_settings ) { + + $max_chunk = ( MB_IN_BYTES * 20 ); //20MB max chunk size (to avoid timeouts) + if ( $max_chunk > $this->max_upload_size ) { + $default_chunk = ( $this->max_upload_size * 0.8 ) / KB_IN_BYTES; + } else { + $default_chunk = $max_chunk / KB_IN_BYTES; + } + //define( 'WMUFS_FILE_UPLOADS_CHUNK_SIZE_KB', 512 );//TODO remove + if ( ! defined( 'WMUFS_FILE_UPLOADS_CHUNK_SIZE_KB' ) ) { + define( 'WMUFS_FILE_UPLOADS_CHUNK_SIZE_KB', $default_chunk ); + } + + if ( ! defined( 'WMUFS_FILE_UPLOADS_RETRIES' ) ) { + define( 'WMUFS_FILE_UPLOADS_RETRIES', 1 ); + } + + $plupload_settings['url'] = admin_url( 'admin-ajax.php' ); + $plupload_settings['filters']['max_file_size'] = $this->get_upload_limit( '' ) . 'b'; + $plupload_settings['chunk_size'] = WMUFS_FILE_UPLOADS_CHUNK_SIZE_KB . 'kb'; + $plupload_settings['max_retries'] = WMUFS_FILE_UPLOADS_RETRIES; + + return $plupload_settings; + } + +} + +WMUFS_File_Chunk::get_instance()->init(); diff --git a/wp-content/plugins/wp-maximum-upload-file-size/inc/class-wmufs-helper.php b/wp-content/plugins/wp-maximum-upload-file-size/inc/class-wmufs-helper.php new file mode 100644 index 000000000..859df2c3d --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/inc/class-wmufs-helper.php @@ -0,0 +1,213 @@ + + esc_html__( 'PHP Version', 'wp-maximum-upload-file-size' ), + 'version' => esc_html__('Current Version : ', 'wp-maximum-upload-file-size') . $wmufs_current_php_version, + 'status' => $wmufs_php_version_status, + 'success_message' => esc_html__( '- ok', 'wp-maximum-upload-file-size' ), + 'error_message' => esc_html__( 'Recommend Version : ', 'wp-maximum-upload-file-size' ) . $wmufs_minimum_php_version,//phpcs:ignore + ), + + array( + 'title' => esc_html__( 'WordPress Version', 'wp-maximum-upload-file-size' ), + 'version' => $wmufs_wp_current_version, + 'status' => $wmufs_wp_version_status, + 'success_message' => esc_html__( '- ok', 'wp-maximum-upload-file-size' ), + 'error_message' => esc_html__( 'Recommend : ', 'wp-maximum-upload-file-size') . $wmufs_minimum_wp_version , //phpcs:ignore + ), + + array( + 'title' => esc_html__( 'Woocommerce Version', 'wp-maximum-upload-file-size' ), + 'version' => $wmufs_wc_current_version, + 'status' => $wmufs_wc_status, + 'success_message' => esc_html__( '- ok', 'wp-maximum-upload-file-size' ), + 'error_message' => esc_html__( 'Recommend : ', 'wp-maximum-upload-file-size') . $wmufs_minimum_wc_version, //phpcs:ignore + ), + + array( + 'title' => esc_html__( 'Maximum Upload Limit set by WordPress', 'wp-maximum-upload-file-size' ), + 'version' => wmufs_wp_minimum_upload_file_size(), + 'status' => $wmufs_wp_upload_size_status, + 'success_message' => esc_html__( '- ok', 'wp-maximum-upload-file-size' ), + 'error_message' => esc_html__( 'Recommend : ', 'wp-maximum-upload-file-size' ) . $wmufs_wp_minimum_upload_file_size, //phpcs:ignore + ), + + array( + 'title' => esc_html__( 'Maximum Upload Limit Set By Hosting Provider', 'wp-maximum-upload-file-size' ), + 'version' => wmufs_wp_upload_size_by_from_hosting(), + 'status' => $wmufs_wp_upload_size_status_from_hosting, + 'success_message' => esc_html__( '- ok', 'wp-maximum-upload-file-size' ), + 'error_message' => esc_html__( 'Recommend : ', 'wp-maximum-upload-file-size' ) . $wmufs_wp_minimum_upload_file_size, //phpcs:ignore + ), + + array( + 'title' => esc_html__( 'PHP Limit Time', 'wp-maximum-upload-file-size' ), + 'version' => esc_html__('Current Limit Time: ', 'wp-maximum-upload-file-size') . $wmufs_php_current_limit_time, + 'status' => $wmufs_php_limit_time_status, + 'success_message' => esc_html__( '- Ok', 'wp-maximum-upload-file-size' ), + 'error_message' => esc_html__( 'Recommend : ', 'wp-maximum-upload-file-size' ) . $wmufs_php_minimum_limit_time, //phpcs:ignore + ), + + array( + 'title' => esc_html__( 'zipArchive Extension', 'wp-maximum-upload-file-size' ), + 'version' => '', + 'status' => $wmufs_check_zip_extension_status, + 'success_message' => esc_html__( 'Enable', 'wp-maximum-upload-file-size' ), + 'error_message' => esc_html__( 'Please enable zip extension from hosting.', 'wp-maximum-upload-file-size' ), + ), + + array( + 'title' => esc_html__( 'MBString extension', 'wp-maximum-upload-file-size' ), + 'version' => '', + 'status' => $wmufs_check_mbstring_extension_status, + 'success_message' => esc_html__( 'Enable', 'wp-maximum-upload-file-size' ), + 'error_message' => esc_html__( 'Please enable MBString extension from hosting.', 'wp-maximum-upload-file-size' ), + ), + + array( + 'title' => esc_html__( 'Dom extension', 'wp-maximum-upload-file-size' ), + 'version' => '', + 'status' => $wmufs_check_dom_extension_status, + 'success_message' => esc_html__( 'Enable', 'wp-maximum-upload-file-size' ), + 'error_message' => esc_html__( 'Dom extension is not enable from hosting.', 'wp-maximum-upload-file-size' ), + ), +); + diff --git a/wp-content/plugins/wp-maximum-upload-file-size/inc/class-wmufs-i18n.php b/wp-content/plugins/wp-maximum-upload-file-size/inc/class-wmufs-i18n.php new file mode 100644 index 000000000..509e01c9d --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/inc/class-wmufs-i18n.php @@ -0,0 +1,29 @@ +load_dependency(); + } + + /** + * Load all Plugin FIle. + */ + public function load_dependency(){ + + include_once(WMUFS_PLUGIN_PATH. 'inc/class-wmufs-i18n.php'); + include_once(WMUFS_PLUGIN_PATH. 'inc/codepopular-plugin-suggest.php'); + include_once(WMUFS_PLUGIN_PATH. 'inc/hooks.php'); + include_once(WMUFS_PLUGIN_PATH. 'inc/codepopular-promotion.php'); + include_once(WMUFS_PLUGIN_PATH. 'admin/class-wmufs-admin.php'); + include_once(WMUFS_PLUGIN_PATH. 'inc/class-wmufs-chunk-files.php'); + + } +} + +/** + * Initialize load class . + */ +function wmufs_run(){ + if ( class_exists( 'Class_Wmufs_Loader' ) ) { + new Class_Wmufs_Loader(); + } +} + diff --git a/wp-content/plugins/wp-maximum-upload-file-size/inc/codepopular-plugin-suggest.php b/wp-content/plugins/wp-maximum-upload-file-size/inc/codepopular-plugin-suggest.php new file mode 100644 index 000000000..11731ed45 --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/inc/codepopular-plugin-suggest.php @@ -0,0 +1,94 @@ +plugins ) && is_array( $res->plugins ) ) { + foreach ( $res->plugins as $plugin ) { + if ( is_object($plugin) && ! empty($plugin->slug) && $plugin->slug == $plugin_slug ) { + return $res; + } + } + } + + if ( $plugin_info = get_transient('wf-plugin-info-' . $plugin_slug) ) { + array_unshift($res->plugins, $plugin_info); + } else { + $plugin_info = plugins_api('plugin_information', array( + 'slug' => $plugin_slug, + 'is_ssl' => is_ssl(), + 'fields' => array( + 'banners' => true, + 'reviews' => true, + 'downloaded' => true, + 'active_installs' => true, + 'icons' => true, + 'short_description' => true, + ), + )); + if ( ! is_wp_error($plugin_info) ) { + $res->plugins[] = $plugin_info; + set_transient('wf-plugin-info-' . $plugin_slug, $plugin_info, DAY_IN_SECONDS * 7); + } + } + + return $res; + } + +} + +CodePopular_Plugin_Suggest::get_instance()->init(); + + diff --git a/wp-content/plugins/wp-maximum-upload-file-size/inc/codepopular-promotion.php b/wp-content/plugins/wp-maximum-upload-file-size/inc/codepopular-promotion.php new file mode 100644 index 000000000..7e99816a8 --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/inc/codepopular-promotion.php @@ -0,0 +1,96 @@ + + + modified ) ); ?> +

title->rendered ); ?> -

+ content->rendered, 25, '...' ); //phpcs:ignore ?> + +
+

+ + get_option('wmufs_notice_disable_time') ) { + add_action( + 'load-index.php', + function () { + add_action('admin_notices', 'codepopular_wmufs_promotions'); + } + ); +} + + +if ( ! function_exists('codepopular_wmufs_promotions') ) { + + /** + * Function to get dashboard widget data. + */ + function codepopular_wmufs_promotions() { ?> +
+
+

Thank you for using our Plugin to Increase Upload Size!

+

We are glad that you are using our plugin and we hope you are satisfied with it. If you want, you can support us in the development of the plugin by buying us a coffee and adding a plugin review. This is very important and gives us the opportunity to create even better tools for you. Thank you to everyone.

+ +
+ +
+ + Increase Upload Limit. + +### **Increase Maximum Execution Time.** +Some time WordPress user can't upload new file with media due to extended execution time. With this plugin you can increase the execution time to avoid these issue. You need to set the execution time in input filed to set your own execution time according to your need. + += Necessary Elementor Plugin for your store = + +> * [Unlimited Theme Addons](https://wordpress.org/plugins/unlimited-theme-addons/) + + += Necessary WooCommerce Plugin for your store = + +> * [Variation Price Display Range for WooCommerce](https://wordpress.org/plugins/variation-price-display/) + + +== Installation == + +The usual, automatic way; + +1. Open WordPress admin, go to Plugins, click Add New +2. Enter "increase maximum upload" in search and hit Enter +3. Plugin will show up as the first on the list, click "Install Now" +4. Activate & open plugin's settings page located in the main admin menu + +Or if needed, install manually; + +1. Download the plugin. +2. Unzip it and upload to _/wp-content/plugins/_ +3. Open WordPress admin - Plugins and click "Activate" next to the plugin +4. Activate & open plugin's settings from Media>Increase Upload Size. + + +== Screenshots == +1. Admin Panel for maximum upload file size. + + +== Changelog == + +1.1.0 +------------- +* WordPress latest version 6 compatibility checked. +* Allow to Upload File Size 3GB,4GB,5GB. + +1.0.9 +------------- +* WordPress latest version 6 compatibility checked. + +1.0.8 +------------- +* Footer text issue fixed in admin page. +* Header Notification remove from plugin setting page. + +1.0.7 +------------- +* WordPress latest versoin 5.9 compatibility added. +* New value added in dropdown to upload maximum 2GB. + +1.0.6 +------------- +* WordPress latest versoin 5.8 compatibility added. + +1.0.5 +------------- +* Maximum Execution Time Increase Option Added. + +1.0.4 +------------- +* System Status Added. +* WordPress latest version 5.7 compatibility checked. + +1.0.3 +------------- +* WordPress latest version 5.6 compatibility checked. + +1.0.2 +------------- +* WordPress latest version 5.5 compatibility checked. + +1.0.1 +------------- +* Test upto wordpress 5.4 latest version + +1.0.0 +------------- +* Not Changelog yet. will are still working for update version + + + +== Frequently Asked Questions == + += Does this plugin work with all servers and hosting providers? = + +Yes, it works with all servers. But, please know that server adjusted limits can't be changed from a WordPress plugin. If the server set limit is 16MB you can't increase it to 128MB via WordPress. You have to email your hosting provider and ask them to increase the limit. Install the plugin and it'll tell you what the limits are and what to do. + += Increase upload file size but still not working? = +If minimum upload limit set by hosting provider then its will not work. Ask your hositng provider to increase upload size. + += Increase maximum excecution time but not working? = +If minimum execution time set by hosting provider then its will not work. Ask your hositng provider to increase excecution time limit. diff --git a/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/.editorconfig b/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/.editorconfig new file mode 100644 index 000000000..7e8f50652 --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/.editorconfig @@ -0,0 +1,19 @@ +root = true + +[*] +indent_style = space +indent_size = 4 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[{.jshintrc,*.json,*.yml}] +indent_style = space +indent_size = 2 + +[{*.txt,wp-config-sample.php}] +end_of_line = lf \ No newline at end of file diff --git a/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/.github/workflows/wpcs.yml b/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/.github/workflows/wpcs.yml new file mode 100644 index 000000000..d7c4fff1a --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/.github/workflows/wpcs.yml @@ -0,0 +1,38 @@ +on: pull_request + +name: Inspections +jobs: + runPHPCSInspection: + name: Run PHPCS inspection + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: "7.3" + coverage: none + tools: composer, cs2pr + + - name: Get Composer cache directory + id: composer-cache + run: echo "::set-output name=dir::$(composer config cache-files-dir)" + + - name: Setup cache + uses: pat-s/always-upload-cache@v1.1.4 + with: + path: ${{ steps.composer-cache.outputs.dir }} + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: ${{ runner.os }}-composer- + + - name: Install dependencies + run: composer install --prefer-dist --no-suggest --no-progress + + - id: changes + run: | + URL="https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files" + FILES=$(curl -s -X GET -G $URL | jq -r '.[] | .filename' | xargs) + echo "::set-output name=files::$FILES" + - name: Detect coding standard violations + run: vendor/bin/phpcs ${{ steps.changes.outputs.files }} -q --report=checkstyle | cs2pr --graceful-warnings diff --git a/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/.gitignore b/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/.gitignore new file mode 100644 index 000000000..20be86353 --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/.gitignore @@ -0,0 +1,18 @@ +/node_modules +/public/hot +/public/storage +/storage/*.key +/vendor +/.idea +/.vscode +/nbproject +/.vagrant +Homestead.json +Homestead.yaml +npm-debug.log +yarn-error.log +.env +.phpunit.result.cache +.DS_Store +phpcs.xml +phpcs-report.txt diff --git a/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/.php-cs-fixer.dist.php b/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/.php-cs-fixer.dist.php new file mode 100644 index 000000000..ae04c1f38 --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/.php-cs-fixer.dist.php @@ -0,0 +1,27 @@ +exclude( 'node_modules' ) + ->exclude( 'vendors' ) + ->exclude( 'assets' ) + ->exclude( 'languages' ) + ->exclude( 'src' ) + ->exclude( 'bin' ) + ->in( __DIR__ ) +; + +$config = new PhpCsFixer\Config(); +$config + ->registerCustomFixers( [ + new WeDevs\Fixer\SpaceInsideParenthesisFixer(), + new WeDevs\Fixer\BlankLineAfterClassOpeningFixer(), + ] ) + ->setRiskyAllowed( true ) + ->setUsingCache( false ) + ->setRules( WeDevs\Fixer\Fixer::rules() ) + ->setFinder( $finder ) +; + +return $config; diff --git a/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/composer.json b/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/composer.json new file mode 100644 index 000000000..1d51ddaa6 --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/composer.json @@ -0,0 +1,45 @@ +{ + "name": "appsero/client", + "description": "Appsero Client", + "keywords": [ + "analytics", + "wordpress", + "plugin", + "theme" + ], + "type": "library", + "license": "MIT", + "authors": [ + { + "name": "Tareq Hasan", + "email": "tareq@appsero.com" + } + ], + "autoload": { + "psr-4": { + "Appsero\\": "src/" + } + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "wp-coding-standards/wpcs": "dev-develop", + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.2", + "phpcompatibility/phpcompatibility-wp": "dev-master", + "phpunit/phpunit": "^8.5.31", + "squizlabs/php_codesniffer": "^3.7", + "tareq1988/wp-php-cs-fixer": "dev-master" + }, + "scripts": { + "phpcs": [ + "vendor/bin/phpcs -p -s" + ], + "phpcs:report": [ + "vendor/bin/phpcs --report-file='phpcs-report.txt'" + ], + "phpcbf": [ + "vendor/bin/phpcbf -p" + ] + } +} diff --git a/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/composer.lock b/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/composer.lock new file mode 100644 index 000000000..f7ff7552b --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/composer.lock @@ -0,0 +1,1973 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "1be317eebec8c5e5dfcea85a4ac2be7b", + "packages": [], + "packages-dev": [ + { + "name": "dealerdirect/phpcodesniffer-composer-installer", + "version": "v0.7.2", + "source": { + "type": "git", + "url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git", + "reference": "1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db", + "reference": "1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^1.0 || ^2.0", + "php": ">=5.3", + "squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0" + }, + "require-dev": { + "composer/composer": "*", + "php-parallel-lint/php-parallel-lint": "^1.3.1", + "phpcompatibility/php-compatibility": "^9.0" + }, + "type": "composer-plugin", + "extra": { + "class": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin" + }, + "autoload": { + "psr-4": { + "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Franck Nijhof", + "email": "franck.nijhof@dealerdirect.com", + "homepage": "http://www.frenck.nl", + "role": "Developer / IT Manager" + }, + { + "name": "Contributors", + "homepage": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer/graphs/contributors" + } + ], + "description": "PHP_CodeSniffer Standards Composer Installer Plugin", + "homepage": "http://www.dealerdirect.com", + "keywords": [ + "PHPCodeSniffer", + "PHP_CodeSniffer", + "code quality", + "codesniffer", + "composer", + "installer", + "phpcbf", + "phpcs", + "plugin", + "qa", + "quality", + "standard", + "standards", + "style guide", + "stylecheck", + "tests" + ], + "support": { + "issues": "https://github.com/dealerdirect/phpcodesniffer-composer-installer/issues", + "source": "https://github.com/dealerdirect/phpcodesniffer-composer-installer" + }, + "time": "2022-02-04T12:51:07+00:00" + }, + { + "name": "doctrine/instantiator", + "version": "1.5.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b", + "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^9 || ^11", + "ext-pdo": "*", + "ext-phar": "*", + "phpbench/phpbench": "^0.16 || ^1", + "phpstan/phpstan": "^1.4", + "phpstan/phpstan-phpunit": "^1", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.30 || ^5.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "https://ocramius.github.io/" + } + ], + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://www.doctrine-project.org/projects/instantiator.html", + "keywords": [ + "constructor", + "instantiate" + ], + "support": { + "issues": "https://github.com/doctrine/instantiator/issues", + "source": "https://github.com/doctrine/instantiator/tree/1.5.0" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", + "type": "tidelift" + } + ], + "time": "2022-12-30T00:15:36+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.11.0", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614", + "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3,<3.2.2" + }, + "require-dev": { + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" + }, + "type": "library", + "autoload": { + "files": [ + "src/DeepCopy/deep_copy.php" + ], + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "support": { + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.11.0" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], + "time": "2022-03-03T13:19:32+00:00" + }, + { + "name": "phar-io/manifest", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/phar-io/manifest.git", + "reference": "97803eca37d319dfa7826cc2437fc020857acb53" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53", + "reference": "97803eca37d319dfa7826cc2437fc020857acb53", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-phar": "*", + "ext-xmlwriter": "*", + "phar-io/version": "^3.0.1", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", + "support": { + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/2.0.3" + }, + "time": "2021-07-20T11:28:43+00:00" + }, + { + "name": "phar-io/version", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/version.git", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Library for handling version information and constraints", + "support": { + "issues": "https://github.com/phar-io/version/issues", + "source": "https://github.com/phar-io/version/tree/3.2.1" + }, + "time": "2022-02-21T01:04:05+00:00" + }, + { + "name": "phpcompatibility/php-compatibility", + "version": "9.3.5", + "source": { + "type": "git", + "url": "https://github.com/PHPCompatibility/PHPCompatibility.git", + "reference": "9fb324479acf6f39452e0655d2429cc0d3914243" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/9fb324479acf6f39452e0655d2429cc0d3914243", + "reference": "9fb324479acf6f39452e0655d2429cc0d3914243", + "shasum": "" + }, + "require": { + "php": ">=5.3", + "squizlabs/php_codesniffer": "^2.3 || ^3.0.2" + }, + "conflict": { + "squizlabs/php_codesniffer": "2.6.2" + }, + "require-dev": { + "phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0" + }, + "suggest": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.", + "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." + }, + "type": "phpcodesniffer-standard", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Wim Godden", + "homepage": "https://github.com/wimg", + "role": "lead" + }, + { + "name": "Juliette Reinders Folmer", + "homepage": "https://github.com/jrfnl", + "role": "lead" + }, + { + "name": "Contributors", + "homepage": "https://github.com/PHPCompatibility/PHPCompatibility/graphs/contributors" + } + ], + "description": "A set of sniffs for PHP_CodeSniffer that checks for PHP cross-version compatibility.", + "homepage": "http://techblog.wimgodden.be/tag/codesniffer/", + "keywords": [ + "compatibility", + "phpcs", + "standards" + ], + "support": { + "issues": "https://github.com/PHPCompatibility/PHPCompatibility/issues", + "source": "https://github.com/PHPCompatibility/PHPCompatibility" + }, + "time": "2019-12-27T09:44:58+00:00" + }, + { + "name": "phpcompatibility/phpcompatibility-paragonie", + "version": "1.3.2", + "source": { + "type": "git", + "url": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie.git", + "reference": "bba5a9dfec7fcfbd679cfaf611d86b4d3759da26" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/bba5a9dfec7fcfbd679cfaf611d86b4d3759da26", + "reference": "bba5a9dfec7fcfbd679cfaf611d86b4d3759da26", + "shasum": "" + }, + "require": { + "phpcompatibility/php-compatibility": "^9.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.7", + "paragonie/random_compat": "dev-master", + "paragonie/sodium_compat": "dev-master" + }, + "suggest": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", + "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." + }, + "type": "phpcodesniffer-standard", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Wim Godden", + "role": "lead" + }, + { + "name": "Juliette Reinders Folmer", + "role": "lead" + } + ], + "description": "A set of rulesets for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by the Paragonie polyfill libraries.", + "homepage": "http://phpcompatibility.com/", + "keywords": [ + "compatibility", + "paragonie", + "phpcs", + "polyfill", + "standards", + "static analysis" + ], + "support": { + "issues": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie/issues", + "source": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie" + }, + "time": "2022-10-25T01:46:02+00:00" + }, + { + "name": "phpcompatibility/phpcompatibility-wp", + "version": "dev-master", + "source": { + "type": "git", + "url": "https://github.com/PHPCompatibility/PHPCompatibilityWP.git", + "reference": "262f9d81273932315d15d704f69b9d678b939cb3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/262f9d81273932315d15d704f69b9d678b939cb3", + "reference": "262f9d81273932315d15d704f69b9d678b939cb3", + "shasum": "" + }, + "require": { + "phpcompatibility/php-compatibility": "^9.0", + "phpcompatibility/phpcompatibility-paragonie": "^1.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^1.0" + }, + "suggest": { + "dealerdirect/phpcodesniffer-composer-installer": "^1.0 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", + "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." + }, + "default-branch": true, + "type": "phpcodesniffer-standard", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Wim Godden", + "role": "lead" + }, + { + "name": "Juliette Reinders Folmer", + "role": "lead" + } + ], + "description": "A ruleset for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by WordPress.", + "homepage": "http://phpcompatibility.com/", + "keywords": [ + "compatibility", + "phpcs", + "standards", + "static analysis", + "wordpress" + ], + "support": { + "issues": "https://github.com/PHPCompatibility/PHPCompatibilityWP/issues", + "source": "https://github.com/PHPCompatibility/PHPCompatibilityWP" + }, + "time": "2023-01-05T13:34:27+00:00" + }, + { + "name": "phpcsstandards/phpcsextra", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/PHPCSStandards/PHPCSExtra.git", + "reference": "0f55c12dc6a81c7728794b01a4aea44f11c83991" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCSStandards/PHPCSExtra/zipball/0f55c12dc6a81c7728794b01a4aea44f11c83991", + "reference": "0f55c12dc6a81c7728794b01a4aea44f11c83991", + "shasum": "" + }, + "require": { + "php": ">=5.4", + "phpcsstandards/phpcsutils": "^1.0", + "squizlabs/php_codesniffer": "^3.7.1" + }, + "require-dev": { + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", + "phpcsstandards/phpcsdevcs": "^1.1.5", + "phpcsstandards/phpcsdevtools": "^1.2.0", + "phpunit/phpunit": "^4.5 || ^5.0 || ^6.0 || ^7.0" + }, + "type": "phpcodesniffer-standard", + "extra": { + "branch-alias": { + "dev-stable": "1.x-dev", + "dev-develop": "1.x-dev" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Juliette Reinders Folmer", + "homepage": "https://github.com/jrfnl", + "role": "lead" + }, + { + "name": "Contributors", + "homepage": "https://github.com/PHPCSStandards/PHPCSExtra/graphs/contributors" + } + ], + "description": "A collection of sniffs and standards for use with PHP_CodeSniffer.", + "keywords": [ + "PHP_CodeSniffer", + "phpcbf", + "phpcodesniffer-standard", + "phpcs", + "standards", + "static analysis" + ], + "support": { + "issues": "https://github.com/PHPCSStandards/PHPCSExtra/issues", + "source": "https://github.com/PHPCSStandards/PHPCSExtra" + }, + "time": "2023-01-05T12:35:58+00:00" + }, + { + "name": "phpcsstandards/phpcsutils", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/PHPCSStandards/PHPCSUtils.git", + "reference": "4fd2e30c7465112ca2e3646037bfb9e6f0f4d4f3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCSStandards/PHPCSUtils/zipball/4fd2e30c7465112ca2e3646037bfb9e6f0f4d4f3", + "reference": "4fd2e30c7465112ca2e3646037bfb9e6f0f4d4f3", + "shasum": "" + }, + "require": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.4.1 || ^0.5 || ^0.6.2 || ^0.7 || ^1.0", + "php": ">=5.4", + "squizlabs/php_codesniffer": "^3.7.1 || 4.0.x-dev@dev" + }, + "require-dev": { + "ext-filter": "*", + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", + "phpcsstandards/phpcsdevcs": "^1.1.3", + "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.3", + "yoast/phpunit-polyfills": "^1.0.1" + }, + "type": "phpcodesniffer-standard", + "extra": { + "branch-alias": { + "dev-stable": "1.x-dev", + "dev-develop": "1.x-dev" + } + }, + "autoload": { + "classmap": [ + "PHPCSUtils/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Juliette Reinders Folmer", + "homepage": "https://github.com/jrfnl", + "role": "lead" + }, + { + "name": "Contributors", + "homepage": "https://github.com/PHPCSStandards/PHPCSUtils/graphs/contributors" + } + ], + "description": "A suite of utility functions for use with PHP_CodeSniffer", + "homepage": "https://phpcsutils.com/", + "keywords": [ + "PHP_CodeSniffer", + "phpcbf", + "phpcodesniffer-standard", + "phpcs", + "phpcs3", + "standards", + "static analysis", + "tokens", + "utility" + ], + "support": { + "docs": "https://phpcsutils.com/", + "issues": "https://github.com/PHPCSStandards/PHPCSUtils/issues", + "source": "https://github.com/PHPCSStandards/PHPCSUtils" + }, + "time": "2023-01-05T12:08:37+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "7.0.15", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "819f92bba8b001d4363065928088de22f25a3a48" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/819f92bba8b001d4363065928088de22f25a3a48", + "reference": "819f92bba8b001d4363065928088de22f25a3a48", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-xmlwriter": "*", + "php": ">=7.2", + "phpunit/php-file-iterator": "^2.0.2", + "phpunit/php-text-template": "^1.2.1", + "phpunit/php-token-stream": "^3.1.3 || ^4.0", + "sebastian/code-unit-reverse-lookup": "^1.0.1", + "sebastian/environment": "^4.2.2", + "sebastian/version": "^2.0.1", + "theseer/tokenizer": "^1.1.3" + }, + "require-dev": { + "phpunit/phpunit": "^8.2.2" + }, + "suggest": { + "ext-xdebug": "^2.7.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/7.0.15" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2021-07-26T12:20:09+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "2.0.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "42c5ba5220e6904cbfe8b1a1bda7c0cfdc8c12f5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/42c5ba5220e6904cbfe8b1a1bda7c0cfdc8c12f5", + "reference": "42c5ba5220e6904cbfe8b1a1bda7c0cfdc8c12f5", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/2.0.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2021-12-02T12:42:26+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/1.2.1" + }, + "time": "2015-06-21T13:50:34+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "2.1.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "2454ae1765516d20c4ffe103d85a58a9a3bd5662" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/2454ae1765516d20c4ffe103d85a58a9a3bd5662", + "reference": "2454ae1765516d20c4ffe103d85a58a9a3bd5662", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "source": "https://github.com/sebastianbergmann/php-timer/tree/2.1.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T08:20:02+00:00" + }, + { + "name": "phpunit/php-token-stream", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-token-stream.git", + "reference": "a853a0e183b9db7eed023d7933a858fa1c8d25a3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/a853a0e183b9db7eed023d7933a858fa1c8d25a3", + "reference": "a853a0e183b9db7eed023d7933a858fa1c8d25a3", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": "^7.3 || ^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Wrapper around PHP's tokenizer extension.", + "homepage": "https://github.com/sebastianbergmann/php-token-stream/", + "keywords": [ + "tokenizer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-token-stream/issues", + "source": "https://github.com/sebastianbergmann/php-token-stream/tree/master" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "abandoned": true, + "time": "2020-08-04T08:28:15+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "8.5.31", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "33c126b09a42de5c99e5e8032b54e8221264a74e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/33c126b09a42de5c99e5e8032b54e8221264a74e", + "reference": "33c126b09a42de5c99e5e8032b54e8221264a74e", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.3.1", + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.10.0", + "phar-io/manifest": "^2.0.3", + "phar-io/version": "^3.0.2", + "php": ">=7.2", + "phpunit/php-code-coverage": "^7.0.12", + "phpunit/php-file-iterator": "^2.0.4", + "phpunit/php-text-template": "^1.2.1", + "phpunit/php-timer": "^2.1.2", + "sebastian/comparator": "^3.0.5", + "sebastian/diff": "^3.0.2", + "sebastian/environment": "^4.2.3", + "sebastian/exporter": "^3.1.5", + "sebastian/global-state": "^3.0.0", + "sebastian/object-enumerator": "^3.0.3", + "sebastian/resource-operations": "^2.0.1", + "sebastian/type": "^1.1.3", + "sebastian/version": "^2.0.1" + }, + "suggest": { + "ext-soap": "*", + "ext-xdebug": "*", + "phpunit/php-invoker": "^2.0.0" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "8.5-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "source": "https://github.com/sebastianbergmann/phpunit/tree/8.5.31" + }, + "funding": [ + { + "url": "https://phpunit.de/sponsors.html", + "type": "custom" + }, + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", + "type": "tidelift" + } + ], + "time": "2022-10-28T05:57:37+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/1de8cd5c010cb153fcd68b8d0f64606f523f7619", + "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/1.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T08:15:22+00:00" + }, + { + "name": "sebastian/comparator", + "version": "3.0.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "1dc7ceb4a24aede938c7af2a9ed1de09609ca770" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/1dc7ceb4a24aede938c7af2a9ed1de09609ca770", + "reference": "1dc7ceb4a24aede938c7af2a9ed1de09609ca770", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "sebastian/diff": "^3.0", + "sebastian/exporter": "^3.1" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "source": "https://github.com/sebastianbergmann/comparator/tree/3.0.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-09-14T12:31:48+00:00" + }, + { + "name": "sebastian/diff", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "14f72dd46eaf2f2293cbe79c93cc0bc43161a211" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/14f72dd46eaf2f2293cbe79c93cc0bc43161a211", + "reference": "14f72dd46eaf2f2293cbe79c93cc0bc43161a211", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "^7.5 || ^8.0", + "symfony/process": "^2 || ^3.3 || ^4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff", + "udiff", + "unidiff", + "unified diff" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "source": "https://github.com/sebastianbergmann/diff/tree/3.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T07:59:04+00:00" + }, + { + "name": "sebastian/environment", + "version": "4.2.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "d47bbbad83711771f167c72d4e3f25f7fcc1f8b0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/d47bbbad83711771f167c72d4e3f25f7fcc1f8b0", + "reference": "d47bbbad83711771f167c72d4e3f25f7fcc1f8b0", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "^7.5" + }, + "suggest": { + "ext-posix": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "source": "https://github.com/sebastianbergmann/environment/tree/4.2.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T07:53:42+00:00" + }, + { + "name": "sebastian/exporter", + "version": "3.1.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "73a9676f2833b9a7c36968f9d882589cd75511e6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/73a9676f2833b9a7c36968f9d882589cd75511e6", + "reference": "73a9676f2833b9a7c36968f9d882589cd75511e6", + "shasum": "" + }, + "require": { + "php": ">=7.0", + "sebastian/recursion-context": "^3.0" + }, + "require-dev": { + "ext-mbstring": "*", + "phpunit/phpunit": "^8.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.1.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "http://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "source": "https://github.com/sebastianbergmann/exporter/tree/3.1.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-09-14T06:00:17+00:00" + }, + { + "name": "sebastian/global-state", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "de036ec91d55d2a9e0db2ba975b512cdb1c23921" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/de036ec91d55d2a9e0db2ba975b512cdb1c23921", + "reference": "de036ec91d55d2a9e0db2ba975b512cdb1c23921", + "shasum": "" + }, + "require": { + "php": ">=7.2", + "sebastian/object-reflector": "^1.1.1", + "sebastian/recursion-context": "^3.0" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^8.0" + }, + "suggest": { + "ext-uopz": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "source": "https://github.com/sebastianbergmann/global-state/tree/3.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-02-10T06:55:38+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "3.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2", + "reference": "e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2", + "shasum": "" + }, + "require": { + "php": ">=7.0", + "sebastian/object-reflector": "^1.1.1", + "sebastian/recursion-context": "^3.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/3.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T07:40:27+00:00" + }, + { + "name": "sebastian/object-reflector", + "version": "1.1.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "9b8772b9cbd456ab45d4a598d2dd1a1bced6363d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/9b8772b9cbd456ab45d4a598d2dd1a1bced6363d", + "reference": "9b8772b9cbd456ab45d4a598d2dd1a1bced6363d", + "shasum": "" + }, + "require": { + "php": ">=7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/1.1.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T07:37:18+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "3.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "367dcba38d6e1977be014dc4b22f47a484dac7fb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/367dcba38d6e1977be014dc4b22f47a484dac7fb", + "reference": "367dcba38d6e1977be014dc4b22f47a484dac7fb", + "shasum": "" + }, + "require": { + "php": ">=7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/3.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T07:34:24+00:00" + }, + { + "name": "sebastian/resource-operations", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "31d35ca87926450c44eae7e2611d45a7a65ea8b3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/31d35ca87926450c44eae7e2611d45a7a65ea8b3", + "reference": "31d35ca87926450c44eae7e2611d45a7a65ea8b3", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides a list of PHP built-in functions that operate on resources", + "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "support": { + "issues": "https://github.com/sebastianbergmann/resource-operations/issues", + "source": "https://github.com/sebastianbergmann/resource-operations/tree/2.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T07:30:19+00:00" + }, + { + "name": "sebastian/type", + "version": "1.1.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "0150cfbc4495ed2df3872fb31b26781e4e077eb4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/0150cfbc4495ed2df3872fb31b26781e4e077eb4", + "reference": "0150cfbc4495ed2df3872fb31b26781e4e077eb4", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "require-dev": { + "phpunit/phpunit": "^8.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", + "support": { + "issues": "https://github.com/sebastianbergmann/type/issues", + "source": "https://github.com/sebastianbergmann/type/tree/1.1.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T07:25:11+00:00" + }, + { + "name": "sebastian/version", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "source": "https://github.com/sebastianbergmann/version/tree/master" + }, + "time": "2016-10-03T07:35:21+00:00" + }, + { + "name": "squizlabs/php_codesniffer", + "version": "3.7.1", + "source": { + "type": "git", + "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", + "reference": "1359e176e9307e906dc3d890bcc9603ff6d90619" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/1359e176e9307e906dc3d890bcc9603ff6d90619", + "reference": "1359e176e9307e906dc3d890bcc9603ff6d90619", + "shasum": "" + }, + "require": { + "ext-simplexml": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": ">=5.4.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" + }, + "bin": [ + "bin/phpcs", + "bin/phpcbf" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Greg Sherwood", + "role": "lead" + } + ], + "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", + "homepage": "https://github.com/squizlabs/PHP_CodeSniffer", + "keywords": [ + "phpcs", + "standards" + ], + "support": { + "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues", + "source": "https://github.com/squizlabs/PHP_CodeSniffer", + "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" + }, + "time": "2022-06-18T07:21:10+00:00" + }, + { + "name": "tareq1988/wp-php-cs-fixer", + "version": "dev-master", + "source": { + "type": "git", + "url": "https://github.com/tareq1988/wp-php-cs-fixer.git", + "reference": "eeef65598ae7bac55a09073e666ec0eabf303a12" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/tareq1988/wp-php-cs-fixer/zipball/eeef65598ae7bac55a09073e666ec0eabf303a12", + "reference": "eeef65598ae7bac55a09073e666ec0eabf303a12", + "shasum": "" + }, + "default-branch": true, + "type": "library", + "autoload": { + "psr-4": { + "WeDevs\\Fixer\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Tareq Hasan", + "email": "tareq@wedevs.com" + } + ], + "description": "WordPress rules for php-cs-fixer", + "support": { + "issues": "https://github.com/tareq1988/wp-php-cs-fixer/issues", + "source": "https://github.com/tareq1988/wp-php-cs-fixer/tree/master" + }, + "time": "2022-08-26T09:36:52+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "support": { + "issues": "https://github.com/theseer/tokenizer/issues", + "source": "https://github.com/theseer/tokenizer/tree/1.2.1" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2021-07-28T10:34:58+00:00" + }, + { + "name": "wp-coding-standards/wpcs", + "version": "dev-develop", + "source": { + "type": "git", + "url": "https://github.com/WordPress/WordPress-Coding-Standards.git", + "reference": "4aa600078a44885a4e2d351ae11b25ef16a11714" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/4aa600078a44885a4e2d351ae11b25ef16a11714", + "reference": "4aa600078a44885a4e2d351ae11b25ef16a11714", + "shasum": "" + }, + "require": { + "ext-filter": "*", + "php": ">=5.4", + "phpcsstandards/phpcsextra": "^1.0", + "phpcsstandards/phpcsutils": "^1.0", + "squizlabs/php_codesniffer": "^3.7.1" + }, + "require-dev": { + "php-parallel-lint/php-console-highlighter": "^1.0.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", + "phpcompatibility/php-compatibility": "^9.0", + "phpcsstandards/phpcsdevtools": "^1.2.0", + "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" + }, + "default-branch": true, + "type": "phpcodesniffer-standard", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Contributors", + "homepage": "https://github.com/WordPress/WordPress-Coding-Standards/graphs/contributors" + } + ], + "description": "PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions", + "keywords": [ + "phpcs", + "standards", + "static analysis", + "wordpress" + ], + "support": { + "issues": "https://github.com/WordPress/WordPress-Coding-Standards/issues", + "source": "https://github.com/WordPress/WordPress-Coding-Standards", + "wiki": "https://github.com/WordPress/WordPress-Coding-Standards/wiki" + }, + "time": "2023-01-09T07:44:57+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": { + "wp-coding-standards/wpcs": 20, + "phpcompatibility/phpcompatibility-wp": 20, + "tareq1988/wp-php-cs-fixer": 20 + }, + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": ">=5.6" + }, + "platform-dev": [], + "plugin-api-version": "2.1.0" +} diff --git a/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/phpcs.xml.dist b/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/phpcs.xml.dist new file mode 100644 index 000000000..b1b9392ef --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/phpcs.xml.dist @@ -0,0 +1,112 @@ + + + Generally-applicable sniffs for WordPress plugins. + + + src + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + warning + + + 0 + + + error + + + error + + + 0 + + + warning + + + 0 + + + 0 + + + 0 + + + + + + + + + + 0 + + diff --git a/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/readme.md b/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/readme.md new file mode 100644 index 000000000..484079afb --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/readme.md @@ -0,0 +1,337 @@ +# AppSero Client +### Version 1.2.3 + +- [Installation](#installation) +- [Insights](#insights) +- [Dynamic Usage](#dynamic-usage) + + +## Installation + +You can install AppSero Client in two ways, via composer and manually. + +### 1. Composer Installation + +Add dependency in your project (theme/plugin): + +``` +composer require appsero/client +``` + +Now add `autoload.php` in your file if you haven't done already. + +```php +require __DIR__ . '/vendor/autoload.php'; +``` + +### 2. Manual Installation + +Clone the repository in your project. + +```bash +cd /path/to/your/project/folder +git clone https://github.com/AppSero/client.git appsero +``` + +Now include the dependencies in your plugin/theme. + +```php +if( !class_exists('Appsero\Client') ) { + require __DIR__ . '/appsero/src/Client.php'; +} +``` + +## Insights + +AppSero can be used in both themes and plugins. + +The `Appsero\Client` class has *three* parameters: + +```php +$client = new Appsero\Client( $hash, $name, $file ); +``` + +- **hash** (*string*, *required*) - The unique identifier for a plugin or theme. +- **name** (*string*, *required*) - The name of the plugin or theme. +- **file** (*string*, *required*) - The **main file** path of the plugin. For theme, path to `functions.php` + +### Usage Example + +Please refer to the **installation** step before start using the class. + +You can obtain the **hash** for your plugin for the [Appsero Dashboard](https://dashboard.appsero.com). The 3rd parameter **must** have to be the main file of the plugin. + +```php +/** + * Initialize the tracker + * + * @return void + */ +function appsero_init_tracker_appsero_test() { + + if ( ! class_exists( 'Appsero\Client' ) ) { + require_once __DIR__ . '/appsero/src/Client.php'; + } + + $client = new Appsero\Client( 'a4a8da5b-b419-4656-98e9-4a42e9044891', 'Akismet', __FILE__ ); + + // Active insights + $client->insights()->init(); + + // Active automatic updater + $client->updater(); + + // Active license page and checker + $args = array( + 'type' => 'options', + 'menu_title' => 'Akismet', + 'page_title' => 'Akismet License Settings', + 'menu_slug' => 'akismet_settings', + ); + $client->license()->add_settings_page( $args ); +} + +appsero_init_tracker_appsero_test(); +``` + +Make sure you call this function directly, never use any action hook to call this function. + +> For plugins example code that needs to be used on your main plugin file. +> For themes example code that needs to be used on your themes `functions.php` file. + +## More Usage + +```php +$client = new Appsero\Client( 'a4a8da5b-b419-4656-98e9-4a42e9044892', 'Twenty Twelve', __FILE__ ); +``` + +#### 1. Hiding the notice + +Sometimes you wouldn't want to show the notice, or want to customize the notice message. You can do that as well. + +```php +$client->insights() + ->hide_notice() + ->init(); +``` + +#### 2. Customizing the notice message + +```php +$client->insights() + ->notice( 'My Custom Notice Message' ) + ->init(); +``` + +#### 3. Adding extra data + +You can add extra metadata from your theme or plugin. In that case, the **keys** has to be whitelisted from the Appsero dashboard. +`add_extra` method also support callback as parameter, If you need database call then callback is best for you. + +```php +$metadata = array( + 'key' => 'value', + 'another' => 'another_value' +); +$client->insights() + ->add_extra( $metadata ) + ->init(); +``` + +Or if you want to run a query then pass callback, we will call the function when it is necessary. + +```php +$metadata = function () { + $total_posts = wp_count_posts(); + + return array( + 'total_posts' => $total_posts, + 'another' => 'another_value' + ); +}; +$client->insights() + ->add_extra( $metadata ) + ->init(); +``` + +#### 4. Set textdomain + +You may set your own textdomain to translate text. + +```php +$client->set_textdomain( 'your-project-textdomain' ); +``` + + + + +#### 5. Get Plugin Data +If you want to get the most used plugins with your plugin or theme, send the active plugins' data to Appsero. +```php +$client->insights() + ->add_plugin_data() + ->init(); +``` +--- + +#### 6. Set Notice Message +Change opt-in message text +```php +$client->insights() + ->notice("Your custom notice text") + ->init(); +``` +--- + +### Check License Validity + +Check your plugin/theme is using with valid license or not, First create a global variable of `License` object then use it anywhere in your code. +If you are using it outside of same function make sure you global the variable before using the condition. + +```php +$client = new Appsero\Client( 'a4a8da5b-b419-4656-98e9-4a42e9044892', 'Twenty Twelve', __FILE__ ); + +$args = array( + 'type' => 'submenu', + 'menu_title' => 'Twenty Twelve License', + 'page_title' => 'Twenty Twelve License Settings', + 'menu_slug' => 'twenty_twelve_settings', + 'parent_slug' => 'themes.php', +); + +global $twenty_twelve_license; +$twenty_twelve_license = $client->license(); +$twenty_twelve_license->add_settings_page( $args ); + +if ( $twenty_twelve_license->is_valid() ) { + // Your special code here +} + +Or check by pricing plan title + +if ( $twenty_twelve_license->is_valid_by( 'title', 'Business' ) ) { + // Your special code here +} + +// Set custom options key for storing the license info +$twenty_twelve_license->set_option_key( 'my_plugin_license' ); +``` + +### Use your own license form + +You can easily manage license by creating a form using HTTP request. Call `license_form_submit` method from License object. + +```php +global $twenty_twelve_license; // License object +$twenty_twelve_license->license_form_submit([ + '_nonce' => wp_create_nonce( 'Twenty Twelve' ), // create a nonce with name + '_action' => 'active', // active, deactive + 'license_key' => 'random-license-key', // no need to provide if you want to deactive +]); +if ( ! $twenty_twelve_license->error ) { + // license activated + $twenty_twelve_license->success; // Success message is here +} else { + $twenty_twelve_license->error; // has error message here +} +``` + +### Set Custom Deactivation Reasons + +First set your deactivation reasons in Appsero dashboard then map them in your plugin/theme using filter hook. + +- **id** is the deactivation slug +- **text** is the deactivation title +- **placeholder** will show on textarea field +- **icon** You can set SVG icon with 23x23 size + +```php +add_filter( 'appsero_custom_deactivation_reasons', function () { + return [ + [ + 'id' => 'looks-buggy', + 'text' => 'Looks buggy', + 'placeholder' => 'Can you please tell which feature looks buggy?', + 'icon' => '', + ], + [ + 'id' => 'bad-ui', + 'text' => 'Bad UI', + 'placeholder' => 'Could you tell us a bit more?', + 'icon' => '', + ], + ]; +} ); +``` + +
+
+ +# Extended Actions + +#### 1. After allowing tracking permission + +```php +// Fires after tracking permission allowed (optin) +function sample_tracker_optin(array $data){ + // use data, as it's now permitted to send anywhere + // Like FLuentCRM +} +add_action('PLUGIN_OR_THEME_SLUG_tracker_optin', 'sample_tracker_optin', 10); +``` + +#### 2. After dening tracking permission +```php +// Fires after tracking permission denied (optout) +function sample_tracker_optout(){ + // Don't ask for further permission, respect user's decision +} +add_action('PLUGIN_OR_THEME_SLUG_tracker_optout', 'sample_tracker_optout', 10); +``` + +#### 3. After license is activated +```php +// Fires after license is activated successfully +function sample_license_activated(array $response){ + // use response + // response has license information + // Like FLuentCRM +} +add_action('PLUGIN_OR_THEME_SLUG_license_activated', 'sample_license_activated', 10); +``` + + +#### 4. After license is deactivated +```php +// Fires after license deactivated successfully +function sample_license_deactivated(array $response){ + // use response + // response has license information +} +add_action('PLUGIN_OR_THEME_SLUG_license_deactivated', 'sample_license_deactivated', 10); +``` + + + +#### 5. After license is refreshed +```php +// Fires after license refreshed successfully +function sample_license_refreshed(){ + // license just refreshed +} +add_action('PLUGIN_OR_THEME_SLUG_license_refreshed', 'sample_license_refreshed', 10); +``` + +#### 6. After uninstall reason is submitted +```php +// Fires after uninstall reason submitted +function sample_uninstall_reason_submitted(array $data){ + // use the data + // Like FLuentCRM +} +add_action('PLUGIN_OR_THEME_SLUG_uninstall_reason_submitted', 'sample_uninstall_reason_submitted', 10); +``` + +## Credits + +Created and maintained by [Appsero](https://appsero.com). \ No newline at end of file diff --git a/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/src/Client.php b/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/src/Client.php new file mode 100644 index 000000000..2f52fcf3b --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/src/Client.php @@ -0,0 +1,285 @@ +hash = $hash; + $this->name = $name; + $this->file = $file; + + $this->set_basename_and_slug(); + } + + /** + * Initialize insights class + * + * @return Appsero\Insights + */ + public function insights() { + if ( ! class_exists( __NAMESPACE__ . '\Insights' ) ) { + require_once __DIR__ . '/Insights.php'; + } + + // if already instantiated, return the cached one + if ( $this->insights ) { + return $this->insights; + } + + $this->insights = new Insights( $this ); + + return $this->insights; + } + + /** + * Initialize plugin/theme updater + * + * @return Appsero\Updater + */ + public function updater() { + if ( ! class_exists( __NAMESPACE__ . '\Updater' ) ) { + require_once __DIR__ . '/Updater.php'; + } + + // if already instantiated, return the cached one + if ( $this->updater ) { + return $this->updater; + } + + $this->updater = new Updater( $this ); + + return $this->updater; + } + + /** + * Initialize license checker + * + * @return Appsero\License + */ + public function license() { + if ( ! class_exists( __NAMESPACE__ . '\License' ) ) { + require_once __DIR__ . '/License.php'; + } + + // if already instantiated, return the cached one + if ( $this->license ) { + return $this->license; + } + + $this->license = new License( $this ); + + return $this->license; + } + + /** + * API Endpoint + * + * @return string + */ + public function endpoint() { + $endpoint = apply_filters( 'appsero_endpoint', 'https://api.appsero.com' ); + + return trailingslashit( $endpoint ); + } + + /** + * Set project basename, slug and version + * + * @return void + */ + protected function set_basename_and_slug() { + if ( strpos( $this->file, WP_CONTENT_DIR . '/themes/' ) === false ) { + $this->basename = plugin_basename( $this->file ); + + list( $this->slug, $mainfile ) = explode( '/', $this->basename ); + + require_once ABSPATH . 'wp-admin/includes/plugin.php'; + + $plugin_data = get_plugin_data( $this->file ); + + $this->project_version = $plugin_data['Version']; + $this->type = 'plugin'; + } else { + $this->basename = str_replace( WP_CONTENT_DIR . '/themes/', '', $this->file ); + + list( $this->slug, $mainfile ) = explode( '/', $this->basename ); + + $theme = wp_get_theme( $this->slug ); + + $this->project_version = $theme->version; + $this->type = 'theme'; + } + + $this->textdomain = $this->slug; + } + + /** + * Send request to remote endpoint + * + * @param array $params + * @param string $route + * + * @return array|WP_Error array of results including HTTP headers or WP_Error if the request failed + */ + public function send_request( $params, $route, $blocking = false ) { + $url = $this->endpoint() . $route; + + $headers = [ + 'user-agent' => 'Appsero/' . md5( esc_url( home_url() ) ) . ';', + 'Accept' => 'application/json', + ]; + + $response = wp_remote_post( + $url, + [ + 'method' => 'POST', + 'timeout' => 30, + 'redirection' => 5, + 'httpversion' => '1.0', + 'blocking' => $blocking, + 'headers' => $headers, + 'body' => array_merge( $params, [ 'client' => $this->version ] ), + 'cookies' => [], + ] + ); + + return $response; + } + + /** + * Check if the current server is localhost + * + * @return bool + */ + public function is_local_server() { + $is_local = isset( $_SERVER['REMOTE_ADDR'] ) && in_array( $_SERVER['REMOTE_ADDR'], [ '127.0.0.1', '::1' ], true ); + + return apply_filters( 'appsero_is_local', $is_local ); + } + + /** + * Translate function _e() + */ + // phpcs:ignore + public function _etrans( $text ) { + call_user_func( '_e', $text, $this->textdomain ); + } + + /** + * Translate function __() + */ + // phpcs:ignore + public function __trans( $text ) { + return call_user_func( '__', $text, $this->textdomain ); + } + + /** + * Set project textdomain + */ + public function set_textdomain( $textdomain ) { + $this->textdomain = $textdomain; + } +} diff --git a/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/src/Insights.php b/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/src/Insights.php new file mode 100644 index 000000000..ab91c807a --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/src/Insights.php @@ -0,0 +1,1221 @@ +client = $client; + } + } + + /** + * Don't show the notice + * + * @return \self + */ + public function hide_notice() { + $this->show_notice = false; + + return $this; + } + + /** + * Add plugin data if needed + * + * @return \self + */ + public function add_plugin_data() { + $this->plugin_data = true; + + return $this; + } + + /** + * Add extra data if needed + * + * @param array $data + * + * @return \self + */ + public function add_extra( $data = [] ) { + $this->extra_data = $data; + + return $this; + } + + /** + * Set custom notice text + * + * @param string $text + * + * @return \self + */ + public function notice( $text = '' ) { + $this->notice = $text; + + return $this; + } + + /** + * Initialize insights + * + * @return void + */ + public function init() { + if ( $this->client->type === 'plugin' ) { + $this->init_plugin(); + } elseif ( $this->client->type === 'theme' ) { + $this->init_theme(); + } + } + + /** + * Initialize theme hooks + * + * @return void + */ + public function init_theme() { + $this->init_common(); + + add_action( 'switch_theme', [ $this, 'deactivation_cleanup' ] ); + add_action( 'switch_theme', [ $this, 'theme_deactivated' ], 12, 3 ); + } + + /** + * Initialize plugin hooks + * + * @return void + */ + public function init_plugin() { + // plugin deactivate popup + if ( ! $this->is_local_server() ) { + add_filter( 'plugin_action_links_' . $this->client->basename, [ $this, 'plugin_action_links' ] ); + add_action( 'admin_footer', [ $this, 'deactivate_scripts' ] ); + } + + $this->init_common(); + + register_activation_hook( $this->client->file, [ $this, 'activate_plugin' ] ); + register_deactivation_hook( $this->client->file, [ $this, 'deactivation_cleanup' ] ); + } + + /** + * Initialize common hooks + * + * @return void + */ + protected function init_common() { + if ( $this->show_notice ) { + // tracking notice + add_action( 'admin_notices', [ $this, 'admin_notice' ] ); + } + + add_action( 'admin_init', [ $this, 'handle_optin_optout' ] ); + + // uninstall reason + add_action( 'wp_ajax_' . $this->client->slug . '_submit-uninstall-reason', [ $this, 'uninstall_reason_submission' ] ); + + // cron events + add_filter( 'cron_schedules', [ $this, 'add_weekly_schedule' ] ); + add_action( $this->client->slug . '_tracker_send_event', [ $this, 'send_tracking_data' ] ); + // add_action( 'admin_init', array( $this, 'send_tracking_data' ) ); // test + } + + /** + * Send tracking data to AppSero server + * + * @param bool $override + * + * @return void + */ + public function send_tracking_data( $override = false ) { + if ( ! $this->tracking_allowed() && ! $override ) { + return; + } + + // Send a maximum of once per week + $last_send = $this->get_last_send(); + + if ( $last_send && $last_send > strtotime( '-1 week' ) ) { + return; + } + + $tracking_data = $this->get_tracking_data(); + + $response = $this->client->send_request( $tracking_data, 'track' ); + + update_option( $this->client->slug . '_tracking_last_send', time() ); + } + + /** + * Get the tracking data points + * + * @return array + */ + protected function get_tracking_data() { + $all_plugins = $this->get_all_plugins(); + + $users = get_users( + [ + 'role' => 'administrator', + 'orderby' => 'ID', + 'order' => 'ASC', + 'number' => 1, + 'paged' => 1, + ] + ); + + $admin_user = ( is_array( $users ) && ! empty( $users ) ) ? $users[0] : false; + $first_name = ''; + $last_name = ''; + + if ( $admin_user ) { + $first_name = $admin_user->first_name ? $admin_user->first_name : $admin_user->display_name; + $last_name = $admin_user->last_name; + } + + $data = [ + 'url' => esc_url( home_url() ), + 'site' => $this->get_site_name(), + 'admin_email' => get_option( 'admin_email' ), + 'first_name' => $first_name, + 'last_name' => $last_name, + 'hash' => $this->client->hash, + 'server' => $this->get_server_info(), + 'wp' => $this->get_wp_info(), + 'users' => $this->get_user_counts(), + 'active_plugins' => count( $all_plugins['active_plugins'] ), + 'inactive_plugins' => count( $all_plugins['inactive_plugins'] ), + 'ip_address' => $this->get_user_ip_address(), + 'project_version' => $this->client->project_version, + 'tracking_skipped' => false, + 'is_local' => $this->is_local_server(), + ]; + + // Add Plugins + if ( $this->plugin_data ) { + $plugins_data = []; + + foreach ( $all_plugins['active_plugins'] as $slug => $plugin ) { + $slug = strstr( $slug, '/', true ); + + if ( ! $slug ) { + continue; + } + + $plugins_data[ $slug ] = [ + 'name' => isset( $plugin['name'] ) ? $plugin['name'] : '', + 'version' => isset( $plugin['version'] ) ? $plugin['version'] : '', + ]; + } + + if ( array_key_exists( $this->client->slug, $plugins_data ) ) { + unset( $plugins_data[ $this->client->slug ] ); + } + + $data['plugins'] = $plugins_data; + } + + // Add Metadata + $extra = $this->get_extra_data(); + + if ( $extra ) { + $data['extra'] = $extra; + } + + // Check this has previously skipped tracking + $skipped = get_option( $this->client->slug . '_tracking_skipped' ); + + if ( $skipped === 'yes' ) { + delete_option( $this->client->slug . '_tracking_skipped' ); + + $data['tracking_skipped'] = true; + } + + return apply_filters( $this->client->slug . '_tracker_data', $data ); + } + + /** + * If a child class wants to send extra data + * + * @return mixed + */ + protected function get_extra_data() { + if ( is_callable( $this->extra_data ) ) { + return call_user_func( $this->extra_data ); + } + + if ( is_array( $this->extra_data ) ) { + return $this->extra_data; + } + + return []; + } + + /** + * Explain the user which data we collect + * + * @return array + */ + protected function data_we_collect() { + $data = [ + 'Server environment details (php, mysql, server, WordPress versions)', + 'Number of users in your site', + 'Site language', + 'Number of active and inactive plugins', + 'Site name and URL', + 'Your name and email address', + ]; + + if ( $this->plugin_data ) { + array_splice( $data, 4, 0, [ "active plugins' name" ] ); + } + + return $data; + } + + /** + * Check if the user has opted into tracking + * + * @return bool + */ + public function tracking_allowed() { + $allow_tracking = get_option( $this->client->slug . '_allow_tracking', 'no' ); + + return $allow_tracking === 'yes'; + } + + /** + * Get the last time a tracking was sent + * + * @return false|string + */ + private function get_last_send() { + return get_option( $this->client->slug . '_tracking_last_send', false ); + } + + /** + * Check if the notice has been dismissed or enabled + * + * @return bool + */ + public function notice_dismissed() { + $hide_notice = get_option( $this->client->slug . '_tracking_notice', null ); + + if ( 'hide' === $hide_notice ) { + return true; + } + + return false; + } + + /** + * Check if the current server is localhost + * + * @return bool + */ + private function is_local_server() { + $host = isset( $_SERVER['HTTP_HOST'] ) ? sanitize_text_field( wp_unslash( $_SERVER['HTTP_HOST'] ) ) : 'localhost'; + $ip = isset( $_SERVER['SERVER_ADDR'] ) ? sanitize_text_field( wp_unslash( $_SERVER['SERVER_ADDR'] ) ) : '127.0.0.1'; + $is_local = false; + + if ( in_array( $ip, [ '127.0.0.1', '::1' ], true ) + || ! strpos( $host, '.' ) + || in_array( strrchr( $host, '.' ), [ '.test', '.testing', '.local', '.localhost', '.localdomain' ], true ) + ) { + $is_local = true; + } + + return apply_filters( 'appsero_is_local', $is_local ); + } + + /** + * Schedule the event weekly + * + * @return void + */ + private function schedule_event() { + $hook_name = wp_unslash( $this->client->slug . '_tracker_send_event' ); + + if ( ! wp_next_scheduled( $hook_name ) ) { + wp_schedule_event( time(), 'weekly', $hook_name ); + } + } + + /** + * Clear any scheduled hook + * + * @return void + */ + private function clear_schedule_event() { + wp_clear_scheduled_hook( $this->client->slug . '_tracker_send_event' ); + } + + /** + * Display the admin notice to users that have not opted-in or out + * + * @return void + */ + public function admin_notice() { + if ( $this->notice_dismissed() ) { + return; + } + + if ( $this->tracking_allowed() ) { + return; + } + + if ( ! current_user_can( 'manage_options' ) ) { + return; + } + + // don't show tracking if a local server + if ( $this->is_local_server() ) { + return; + } + + $optin_url = wp_nonce_url( add_query_arg( $this->client->slug . '_tracker_optin', 'true' ), '_wpnonce' ); + $optout_url = wp_nonce_url( add_query_arg( $this->client->slug . '_tracker_optout', 'true' ), '_wpnonce' ); + + if ( empty( $this->notice ) ) { + $notice = sprintf( $this->client->__trans( 'Want to help make %1$s even more awesome? Allow %1$s to collect non-sensitive diagnostic data and usage information.' ), $this->client->name ); + } else { + $notice = $this->notice; + } + + $policy_url = 'https://appsero.com/privacy-policy/'; + + $notice .= ' (' . $this->client->__trans( 'what we collect' ) . ')'; + $notice .= ''; + + echo '

'; + echo $notice; + echo '

'; + echo ' ' . $this->client->__trans( 'Allow' ) . ''; + echo ' ' . $this->client->__trans( 'No thanks' ) . ''; + echo '

'; + + echo " + "; + } + + /** + * Handle the optin/optout + * + * @return void + */ + public function handle_optin_optout() { + if ( ! isset( $_GET['_wpnonce'] ) ) { + return; + } + + if ( ! wp_verify_nonce( sanitize_key( $_GET['_wpnonce'] ), '_wpnonce' ) ) { + return; + } + + if ( isset( $_GET[ $this->client->slug . '_tracker_optin' ] ) && $_GET[ $this->client->slug . '_tracker_optin' ] === 'true' ) { + $this->optin(); + + wp_safe_redirect( remove_query_arg( $this->client->slug . '_tracker_optin' ) ); + exit; + } + + if ( isset( $_GET[ $this->client->slug . '_tracker_optout' ] ) && isset( $_GET[ $this->client->slug . '_tracker_optout' ] ) && $_GET[ $this->client->slug . '_tracker_optout' ] === 'true' ) { + $this->optout(); + + wp_safe_redirect( remove_query_arg( $this->client->slug . '_tracker_optout' ) ); + exit; + } + } + + /** + * Tracking optin + * + * @return void + */ + public function optin() { + update_option( $this->client->slug . '_allow_tracking', 'yes' ); + update_option( $this->client->slug . '_tracking_notice', 'hide' ); + + $this->clear_schedule_event(); + $this->schedule_event(); + $this->send_tracking_data(); + + /* + * Fires when the user has opted in tracking. + */ + do_action( $this->client->slug . '_tracker_optin', $this->get_tracking_data() ); + } + + /** + * Optout from tracking + * + * @return void + */ + public function optout() { + update_option( $this->client->slug . '_allow_tracking', 'no' ); + update_option( $this->client->slug . '_tracking_notice', 'hide' ); + + $this->send_tracking_skipped_request(); + + $this->clear_schedule_event(); + + /* + * Fires when the user has opted out tracking. + */ + do_action( $this->client->slug . '_tracker_optout' ); + } + + /** + * Get the number of post counts + * + * @param string $post_type + * + * @return int + */ + public function get_post_count( $post_type ) { + global $wpdb; + + return (int) $wpdb->get_var( + $wpdb->prepare( + "SELECT count(ID) FROM $wpdb->posts WHERE post_type = %s and post_status = %s", + [ $post_type, 'publish' ] + ) + ); + } + + /** + * Get server related info. + * + * @return array + */ + private static function get_server_info() { + global $wpdb; + + $server_data = []; + + if ( isset( $_SERVER['SERVER_SOFTWARE'] ) && ! empty( $_SERVER['SERVER_SOFTWARE'] ) ) { + // phpcs:ignore + $server_data['software'] = $_SERVER['SERVER_SOFTWARE']; + } + + if ( function_exists( 'phpversion' ) ) { + $server_data['php_version'] = phpversion(); + } + + $server_data['mysql_version'] = $wpdb->db_version(); + + $server_data['php_max_upload_size'] = size_format( wp_max_upload_size() ); + $server_data['php_default_timezone'] = date_default_timezone_get(); + $server_data['php_soap'] = class_exists( 'SoapClient' ) ? 'Yes' : 'No'; + $server_data['php_fsockopen'] = function_exists( 'fsockopen' ) ? 'Yes' : 'No'; + $server_data['php_curl'] = function_exists( 'curl_init' ) ? 'Yes' : 'No'; + + return $server_data; + } + + /** + * Get WordPress related data. + * + * @return array + */ + private function get_wp_info() { + $wp_data = []; + + $wp_data['memory_limit'] = WP_MEMORY_LIMIT; + $wp_data['debug_mode'] = ( defined( 'WP_DEBUG' ) && WP_DEBUG ) ? 'Yes' : 'No'; + $wp_data['locale'] = get_locale(); + $wp_data['version'] = get_bloginfo( 'version' ); + $wp_data['multisite'] = is_multisite() ? 'Yes' : 'No'; + $wp_data['theme_slug'] = get_stylesheet(); + + $theme = wp_get_theme( $wp_data['theme_slug'] ); + + $wp_data['theme_name'] = $theme->get( 'Name' ); + $wp_data['theme_version'] = $theme->get( 'Version' ); + $wp_data['theme_uri'] = $theme->get( 'ThemeURI' ); + $wp_data['theme_author'] = $theme->get( 'Author' ); + + return $wp_data; + } + + /** + * Get the list of active and inactive plugins + * + * @return array + */ + private function get_all_plugins() { + // Ensure get_plugins function is loaded + if ( ! function_exists( 'get_plugins' ) ) { + include ABSPATH . '/wp-admin/includes/plugin.php'; + } + + $plugins = get_plugins(); + $active_plugins_keys = get_option( 'active_plugins', [] ); + $active_plugins = []; + + foreach ( $plugins as $k => $v ) { + // Take care of formatting the data how we want it. + $formatted = []; + $formatted['name'] = wp_strip_all_tags( $v['Name'] ); + + if ( isset( $v['Version'] ) ) { + $formatted['version'] = wp_strip_all_tags( $v['Version'] ); + } + + if ( isset( $v['Author'] ) ) { + $formatted['author'] = wp_strip_all_tags( $v['Author'] ); + } + + if ( isset( $v['Network'] ) ) { + $formatted['network'] = wp_strip_all_tags( $v['Network'] ); + } + + if ( isset( $v['PluginURI'] ) ) { + $formatted['plugin_uri'] = wp_strip_all_tags( $v['PluginURI'] ); + } + + if ( in_array( $k, $active_plugins_keys, true ) ) { + // Remove active plugins from list so we can show active and inactive separately + unset( $plugins[ $k ] ); + $active_plugins[ $k ] = $formatted; + } else { + $plugins[ $k ] = $formatted; + } + } + + return [ + 'active_plugins' => $active_plugins, + 'inactive_plugins' => $plugins, + ]; + } + + /** + * Get user totals based on user role. + * + * @return array + */ + public function get_user_counts() { + $user_count = []; + $user_count_data = count_users(); + $user_count['total'] = $user_count_data['total_users']; + + // Get user count based on user role + foreach ( $user_count_data['avail_roles'] as $role => $count ) { + if ( ! $count ) { + continue; + } + + $user_count[ $role ] = $count; + } + + return $user_count; + } + + /** + * Add weekly cron schedule + * + * @param array $schedules + * + * @return array + */ + public function add_weekly_schedule( $schedules ) { + $schedules['weekly'] = [ + 'interval' => DAY_IN_SECONDS * 7, + 'display' => 'Once Weekly', + ]; + + return $schedules; + } + + /** + * Plugin activation hook + * + * @return void + */ + public function activate_plugin() { + $allowed = get_option( $this->client->slug . '_allow_tracking', 'no' ); + + // if it wasn't allowed before, do nothing + if ( 'yes' !== $allowed ) { + return; + } + + // re-schedule and delete the last sent time so we could force send again + $hook_name = $this->client->slug . '_tracker_send_event'; + + if ( ! wp_next_scheduled( $hook_name ) ) { + wp_schedule_event( time(), 'weekly', $hook_name ); + } + + delete_option( $this->client->slug . '_tracking_last_send' ); + + $this->send_tracking_data( true ); + } + + /** + * Clear our options upon deactivation + * + * @return void + */ + public function deactivation_cleanup() { + $this->clear_schedule_event(); + + if ( 'theme' === $this->client->type ) { + delete_option( $this->client->slug . '_tracking_last_send' ); + delete_option( $this->client->slug . '_allow_tracking' ); + } + + delete_option( $this->client->slug . '_tracking_notice' ); + } + + /** + * Hook into action links and modify the deactivate link + * + * @param array $links + * + * @return array + */ + public function plugin_action_links( $links ) { + if ( array_key_exists( 'deactivate', $links ) ) { + $links['deactivate'] = str_replace( ' 'could-not-understand', + 'text' => $this->client->__trans( "Couldn't understand" ), + 'placeholder' => $this->client->__trans( 'Would you like us to assist you?' ), + 'icon' => '', + ], + [ + 'id' => 'found-better-plugin', + 'text' => $this->client->__trans( 'Found a better plugin' ), + 'placeholder' => $this->client->__trans( 'Which plugin?' ), + 'icon' => '', + ], + [ + 'id' => 'not-have-that-feature', + 'text' => $this->client->__trans( 'Missing a specific feature' ), + 'placeholder' => $this->client->__trans( 'Could you tell us more about that feature?' ), + 'icon' => '', + ], + [ + 'id' => 'is-not-working', + 'text' => $this->client->__trans( 'Not working' ), + 'placeholder' => $this->client->__trans( 'Could you tell us a bit more whats not working?' ), + 'icon' => '', + ], + [ + 'id' => 'looking-for-other', + 'text' => $this->client->__trans( 'Not what I was looking' ), + 'placeholder' => $this->client->__trans( 'Could you tell us a bit more?' ), + 'icon' => '', + ], + [ + 'id' => 'did-not-work-as-expected', + 'text' => $this->client->__trans( "Didn't work as expected" ), + 'placeholder' => $this->client->__trans( 'What did you expect?' ), + 'icon' => '', + ], + [ + 'id' => 'other', + 'text' => $this->client->__trans( 'Others' ), + 'placeholder' => $this->client->__trans( 'Could you tell us a bit more?' ), + 'icon' => '', + ], + ]; + + return $reasons; + } + + /** + * Plugin deactivation uninstall reason submission + * + * @return void + */ + public function uninstall_reason_submission() { + if ( ! isset( $_POST['nonce'] ) ) { + return; + } + + if ( ! isset( $_POST['reason_id'] ) ) { + wp_send_json_error(); + } + + if ( ! wp_verify_nonce( sanitize_key( wp_unslash( $_POST['nonce'] ) ), 'appsero-security-nonce' ) ) { + wp_send_json_error( 'Nonce verification failed' ); + } + + if ( ! current_user_can( 'manage_options' ) ) { + wp_send_json_error( 'You are not allowed for this task' ); + } + + $data['reason_id'] = sanitize_text_field( wp_unslash( $_POST['reason_id'] ) ); + $data['reason_info'] = isset( $_REQUEST['reason_info'] ) ? trim( sanitize_text_field( wp_unslash( $_REQUEST['reason_info'] ) ) ) : ''; + + $this->client->send_request( $data, 'deactivate' ); + + /* + * Fire after the plugin _uninstall_reason_submitted + */ + do_action( $this->client->slug . '_uninstall_reason_submitted', $data ); + + wp_send_json_success(); + } + + /** + * Handle the plugin deactivation feedback + * + * @return void + */ + public function deactivate_scripts() { + global $pagenow; + + if ( 'plugins.php' !== $pagenow ) { + return; + } + + $this->deactivation_modal_styles(); + $reasons = $this->get_uninstall_reasons(); + $custom_reasons = apply_filters( 'appsero_custom_deactivation_reasons', [] ); + ?> + +
+
+
+

client->_etrans( 'Goodbyes are always hard. If you have a moment, please let us know how we can improve.' ); ?>

+
+ +
+
    + +
  • + +
  • + +
+ +
    + +
  • + +
  • + +
+ +
+

+ client->__trans( 'We share your data with Appsero to troubleshoot problems & make product improvements. Learn more about how Appsero handles your data.' ), + esc_url( 'https://appsero.com/' ), + esc_url( 'https://appsero.com/privacy-policy' ) + ); + ?> +

+
+ + +
+
+ + + + get_template() === $this->client->slug ) { + $this->client->send_request( $this->get_tracking_data(), 'deactivate' ); + } + } + + /** + * Get user IP Address + */ + private function get_user_ip_address() { + $response = wp_remote_get( 'https://icanhazip.com/' ); + + if ( is_wp_error( $response ) ) { + return ''; + } + + $ip = trim( wp_remote_retrieve_body( $response ) ); + + if ( ! filter_var( $ip, FILTER_VALIDATE_IP ) ) { + return ''; + } + + return $ip; + } + + /** + * Get site name + */ + private function get_site_name() { + $site_name = get_bloginfo( 'name' ); + + if ( empty( $site_name ) ) { + $site_name = get_bloginfo( 'description' ); + $site_name = wp_trim_words( $site_name, 3, '' ); + } + + if ( empty( $site_name ) ) { + $site_name = esc_url( home_url() ); + } + + return $site_name; + } + + /** + * Send request to appsero if user skip to send tracking data + */ + private function send_tracking_skipped_request() { + $skipped = get_option( $this->client->slug . '_tracking_skipped' ); + + $data = [ + 'hash' => $this->client->hash, + 'previously_skipped' => false, + ]; + + if ( $skipped === 'yes' ) { + $data['previously_skipped'] = true; + } else { + update_option( $this->client->slug . '_tracking_skipped', 'yes' ); + } + + $this->client->send_request( $data, 'tracking-skipped' ); + } + + /** + * Deactivation modal styles + */ + private function deactivation_modal_styles() { + ?> + + client = $client; + + $this->option_key = 'appsero_' . md5( $this->client->slug ) . '_manage_license'; + + $this->schedule_hook = $this->client->slug . '_license_check_event'; + + // Creating WP Ajax Endpoint to refresh license remotely + add_action( 'wp_ajax_appsero_refresh_license_' . $this->client->hash, [ $this, 'refresh_license_api' ] ); + + // Run hook to check license status daily + add_action( $this->schedule_hook, [ $this, 'check_license_status' ] ); + + // Active/Deactive corn schedule + $this->run_schedule(); + } + + /** + * Set the license option key. + * + * If someone wants to override the default generated key. + * + * @param string $key + * + * @since 1.3.0 + * + * @return License + */ + public function set_option_key( $key ) { + $this->option_key = $key; + + return $this; + } + + /** + * Get the license key + * + * @since 1.3.0 + * + * @return string|null + */ + public function get_license() { + return get_option( $this->option_key, null ); + } + + /** + * Check license + * + * @return bool + */ + public function check( $license_key ) { + $route = 'public/license/' . $this->client->hash . '/check'; + + return $this->send_request( $license_key, $route ); + } + + /** + * Active a license + * + * @return bool + */ + public function activate( $license_key ) { + $route = 'public/license/' . $this->client->hash . '/activate'; + + return $this->send_request( $license_key, $route ); + } + + /** + * Deactivate a license + * + * @return bool + */ + public function deactivate( $license_key ) { + $route = 'public/license/' . $this->client->hash . '/deactivate'; + + return $this->send_request( $license_key, $route ); + } + + /** + * Send common request + * + * @return array + */ + protected function send_request( $license_key, $route ) { + $params = [ + 'license_key' => $license_key, + 'url' => esc_url( home_url() ), + 'is_local' => $this->client->is_local_server(), + ]; + + $response = $this->client->send_request( $params, $route, true ); + + if ( is_wp_error( $response ) ) { + return [ + 'success' => false, + 'error' => $response->get_error_message(), + ]; + } + + $response = json_decode( wp_remote_retrieve_body( $response ), true ); + + if ( empty( $response ) || isset( $response['exception'] ) ) { + return [ + 'success' => false, + 'error' => $this->client->__trans( 'Unknown error occurred, Please try again.' ), + ]; + } + + if ( isset( $response['errors'] ) && isset( $response['errors']['license_key'] ) ) { + $response = [ + 'success' => false, + 'error' => $response['errors']['license_key'][0], + ]; + } + + return $response; + } + + /** + * License Refresh Endpoint + */ + public function refresh_license_api() { + $this->check_license_status(); + + return wp_send_json( + [ + 'message' => 'License refreshed successfully.', + ], + 200 + ); + } + + /** + * Add settings page for license + * + * @param array $args + * + * @return void + */ + public function add_settings_page( $args = [] ) { + $defaults = [ + 'type' => 'menu', // Can be: menu, options, submenu + 'page_title' => 'Manage License', + 'menu_title' => 'Manage License', + 'capability' => 'manage_options', + 'menu_slug' => $this->client->slug . '-manage-license', + 'icon_url' => '', + 'position' => null, + 'parent_slug' => '', + ]; + + $this->menu_args = wp_parse_args( $args, $defaults ); + + add_action( 'admin_menu', [ $this, 'admin_menu' ], 99 ); + } + + /** + * Admin Menu hook + * + * @return void + */ + public function admin_menu() { + switch ( $this->menu_args['type'] ) { + case 'menu': + $this->create_menu_page(); + break; + + case 'submenu': + $this->create_submenu_page(); + break; + + case 'options': + $this->create_options_page(); + break; + } + } + + /** + * License menu output + */ + public function menu_output() { + // process form data is submitted + $this->license_form_submit(); + + $license = $this->get_license(); + $action = ( $license && isset( $license['status'] ) && 'activate' === $license['status'] ) ? 'deactive' : 'active'; + $this->licenses_style(); + ?> + +
+

License Settings

+ + show_license_page_notices(); + do_action( 'before_appsero_license_section' ); + ?> + +
+ show_license_page_card_header( $license ); ?> + +
+

+ client->__trans( 'Activate %s by your license key to get professional support and automatic update from your WordPress dashboard.' ), $this->client->name ); ?> +

+
+ + +
+
+ + + + + /> +
+ +
+
+ + show_active_license_info( $license ); + } + ?> +
+
+ + +
+ client->name ) ) { + $this->error = $this->client->__trans( 'Nonce vefification failed.' ); + + return; + } + + if ( ! current_user_can( 'manage_options' ) ) { + $this->error = $this->client->__trans( 'You don\'t have permission to manage license.' ); + + return; + } + + $license_key = isset( $_POST['license_key'] ) ? sanitize_text_field( wp_unslash( $_POST['license_key'] ) ) : ''; + $action = isset( $_POST['_action'] ) ? sanitize_text_field( wp_unslash( $_POST['_action'] ) ) : ''; + + switch ( $action ) { + case 'active': + $this->active_client_license( $license_key ); + break; + + case 'deactive': + $this->deactive_client_license(); + break; + + case 'refresh': + $this->refresh_client_license(); + break; + } + } + + /** + * Check license status on schedule + */ + public function check_license_status() { + $license = $this->get_license(); + + if ( isset( $license['key'] ) && ! empty( $license['key'] ) ) { + $response = $this->check( $license['key'] ); + + if ( isset( $response['success'] ) && $response['success'] ) { + $license['status'] = 'activate'; + $license['remaining'] = $response['remaining']; + $license['activation_limit'] = $response['activation_limit']; + $license['expiry_days'] = $response['expiry_days']; + $license['title'] = $response['title']; + $license['source_id'] = $response['source_identifier']; + $license['recurring'] = $response['recurring']; + } else { + $license['status'] = 'deactivate'; + $license['expiry_days'] = 0; + } + + update_option( $this->option_key, $license, false ); + } + } + + /** + * Check this is a valid license + */ + public function is_valid() { + if ( null !== $this->is_valid_license ) { + return $this->is_valid_license; + } + + $license = $this->get_license(); + + if ( ! empty( $license['key'] ) && isset( $license['status'] ) && $license['status'] === 'activate' ) { + $this->is_valid_license = true; + } else { + $this->is_valid_license = false; + } + + return $this->is_valid_license; + } + + /** + * Check this is a valid license + */ + public function is_valid_by( $option, $value ) { + $license = $this->get_license(); + + if ( ! empty( $license['key'] ) && isset( $license['status'] ) && $license['status'] === 'activate' ) { + if ( isset( $license[ $option ] ) && $license[ $option ] === $value ) { + return true; + } + } + + return false; + } + + /** + * Styles for licenses page + */ + private function licenses_style() { + ?> + + +
+
+

client->_etrans( 'Activations Remaining' ); ?>

+ +

client->_etrans( 'Unlimited' ); ?>

+ +

+ client->__trans( '%1$d out of %2$d' ), $license['remaining'], $license['activation_limit'] ); ?> +

+ +
+
+

client->_etrans( 'Expires in' ); ?>

+ 21 ? '' : 'occupied'; + echo '

' . $license['expiry_days'] . ' days

'; + } else { + echo '

' . $this->client->__trans( 'Never' ) . '

'; + } + ?> +
+
+ error ) ) { + ?> +
+

error; ?>

+
+ success ) ) { + ?> +
+

success; ?>

+
+ '; + } + + /** + * Card header + */ + private function show_license_page_card_header( $license ) { + ?> +
+ + + + + + client->__trans( 'Activate License' ); ?> + + +
+ + + +
+ + +
+ error = $this->client->__trans( 'The license key field is required.' ); + + return; + } + + $response = $this->activate( $license_key ); + + if ( ! $response['success'] ) { + $this->error = $response['error'] ? $response['error'] : $this->client->__trans( 'Unknown error occurred.' ); + + return; + } + + $data = [ + 'key' => $license_key, + 'status' => 'activate', + 'remaining' => $response['remaining'], + 'activation_limit' => $response['activation_limit'], + 'expiry_days' => $response['expiry_days'], + 'title' => $response['title'], + 'source_id' => $response['source_identifier'], + 'recurring' => $response['recurring'], + ]; + + update_option( $this->option_key, $data, false ); + + $this->success = $this->client->__trans( 'License activated successfully.' ); + } + + /** + * Deactive client license + */ + private function deactive_client_license() { + $license = $this->get_license(); + + if ( empty( $license['key'] ) ) { + $this->error = $this->client->__trans( 'License key not found.' ); + + return; + } + + $response = $this->deactivate( $license['key'] ); + + $data = [ + 'key' => '', + 'status' => 'deactivate', + ]; + + update_option( $this->option_key, $data, false ); + + if ( ! $response['success'] ) { + $this->error = $response['error'] ? $response['error'] : $this->client->__trans( 'Unknown error occurred.' ); + + return; + } + + $this->success = $this->client->__trans( 'License deactivated successfully.' ); + } + + /** + * Refresh Client License + */ + private function refresh_client_license() { + $license = $this->get_license(); + + if ( ! $license || ! isset( $license['key'] ) || empty( $license['key'] ) ) { + $this->error = $this->client->__trans( 'License key not found' ); + + return; + } + + $this->check_license_status(); + + $this->success = $this->client->__trans( 'License refreshed successfully.' ); + } + + /** + * Add license menu page + */ + private function create_menu_page() { + call_user_func( + 'add_menu_page', + $this->menu_args['page_title'], + $this->menu_args['menu_title'], + $this->menu_args['capability'], + $this->menu_args['menu_slug'], + [ $this, 'menu_output' ], + $this->menu_args['icon_url'], + $this->menu_args['position'] + ); + } + + /** + * Add submenu page + */ + private function create_submenu_page() { + call_user_func( + 'add_submenu_page', + $this->menu_args['parent_slug'], + $this->menu_args['page_title'], + $this->menu_args['menu_title'], + $this->menu_args['capability'], + $this->menu_args['menu_slug'], + [ $this, 'menu_output' ], + $this->menu_args['position'] + ); + } + + /** + * Add submenu page + */ + private function create_options_page() { + call_user_func( + 'add_options_page', + $this->menu_args['page_title'], + $this->menu_args['menu_title'], + $this->menu_args['capability'], + $this->menu_args['menu_slug'], + [ $this, 'menu_output' ], + $this->menu_args['position'] + ); + } + + /** + * Schedule daily sicense checker event + */ + public function schedule_cron_event() { + if ( ! wp_next_scheduled( $this->schedule_hook ) ) { + wp_schedule_event( time(), 'daily', $this->schedule_hook ); + + wp_schedule_single_event( time() + 20, $this->schedule_hook ); + } + } + + /** + * Clear any scheduled hook + */ + public function clear_scheduler() { + wp_clear_scheduled_hook( $this->schedule_hook ); + } + + /** + * Enable/Disable schedule + */ + private function run_schedule() { + switch ( $this->client->type ) { + case 'plugin': + register_activation_hook( $this->client->file, [ $this, 'schedule_cron_event' ] ); + register_deactivation_hook( $this->client->file, [ $this, 'clear_scheduler' ] ); + break; + + case 'theme': + add_action( 'after_switch_theme', [ $this, 'schedule_cron_event' ] ); + add_action( 'switch_theme', [ $this, 'clear_scheduler' ] ); + break; + } + } + + /** + * Get input license key + * + * @return $license + */ + private function get_input_license_value( $action, $license ) { + if ( 'active' === $action ) { + return isset( $license['key'] ) ? $license['key'] : ''; + } + + if ( 'deactive' === $action ) { + $key_length = strlen( $license['key'] ); + + return str_pad( + substr( $license['key'], 0, $key_length / 2 ), + $key_length, + '*' + ); + } + + return ''; + } +} diff --git a/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/src/Updater.php b/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/src/Updater.php new file mode 100644 index 000000000..c98abd86a --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/src/Updater.php @@ -0,0 +1,262 @@ +client = $client; + $this->cache_key = 'appsero_' . md5( $this->client->slug ) . '_version_info'; + + // Run hooks. + if ( $this->client->type === 'plugin' ) { + $this->run_plugin_hooks(); + } elseif ( $this->client->type === 'theme' ) { + $this->run_theme_hooks(); + } + } + + /** + * Set up WordPress filter to hooks to get update. + * + * @return void + */ + public function run_plugin_hooks() { + add_filter( 'pre_set_site_transient_update_plugins', [ $this, 'check_plugin_update' ] ); + add_filter( 'plugins_api', [ $this, 'plugins_api_filter' ], 10, 3 ); + } + + /** + * Set up WordPress filter to hooks to get update. + * + * @return void + */ + public function run_theme_hooks() { + add_filter( 'pre_set_site_transient_update_themes', [ $this, 'check_theme_update' ] ); + } + + /** + * Check for Update for this specific project + */ + public function check_plugin_update( $transient_data ) { + global $pagenow; + + if ( ! is_object( $transient_data ) ) { + $transient_data = new stdClass(); + } + + if ( 'plugins.php' === $pagenow && is_multisite() ) { + return $transient_data; + } + + if ( ! empty( $transient_data->response ) && ! empty( $transient_data->response[ $this->client->basename ] ) ) { + return $transient_data; + } + + $version_info = $this->get_version_info(); + + if ( false !== $version_info && is_object( $version_info ) && isset( $version_info->new_version ) ) { + unset( $version_info->sections ); + + // If new version available then set to `response` + if ( version_compare( $this->client->project_version, $version_info->new_version, '<' ) ) { + $transient_data->response[ $this->client->basename ] = $version_info; + } else { + // If new version is not available then set to `no_update` + $transient_data->no_update[ $this->client->basename ] = $version_info; + } + + $transient_data->last_checked = time(); + $transient_data->checked[ $this->client->basename ] = $this->client->project_version; + } + + return $transient_data; + } + + /** + * Get version info from database + * + * @return object or Boolean + */ + private function get_cached_version_info() { + global $pagenow; + + // If updater page then fetch from API now + if ( 'update-core.php' === $pagenow ) { + return false; // Force to fetch data + } + + $value = get_transient( $this->cache_key ); + + if ( ! $value && ! isset( $value->name ) ) { + return false; // Cache is expired + } + + // We need to turn the icons into an array + if ( isset( $value->icons ) ) { + $value->icons = (array) $value->icons; + } + + // We need to turn the banners into an array + if ( isset( $value->banners ) ) { + $value->banners = (array) $value->banners; + } + + if ( isset( $value->sections ) ) { + $value->sections = (array) $value->sections; + } + + return $value; + } + + /** + * Set version info to database + */ + private function set_cached_version_info( $value ) { + if ( ! $value ) { + return; + } + + set_transient( $this->cache_key, $value, 3 * HOUR_IN_SECONDS ); + } + + /** + * Get plugin info from Appsero + */ + private function get_project_latest_version() { + $license = $this->client->license()->get_license(); + + $params = [ + 'version' => $this->client->project_version, + 'name' => $this->client->name, + 'slug' => $this->client->slug, + 'basename' => $this->client->basename, + 'license_key' => ! empty( $license ) && isset( $license['key'] ) ? $license['key'] : '', + ]; + + $route = 'update/' . $this->client->hash . '/check'; + + $response = $this->client->send_request( $params, $route, true ); + + if ( is_wp_error( $response ) ) { + return false; + } + + $response = json_decode( wp_remote_retrieve_body( $response ) ); + + if ( ! isset( $response->slug ) ) { + return false; + } + + if ( isset( $response->icons ) ) { + $response->icons = (array) $response->icons; + } + + if ( isset( $response->banners ) ) { + $response->banners = (array) $response->banners; + } + + if ( isset( $response->sections ) ) { + $response->sections = (array) $response->sections; + } + + return $response; + } + + /** + * Updates information on the "View version x.x details" page with custom data. + * + * @param mixed $data + * @param string $action + * @param object $args + * + * @return object $data + */ + public function plugins_api_filter( $data, $action = '', $args = null ) { + if ( $action !== 'plugin_information' ) { + return $data; + } + + if ( ! isset( $args->slug ) || ( $args->slug !== $this->client->slug ) ) { + return $data; + } + + return $this->get_version_info(); + } + + /** + * Check theme upate + */ + public function check_theme_update( $transient_data ) { + global $pagenow; + + if ( ! is_object( $transient_data ) ) { + $transient_data = new stdClass(); + } + + if ( 'themes.php' === $pagenow && is_multisite() ) { + return $transient_data; + } + + if ( ! empty( $transient_data->response ) && ! empty( $transient_data->response[ $this->client->slug ] ) ) { + return $transient_data; + } + + $version_info = $this->get_version_info(); + + if ( false !== $version_info && is_object( $version_info ) && isset( $version_info->new_version ) ) { + // If new version available then set to `response` + if ( version_compare( $this->client->project_version, $version_info->new_version, '<' ) ) { + $transient_data->response[ $this->client->slug ] = (array) $version_info; + } else { + // If new version is not available then set to `no_update` + $transient_data->no_update[ $this->client->slug ] = (array) $version_info; + } + + $transient_data->last_checked = time(); + $transient_data->checked[ $this->client->slug ] = $this->client->project_version; + } + + return $transient_data; + } + + /** + * Get version information + */ + private function get_version_info() { + $version_info = $this->get_cached_version_info(); + + if ( false === $version_info ) { + $version_info = $this->get_project_latest_version(); + $this->set_cached_version_info( $version_info ); + } + + return $version_info; + } +} diff --git a/wp-content/plugins/wp-maximum-upload-file-size/vendor/autoload.php b/wp-content/plugins/wp-maximum-upload-file-size/vendor/autoload.php new file mode 100644 index 000000000..3faba3774 --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/vendor/autoload.php @@ -0,0 +1,7 @@ + + * Jordi Boggiano + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Composer\Autoload; + +/** + * ClassLoader implements a PSR-0, PSR-4 and classmap class loader. + * + * $loader = new \Composer\Autoload\ClassLoader(); + * + * // register classes with namespaces + * $loader->add('Symfony\Component', __DIR__.'/component'); + * $loader->add('Symfony', __DIR__.'/framework'); + * + * // activate the autoloader + * $loader->register(); + * + * // to enable searching the include path (eg. for PEAR packages) + * $loader->setUseIncludePath(true); + * + * In this example, if you try to use a class in the Symfony\Component + * namespace or one of its children (Symfony\Component\Console for instance), + * the autoloader will first look for the class under the component/ + * directory, and it will then fallback to the framework/ directory if not + * found before giving up. + * + * This class is loosely based on the Symfony UniversalClassLoader. + * + * @author Fabien Potencier + * @author Jordi Boggiano + * @see https://www.php-fig.org/psr/psr-0/ + * @see https://www.php-fig.org/psr/psr-4/ + */ +class ClassLoader +{ + private $vendorDir; + + // PSR-4 + private $prefixLengthsPsr4 = array(); + private $prefixDirsPsr4 = array(); + private $fallbackDirsPsr4 = array(); + + // PSR-0 + private $prefixesPsr0 = array(); + private $fallbackDirsPsr0 = array(); + + private $useIncludePath = false; + private $classMap = array(); + private $classMapAuthoritative = false; + private $missingClasses = array(); + private $apcuPrefix; + + private static $registeredLoaders = array(); + + public function __construct($vendorDir = null) + { + $this->vendorDir = $vendorDir; + } + + public function getPrefixes() + { + if (!empty($this->prefixesPsr0)) { + return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); + } + + return array(); + } + + public function getPrefixesPsr4() + { + return $this->prefixDirsPsr4; + } + + public function getFallbackDirs() + { + return $this->fallbackDirsPsr0; + } + + public function getFallbackDirsPsr4() + { + return $this->fallbackDirsPsr4; + } + + public function getClassMap() + { + return $this->classMap; + } + + /** + * @param array $classMap Class to filename map + */ + public function addClassMap(array $classMap) + { + if ($this->classMap) { + $this->classMap = array_merge($this->classMap, $classMap); + } else { + $this->classMap = $classMap; + } + } + + /** + * Registers a set of PSR-0 directories for a given prefix, either + * appending or prepending to the ones previously set for this prefix. + * + * @param string $prefix The prefix + * @param array|string $paths The PSR-0 root directories + * @param bool $prepend Whether to prepend the directories + */ + public function add($prefix, $paths, $prepend = false) + { + if (!$prefix) { + if ($prepend) { + $this->fallbackDirsPsr0 = array_merge( + (array) $paths, + $this->fallbackDirsPsr0 + ); + } else { + $this->fallbackDirsPsr0 = array_merge( + $this->fallbackDirsPsr0, + (array) $paths + ); + } + + return; + } + + $first = $prefix[0]; + if (!isset($this->prefixesPsr0[$first][$prefix])) { + $this->prefixesPsr0[$first][$prefix] = (array) $paths; + + return; + } + if ($prepend) { + $this->prefixesPsr0[$first][$prefix] = array_merge( + (array) $paths, + $this->prefixesPsr0[$first][$prefix] + ); + } else { + $this->prefixesPsr0[$first][$prefix] = array_merge( + $this->prefixesPsr0[$first][$prefix], + (array) $paths + ); + } + } + + /** + * Registers a set of PSR-4 directories for a given namespace, either + * appending or prepending to the ones previously set for this namespace. + * + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param array|string $paths The PSR-4 base directories + * @param bool $prepend Whether to prepend the directories + * + * @throws \InvalidArgumentException + */ + public function addPsr4($prefix, $paths, $prepend = false) + { + if (!$prefix) { + // Register directories for the root namespace. + if ($prepend) { + $this->fallbackDirsPsr4 = array_merge( + (array) $paths, + $this->fallbackDirsPsr4 + ); + } else { + $this->fallbackDirsPsr4 = array_merge( + $this->fallbackDirsPsr4, + (array) $paths + ); + } + } elseif (!isset($this->prefixDirsPsr4[$prefix])) { + // Register directories for a new namespace. + $length = strlen($prefix); + if ('\\' !== $prefix[$length - 1]) { + throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); + } + $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; + $this->prefixDirsPsr4[$prefix] = (array) $paths; + } elseif ($prepend) { + // Prepend directories for an already registered namespace. + $this->prefixDirsPsr4[$prefix] = array_merge( + (array) $paths, + $this->prefixDirsPsr4[$prefix] + ); + } else { + // Append directories for an already registered namespace. + $this->prefixDirsPsr4[$prefix] = array_merge( + $this->prefixDirsPsr4[$prefix], + (array) $paths + ); + } + } + + /** + * Registers a set of PSR-0 directories for a given prefix, + * replacing any others previously set for this prefix. + * + * @param string $prefix The prefix + * @param array|string $paths The PSR-0 base directories + */ + public function set($prefix, $paths) + { + if (!$prefix) { + $this->fallbackDirsPsr0 = (array) $paths; + } else { + $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths; + } + } + + /** + * Registers a set of PSR-4 directories for a given namespace, + * replacing any others previously set for this namespace. + * + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param array|string $paths The PSR-4 base directories + * + * @throws \InvalidArgumentException + */ + public function setPsr4($prefix, $paths) + { + if (!$prefix) { + $this->fallbackDirsPsr4 = (array) $paths; + } else { + $length = strlen($prefix); + if ('\\' !== $prefix[$length - 1]) { + throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); + } + $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; + $this->prefixDirsPsr4[$prefix] = (array) $paths; + } + } + + /** + * Turns on searching the include path for class files. + * + * @param bool $useIncludePath + */ + public function setUseIncludePath($useIncludePath) + { + $this->useIncludePath = $useIncludePath; + } + + /** + * Can be used to check if the autoloader uses the include path to check + * for classes. + * + * @return bool + */ + public function getUseIncludePath() + { + return $this->useIncludePath; + } + + /** + * Turns off searching the prefix and fallback directories for classes + * that have not been registered with the class map. + * + * @param bool $classMapAuthoritative + */ + public function setClassMapAuthoritative($classMapAuthoritative) + { + $this->classMapAuthoritative = $classMapAuthoritative; + } + + /** + * Should class lookup fail if not found in the current class map? + * + * @return bool + */ + public function isClassMapAuthoritative() + { + return $this->classMapAuthoritative; + } + + /** + * APCu prefix to use to cache found/not-found classes, if the extension is enabled. + * + * @param string|null $apcuPrefix + */ + public function setApcuPrefix($apcuPrefix) + { + $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; + } + + /** + * The APCu prefix in use, or null if APCu caching is not enabled. + * + * @return string|null + */ + public function getApcuPrefix() + { + return $this->apcuPrefix; + } + + /** + * Registers this instance as an autoloader. + * + * @param bool $prepend Whether to prepend the autoloader or not + */ + public function register($prepend = false) + { + spl_autoload_register(array($this, 'loadClass'), true, $prepend); + + if (null === $this->vendorDir) { + return; + } + + if ($prepend) { + self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; + } else { + unset(self::$registeredLoaders[$this->vendorDir]); + self::$registeredLoaders[$this->vendorDir] = $this; + } + } + + /** + * Unregisters this instance as an autoloader. + */ + public function unregister() + { + spl_autoload_unregister(array($this, 'loadClass')); + + if (null !== $this->vendorDir) { + unset(self::$registeredLoaders[$this->vendorDir]); + } + } + + /** + * Loads the given class or interface. + * + * @param string $class The name of the class + * @return bool|null True if loaded, null otherwise + */ + public function loadClass($class) + { + if ($file = $this->findFile($class)) { + includeFile($file); + + return true; + } + } + + /** + * Finds the path to the file where the class is defined. + * + * @param string $class The name of the class + * + * @return string|false The path if found, false otherwise + */ + public function findFile($class) + { + // class map lookup + if (isset($this->classMap[$class])) { + return $this->classMap[$class]; + } + if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { + return false; + } + if (null !== $this->apcuPrefix) { + $file = apcu_fetch($this->apcuPrefix.$class, $hit); + if ($hit) { + return $file; + } + } + + $file = $this->findFileWithExtension($class, '.php'); + + // Search for Hack files if we are running on HHVM + if (false === $file && defined('HHVM_VERSION')) { + $file = $this->findFileWithExtension($class, '.hh'); + } + + if (null !== $this->apcuPrefix) { + apcu_add($this->apcuPrefix.$class, $file); + } + + if (false === $file) { + // Remember that this class does not exist. + $this->missingClasses[$class] = true; + } + + return $file; + } + + /** + * Returns the currently registered loaders indexed by their corresponding vendor directories. + * + * @return self[] + */ + public static function getRegisteredLoaders() + { + return self::$registeredLoaders; + } + + private function findFileWithExtension($class, $ext) + { + // PSR-4 lookup + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; + + $first = $class[0]; + if (isset($this->prefixLengthsPsr4[$first])) { + $subPath = $class; + while (false !== $lastPos = strrpos($subPath, '\\')) { + $subPath = substr($subPath, 0, $lastPos); + $search = $subPath . '\\'; + if (isset($this->prefixDirsPsr4[$search])) { + $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); + foreach ($this->prefixDirsPsr4[$search] as $dir) { + if (file_exists($file = $dir . $pathEnd)) { + return $file; + } + } + } + } + } + + // PSR-4 fallback dirs + foreach ($this->fallbackDirsPsr4 as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { + return $file; + } + } + + // PSR-0 lookup + if (false !== $pos = strrpos($class, '\\')) { + // namespaced class name + $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) + . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); + } else { + // PEAR-like class name + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; + } + + if (isset($this->prefixesPsr0[$first])) { + foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { + if (0 === strpos($class, $prefix)) { + foreach ($dirs as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { + return $file; + } + } + } + } + } + + // PSR-0 fallback dirs + foreach ($this->fallbackDirsPsr0 as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { + return $file; + } + } + + // PSR-0 include paths. + if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) { + return $file; + } + + return false; + } +} + +/** + * Scope isolated include. + * + * Prevents access to $this/self from included files. + */ +function includeFile($file) +{ + include $file; +} diff --git a/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/InstalledVersions.php b/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/InstalledVersions.php new file mode 100644 index 000000000..37f752261 --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/InstalledVersions.php @@ -0,0 +1,292 @@ + + array ( + 'pretty_version' => 'dev-master', + 'version' => 'dev-master', + 'aliases' => + array ( + ), + 'reference' => '8effd05ba13f3411cb829e3b02d47298763fd3d3', + 'name' => '__root__', + ), + 'versions' => + array ( + '__root__' => + array ( + 'pretty_version' => 'dev-master', + 'version' => 'dev-master', + 'aliases' => + array ( + ), + 'reference' => '8effd05ba13f3411cb829e3b02d47298763fd3d3', + ), + 'appsero/client' => + array ( + 'pretty_version' => 'v1.2.3', + 'version' => '1.2.3.0', + 'aliases' => + array ( + ), + 'reference' => 'ddfaa9ce62618e0aee4f95ddeb37a27ebd9a3508', + ), + ), +); +private static $canGetVendors; +private static $installedByVendor = array(); + + + + + + + +public static function getInstalledPackages() +{ +$packages = array(); +foreach (self::getInstalled() as $installed) { +$packages[] = array_keys($installed['versions']); +} + + +if (1 === \count($packages)) { +return $packages[0]; +} + +return array_keys(array_flip(\call_user_func_array('array_merge', $packages))); +} + + + + + + + + + +public static function isInstalled($packageName) +{ +foreach (self::getInstalled() as $installed) { +if (isset($installed['versions'][$packageName])) { +return true; +} +} + +return false; +} + + + + + + + + + + + + + + +public static function satisfies(VersionParser $parser, $packageName, $constraint) +{ +$constraint = $parser->parseConstraints($constraint); +$provided = $parser->parseConstraints(self::getVersionRanges($packageName)); + +return $provided->matches($constraint); +} + + + + + + + + + + +public static function getVersionRanges($packageName) +{ +foreach (self::getInstalled() as $installed) { +if (!isset($installed['versions'][$packageName])) { +continue; +} + +$ranges = array(); +if (isset($installed['versions'][$packageName]['pretty_version'])) { +$ranges[] = $installed['versions'][$packageName]['pretty_version']; +} +if (array_key_exists('aliases', $installed['versions'][$packageName])) { +$ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']); +} +if (array_key_exists('replaced', $installed['versions'][$packageName])) { +$ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']); +} +if (array_key_exists('provided', $installed['versions'][$packageName])) { +$ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']); +} + +return implode(' || ', $ranges); +} + +throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); +} + + + + + +public static function getVersion($packageName) +{ +foreach (self::getInstalled() as $installed) { +if (!isset($installed['versions'][$packageName])) { +continue; +} + +if (!isset($installed['versions'][$packageName]['version'])) { +return null; +} + +return $installed['versions'][$packageName]['version']; +} + +throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); +} + + + + + +public static function getPrettyVersion($packageName) +{ +foreach (self::getInstalled() as $installed) { +if (!isset($installed['versions'][$packageName])) { +continue; +} + +if (!isset($installed['versions'][$packageName]['pretty_version'])) { +return null; +} + +return $installed['versions'][$packageName]['pretty_version']; +} + +throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); +} + + + + + +public static function getReference($packageName) +{ +foreach (self::getInstalled() as $installed) { +if (!isset($installed['versions'][$packageName])) { +continue; +} + +if (!isset($installed['versions'][$packageName]['reference'])) { +return null; +} + +return $installed['versions'][$packageName]['reference']; +} + +throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); +} + + + + + +public static function getRootPackage() +{ +$installed = self::getInstalled(); + +return $installed[0]['root']; +} + + + + + + + +public static function getRawData() +{ +return self::$installed; +} + + + + + + + + + + + + + + + + + + + +public static function reload($data) +{ +self::$installed = $data; +self::$installedByVendor = array(); +} + + + + +private static function getInstalled() +{ +if (null === self::$canGetVendors) { +self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders'); +} + +$installed = array(); + +if (self::$canGetVendors) { +foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { +if (isset(self::$installedByVendor[$vendorDir])) { +$installed[] = self::$installedByVendor[$vendorDir]; +} elseif (is_file($vendorDir.'/composer/installed.php')) { +$installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; +} +} +} + +$installed[] = self::$installed; + +return $installed; +} +} diff --git a/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/LICENSE b/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/LICENSE new file mode 100644 index 000000000..f27399a04 --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/LICENSE @@ -0,0 +1,21 @@ + +Copyright (c) Nils Adermann, Jordi Boggiano + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + diff --git a/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/autoload_classmap.php b/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/autoload_classmap.php new file mode 100644 index 000000000..b26f1b13b --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/autoload_classmap.php @@ -0,0 +1,10 @@ + $vendorDir . '/composer/InstalledVersions.php', +); diff --git a/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/autoload_namespaces.php b/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/autoload_namespaces.php new file mode 100644 index 000000000..b7fc0125d --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/autoload_namespaces.php @@ -0,0 +1,9 @@ + array($vendorDir . '/appsero/client/src'), +); diff --git a/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/autoload_real.php b/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/autoload_real.php new file mode 100644 index 000000000..e8562aaf6 --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/autoload_real.php @@ -0,0 +1,57 @@ += 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); + if ($useStaticLoader) { + require __DIR__ . '/autoload_static.php'; + + call_user_func(\Composer\Autoload\ComposerStaticInit8db570ab87ce615f114a63d89119a946::getInitializer($loader)); + } else { + $map = require __DIR__ . '/autoload_namespaces.php'; + foreach ($map as $namespace => $path) { + $loader->set($namespace, $path); + } + + $map = require __DIR__ . '/autoload_psr4.php'; + foreach ($map as $namespace => $path) { + $loader->setPsr4($namespace, $path); + } + + $classMap = require __DIR__ . '/autoload_classmap.php'; + if ($classMap) { + $loader->addClassMap($classMap); + } + } + + $loader->register(true); + + return $loader; + } +} diff --git a/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/autoload_static.php b/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/autoload_static.php new file mode 100644 index 000000000..c7dac8a80 --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/autoload_static.php @@ -0,0 +1,36 @@ + + array ( + 'Appsero\\' => 8, + ), + ); + + public static $prefixDirsPsr4 = array ( + 'Appsero\\' => + array ( + 0 => __DIR__ . '/..' . '/appsero/client/src', + ), + ); + + public static $classMap = array ( + 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', + ); + + public static function getInitializer(ClassLoader $loader) + { + return \Closure::bind(function () use ($loader) { + $loader->prefixLengthsPsr4 = ComposerStaticInit8db570ab87ce615f114a63d89119a946::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit8db570ab87ce615f114a63d89119a946::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit8db570ab87ce615f114a63d89119a946::$classMap; + + }, null, ClassLoader::class); + } +} diff --git a/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/installed.json b/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/installed.json new file mode 100644 index 000000000..d0eae164a --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/installed.json @@ -0,0 +1,63 @@ +{ + "packages": [ + { + "name": "appsero/client", + "version": "v1.2.3", + "version_normalized": "1.2.3.0", + "source": { + "type": "git", + "url": "https://github.com/Appsero/client.git", + "reference": "ddfaa9ce62618e0aee4f95ddeb37a27ebd9a3508" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Appsero/client/zipball/ddfaa9ce62618e0aee4f95ddeb37a27ebd9a3508", + "reference": "ddfaa9ce62618e0aee4f95ddeb37a27ebd9a3508", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.2", + "phpcompatibility/phpcompatibility-wp": "dev-master", + "phpunit/phpunit": "^8.5.31", + "squizlabs/php_codesniffer": "^3.7", + "tareq1988/wp-php-cs-fixer": "dev-master", + "wp-coding-standards/wpcs": "dev-develop" + }, + "time": "2023-03-27T14:48:43+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "Appsero\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Tareq Hasan", + "email": "tareq@appsero.com" + } + ], + "description": "Appsero Client", + "keywords": [ + "analytics", + "plugin", + "theme", + "wordpress" + ], + "support": { + "issues": "https://github.com/Appsero/client/issues", + "source": "https://github.com/Appsero/client/tree/v1.2.3" + }, + "install-path": "../appsero/client" + } + ], + "dev": true, + "dev-package-names": [] +} diff --git a/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/installed.php b/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/installed.php new file mode 100644 index 000000000..ad4d88a7c --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/installed.php @@ -0,0 +1,33 @@ + + array ( + 'pretty_version' => 'dev-master', + 'version' => 'dev-master', + 'aliases' => + array ( + ), + 'reference' => '8effd05ba13f3411cb829e3b02d47298763fd3d3', + 'name' => '__root__', + ), + 'versions' => + array ( + '__root__' => + array ( + 'pretty_version' => 'dev-master', + 'version' => 'dev-master', + 'aliases' => + array ( + ), + 'reference' => '8effd05ba13f3411cb829e3b02d47298763fd3d3', + ), + 'appsero/client' => + array ( + 'pretty_version' => 'v1.2.3', + 'version' => '1.2.3.0', + 'aliases' => + array ( + ), + 'reference' => 'ddfaa9ce62618e0aee4f95ddeb37a27ebd9a3508', + ), + ), +); diff --git a/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/platform_check.php b/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/platform_check.php new file mode 100644 index 000000000..8b379f446 --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/vendor/composer/platform_check.php @@ -0,0 +1,26 @@ += 50600)) { + $issues[] = 'Your Composer dependencies require a PHP version ">= 5.6.0". You are running ' . PHP_VERSION . '.'; +} + +if ($issues) { + if (!headers_sent()) { + header('HTTP/1.1 500 Internal Server Error'); + } + if (!ini_get('display_errors')) { + if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { + fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL); + } elseif (!headers_sent()) { + echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL; + } + } + trigger_error( + 'Composer detected issues in your platform: ' . implode(' ', $issues), + E_USER_ERROR + ); +} diff --git a/wp-content/plugins/wp-maximum-upload-file-size/wp-maximum-upload-file-size.php b/wp-content/plugins/wp-maximum-upload-file-size/wp-maximum-upload-file-size.php new file mode 100644 index 000000000..700e2730f --- /dev/null +++ b/wp-content/plugins/wp-maximum-upload-file-size/wp-maximum-upload-file-size.php @@ -0,0 +1,65 @@ +insights()->init(); + +} + +appsero_init_tracker_wp_maximum_upload_file_size(); diff --git a/wp-content/wmufs-temp/index.php b/wp-content/wmufs-temp/index.php new file mode 100644 index 000000000..62200328f --- /dev/null +++ b/wp-content/wmufs-temp/index.php @@ -0,0 +1,2 @@ +