PluginProbe ʕ •ᴥ•ʔ
Shortcodes and extra features for Phlox theme / 1.1.0
Shortcodes and extra features for Phlox theme v1.1.0
2.17.21 2.17.20 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.6 1.0.9 1.1.0 1.3.0 1.3.1 1.3.10 1.3.14 1.3.2 1.3.3 1.3.6 1.4.0 1.4.1 1.4.2 1.5.0 1.5.2 1.6.0 1.6.2 1.6.4 1.7.0 1.7.2 2.10.0 2.10.1 2.10.3 2.10.5 2.10.7 2.10.8 2.10.9 2.11.0 2.11.1 2.11.2 2.12.0 2.14.0 2.15.0 2.15.2 2.15.4 2.15.5 2.15.6 2.15.7 2.15.8 2.15.9 2.16.0 2.16.1 2.16.2 2.16.3 2.16.4 2.17.0 2.17.1 2.17.12 2.17.13 2.17.14 2.17.15 2.17.16 2.17.2 2.17.3 2.17.4 2.17.5 2.17.6 2.17.8 2.17.9 2.4.12 2.4.13 2.4.14 2.4.16 2.4.18 2.4.19 2.4.9 2.5.0 2.5.1 2.5.10 2.5.11 2.5.12 2.5.13 2.5.14 2.5.15 2.5.16 2.5.17 2.5.19 2.5.2 2.5.20 2.5.3 2.5.7 2.5.8 2.5.9 2.6.0 2.6.1 2.6.10 2.6.12 2.6.13 2.6.14 2.6.15 2.6.16 2.6.17 2.6.19 2.6.2 2.6.20 2.6.4 2.6.5 2.6.7 2.7.0 2.7.1 2.7.10 2.7.11 2.7.12 2.7.13 2.7.14 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.9 2.9.0 2.9.12 2.9.14 2.9.15 2.9.16 2.9.17 2.9.18 2.9.19 2.9.2 2.9.20 2.9.21 2.9.22 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7 2.9.8
auxin-elements / admin / includes / admin-the-functions.php
auxin-elements / admin / includes Last commit date
classes 9 years ago compatibility 9 years ago metaboxes 9 years ago modules 9 years ago admin-ajax.php 9 years ago admin-hooks.php 9 years ago admin-the-functions.php 9 years ago index.php 9 years ago
admin-the-functions.php
189 lines
1 <?php // admin related functions
2
3
4 function auxin_get_about_system_status(){
5 ?>
6 <div class="aux-status-wrapper">
7 <table class="widefat" cellspacing="0">
8 <thead>
9 <tr>
10 <th colspan="3" data-export-label="WordPress Environment"><?php _e( 'WordPress Environment', 'auxin-elements' ); ?></th>
11 </tr>
12 </thead>
13 <tbody>
14 <tr>
15 <td data-export-label="Home URL"><?php _e( 'Home URL', 'auxin-elements' ); ?>:</td>
16 <td class="help"><?php echo '<a href="#" class="help-tip" original-title="' . esc_attr__( 'The URL of your site\'s homepage.', 'auxin-elements' ) . '"> ? </a>'; ?></td>
17 <td><?php echo home_url(); ?></td>
18 </tr>
19 <tr>
20 <td data-export-label="Site URL"><?php _e( 'Site URL', 'auxin-elements' ); ?>:</td>
21 <td class="help"><?php echo '<a href="#" class="help-tip" original-title="' . esc_attr__( 'The root URL of your site.', 'auxin-elements' ) . '"> ? </a>'; ?></td>
22 <td><?php echo site_url(); ?></td>
23 </tr>
24 <tr>
25 <td data-export-label="WP Version"><?php _e( 'WP Version', 'auxin-elements' ); ?>:</td>
26 <td class="help"><?php echo '<a href="#" class="help-tip" original-title="' . esc_attr__( 'The version of WordPress installed on your site.', 'auxin-elements' ) . '"> ? </a>'; ?></td>
27 <td><?php bloginfo('version'); ?></td>
28 </tr>
29 <tr>
30 <td data-export-label="WP Multisite"><?php _e( 'WP Multisite', 'auxin-elements' ); ?>:</td>
31 <td class="help"><?php echo '<a href="#" class="help-tip" original-title="' . esc_attr__( 'Whether or not you have WordPress Multisite enabled.', 'auxin-elements' ) . '"> ? </a>'; ?></td>
32 <td><?php if ( is_multisite() ) echo '&#10004;'; else echo '&#10005;'; ?></td>
33 </tr>
34 <tr>
35 <td data-export-label="WP Memory Limit"><?php _e( 'WP Memory Limit', 'auxin-elements' ); ?>:</td>
36 <td class="help"><?php echo '<a href="#" class="help-tip" original-title="' . esc_attr__( 'The maximum amount of memory (RAM) that your site can use at one time.', 'auxin-elements' ) . '"> ? </a>'; ?></td>
37 <td><?php
38 // This field need to make some changes
39 $server_memory = 0;
40 if( function_exists( 'ini_get' ) ) {
41 echo ( ini_get( 'memory_limit') );
42 }
43 ?></td>
44 </tr>
45 <tr>
46 <td data-export-label="WP Permalink"><?php _e( 'WP Permalink', 'auxin-elements' ); ?>:</td>
47 <td class="help"><?php echo '<a href="#" class="help-tip" original-title="' . esc_attr__( 'The WordPress permalink structer.', 'auxin-elements' ) . '"> ? </a>'; ?></td>
48 <td><?php echo get_option( 'permalink_structure' ); ?></td>
49 </tr>
50 <tr>
51 <td data-export-label="WP Debug Mode"><?php _e( 'WP Debug Mode', 'auxin-elements' ); ?>:</td>
52 <td class="help"><?php echo '<a href="#" class="help-tip" original-title="' . esc_attr__( 'Displays whether or not WordPress is in Debug Mode.', 'auxin-elements' ) . '"> ? </a>'; ?></td>
53 <td><?php if ( defined('WP_DEBUG') && WP_DEBUG ) echo '<mark class="yes">' . '&#10004;' . '</mark>'; else echo '<mark class="no">' . '&#10005;' . '</mark>'; ?></td>
54 </tr>
55 <tr>
56 <td data-export-label="Language"><?php _e( 'Language', 'auxin-elements' ); ?>:</td>
57 <td class="help"><?php echo '<a href="#" class="help-tip" original-title="' . esc_attr__( 'The current language used by WordPress. Default = English', 'auxin-elements' ) . '"> ? </a>'; ?></td>
58 <td><?php echo get_locale() ?></td>
59 </tr>
60 </tbody>
61 </table>
62
63 <table class="widefat" cellspacing="0">
64 <thead>
65 <tr>
66 <th colspan="3" data-export-label="Server Environment"><?php _e( 'Server Environment', 'auxin-elements' ); ?></th>
67 </tr>
68 </thead>
69 <tbody>
70 <tr>
71 <td data-export-label="Server Info"><?php _e( 'Server Info', 'auxin-elements' ); ?>:</td>
72 <td class="help"><?php echo '<a href="#" class="help-tip" original-title="' . esc_attr__( 'Information about the web server that is currently hosting your site.', 'auxin-elements' ) . '"> ? </a>'; ?></td>
73 <td><?php echo esc_html( $_SERVER['SERVER_SOFTWARE'] ); ?></td>
74 </tr>
75 <tr>
76 <td data-export-label="PHP Version"><?php _e( 'PHP Version', 'auxin-elements' ); ?>:</td>
77 <td class="help"><?php echo '<a href="#" class="help-tip" original-title="' . esc_attr__( 'The version of PHP installed on your hosting server.', 'auxin-elements' ) . '"> ? </a>'; ?></td>
78 <td><?php
79 // should add the cpmparsion check for version_compare(PHP_VERSION, '5.0.0', '<')
80 if ( function_exists( 'phpversion' ) ) echo esc_html( phpversion() ); ?></td>
81 </tr>
82 <tr>
83 <td data-export-label="Server Info"><?php _e( 'Server Info', 'auxin-elements' ); ?>:</td>
84 <td class="help"><?php echo '<a href="#" class="help-tip" original-title="' . esc_attr__( 'Information about the web server that is currently hosting your site.', 'auxin-elements' ) . '"> ? </a>'; ?></td>
85 <td><?php echo esc_html( $_SERVER['SERVER_SOFTWARE'] ); ?></td>
86 </tr>
87 <?php if ( function_exists( 'ini_get' ) ) : ?>
88 <tr>
89 <td data-export-label="PHP Post Max Size"><?php _e( 'PHP Post Max Size', 'auxin-elements' ); ?>:</td>
90 <td class="help"><?php echo '<a href="#" class="help-tip" original-title="' . esc_attr__( 'The largest file size that can be contained in one post.', 'auxin-elements' ) . '"> ? </a>'; ?></td>
91 <td></td>
92 </tr>
93 <tr>
94 <td data-export-label="PHP Time Limit"><?php _e( 'PHP Time Limit', 'auxin-elements' ); ?>:</td>
95 <td class="help"><?php echo '<a href="#" class="help-tip" original-title="' . esc_attr__( 'The amount of time (in seconds) that your site will spend on a single operation before timing out (to avoid server lockups)', 'auxin-elements' ) . '"> ? </a>'; ?></td>
96 <td><?php
97 $time_limit = ini_get('max_execution_time');
98 //should add the condition
99 if ( $time_limit < 180 && $time_limit != 0 ) {
100 echo '<mark class="error">' . sprintf( __( '%s - We recommend setting max execution time to at least 180. See: <a href="%s" target="_blank">Increasing max execution to PHP</a>', 'auxin-elements' ), $time_limit, 'http://codex.wordpress.org/Common_WordPress_Errors#Maximum_execution_time_exceeded' ) . '</mark>';
101 } else {
102 echo '<mark class="yes">' . $time_limit . '</mark>';
103 }
104 ?>
105 </td>
106 </tr>
107 <tr>
108 <td data-export-label="PHP Max Input Vars"><?php _e( 'PHP Max Input Vars', 'auxin-elements' ); ?>:</td>
109 <td class="help"><?php echo '<a href="#" class="help-tip" original-title="' . esc_attr__( 'The maximum number of variables your server can use for a single function to avoid overloads.', 'auxin-elements' ) . '"> ? </a>'; ?></td>
110 <td><?php echo ini_get('max_input_vars'); ?></td>
111 </tr>
112 <tr>
113 <td data-export-label="SUHOSIN Installed"><?php _e( 'SUHOSIN Installed', 'auxin-elements' ); ?>:</td>
114 <td class="help"><?php echo '<a href="#" class="help-tip" original-title="' . esc_attr__( 'Suhosin is an advanced protection system for PHP installations. It was designed to protect your servers on the one hand against a number of well known problems in PHP applications and on the other hand against potential unknown vulnerabilities within these applications or the PHP core itself. If enabled on your server, Suhosin may need to be configured to increase its data submission limits.', 'auxin-elements' ) . '"> ? </a>'; ?></td>
115 <td><?php echo extension_loaded( 'suhosin' ) ? '&#10004;' : '&#10005;'; ?></td>
116 </tr>
117 <?php endif; ?>
118 <tr>
119 <td data-export-label="MySQL Version"><?php _e( 'MySQL Version', 'auxin-elements' ); ?>:</td>
120 <td class="help"><?php echo '<a href="#" class="help-tip" original-title="' . esc_attr__( 'The version of MySQL installed on your hosting server.', 'auxin-elements' ) . '"> ? </a>'; ?></td>
121 <td>
122 <?php
123 /** @global wpdb $wpdb */
124 global $wpdb;
125 echo $wpdb->db_version();
126 ?>
127 </td>
128 </tr>
129 <tr>
130 <td data-export-label="Max Upload Size"><?php _e( 'Max Upload Size', 'auxin-elements' ); ?>:</td>
131 <td class="help"><?php echo '<a href="#" class="help-tip" original-title="' . esc_attr__( 'The largest file size that can be uploaded to your WordPress installation.', 'auxin-elements' ) . '"> ? </a>'; ?></td>
132 <td><?php echo size_format( wp_max_upload_size() ); ?></td>
133 </tr>
134 <tr>
135 <td data-export-label="Default Timezone is UTC"><?php _e( 'Default Timezone is UTC', 'auxin-elements' ); ?>:</td>
136 <td class="help"><?php echo '<a href="#" class="help-tip" original-title="' . esc_attr__( 'The default timezone for your server.', 'auxin-elements' ) . '"> ? </a>'; ?></td>
137 <td><?php
138 $default_timezone = date_default_timezone_get();
139 if ( 'UTC' !== $default_timezone ) {
140 echo '<mark class="error">' . '&#10005; ' . sprintf( __( 'Default timezone is %s - it should be UTC', 'auxin-elements' ), $default_timezone ) . '</mark>';
141 } else {
142 echo '<mark class="yes">' . '&#10004;' . '</mark>';
143 } ?>
144 </td>
145 </tr>
146 </tbody>
147 </table>
148
149 <table class="widefat active-plugins" cellspacing="0" id="status">
150 <thead>
151 <tr>
152 <th colspan="3" data-export-label="Active Plugins (<?php echo count( (array) get_option( 'active_plugins' ) ); ?>)"><?php _e( 'Active Plugins', 'auxin-elements' ); ?> (<?php echo count( (array) get_option( 'active_plugins' ) ); ?>)</th>
153 </tr>
154 </thead>
155 <tbody>
156 <?php
157 $active_plugins = (array) get_option( 'active_plugins', array() );
158
159 if ( is_multisite() ) {
160 $active_plugins = array_merge( $active_plugins, get_site_option( 'active_sitewide_plugins', array() ) );
161 }
162 foreach ( $active_plugins as $plugin ) {
163 $plugin_data = @get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin );
164 $dirname = dirname( $plugin );
165 $version_string = '';
166 $network_string = '';
167 if ( ! empty( $plugin_data['Name'] ) ) {
168 // link the plugin name to the plugin url if available
169 $plugin_name = esc_html( $plugin_data['Name'] );
170 if ( ! empty( $plugin_data['PluginURI'] ) ) {
171 $plugin_name = '<a href="' . esc_url( $plugin_data['PluginURI'] ) . '" title="' . __( 'Visit plugin homepage' , 'auxin-elements' ) . '" target="_blank">' . $plugin_name . '</a>';
172 }
173 ?>
174 <tr>
175 <td><?php echo $plugin_name; ?></td>
176 <td><?php echo sprintf( _x( 'by %s', 'by author', 'auxin-elements' ), $plugin_data['Author'] ) . ' Version &ndash; ' . esc_html( $plugin_data['Version'] ) . $version_string . $network_string; ?></td>
177 </tr>
178 <?php
179 }
180 }
181 ?>
182 </tbody>
183 </table>
184
185 </div>
186 <?php
187 }
188
189