PluginProbe
Welcart e-Commerce / 2.12.3
Welcart e-Commerce v2.12.3
2.12.3 2.11.35 2.12.2 2.12.1 2.11.34 2.11.33 2.11.32 2.11.31 2.11.30 1.3.16 1.3.17 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 All 291 releases
usc-e-shop / includes / admin_system_status.php

admin_system_status.php in Welcart e-Commerce 2.12.3, at includes/admin_system_status.php

794 lines 36.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Admin - System Environment Status Page.
4 *
5 * @package Welcart
6 */
7
8 $wp_environment = usces_get_wp_environment();
9 $environment = $wp_environment['environment'];
10 $theme = $wp_environment['theme'];
11 $active_plugins = $wp_environment['active_plugins'];
12 $inactive_plugins = $wp_environment['inactive_plugins'];
13 $welcart_information = get_welcart_system_information();
14 $loaded_extensions = get_loaded_extensions();
15 $ini_confs = ini_get_all();
16
17 $version_check = wp_remote_get( 'https://api.wordpress.org/core/version-check/1.7/' );
18 $api_response = json_decode( wp_remote_retrieve_body( $version_check ), true );
19 if ( $api_response && isset( $api_response['offers'], $api_response['offers'][0], $api_response['offers'][0]['version'] ) ) {
20 $latest_version = $api_response['offers'][0]['version'];
21 } else {
22 $latest_version = $environment['wp_version'];
23 }
24 ?>
25 <div id="download_env_info">
26 <button id="btn_download_env_info" class="button" ><?php esc_html_e( 'Download environment information', 'usces' ); ?></button>
27 </div>
28 <table class="wc_status_table widefat" cellspacing="0" id="wp_environment_status">
29 <thead>
30 <tr>
31 <th colspan="3" data-export-label="WordPress Settings"><h2><?php esc_html_e( 'WordPress Settings', 'usces' ); ?></h2></th>
32 </tr>
33 </thead>
34 <tbody>
35 <tr>
36 <td data-export-label="WordPress Address (URL)"><?php esc_html_e( 'WordPress Address (URL)', 'usces' ); ?> :</td>
37 <td><?php echo esc_url( $environment['site_url'] ); ?></td>
38 </tr>
39 <tr>
40 <td data-export-label="Site Address (URL)"><?php esc_html_e( 'Site Address (URL)', 'usces' ); ?> :</td>
41 <td><?php echo esc_url( $environment['home_url'] ); ?></td>
42 </tr>
43 <tr>
44 <td data-export-label="WordPress Version"><?php esc_html_e( 'WordPress Version', 'usces' ); ?> :</td>
45 <?php
46 $wordpress_version = $environment['wp_version'];
47 if ( version_compare( $environment['wp_version'], $latest_version, '<' ) ) {
48 $wordpress_version .= sprintf( __( '( A new version %1$s of WordPress is available. )', 'usces' ), $latest_version );
49 }
50 ?>
51 <td><?php echo esc_html( $wordpress_version ); ?></td>
52 </tr>
53 <tr>
54 <td data-export-label="Site Language"><?php esc_html_e( 'Site Language', 'usces' ); ?> :</td>
55 <td><?php echo esc_html( $environment['site_language'] ); ?></td>
56 </tr>
57 <tr>
58 <td data-export-label="Timezone"><?php esc_html_e( 'Timezone', 'usces' ); ?> :</td>
59 <td><?php echo esc_html( $environment['timezone'] ); ?></td>
60 </tr>
61 <tr>
62 <td data-export-label="Number of media files"><?php esc_html_e( 'Number of media files', 'usces' ); ?> :</td>
63 <td><?php echo esc_html( $environment['number_of_media'] ); ?></td>
64 </tr>
65 <tr>
66 <td data-export-label="Blog pages show at most"><?php esc_html_e( 'Blog pages show at most', 'usces' ); ?> :</td>
67 <td><?php echo esc_html( $environment['number_of_post'] ); ?></td>
68 </tr>
69 <tr>
70 <td data-export-label="Search engine visibility"><?php esc_html_e( 'Search engine visibility', 'usces' ); ?> :</td>
71 <td> <?php echo esc_html( ( $environment['blog_public'] ) ? '' : __( 'Discourage search engines from indexing this site', 'usces' ) ); ?></td>
72 </tr>
73 <tr>
74 <td data-export-label="Thumbnail size"><?php esc_html_e( 'Thumbnail size', 'usces' ); ?> :</td>
75 <td><?php esc_html_e( 'Width', 'usces' ); ?> <?php echo esc_html( $environment['thumbnail_size']['width'] ); ?>, <?php esc_html_e( 'Height', 'usces' ); ?> <?php echo esc_html( $environment['thumbnail_size']['height'] ); ?></td>
76 </tr>
77 <tr>
78 <td data-export-label="Image medium size"><?php esc_html_e( 'Image medium size', 'usces' ); ?> :</td>
79 <td><?php esc_html_e( 'Width', 'usces' ); ?> <?php echo esc_html( $environment['medium_size']['width'] ); ?>, <?php esc_html_e( 'Height', 'usces' ); ?> <?php echo esc_html( $environment['medium_size']['height'] ); ?></td>
80 </tr>
81 <tr>
82 <td data-export-label="Image large size"><?php esc_html_e( 'Image large size', 'usces' ); ?> :</td>
83 <td><?php esc_html_e( 'Width', 'usces' ); ?> <?php echo esc_html( $environment['large_size']['width'] ); ?>, <?php esc_html_e( 'Height', 'usces' ); ?> <?php echo esc_html( $environment['large_size']['height'] ); ?></td>
84 </tr>
85 <tr>
86 <td data-export-label="Permalink Settings"><?php esc_html_e( 'Permalink Settings', 'usces' ); ?> :</td>
87 <td><?php echo esc_html( $environment['permalinks'] ); ?></td>
88 </tr>
89 <tr>
90 <td data-export-label="WP Multisite"><?php esc_html_e( 'WordPress Multisite', 'usces' ); ?> :</td>
91 <td><?php echo esc_html( ( $environment['wp_multisite'] ) ? __( 'ON', 'usces' ) : '' ); ?></td>
92 </tr>
93 <tr>
94 <td data-export-label="WP Memory Limit"><?php esc_html_e( 'WordPress Memory Limit', 'usces' ); ?> :</td>
95 <td><?php echo esc_html( size_format( $environment['wp_memory_limit'] ) ); ?></td>
96 </tr>
97 <tr>
98 <td data-export-label="WP Debug Mode"><?php esc_html_e( 'WordPress Debug Mode', 'usces' ); ?> :</td>
99 <td><?php echo esc_html( ( $environment['wp_debug_mode'] ) ? __( 'ON', 'usces' ) : __( 'OFF', 'usces' ) ); ?></td>
100 </tr>
101 </tbody>
102 </table>
103
104 <table class="wc_status_table widefat" cellspacing="0" id="theme_status">
105 <thead>
106 <tr>
107 <th colspan="3" data-export-label="Theme"><h2><?php esc_html_e( 'Theme', 'usces' ); ?></h2></th>
108 </tr>
109 </thead>
110 <tbody>
111 <tr>
112 <td data-export-label="Theme name"><?php esc_html_e( 'Theme name', 'usces' ); ?> :</td>
113 <td><?php echo esc_html( $theme['name'] ); ?></td>
114 </tr>
115 <tr>
116 <td data-export-label="Theme version"><?php esc_html_e( 'Theme version', 'usces' ); ?> :</td>
117 <td><?php echo esc_html( $theme['version'] ); ?></td>
118 </tr>
119 <tr>
120 <td data-export-label="Author URL"><?php esc_html_e( 'Author URL', 'usces' ); ?> :</td>
121 <td><?php echo esc_html( $theme['author_url'] ); ?></td>
122 </tr>
123 <?php
124 if ( isset( $theme['is_child_theme'] ) && $theme['is_child_theme'] ) :
125 ?>
126 <tr>
127 <td data-export-label="Parent theme name"><?php esc_html_e( 'Parent theme name', 'usces' ); ?> :</td>
128 <td><?php echo esc_html( $theme['parent_name'] ); ?></td>
129 </tr>
130 <tr>
131 <td data-export-label="Parent theme version"><?php esc_html_e( 'Parent theme version', 'usces' ); ?> :</td>
132 <td><?php echo esc_html( $theme['parent_version'] ); ?></td>
133 </tr>
134 <tr>
135 <td data-export-label="Parent author URL"><?php esc_html_e( 'Parent author URL', 'usces' ); ?> :</td>
136 <td><?php echo esc_html( $theme['parent_author_url'] ); ?></td>
137 </tr>
138 <?php
139 endif;
140 ?>
141 </tbody>
142 </table>
143
144 <table class="wc_status_table widefat" cellspacing="0" id="active_plugin_status">
145 <thead>
146 <tr>
147 <th colspan="3" data-export-label="Active Plugins"><h2><?php esc_html_e( 'Active Plugins', 'usces' ); ?></h2></th>
148 </tr>
149 </thead>
150 <tbody>
151 <?php
152 foreach ( $active_plugins as $plugin ) :
153 ?>
154 <tr>
155 <td><a href="<?php echo esc_url( $plugin['url'] ); ?>"><?php echo esc_html( $plugin['name'] ); ?></a></td>
156 <td>
157 <?php echo esc_html( __( 'by', 'usces' ) . ' ' . $plugin['author_name'] . ' - ' . $plugin['version'] ); ?>
158 <?php echo esc_html( ( $plugin['version'] != $plugin['version_latest'] ) ? sprintf( __( '( Update to version %1$s is available. )', 'usces' ), $plugin['version_latest'] ) : '' ); ?>
159 </td>
160 </tr>
161 <?php
162 endforeach;
163 ?>
164 </tbody>
165 </table>
166
167 <table class="wc_status_table widefat" cellspacing="0" id="inactive_plugin_status">
168 <thead>
169 <tr>
170 <th colspan="3" data-export-label="Inactive Plugins"><h2><?php esc_html_e( 'Inactive Plugins', 'usces' ); ?></h2></th>
171 </tr>
172 </thead>
173 <tbody>
174 <?php
175 foreach ( $inactive_plugins as $plugin ) :
176 ?>
177 <tr>
178 <td><a href="<?php echo esc_url( $plugin['url'] ); ?>"><?php echo esc_html( $plugin['name'] ); ?></a></td>
179 <td>
180 <?php echo esc_html( __( 'by', 'usces' ) . ' ' . $plugin['author_name'] . ' - ' . $plugin['version'] ); ?>
181 <?php echo esc_html( ( $plugin['version'] != $plugin['version_latest'] ) ? sprintf( __( '( Update to version %1$s is available. )', 'usces' ), $plugin['version_latest'] ) : '' ); ?>
182 </td>
183 </tr>
184 <?php
185 endforeach;
186 ?>
187 </tbody>
188 </table>
189
190 <table class="wc_status_table widefat" cellspacing="0" id="Welcart_status">
191 <thead>
192 <tr>
193 <th colspan="3" data-export-label="General Setting"><h2><?php esc_html_e( 'General Setting', 'usces' ); ?></h2></th>
194 </tr>
195 </thead>
196 <tbody>
197 <tr>
198 <td data-export-label="Welcart Version"><?php esc_html_e( 'Welcart Version', 'usces' ); ?> :</td>
199 <td><?php echo esc_html( $welcart_information['version'] ); ?></td>
200 </tr>
201 <tr>
202 <td data-export-label="number of item"><?php esc_html_e( 'number of item', 'usces' ); ?> :</td>
203 <td><?php echo esc_html( $welcart_information['total_items'] ); ?></td>
204 </tr>
205 <tr>
206 <td data-export-label="SKU total number"><?php esc_html_e( 'SKU total number', 'usces' ); ?> :</td>
207 <td><?php echo esc_html( $welcart_information['total_sku'] ); ?></td>
208 </tr>
209 <tr>
210 <td data-export-label="Display mode"><?php esc_html_e( 'Display mode', 'usces' ); ?> :</td>
211 <td><?php echo esc_html( ( $welcart_information['maintenance_mode'] ) ? __( 'Under Maintenance', 'usces' ) : __( 'Normal business', 'usces' ) ); ?></td>
212 </tr>
213 <tr>
214 <td data-export-label="Campaign Schedule"><?php esc_html_e( 'Campaign Schedule', 'usces' ); ?> :</td>
215 <td>
216 <p><?php echo esc_html__( 'starting time', 'usces' ); ?> :
217 <?php
218 foreach ( $welcart_information['campaign_schedule']['start'] as $key => $value ) :
219 ?>
220 <span> <?php echo esc_html( $value ); ?> <?php esc_html_e( $key, 'usces' ); ?> </span>
221 <?php
222 endforeach;
223 ?>
224 </p>
225 <p><?php echo esc_html__( 'date and time of termination', 'usces' ); ?> :
226 <?php
227 foreach ( $welcart_information['campaign_schedule']['end'] as $key => $value ) :
228 ?>
229 <span> <?php echo esc_html( $value ); ?> <?php esc_html_e( $key, 'usces' ); ?> </span>
230 <?php
231 endforeach;
232 ?>
233 </p>
234 </td>
235 </tr>
236 <tr>
237 <td data-export-label="E-mail address for ordering"><?php esc_html_e( 'E-mail address for ordering', 'usces' ); ?> :</td>
238 <td><?php echo esc_html( $welcart_information['order_mail'] ); ?></td>
239 </tr>
240 <tr>
241 <td data-export-label="Sender's e-mail address"><?php esc_html_e( 'Sender\'s e-mail address', 'usces' ); ?> :</td>
242 <td><?php echo esc_html( $welcart_information['sender_mail'] ); ?></td>
243 </tr>
244 <tr>
245 <td data-export-label="Conditions for free shipping"><?php esc_html_e( 'Conditions for free shipping', 'usces' ); ?> :</td>
246 <td><?php echo esc_html( ( ! empty( $welcart_information['postage_privilege'] ) ) ? $welcart_information['postage_privilege'] . __( 'Above', 'usces' ) : '' ); ?></td>
247 </tr>
248 <tr>
249 <td data-export-label="default limitation number of purchase"><?php esc_html_e( 'default limitation number of purchase', 'usces' ); ?> :</td>
250 <td><?php echo esc_html( ( ! empty( $welcart_information['purchase_limit'] ) ) ? $welcart_information['purchase_limit'] . __( 'maximum amount', 'usces' ) : '' ); ?></td>
251 </tr>
252 <tr>
253 <td data-export-label="initial value of date of sending out."><?php esc_html_e( 'initial value of date of sending out.', 'usces' ); ?> :</td>
254 <td><?php echo esc_html( ( isset( $welcart_information['shipping_rule_text'][ $welcart_information['shipping_rule'] ] ) ) ? $welcart_information['shipping_rule_text'][ $welcart_information['shipping_rule'] ] : '' ); ?></td>
255 </tr>
256 <tr>
257 <td data-export-label="Tax treatment"><?php esc_html_e( 'Tax treatment', 'usces' ); ?> :</td>
258 <td><?php echo esc_html( ( 'include' == $welcart_information['tax_mode'] ) ? __( 'Included', 'usces' ) : __( 'Excluded', 'usces' ) ); ?></td>
259 </tr>
260 <tr>
261 <td data-export-label="Tax target"><?php esc_html_e( 'Tax target', 'usces' ); ?> :</td>
262 <td><?php echo esc_html( ( 'products' == $welcart_information['tax_target'] ) ? __( 'Only Products', 'usces' ) : __( 'All Amount', 'usces' ) ); ?></td>
263 </tr>
264 <tr>
265 <td data-export-label="Applicable tax rate"><?php esc_html_e( 'Applicable tax rate', 'usces' ); ?> :</td>
266 <td><?php echo esc_html( ( 'reduced' == $welcart_information['applicable_taxrate'] ) ? __( 'Reduced tax rate', 'usces' ) : __( 'Standard tax rate', 'usces' ) ); ?></td>
267 </tr>
268 <tr>
269 <td data-export-label="Percentage of Consumption tax"><?php esc_html_e( 'Percentage of Consumption tax', 'usces' ); ?> :</td>
270 <td><?php echo esc_html( ucfirst( $welcart_information['tax_rate'] ) ); ?> %</td>
271 </tr>
272 <tr>
273 <td data-export-label="Reduced tax rate"><?php esc_html_e( 'Reduced tax rate', 'usces' ); ?> :</td>
274 <td><?php echo esc_html( $welcart_information['reduced_tax_rate'] ); ?> %</td>
275 </tr>
276 <tr>
277 <td data-export-label="method of Calculation of the tax"><?php esc_html_e( 'method of Calculation of the tax', 'usces' ); ?> :</td>
278 <?php
279 $tax_method = '';
280 switch ( $welcart_information['tax_method'] ) {
281 case 'cutting':
282 $tax_method = __( 'drop fractions', 'usces' );
283 break;
284 case 'bring':
285 $tax_method = __( 'raise to a unit', 'usces' );
286 break;
287 case 'rounding':
288 $tax_method = __( 'round up numbers of five and above and round down anything under', 'usces' );
289 break;
290 default:
291 break;
292 }
293 ?>
294 <td><?php echo esc_html( $tax_method ); ?></td>
295 </tr>
296 <tr>
297 <td data-export-label="Subject to fees"><?php esc_html_e( 'Subject to fees', 'usces' ); ?> :</td>
298 <td><?php echo esc_html( ( 'products' == $welcart_information['fee_subject'] ) ? __( 'Only Products', 'usces' ) : __( 'All Amount', 'usces' ) ); ?></td>
299 </tr>
300 <tr>
301 <td data-export-label="membership syetem"><?php esc_html_e( 'membership syetem', 'usces' ); ?> :</td>
302 <td><?php echo esc_html( ( 'activate' == $welcart_information['membership_system'] ) ? __( 'to use', 'usces' ) : __( 'not to use', 'usces' ) ); ?></td>
303 </tr>
304 <tr>
305 <td data-export-label="membership points"><?php esc_html_e( 'membership points', 'usces' ); ?> :</td>
306 <td><?php echo esc_html( ( 'activate' == $welcart_information['membership_point'] ) ? __( 'to grant', 'usces' ) : __( 'not to grant', 'usces' ) ); ?></td>
307 </tr>
308
309 <tr>
310 <td data-export-label="Areas of Point Redemption"><?php esc_html_e( 'Areas of Point Redemption', 'usces' ); ?> :</td>
311 <td><?php echo esc_html( ( $welcart_information['point_coverage'] ) ? __( 'Applicable to Total Merchandise Price and Handling Fee', 'usces' ) : __( 'Limited Only to Total Merchandise Price', 'usces' ) ); ?></td>
312 </tr>
313
314 <tr>
315 <td data-export-label="Timing point of grant"><?php esc_html_e( 'Timing point of grant', 'usces' ); ?> :</td>
316 <td><?php echo esc_html( ( $welcart_information['point_assign'] ) ? __( 'Payment at the time', 'usces' ) : __( 'Immediately', 'usces' ) ); ?></td>
317 </tr>
318 </tbody>
319 </table>
320
321 <table class="wc_status_table widefat" cellspacing="0" id="payment_methods_status">
322 <thead>
323 <tr>
324 <th colspan="3" data-export-label="payment method"><h2><?php esc_html_e( 'payment method', 'usces' ); ?></h2></th>
325 </tr>
326 </thead>
327 <tbody>
328 <tr>
329 <td><strong><?php esc_html_e( 'A payment method name', 'usces' ); ?></strong></td>
330 <td><strong><?php esc_html_e( 'Type of payment', 'usces' ); ?></strong></td>
331 <td><strong><?php esc_html_e( 'Usage conditions', 'usces' ); ?></strong></td>
332 </tr>
333 <?php
334 foreach ( $welcart_information['payment_methods'] as $payment ) :
335 ?>
336 <tr>
337 <td><?php echo esc_html( $payment['name'] ); ?></td>
338 <td><?php echo esc_html( ( isset( $welcart_information['payment_structure'][ $payment['settlement'] ] ) ) ? $welcart_information['payment_structure'][ $payment['settlement'] ] : '' ); ?></td>
339 <td><?php echo esc_html( ( 'activate' == $payment['use'] ) ? __( 'Activate', 'usces' ) : __( 'Deactivate', 'usces' ) ); ?></td>
340 </tr>
341 <?php
342 endforeach;
343 ?>
344 </tbody>
345 </table>
346
347 <table class="wc_status_table widefat" cellspacing="0" id="common_options_status">
348 <thead>
349 <tr>
350 <th colspan="4" data-export-label="Common Options"><h2><?php esc_html_e( 'Common Options', 'usces' ); ?></h2></th>
351 </tr>
352 </thead>
353 <tbody>
354 <tr>
355 <td><strong><?php esc_html_e( 'option name', 'usces' ); ?></strong></td>
356 <td><strong><?php esc_html_e( 'selected amount', 'usces' ); ?></strong></td>
357 <td><strong><?php esc_html_e( 'Type of option', 'usces' ); ?></strong></td>
358 <td><strong><?php esc_html_e( 'Required', 'usces' ); ?></strong></td>
359 </tr>
360 <?php
361 foreach ( $welcart_information['common_options'] as $option ) :
362 ?>
363 <tr>
364 <td><?php echo esc_html( $option['name'] ); ?></td>
365 <td><?php echo esc_html( $option['value'] ); ?></td>
366 <td><?php echo esc_html( ( isset( $welcart_information['common_options_type'][ $option['means'] ] ) ) ? $welcart_information['common_options_type'][ $option['means'] ] : '' ); ?></td>
367 <td><?php echo esc_html( ( $option['essential'] ) ? __( 'Essential', 'usces' ) : '' ); ?></td>
368 </tr>
369 <?php
370 endforeach;
371 ?>
372 </tbody>
373 </table>
374
375 <table class="wc_status_table widefat" cellspacing="0" id="shipping_method_status">
376 <thead>
377 <tr>
378 <th colspan="6" data-export-label="shipping option"><h2><?php esc_html_e( 'shipping option', 'usces' ); ?></h2></th>
379 </tr>
380 </thead>
381 <tbody>
382 <tr>
383 <td><strong><?php esc_html_e( 'Shipping name', 'usces' ); ?></strong></td>
384 <td><strong><?php esc_html_e( 'Deliverly time', 'usces' ); ?></strong></td>
385 <td><strong><?php esc_html_e( 'Possible Delivery Area', 'usces' ); ?></strong></td>
386 <td><strong><?php esc_html_e( 'Postage fixation', 'usces' ); ?></strong></td>
387 <td><strong><?php esc_html_e( 'Delivery Days', 'usces' ); ?></strong></td>
388 <td><strong><?php esc_html_e( 'No COD', 'usces' ); ?></strong></td>
389 </tr>
390 <?php
391 foreach ( $welcart_information['shipping_methods'] as $shipping ) :
392 $charge = '';
393 $delivery_day = '';
394 if ( 0 > $shipping['charge'] ) {
395 $charge = esc_html__( 'Not fixing shipping.', 'usces' );
396 } else {
397 foreach ( $welcart_information['shipping_charge'] as $shipping_charge ) {
398 if ( $shipping['charge'] == $shipping_charge['id'] ) {
399 $charge = $shipping_charge['name'];
400 break;
401 }
402 }
403 }
404 if ( 0 > $shipping['days'] ) {
405 $delivery_day = esc_html__( 'Delivery Date Not Specified', 'usces' );
406 } else {
407 foreach ( $welcart_information['delivery_days'] as $day ) {
408 if ( $shipping['days'] == $day['id'] ) {
409 $delivery_day = $day['name'];
410 break;
411 }
412 }
413 }
414 ?>
415 <tr>
416 <td><?php echo esc_html( $shipping['name'] ); ?></td>
417 <td><?php echo esc_html( $shipping['time'] ); ?></td>
418 <td><?php echo esc_html( ( $shipping['intl'] ) ? __( 'International Shipment', 'usces' ) : __( 'Domestic Shipment', 'usces' ) ); ?></td>
419 <td><?php echo esc_html( $charge ); ?> </td>
420 <td><?php echo esc_html( $delivery_day ); ?> </td>
421 <td><?php echo esc_html( ( $shipping['nocod'] ) ? __( 'not available', 'usces' ) : '' ); ?></td>
422 </tr>
423 <?php
424 endforeach;
425 ?>
426 </tbody>
427 </table>
428
429 <table class="wc_status_table widefat" cellspacing="0" id="shipping_cost_status">
430 <thead>
431 <tr>
432 <th colspan="3" data-export-label="Shipping"><h2><?php esc_html_e( 'Shipping', 'usces' ); ?></h2></th>
433 </tr>
434 </thead>
435 <tbody>
436 <tr>
437 <td><strong><?php esc_html_e( 'Shipping charge name', 'usces' ); ?></strong></td>
438 </tr>
439 <?php
440 foreach ( $welcart_information['shipping_charge'] as $shipping_charge ) :
441 ?>
442 <tr>
443 <td><?php echo esc_html( $shipping_charge['name'] ); ?></td>
444 </tr>
445 <?php
446 endforeach;
447 ?>
448 </tbody>
449 </table>
450
451 <table class="wc_status_table widefat" cellspacing="0" id="mail_options_status">
452 <thead>
453 <tr>
454 <th colspan="2" data-export-label="Mail Options"><h2><?php esc_html_e( 'Mail Options', 'usces' ); ?></h2></th>
455 </tr>
456 </thead>
457 <tbody>
458 <tr>
459 <td data-export-label="New sign-in completion email"><?php esc_html_e( 'New sign-in completion email', 'usces' ); ?> :</td>
460 <td><?php echo esc_html( ( $welcart_information['newmem_admin_mail'] ) ? __( 'Send', 'usces' ) : __( 'Don\'t send', 'usces' ) ); ?></td>
461 </tr>
462 <tr>
463 <td data-export-label="Member update completion email to admin"><?php esc_html_e( 'Member update completion email to admin', 'usces' ); ?> :</td>
464 <td><?php echo esc_html( ( $welcart_information['updmem_admin_mail'] ) ? __( 'Send', 'usces' ) : __( 'Don\'t send', 'usces' ) ); ?></td>
465 </tr>
466 <tr>
467 <td data-export-label="Member update completion email to customer"><?php esc_html_e( 'Member update completion email to customer', 'usces' ); ?> :</td>
468 <td><?php echo esc_html( ( $welcart_information['updmem_customer_mail'] ) ? __( 'Send', 'usces' ) : __( 'Don\'t send', 'usces' ) ); ?></td>
469 </tr>
470 <tr>
471 <td data-export-label="Member removal completion email to admin"><?php esc_html_e( 'Member removal completion email to admin', 'usces' ); ?> :</td>
472 <td><?php echo esc_html( ( $welcart_information['delmem_admin_mail'] ) ? __( 'Send', 'usces' ) : __( 'Don\'t send', 'usces' ) ); ?></td>
473 </tr>
474 <tr>
475 <td data-export-label="Member removal completion email to customer"><?php esc_html_e( 'Member removal completion email to customer', 'usces' ); ?> :</td>
476 <td><?php echo esc_html( ( $welcart_information['delmem_customer_mail'] ) ? __( 'Send', 'usces' ) : __( 'Don\'t send', 'usces' ) ); ?></td>
477 </tr>
478 <tr>
479 <td data-export-label="Customer name"><?php esc_html_e( 'Customer name', 'usces' ); ?> :</td>
480 <td><?php echo esc_html( ( $welcart_information['put_customer_name'] ) ? __( 'Indication', 'usces' ) : __( 'Non-indication', 'usces' ) ); ?></td>
481 </tr>
482 <tr>
483 <td data-export-label="Attachment file for administrator email"><?php esc_html_e( 'Attachment file for administrator email', 'usces' ); ?> :</td>
484 <td><?php echo esc_html( ( $welcart_information['email_attach_feature'] ) ? __( 'Use', 'usces' ) : __( 'Do not Use', 'usces' ) ); ?></td>
485 </tr>
486 <?php
487 if ( $welcart_information['email_attach_feature'] ) :
488 ?>
489 <tr>
490 <td data-export-label="Extensions of attachments"><?php esc_html_e( 'Extensions of attachments', 'usces' ); ?> :</td>
491 <td><?php echo esc_html( $welcart_information['email_attach_file_extension'] ); ?></td>
492 </tr>
493 <tr>
494 <td data-export-label="Maximum size of email attachment"><?php esc_html_e( 'Maximum size of email attachment', 'usces' ); ?> :</td>
495 <td><?php echo esc_html( $welcart_information['email_attach_file_size'] ); ?> Mb</td>
496 </tr>
497 <?php
498 endif;
499 ?>
500 <tr>
501 <td data-export-label="HTML mail format"><?php esc_html_e( 'HTML mail format', 'usces' ); ?> :</td>
502 <td><?php echo esc_html( ( $welcart_information['add_html_email_option'] ) ? __( 'Use', 'usces' ) : __( 'Do not Use', 'usces' ) ); ?></td>
503 </tr>
504 </tbody>
505 </table>
506
507 <table class="wc_status_table widefat" cellspacing="0" id="item_name_rules_status">
508 <thead>
509 <tr>
510 <th colspan="3" data-export-label="Rule of the column for a item name"><h2><?php esc_html_e( 'Rule of the column for a item name', 'usces' ); ?></h2></th>
511 </tr>
512 </thead>
513 <tbody>
514 <?php
515 foreach ( $welcart_information['indi_item_name'] as $key => $value ) :
516 ?>
517 <tr>
518 <td><?php esc_html_e( "Indication of {$welcart_information['indi_item_name_text'][ $key ]}", 'usces' ); ?> : <?php echo esc_html( ( $value ) ? __( 'Show', 'usces' ) : '' ); ?></td>
519 <td><?php esc_html_e( "Position of {$welcart_information['indi_item_name_text'][ $key ]}", 'usces' ); ?> : <?php echo esc_html( $welcart_information['pos_item_name'][ $key ] ); ?></td>
520 </tr>
521 <?php
522 endforeach;
523 ?>
524 </tbody>
525 </table>
526
527 <table class="wc_status_table widefat" cellspacing="0" id="system_setting_status">
528 <thead>
529 <tr>
530 <th colspan="2" data-export-label="System Setting"><h2><?php esc_html_e( 'System Setting', 'usces' ); ?></h2></th>
531 </tr>
532 </thead>
533 <tbody>
534 <tr>
535 <td data-export-label="Display Modes"><?php esc_html_e( 'Display Modes', 'usces' ); ?> :</td>
536 <td><?php echo esc_html( ( $welcart_information['divide_item'] ) ? __( 'Not display an article in blog', 'usces' ) : '' ); ?></td>
537 </tr>
538 <tr>
539 <td data-export-label="rel attribute"><?php esc_html_e( 'rel attribute', 'usces' ); ?> :</td>
540 <td><?php echo esc_html( ( isset( $welcart_information['itemimg_anchor_rel'] ) ) ? $welcart_information['itemimg_anchor_rel'] : '' ); ?></td>
541 </tr>
542 <tr>
543 <td data-export-label="compound category sort item"><?php esc_html_e( 'compound category sort item', 'usces' ); ?> :</td>
544 <td><?php echo esc_html( ( 'name' == $welcart_information['fukugo_category_orderby'] ) ? __( 'category name', 'usces' ) : __( 'category ID', 'usces' ) ); ?></td>
545 </tr>
546 <tr>
547 <td data-export-label="compound category sort order"><?php esc_html_e( 'compound category sort order', 'usces' ); ?> :</td>
548 <td><?php echo esc_html( ( 'DESC' == $welcart_information['fukugo_category_order'] ) ? __( 'Descendin', 'usces' ) : __( 'Ascending', 'usces' ) ); ?></td>
549 </tr>
550 <tr>
551 <td data-export-label="Switching SSL"><?php esc_html_e( 'Switching SSL', 'usces' ); ?> :</td>
552 <td><?php echo esc_html( ( $welcart_information['use_ssl'] ) ? __( 'Switching', 'usces' ) : '' ); ?></td>
553 </tr>
554 <tr>
555 <td data-export-label="The page_id of the inquiry-form"><?php esc_html_e( 'The page_id of the inquiry-form', 'usces' ); ?> :</td>
556 <td><?php echo esc_html( $welcart_information['inquiry_id'] ); ?></td>
557 </tr>
558 <tr>
559 <td data-export-label="To disable usces_cart.css"><?php esc_html_e( 'To disable usces_cart.css', 'usces' ); ?> :</td>
560 <td><?php echo esc_html( ( $welcart_information['no_cart_css'] ) ? __( 'To disable', 'usces' ) : '' ); ?></td>
561 </tr>
562 <tr>
563 <td data-export-label="Product sub-image rule"><?php esc_html_e( 'Product sub-image rule', 'usces' ); ?> :</td>
564 <td><?php echo ( ( $welcart_information['subimage_rule'] ) ? __( 'Put two _ (underscores) between the product code and the sequential number', 'usces' ) : __( 'Product Code Forward Matching', 'usces' ) ); ?></td>
565 </tr>
566 <tr>
567 <td data-export-label="Described method of invoice"><?php esc_html_e( 'Described method of invoice', 'usces' ); ?> :</td>
568 <td><?php echo esc_html( ( $welcart_information['pdf_delivery'] ) ? __( 'To address the shipping information', 'usces' ) : __( 'To address the purchaser information', 'usces' ) ); ?></td>
569 </tr>
570 <tr>
571 <td data-export-label="Character code in the CSV file"><?php esc_html_e( 'Character code in the CSV file', 'usces' ); ?> :</td>
572 <td><?php echo esc_html( ( $welcart_information['csv_encode_type'] ) ? __( 'UTF-8', 'usces' ) : __( 'Shift_JIS', 'usces' ) ); ?></td>
573 </tr>
574 <tr>
575 <td data-export-label="'Category' of CSV product data file"><?php esc_html_e( "'Category' of CSV product data file", 'usces' ); ?> :</td>
576 <td><?php echo esc_html( ( $welcart_information['csv_category_format'] ) ? __( 'slug (slug)', 'usces' ) : __( 'ID (tag_ID)', 'usces' ) ); ?></td>
577 </tr>
578 <tr>
579 <td data-export-label="Order data re-created from the settlement log"><?php esc_html_e( 'Order data re-created from the settlement log', 'usces' ); ?> :</td>
580 <td><?php echo esc_html( ( $welcart_information['settlement_backup'] ) ? __( 'Use', 'usces' ) : __( 'Do not Use', 'usces' ) ); ?></td>
581 </tr>
582 <tr>
583 <td data-export-label="Settlement error message"><?php esc_html_e( 'Settlement error message', 'usces' ); ?> :</td>
584 <td><?php echo esc_html( ( $welcart_information['settlement_notice'] ) ? __( 'Display', 'usces' ) : __( 'Do not display', 'usces' ) ); ?></td>
585 </tr>
586 <tr>
587 <td data-export-label="The language of the front-end"><?php esc_html_e( 'The language of the front-end', 'usces' ); ?> :</td>
588 <td><?php echo esc_html( $welcart_information['front_lang'] ); ?></td>
589 </tr>
590 <tr>
591 <td data-export-label="Currencies"><?php esc_html_e( 'Currencies', 'usces' ); ?> :</td>
592 <td><?php echo esc_html( ( isset( $welcart_information['country'][ $welcart_information['currency'] ] ) ) ? $welcart_information['country'][ $welcart_information['currency'] ] : $welcart_information['currency'] ); ?></td>
593 </tr>
594 <tr>
595 <td data-export-label="The name and address form"><?php esc_html_e( 'The name and address form', 'usces' ); ?> :</td>
596 <td><?php echo esc_html( ( isset( $welcart_information['country'][ $welcart_information['addressform'] ] ) ) ? $welcart_information['country'][ $welcart_information['addressform'] ] : $welcart_information['currency'] ); ?></td>
597 </tr>
598 <tr>
599 <td data-export-label="Target Market"><?php esc_html_e( 'Target Market', 'usces' ); ?> :</td>
600 <?php
601 $target_market_country = array();
602 foreach ( $welcart_information['target_market'] as $key => $value ) {
603 if ( isset( $welcart_information['country'][ $value ] ) ) {
604 $target_market_country[] = $welcart_information['country'][ $value ];
605 }
606 }
607 ?>
608 <td><?php echo esc_html( implode( ', ', $target_market_country ) ); ?></td>
609 </tr>
610 </tbody>
611 </table>
612
613 <table class="wc_status_table widefat" cellspacing="0" id="system_extension_status">
614 <thead>
615 <tr>
616 <th colspan="2" data-export-label="System extension"><h2><?php esc_html_e( 'System extension', 'usces' ); ?></h2></th>
617 </tr>
618 </thead>
619 <tbody>
620 <tr>
621 <td data-export-label="Ganbare Tencho"><?php esc_html_e( 'Ganbare Tencho', 'usces' ); ?> :</td>
622 <td><?php echo esc_html( ( $welcart_information['ganbare_activate_flag'] ) ? __( 'Enabled', 'usces' ) : __( 'Disabled', 'usces' ) ); ?></td>
623 </tr>
624 <tr>
625 <td data-export-label="Linkage Order Upadate"><?php esc_html_e( 'Linkage Order Upadate', 'usces' ); ?> :</td>
626 <td><?php echo esc_html( ( $welcart_information['stocklink_orderedit_flag'] ) ? __( 'Enabled', 'usces' ) : __( 'Disabled', 'usces' ) ); ?></td>
627 </tr>
628 <tr>
629 <td data-export-label="Linkage Order Collective Upadate"><?php esc_html_e( 'Linkage Order Collective Upadate', 'usces' ); ?> :</td>
630 <td><?php echo esc_html( ( $welcart_information['stocklink_collective_flag'] ) ? __( 'Enabled', 'usces' ) : __( 'Disabled', 'usces' ) ); ?></td>
631 </tr>
632 <tr>
633 <td data-export-label="[New] Order List"><?php esc_html_e( '[New] Order List', 'usces' ); ?> :</td>
634 <td><?php echo esc_html( ( $welcart_information['datalistup_orderlist_flag'] ) ? __( 'Enabled', 'usces' ) : __( 'Disabled', 'usces' ) ); ?></td>
635 </tr>
636 <tr>
637 <td data-export-label="[New] Member List"><?php esc_html_e( '[New] Member List', 'usces' ); ?> :</td>
638 <td><?php echo esc_html( ( $welcart_information['datalistup_memberlist_flag'] ) ? __( 'Enabled', 'usces' ) : __( 'Disabled', 'usces' ) ); ?></td>
639 </tr>
640 <tr>
641 <td data-export-label="Email verification for new registration"><?php esc_html_e( 'Email verification for new registration', 'usces' ); ?> :</td>
642 <td><?php echo esc_html( ( $welcart_information['verifyemail_switch_flag'] ) ? __( 'Enabled', 'usces' ) : __( 'Disabled', 'usces' ) ); ?></td>
643 </tr>
644 <tr>
645 <td data-export-label="Email verification for editing information"><?php esc_html_e( 'Email verification for editing information', 'usces' ); ?> :</td>
646 <td><?php echo esc_html( ( $welcart_information['verifyemail_edit_flag'] ) ? __( 'Enabled', 'usces' ) : __( 'Disabled', 'usces' ) ); ?></td>
647 </tr>
648 <tr>
649 <td data-export-label="Login Notification"><?php esc_html_e( 'Login Notification', 'usces' ); ?> :</td>
650 <td><?php echo esc_html( ( $welcart_information['verifyemail_login_notify'] ) ? __( 'Enabled', 'usces' ) : __( 'Disabled', 'usces' ) ); ?></td>
651 </tr>
652 <tr>
653 <td data-export-label="Google reCAPTCHA v3"><?php esc_html_e( 'Google reCAPTCHA v3', 'usces' ); ?> :</td>
654 <td><?php echo esc_html( ( $welcart_information['google_recaptcha_status'] ) ? __( 'Enabled', 'usces' ) : __( 'Disabled', 'usces' ) ); ?></td>
655 </tr>
656 <tr>
657 <td data-export-label="Brute-force attack countermeasures"><?php esc_html_e( 'Brute-force attack countermeasures', 'usces' ); ?> :</td>
658 <td><?php echo esc_html( ( $welcart_information['brute_force_status'] ) ? __( 'Enabled', 'usces' ) : __( 'Disabled', 'usces' ) ); ?></td>
659 </tr>
660 <tr>
661 <td data-export-label="Structured data measures"><?php esc_html_e( 'Structured data measures', 'usces' ); ?> :</td>
662 <td><?php echo esc_html( ( $welcart_information['structured_data_product_status'] ) ? __( 'Enabled', 'usces' ) : __( 'Disabled', 'usces' ) ); ?></td>
663 </tr>
664 <tr>
665 <td data-export-label="New product image registration"><?php esc_html_e( 'New product image registration', 'usces' ); ?> :</td>
666 <td><?php echo esc_html( ( $welcart_information['newproductimage_switch_flag'] ) ? __( 'Enabled', 'usces' ) : __( 'Disabled', 'usces' ) ); ?></td>
667 </tr>
668 <tr>
669 <td data-export-label="Operation Log"><?php esc_html_e( 'Operation Log', 'usces' ); ?> :</td>
670 <td><?php echo esc_html( ( $welcart_information['operation_log_switch_flag'] ) ? __( 'Enabled', 'usces' ) : __( 'Disabled', 'usces' ) ); ?></td>
671 </tr>
672 <tr>
673 <td data-export-label="Credit Card Security Measures"><?php esc_html_e( 'Credit Card Security Measures', 'usces' ); ?> :</td>
674 <td><?php echo esc_html( ( $welcart_information['credit_security'] ) ? __( 'Enabled', 'usces' ) : __( 'Disabled', 'usces' ) ); ?></td>
675 </tr>
676 </tbody>
677 </table>
678
679 <table class="wc_status_table widefat" cellspacing="0" id="settlement_status">
680 <thead>
681 <tr>
682 <th colspan="2" data-export-label="Settlement Setting"><h2><?php esc_html_e( 'Settlement Setting', 'usces' ); ?></h2></th>
683 </tr>
684 </thead>
685 <tbody>
686 <tr>
687 <td data-export-label="Settlement modules in use"><?php esc_html_e( 'Settlement modules in use', 'usces' ); ?> :</td>
688 <?php
689 $settlement_selected_text = array();
690 if ( is_array( $welcart_information['settlement_selected'] ) ) {
691 foreach ( $welcart_information['settlement_selected'] as $key => $value ) {
692 if ( isset( $welcart_information['available_settlement'][ $value ] ) ) {
693 $settlement_selected_text[] = __( $welcart_information['available_settlement'][ $value ], 'usces' );
694 }
695 }
696 }
697 ?>
698 <td><?php echo esc_html( implode( ', ', $settlement_selected_text ) ); ?></td>
699 </tr>
700 </tbody>
701 </table>
702
703 <table class="wc_status_table widefat" cellspacing="0" id="management_status">
704 <thead>
705 <tr>
706 <th colspan="2" data-export-label="Management Information"><h2><?php esc_html_e( 'Management Information', 'usces' ); ?></h2></th>
707 </tr>
708 </thead>
709 <tbody>
710 <tr>
711 <td data-export-label="Number of orders"><?php esc_html_e( 'Number of orders', 'usces' ); ?> :</td>
712 <td><?php echo esc_html( $welcart_information['number_of_orders'] ); ?></td>
713 </tr>
714 <tr>
715 <td data-export-label="Number of members"><?php esc_html_e( 'Number of members', 'usces' ); ?> :</td>
716 <td><?php echo esc_html( $welcart_information['number_of_members'] ); ?></td>
717 </tr>
718 </tbody>
719 </table>
720
721 <table class="wc_status_table widefat" cellspacing="0" id="server_environment_status">
722 <thead>
723 <tr>
724 <th colspan="2" data-export-label="Server environment"><h2><?php esc_html_e( 'Server environment', 'usces' ); ?></h2></th>
725 </tr>
726 </thead>
727 <tbody>
728 <tr>
729 <td data-export-label="Server"><?php esc_html_e( 'Server', 'usces' ); ?> :</td>
730 <td><?php echo esc_html( $environment['server'] ); ?></td>
731 </tr>
732 <tr>
733 <td data-export-label="PHP version"><?php esc_html_e( 'PHP version', 'usces' ); ?> :</td>
734 <td><?php echo esc_html( $environment['php_version'] ); ?></td>
735 </tr>
736 <tr>
737 <td data-export-label="PHP global memory"><?php esc_html_e( 'PHP global memory', 'usces' ); ?> :</td>
738 <td><?php echo esc_html( $ini_confs['memory_limit']['global_value'] ); ?></td>
739 </tr>
740 <tr>
741 <td data-export-label="PHP locale memory"><?php esc_html_e( 'PHP locale memory', 'usces' ); ?> :</td>
742 <td><?php echo esc_html( $ini_confs['memory_limit']['local_value'] ); ?></td>
743 </tr>
744 <tr>
745 <td data-export-label="PHP post max size"><?php esc_html_e( 'PHP post max size', 'usces' ); ?> :</td>
746 <td><?php echo esc_html( $environment['php_post_max_size'] ); ?></td>
747 </tr>
748 <tr>
749 <td data-export-label="PHP time limit"><?php esc_html_e( 'PHP time limit', 'usces' ); ?> :</td>
750 <td><?php echo esc_html( $environment['php_max_execution_time'] ); ?></td>
751 </tr>
752 <tr>
753 <td data-export-label="PHP Max Input Vars"><?php esc_html_e( 'PHP Max Input Vars', 'usces' ); ?> :</td>
754 <td><?php echo esc_html( $environment['php_max_input_vars'] ); ?></td>
755 </tr>
756 <tr>
757 <td data-export-label="cURL"><?php esc_html_e( 'cURL', 'usces' ); ?> :</td>
758 <td><?php echo ( in_array( 'curl', $loaded_extensions ) ? 'ON' : '-' ); ?></td>
759 </tr>
760 <tr>
761 <td data-export-label="cURL version"><?php esc_html_e( 'cURL version', 'usces' ); ?> :</td>
762 <td><?php echo esc_html( $environment['curl_version']['version'] . ' ' . $environment['curl_version']['host'] ); ?></td>
763 </tr>
764 <tr>
765 <td data-export-label="MySQL version"><?php esc_html_e( 'MySQL version', 'usces' ); ?> :</td>
766 <td><?php echo esc_html( $environment['mysql_version'] ); ?></td>
767 </tr>
768 <tr>
769 <td data-export-label="Maximum upload size"><?php esc_html_e( 'Maximum upload size', 'usces' ); ?> :</td>
770 <td><?php echo esc_html( $environment['upload_max_filesize'] ); ?></td>
771 </tr>
772 <tr>
773 <td data-export-label="SimpleXML"><?php esc_html_e( 'SimpleXML', 'usces' ); ?> :</td>
774 <td><?php echo ( in_array( 'SimpleXML', $loaded_extensions ) ? 'ON' : '-' ); ?></td>
775 </tr>
776 <tr>
777 <td data-export-label="gd"><?php esc_html_e( 'gd', 'usces' ); ?> :</td>
778 <td><?php echo ( in_array( 'gd', $loaded_extensions ) ? 'ON' : '-' ); ?></td>
779 </tr>
780 <tr>
781 <td data-export-label="json"><?php esc_html_e( 'json', 'usces' ); ?> :</td>
782 <td><?php echo ( in_array( 'json', $loaded_extensions ) ? 'ON' : '-' ); ?></td>
783 </tr>
784 <tr>
785 <td data-export-label="mbstring"><?php esc_html_e( 'mbstring', 'usces' ); ?> :</td>
786 <td><?php echo ( in_array( 'mbstring', $loaded_extensions ) ? 'ON' : '-' ); ?></td>
787 </tr>
788 <tr>
789 <td data-export-label="openssl"><?php esc_html_e( 'openssl', 'usces' ); ?> :</td>
790 <td><?php echo ( in_array( 'openssl', $loaded_extensions ) ? 'ON' : '-' ); ?></td>
791 </tr>
792 </tbody>
793 </table>
794