| Current Path : /home/ereika83/www/wp-content/plugins/snapshot/views/common/ |
| Current File : /home/ereika83/www/wp-content/plugins/snapshot/views/common/requirements-test.php |
<div class="wpmud-box-tab requirements-check-box<?php if ( !$all_good || $warning ) echo ' open'; ?>">
<div class="wpmud-box-tab-title can-toggle">
<?php
if ( !$all_good )
$wps_tag = 'red';
else if ( $warning )
$wps_tag = 'yellow';
else
$wps_tag = 'green';
?>
<h3><?php esc_html_e( 'Requirements Check', SNAPSHOT_I18N_DOMAIN ); ?>
<span class="wps-tag wps-tag--<?php echo esc_attr( $wps_tag ); ?>">
<?php
if ( !$all_good ) {
esc_html_e( 'FAIL', SNAPSHOT_I18N_DOMAIN );
} else if ( $warning ) {
esc_html_e( 'WARNING', SNAPSHOT_I18N_DOMAIN );
} else {
esc_html_e( 'PASS', SNAPSHOT_I18N_DOMAIN );
}
?>
</span></h3>
<i class="wps-icon i-arrow-right"></i>
</div>
<div class="wpmud-box-tab-content">
<div class="wps-requirements-list">
<div class="wpmud-box-gray">
<table class="wps-table" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<th>
<?php esc_html_e( 'PHP Version', SNAPSHOT_I18N_DOMAIN ); ?>
<?php if( !$checks['PhpVersion']['test'] ) : ?>
<span class="wps-tag wps-tag--red"><?php esc_html_e( 'FAIL', SNAPSHOT_I18N_DOMAIN ); ?></span>
<?php else : ?>
<span class="wps-tag wps-tag--green"><?php esc_html_e( 'PASS', SNAPSHOT_I18N_DOMAIN ); ?></span>
<?php endif; ?>
</th>
<?php if( !$checks['PhpVersion']['test'] ) : ?>
<td>
<?php
$screen_id = get_current_screen();
if ( 'snapshot_page_snapshot_pro_managed_backups' === $screen_id->id ) {
echo wp_kses_post(
sprintf(
__(
'<strong>This requires PHP 5.5 or later and your host is using an older version of PHP (%s)</strong>. Contact your host to upgrade your PHP version or go to <a href="https://premium.wpmudev.org/hub/my-websites/" target="_blank" >HUB</a> and use "My website is down" option while restoring and follow the instructions to restore.', SNAPSHOT_I18N_DOMAIN
), $checks['PhpVersion']['value']
)
);
} else {
echo wp_kses_post(
sprintf(
__(
'Your PHP version is out of date.
Your current version is %s and we require 5.2 or newer.
You\'ll need to update your PHP version to proceed.
If you use a managed host, contact them directly to have it updated.', SNAPSHOT_I18N_DOMAIN
), $checks['PhpVersion']['value']
)
);
}
?>
</td>
<?php endif; ?>
</tr>
<tr>
<th
<?php
if( $checks['MaxExecTime']['test'] ) :
?>
colspan="2" <?php endif; ?> >
<?php esc_html_e( 'Max Execution Time', SNAPSHOT_I18N_DOMAIN ); ?>
<?php if( !$checks['MaxExecTime']['test'] ) : ?>
<span class="wps-tag wps-tag--yellow"><?php esc_html_e( 'WARNING', SNAPSHOT_I18N_DOMAIN ); ?></span>
<?php else : ?>
<span class="wps-tag wps-tag--green"><?php esc_html_e( 'PASS', SNAPSHOT_I18N_DOMAIN ); ?></span>
<?php endif; ?>
</th>
<?php if( !$checks['MaxExecTime']['test'] ) : ?>
<td>
<?php
echo wp_kses_post(
sprintf(
__(
'<b><code>max_execution_time</code> is set to %s which is too low</b>.
A minimum execution time of 150 seconds is recommended to give the migration process the
best chance of succeeding. If you use a managed host, contact them directly to have it updated.', SNAPSHOT_I18N_DOMAIN
) , $checks['MaxExecTime']['value']
)
);
?>
</td>
<?php endif; ?>
</tr>
<tr>
<th
<?php
if( $checks['Mysqli']['test'] ) :
?>
colspan="2" <?php endif; ?> >
<?php esc_html_e( 'MySQLi', SNAPSHOT_I18N_DOMAIN ); ?>
<?php if( !$checks['Mysqli']['test'] ) : ?>
<span class="wps-tag wps-tag--red"><?php esc_html_e( 'FAIL', SNAPSHOT_I18N_DOMAIN ); ?></span>
<?php else : ?>
<span class="wps-tag wps-tag--green"><?php esc_html_e( 'PASS', SNAPSHOT_I18N_DOMAIN ); ?></span>
<?php endif; ?>
</th>
<?php if( !$checks['Mysqli']['test'] ) : ?>
<td>
<?php
echo wp_kses_post(
__(
'<b>PHP MySQLi module not found</b>.
Snapshot needs the MySQLi module to be installed and enabled
on the target server. If you use a managed host, contact them
directly to have this module installed and enabled.', SNAPSHOT_I18N_DOMAIN
)
);
?>
</td>
<?php endif; ?>
</tr>
<tr>
<th
<?php
if( $checks['Zip']['test'] ) :
?>
colspan="2" <?php endif; ?> >
<?php esc_html_e( 'Zip', SNAPSHOT_I18N_DOMAIN ); ?>
<?php if( !$checks['Zip']['test'] ) : ?>
<span class="wps-tag wps-tag--red"><?php esc_html_e( 'FAIL', SNAPSHOT_I18N_DOMAIN ); ?></span>
<?php else : ?>
<span class="wps-tag wps-tag--green"><?php esc_html_e( 'PASS', SNAPSHOT_I18N_DOMAIN ); ?></span>
<?php endif; ?>
</th>
<?php if( !$checks['Zip']['test'] ) : ?>
<td>
<?php
echo wp_kses_post(
__(
'<b>PHP Zip module not found</b>.
To unpack the zip file, Snapshot needs the Zip module to be installed and enabled.
If you use a managed host, contact them directly to have it updated.', SNAPSHOT_I18N_DOMAIN
)
);
?>
</td>
<?php endif; ?>
</tr>
</tbody>
</table>
</div>
<p><a href="" class="button button-outline button-gray"><?php esc_html_e('Re-Check', SNAPSHOT_I18N_DOMAIN); ?></a></p>
</div>
</div>
</div>