Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
home
/
getwphos
/
www
/
brueggemannfh
/
wp-content
/
themes
/
wuko
/
core
/
dashboard
/
File Content:
tpl-view-status.php
<?php /** * Template Status * * * @package wuko\core\dashboard * @author WebGeniusLab <webgeniuslab@gmail.com> * @since 1.0.0 */ global $wpdb; if (!function_exists('WGL_Status_Info_Helper')) { function WGL_Status_Info_Helper() { return WGL_Status_Info_Helper::instance(); } } if (!class_exists('WGL_Status_Info_Helper')) { class WGL_Status_Info_Helper { protected static $instance = null; public static function instance() { if (is_null(self::$instance)) { self::$instance = new self(); } return self::$instance; } public function let_to_num($v) { $l = substr($v, -1); $ret = substr($v, 0, -1); switch(strtoupper($l)) { case 'P': $ret *= 1024; case 'T': $ret *= 1024; case 'G': $ret *= 1024; case 'M': $ret *= 1024; case 'K': $ret *= 1024; break; } return $ret; } public function memory_limit() { $limit = $this->let_to_num( WP_MEMORY_LIMIT ); if ( function_exists( 'memory_get_usage' ) ) { $limit = max( $limit, $this->let_to_num( @ini_get( 'memory_limit' ) ) ); } return $limit; } } } ?> <div class="wrap wgl-wrap-status_panel"> <table class="wgl-status-table_panel info_table widefat margin-b-30" cellspacing="0"> <thead> <tr> <th colspan="4"><?php esc_html_e( 'Theme Config', 'wuko' ); ?></th> </tr> </thead> <tbody> <tr> <td><?php esc_html_e( 'Theme Name', 'wuko' ); ?>:</td> <td><?php echo esc_html(wp_get_theme()->get('Name')); ?></td> </tr> <tr> <td><?php esc_html_e( 'Version', 'wuko' ); ?>:</td> <td><?php echo esc_html(wp_get_theme()->get('Version')); ?></td> </tr> <tr> <td><?php esc_html_e( 'Author URL', 'wuko' ); ?>:</td> <td> <a href="<?php echo esc_url_raw(wp_get_theme()->get('AuthorURI'))?>"> <?php echo esc_html(wp_get_theme()->get('AuthorURI')); ?> </a> </td> </tr> </tbody> </table> <table class="wgl-status-table_panel info_table widefat margin-b-30" cellspacing="0"> <thead> <tr> <th colspan="4"><?php esc_html_e( 'Server Settings', 'wuko' ); ?></th> </tr> </thead> <tbody> <tr> <td><?php esc_html_e( 'PHP Version', 'wuko' ); ?>:</td> <td> <?php $php_requirements = 7.0; if ( version_compare( phpversion(), $php_requirements, '<' ) ) { ?> <span class="message_info message_info-error"> <span class="dashicons dashicons-warning"></span> <?php echo esc_html( phpversion() ); esc_html_e( '- We recommend a minimum PHP version of ', 'wuko'); echo esc_html($php_requirements); ?> </span> <?php } else { ?> <span class="message_info message_info-success"><?php echo esc_html( phpversion() ); ?></span> <?php } ?> </td> </tr> <tr> <td><?php esc_html_e( 'PHP Post Max Size', 'wuko' ); ?>:</td> <td> <span class="message_info message_info-info info"> <span class="dashicons dashicons-warning"></span> <?php esc_html_e( ' You cannot upload images, themes and plugins that have a size bigger than this value: ', 'wuko'); echo esc_html(size_format(WGL_Status_Info_Helper()->let_to_num((ini_get('post_max_size'))))); ?> <br/> <a target="_blank" href="http://www.wpbeginner.com/wp-tutorials/how-to-increase-the-maximum-file-upload-size-in-wordpress/"> <?php esc_html_e( ' To see how you can change this please check this guide', 'wuko'); ?> </a> </span> </td> </tr> <tr> <td><?php esc_html_e( 'PHP Max Execution Time Limit', 'wuko' ); ?>:</td> <td> <?php $max_execution_time_requirements = 600; if ( $max_execution_time_requirements > ini_get('max_execution_time') ) { ?> <span class="message_info message_info-error"> <span class="dashicons dashicons-warning"></span> <?php echo esc_html( ini_get('max_execution_time') ); esc_html_e( '- We recommend setting max execution time to at least ', 'wuko'); echo esc_html($max_execution_time_requirements); ?> <br/> <a target="_blank" href="http://www.wpbeginner.com/wp-tutorials/how-to-increase-the-maximum-file-upload-size-in-wordpress/"> <?php esc_html_e( ' To see how you can change this please check this guide', 'wuko'); ?> </a> </span> <?php } else{ ?> <span class="message_info message_info-success"><?php echo esc_html(ini_get('max_execution_time')); ?></span> <?php } ?> </td> </tr> <tr> <td><?php esc_html_e( 'PHP Max Input Time', 'wuko' ); ?>:</td> <td> <?php $max_input_time_requirements = 600; if ( $max_input_time_requirements > ini_get('max_input_time') ) { ?> <span class="message_info message_info-error"> <span class="dashicons dashicons-warning"></span> <?php echo esc_html(ini_get('max_input_time')); esc_html_e('- We recommend setting max input time to at least ', 'wuko'); echo esc_html($max_input_time_requirements); ?> <br/> <a target="_blank" href="http://www.wpbeginner.com/wp-tutorials/how-to-increase-the-maximum-file-upload-size-in-wordpress/"> <?php esc_html_e( ' To see how you can change this please check this guide', 'wuko'); ?> </a> </span> <?php } else{ ?> <span class="message_info message_info-success"><?php echo esc_html(ini_get('max_input_time')); ?></span> <?php } ?> </td> </tr> <tr> <td><?php esc_html_e( 'PHP Max Input Vars', 'wuko' ); ?>:</td> <td> <?php $max_input_vars_requirements = 3000; if ( $max_input_vars_requirements > ini_get('max_input_vars') ) { ?> <span class="message_info message_info-error"> <span class="dashicons dashicons-warning"></span> <?php echo esc_html(ini_get('max_input_vars')); echo sprintf( esc_html__( '. We recommend minimum value: %d. Max input vars limitation will truncate POST data such as menus.' , 'wuko' ) ,$max_input_vars_requirements ); ?> <br/> <a target="_blank" href="https://premium.wpmudev.org/forums/topic/increase-wp-memory-limit-php-max-input-vars/"> <?php esc_html_e( ' To see how you can change this please check this guide', 'wuko'); ?> </a> </span> <?php } else{ ?> <span class="message_info message_info-success"><?php echo esc_html(ini_get('max_input_vars')); ?></span> <?php } ?> </td> </tr> <tr> <td><?php esc_html_e( 'MySql Version', 'wuko' ); ?>:</td> <td><?php echo (!empty( $wpdb->is_mysql ) ? $wpdb->db_version() : ''); ?></td> </tr> <tr> <td><?php esc_html_e( 'Max upload size', 'wuko' ); ?>:</td> <td> <?php $max_upload_size = 134217728; if ( $max_upload_size > wp_max_upload_size() ) { ?> <span class="message_info message_info-error"> <span class="dashicons dashicons-warning"></span> <?php echo esc_html(size_format(wp_max_upload_size())); esc_html_e( '. We recommend minimum value: 128 MB.' , 'wuko') ?> <br/> <a target="_blank" href="https://premium.wpmudev.org/forums/topic/increase-wp-memory-limit-php-max-input-vars/"> <?php esc_html_e( ' To see how you can change this please check this guide', 'wuko'); ?> </a> </span> <?php } else{ ?> <span class="message_info message_info-success"><?php echo esc_html(size_format(wp_max_upload_size())); ?></span> <?php } ?> </td> </tr> <tr> <td><?php esc_html_e( 'SimpleXML', 'wuko' ); ?>:</td> <td> <?php if ( !extension_loaded('simplexml') ) { ?> <span class="message_info message_info-error"> <span class="dashicons dashicons-warning"></span> <?php esc_html_e( 'To ensure successful installation of demo content The SimpleXML extension should be installed on your web server. Please contact your hosting provider to install and activate SimpleXML extension.' , 'wuko') ?> </span> <?php } else{ ?> <span class="message_info message_info-success"><?php echo esc_html__('Enabled','wuko'); ?></span> <?php } ?> </td> </tr> <tr> <td><?php esc_html_e( 'ctype', 'wuko' ); ?>:</td> <td> <?php if ( !function_exists('ctype_digit') ) { ?> <span class="message_info message_info-error"> <span class="dashicons dashicons-warning"></span> <?php esc_html_e( 'To ensure successful installation of demo content The ctype extension should be installed on your web server. Please contact your hosting provider to install and activate ctype extension.' , 'wuko') ?> </span> <?php } else{ ?> <span class="message_info message_info-success"><?php echo esc_html__('Enabled','wuko'); ?></span> <?php } ?> </td> </tr> </tbody> </table> <table class="wgl-status-table_panel info_table widefat margin-b-30" cellspacing="0"> <thead> <tr> <th colspan="4"><?php esc_html_e( 'WordPress Settings', 'wuko' ); ?></th> </tr> </thead> <tbody> <tr> <td><?php esc_html_e( 'Home Url', 'wuko' ); ?>:</td> <td><?php echo esc_html(home_url( '/' )); ?></td> </tr> <tr> <td><?php esc_html_e( 'Site Url', 'wuko' ); ?>:</td> <td><?php echo esc_html(site_url( '/' )); ?></td> </tr> <tr> <td><?php esc_html_e( 'Version', 'wuko' ); ?>:</td> <td><?php echo esc_html(get_bloginfo( 'version' )); ?></td> </tr> <tr> <td><?php esc_html_e( 'Memory Limit', 'wuko' ); ?>:</td> <td> <?php $memory_limit_requirements = 134217728; if ( $memory_limit_requirements > WGL_Status_Info_Helper()->memory_limit() ) { ?> <span class="message_info message_info-error"> <span class="dashicons dashicons-warning"></span> <?php echo esc_html(size_format(WGL_Status_Info_Helper()->memory_limit())); esc_html_e( ' .We recommend setting memory to be at least 128MB.' , 'wuko') ?> <br/> <a target="_blank" href="http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP"> <?php esc_html_e( ' To see how you can change this please check this guide', 'wuko'); ?> </a> </span> <?php } else{ ?> <span class="message_info message_info-success"> <?php echo esc_html(size_format(WGL_Status_Info_Helper()->memory_limit())); ?> </span> <?php } ?> </td> </tr> <tr> <td> <?php echo esc_html('WP_DEBUG'); ?> </td> <td> <?php if (defined('WP_DEBUG') and WP_DEBUG === true): echo esc_html__('WP_DEBUG is enabled.','wuko');?> <a target="_blank" href="https://codex.wordpress.org/Debugging_in_WordPress"> <?php echo esc_html__(' How to disable WP_DEBUG mode.','wuko'); ?> </a> <?php else: echo esc_html__('WP_DEBUG is disabled.','wuko'); endif; ?> </td> </tr> </tbody> </table> </div>
Submit
FILE
FOLDER
Name
Size
Permission
Action
tpl-view-activate-theme.php
6274 bytes
0644
tpl-view-plugins.php
3561 bytes
0644
tpl-view-status.php
16442 bytes
0644
tpl-view-theme-helper.php
6927 bytes
0644
tpl-view-weclome.php
1526 bytes
0644
N4ST4R_ID | Naxtarrr