%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/itworks/wp-content/plugins/thim-core/templates/dashboard/
Upload File :
Create Path :
Current File : /var/www/html/itworks/wp-content/plugins/thim-core/templates/dashboard/system-status.php

<div class="tc-system-status-wrapper wrap">
	<?php
	do_action( 'thim_dashboard_registration_box' );

	do_action( 'thim_core_developer_access_box' );
	?>

    <div class="tc-notice tc-info">
        <div class="content">
            <p><?php esc_html_e( 'Please get and paste this information in your ticket when contacting support:', 'thim-core' ); ?></p>

            <textarea title="tc_draw_system_status" readonly class="widefat copy-text" name="tc_draw_system_status" id="tc_draw_system_status" rows="10"><?php echo $args['draw_text']; ?></textarea>

            <div class="btn-copy-container">
                <button class="button button-secondary btn-copy-system-status" data-clipboard-target="#tc_draw_system_status"><?php esc_html_e( 'Copy status report', 'thim-core' ); ?></button>

                <span class="tc-close"></span>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-md-12 col-xs-12">
            <div class="tc-box">
                <div class="tc-box-header">
                    <h2 class="box-title"><?php esc_html_e( 'WordPress Environment', 'thim-core' ); ?></h2>
                </div>
                <table class="widefat striped" cellspacing="0">
                    <tbody>
                    <tr>
                        <td><?php esc_html_e( 'Home URL:', 'thim-core' ); ?></td>
                        <td><?php echo $args['home_url']; ?></td>
                    </tr>
                    <tr>
                        <td><?php esc_html_e( 'Site URL:', 'thim-core' ); ?></td>
                        <td><?php echo $args['site_url']; ?></td>
                    </tr>
                    <tr>
                        <td><?php esc_html_e( 'WP Version:', 'thim-core' ); ?></td>
                        <td><?php echo $args['wp_version']; ?></td>
                    </tr>
                    <tr>
                        <td><?php esc_html_e( 'Theme Name:', 'thim-core' ); ?></td>
                        <td><?php echo $args['theme_name']; ?></td>
                    </tr>
                    <tr>
                        <td><?php esc_html_e( 'Theme Version:', 'thim-core' ); ?></td>
                        <td><?php echo $args['theme_version']; ?></td>
                    </tr>
                    <tr>
                        <td><?php esc_html_e( 'Theme Slug:', 'thim-core' ); ?></td>
                        <td><?php echo $args['theme_slug']; ?></td>
                    </tr>
                    <tr>
                        <td><?php esc_html_e( 'WP Multisite:', 'thim-core' ); ?></td>
                        <td>
							<?php
							if ( $args['is_multisite'] ) {
								esc_html_e( 'Yes', 'thim-core' );
							} else {
								esc_html_e( 'No', 'thim-core' );
							}
							?>
                        </td>
                    </tr>
                    <tr>
                        <td><?php esc_html_e( 'WP Debug Mode:', 'thim-core' ); ?></td>
                        <td>
							<?php
							if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
								esc_html_e( 'Yes', 'thim-core' );
							} else {
								esc_html_e( 'No', 'thim-core' );
							}
							?>
                        </td>
                    </tr>
                    <tr>
                        <td><?php esc_html_e( 'Language:', 'thim-core' ); ?></td>
                        <td><?php echo esc_html( $args['language'] ); ?></td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>

        <div class="col-md-12 col-xs-12">
            <div class="tc-box">
                <div class="tc-box-header">
                    <h2 class="box-title"><?php esc_html_e( 'Server Environment', 'thim-core' ); ?></h2>
                </div>
                <table class="widefat striped" cellspacing="0">
                    <tbody>
                    <tr>
                        <td><?php esc_html_e( 'Server Info:', 'thim-core' ); ?></td>
                        <td><?php echo esc_html( $args['server_info'] ); ?></td>
                    </tr>

                    <tr>
                        <td><?php esc_html_e( 'PHP Version:', 'thim-core' ); ?></td>
                        <td>
							<?php
							if ( version_compare( $args['php_version'], '5.6', '<' ) ) {
								echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( __( '%1$s - We recommend a minimum PHP version of 5.6. See: %2$s', 'thim-core' ), esc_html( $args['php_version'] ), '<a href="https://goo.gl/WRBYv3" target="_blank">' . __( 'How to update your PHP version', 'thim-core' ) . '</a>' ) . '</mark>';
							} else {
								echo '<mark class="yes">' . esc_html( $args['php_version'] ) . '</mark>';
							}
							?>
                        </td>
                    </tr>

                    <tr>
                        <td><?php esc_html_e( 'PHP Post Max Size:', 'thim-core' ); ?></td>
                        <td>
							<?php
							echo size_format( $args['post_max_size'] );
							?>
                        </td>
                    </tr>

                    <tr>
                        <td><?php esc_html_e( 'PHP Memory Limit:', 'thim-core' ); ?></td>
                        <td>
							<?php
							if ( $args['memory_limit'] < 134217728 ) {
								echo '<mark class="error">' . sprintf( __( '<strong>%1$s</strong> - We recommend setting memory to at least <strong>128MB</strong>. <br /> To import demo data, <strong>256MB</strong> of memory limit is required. To learn how, see: <a href="%2$s" target="_blank">Increasing memory allocated to PHP.</a>', 'thim-core' ), size_format( $args['memory_limit'] ), 'https://goo.gl/dZMRBH' ) . '</mark>';
							} elseif ( $args['memory_limit'] < 268435456 ) {
								echo '<mark class="warning">' . sprintf( __( '<strong>%1$s</strong> - Your current memory limit is sufficient, but if you need to import demo content, the required memory limit is <strong>256MB.</strong>', 'thim-core' ), size_format( $args['memory_limit'] ) ) . '</mark>';
							} else {
								echo '<mark class="yes">' . size_format( $args['memory_limit'] ) . '</mark>';
							}
							?>
                        </td>
                    </tr>

                    <tr>
                        <td><?php esc_html_e( 'PHP Time Limit:', 'thim-core' ); ?></td>
                        <td>
							<?php
							if ( $args['max_execution_time'] >= 60 || $args['max_execution_time'] == 0 ) {
								echo '<mark class="yes">' . $args['max_execution_time'] . ' s</mark>';
							} else {
								echo '<mark class="warning">' . sprintf( __( '<strong>%1$s</strong> - We recommend setting max execution time to at least <strong>60</strong>. See: <a href="%2$s" target="_blank">Increasing max execution to PHP</a>', 'thim-core' ), $args['max_execution_time'], 'https://goo.gl/RgZwQz' ) . '</mark>';
							}
							?>
                        </td>
                    </tr>

                    <tr>
                        <td><?php _e( 'MySQL Version:', 'thim-core' ); ?></td>
                        <td>
							<?php echo esc_html( $args['mysql_version'] ); ?>
                        </td>
                    </tr>

                    <tr>
                        <td><?php esc_html_e( 'Max Upload Size:', 'thim-core' ); ?></td>
                        <td>
							<?php echo size_format( $args['max_upload_size'] ); ?>
                        </td>
                    </tr>

                    <tr>
                        <td><?php _e( 'cURL version', 'thim-core' ); ?>:</td>
                        <td><?php echo esc_html( $args['curl_version'] ); ?></td>
                    </tr>

                    <tr>
                        <td><?php _e( 'Remote GET:', 'thim-core' ); ?></td>
                        <td>
							<?php
							if ( $args['remote_get_successful'] ) {
								echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>';
							} else {
								echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( __( 'wp_remote_get() failed. Contact your hosting provider with error: <code>%s</code></br> URL: <code>%s</code>', 'thim-core' ), esc_html( $args['remote_get_response'] ), esc_url( $args['remote_get_test_url'] ) ) . '</mark>';
							}
							?>
                        </td>
                    </tr>

                    <tr>
                        <td><?php _e( 'Custom stylesheet directory', 'thim-core' ); ?></td>
                        <td>
                            <code><?php echo $args['custom_stylesheet_directory']; ?></code>
                        </td>
                    </tr>

                    <tr>
                        <td><?php _e( 'Custom stylesheet directory writable', 'thim-core' ); ?></td>

                        <td>
							<?php
							if ( $args['custom_stylesheet_writable'] ) {
								printf( '<mark class="yes"><span class="dashicons dashicons-yes"></span><code>%s</code></mark>', $args['custom_stylesheet_chmod'] );
							} else {
								printf( '<mark class="error"><span class="dashicons dashicons-warning"></span> Can not write file with <code>chmod: %s</code>, <code>owner/group: %s</code><br><a href="%s" target="_blank">How to change file or folder permissions in WordPress.</a></mark>', $args['custom_stylesheet_chmod'], $args['custom_stylesheet_owner'], 'https://goo.gl/guirO5' );
							}
							?>
                        </td>
                    </tr>

                    <tr>
                        <td><?php _e( 'PHP DOM extension', 'thim-core' ); ?></td>
                        <td>
							<?php
							if ( $args['dom_extension'] ) {
								echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>';
							} else {
								echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . __( 'PHP DOM extension is missing. Contact your hosting provider.', 'thim-core' ) . '</mark>';
							}
							?>
                        </td>
                    </tr>

                    </tbody>
                </table>
            </div>
        </div>

    </div>
</div>

Zerion Mini Shell 1.0