PluginProbe
King Addons for Elementor – 80+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce, Mega Menu, Popup Builder / 51.1.36
King Addons for Elementor – 80+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce, Mega Menu, Popup Builder v51.1.36
51.1.83 51.1.82 51.1.81 51.1.79 51.1.78 51.1.77 51.1.76 51.1.74 51.1.75 51.1.65 51.1.64 51.1.63 trunk 51.1.14 51.1.2 51.1.35 51.1.36 51.1.37 51.1.38 51.1.39 51.1.44 51.1.45 51.1.46 51.1.47 51.1.49 All 37 releases
king-addons / includes / helpers / Check_Requirements / Check_Requirements.php

Check_Requirements.php in King Addons for Elementor – 80+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce, Mega Menu, Popup Builder 51.1.36, at includes/helpers/Check_Requirements/Check_Requirements.php

31 lines 715 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace King_Addons;
4
5 if (!defined('ABSPATH')) {
6 exit; // Exit if accessed directly.
7 }
8
9 final class Check_Requirements
10 {
11 public static function check_import_requirements(): array
12 {
13 $requirements = [
14 'memory' => (int)ini_get('memory_limit') >= 128, // Check if memory is at least 128MB
15 // 'zip' => class_exists('ZipArchive'),
16 // Add more checks if necessary
17 ];
18
19 $errors = [];
20
21 if (!$requirements['zip']) {
22 $errors[] = 'ZIP module is not enabled on this server.';
23 }
24
25 if (!$requirements['memory']) {
26 $errors[] = 'Memory limit is less than 128MB.';
27 }
28
29 return $errors;
30 }
31 }