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.1 3.6.2 3.6.3 3.6.4 3.7.0 3.7.1 3.7.2 3.7.3 3.7.4 3.8.0 3.8.1 3.8.2 3.8.3 3.9.0 3.9.1 3.9.10 3.9.2 3.9.3 3.9.4 3.9.5 3.9.6 3.9.7 3.9.8 3.9.9
tutor / views / pages / status.php
tutor / views / pages Last commit date
add_new_instructor.php 7 years ago addons.php 7 years ago answer.php 7 years ago enable_disable_addons.php 7 years ago get-pro.php 7 years ago instructors.php 7 years ago question_answer.php 7 years ago quiz_attempts.php 7 years ago status.php 7 years ago students.php 7 years ago tutor-pro-addons.php 7 years ago uninstall.php 7 years ago view_attempt.php 7 years ago withdraw_requests.php 7 years ago
status.php
319 lines
1
2 <div class="wrap">
3 <h2><?php _e('Tutor Environment Status', 'tutor'); ?></h2>
4
5 <?php
6 $environment = \TUTOR\Admin::get_environment_info();
7
8
9 ?>
10
11
12
13 <table class="tutor_status_table widefat" cellspacing="0" id="status">
14 <thead>
15 <tr>
16 <th colspan="3" data-export-label="WordPress Environment"><h2><?php esc_html_e( 'WordPress environment', 'tutor' ); ?></h2></th>
17 </tr>
18 </thead>
19 <tbody>
20 <tr>
21 <td data-export-label="Home URL"><?php esc_html_e( 'Home URL', 'tutor' ); ?>:</td>
22 <td class="help"><?php echo tutor_utils()->help_tip( esc_html__( 'The homepage URL of your site.', 'tutor' ) );?></td>
23 <td><?php echo esc_html( $environment['home_url'] ); ?></td>
24 </tr>
25 <tr>
26 <td data-export-label="Site URL"><?php esc_html_e( 'Site URL', 'tutor' ); ?>:</td>
27 <td class="help"><?php echo tutor_utils()->help_tip( esc_html__( 'The root URL of your site.', 'tutor' ) ); ?></td>
28 <td><?php echo esc_html( $environment['site_url'] ); ?></td>
29 </tr>
30
31 <tr>
32 <td data-export-label="WP Version"><?php esc_html_e( 'WordPress version', 'tutor' ); ?>:</td>
33 <td class="help"><?php echo tutor_utils()->help_tip( esc_html__( 'The version of WordPress installed on your site.', 'tutor' ) ); ?></td>
34 <td>
35 <?php
36 $latest_version = get_transient( 'tutor_system_status_wp_version_check' );
37
38 if ( false === $latest_version ) {
39 $version_check = wp_remote_get( 'https://api.wordpress.org/core/version-check/1.7/' );
40 $api_response = json_decode( wp_remote_retrieve_body( $version_check ), true );
41
42 if ( $api_response && isset( $api_response['offers'], $api_response['offers'][0], $api_response['offers'][0]['version'] ) ) {
43 $latest_version = $api_response['offers'][0]['version'];
44 } else {
45 $latest_version = $environment['wp_version'];
46 }
47 set_transient( 'tutor_system_status_wp_version_check', $latest_version, DAY_IN_SECONDS );
48 }
49
50 if ( version_compare( $environment['wp_version'], $latest_version, '<' ) ) {
51 /* Translators: %1$s: Current version, %2$s: New version */
52 echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( esc_html__( '%1$s - There is a newer version of WordPress available (%2$s)', 'tutor' ), esc_html( $environment['wp_version'] ), esc_html( $latest_version ) ) . '</mark>';
53 } else {
54 echo '<mark class="yes">' . esc_html( $environment['wp_version'] ) . '</mark>';
55 }
56 ?>
57 </td>
58 </tr>
59
60 <tr>
61 <td data-export-label="Tutor Version"><?php esc_html_e( 'Tutor Version', 'tutor' ); ?>:</td>
62 <td class="help"><?php echo tutor_utils()->help_tip( esc_html__( 'The version of tutor.', 'tutor' ) ); ?></td>
63 <td><mark class="yes"><?php echo esc_html( $environment['version'] ); ?></mark></td>
64 </tr>
65
66 <tr>
67 <td data-export-label="WP Multisite"><?php esc_html_e( 'WordPress multisite', 'tutor' ); ?>:</td>
68 <td class="help"><?php echo tutor_utils()->help_tip( esc_html__( 'Whether or not you have WordPress Multisite enabled.', 'tutor' ) ); ?></td>
69 <td><?php echo ( $environment['wp_multisite'] ) ? '<span class="dashicons dashicons-yes"></span>' : '&ndash;'; ?></td>
70 </tr>
71 <tr>
72 <td data-export-label="WP Memory Limit"><?php esc_html_e( 'WordPress memory limit', 'tutor' ); ?>:</td>
73 <td class="help"><?php echo tutor_utils()->help_tip( esc_html__( 'The maximum amount of memory (RAM) that your site can use at one time.', 'tutor' ) ); ?></td>
74 <td>
75 <?php
76 if ( $environment['wp_memory_limit'] < 67108864 ) {
77 /* Translators: %1$s: Memory limit, %2$s: Docs link. */
78 echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( esc_html__( '%1$s - We recommend setting memory to at least 64MB. See: %2$s', 'tutor' ), esc_html( size_format( $environment['wp_memory_limit'] ) ), '<a href="https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP" target="_blank">' . esc_html__( 'Increasing memory allocated to PHP', 'tutor' ) . '</a>' ) . '</mark>';
79 } else {
80 echo '<mark class="yes">' . esc_html( size_format( $environment['wp_memory_limit'] ) ) . '</mark>';
81 }
82 ?>
83 </td>
84 </tr>
85 <tr>
86 <td data-export-label="WP Debug Mode"><?php esc_html_e( 'WordPress debug mode', 'tutor' ); ?>:</td>
87 <td class="help"><?php echo tutor_utils()->help_tip( esc_html__( 'Displays whether or not WordPress is in Debug Mode.', 'tutor' ) ); ?></td>
88 <td>
89 <?php if ( $environment['wp_debug_mode'] ) : ?>
90 <mark class="yes"><span class="dashicons dashicons-yes"></span></mark>
91 <?php else : ?>
92 <mark class="no">&ndash;</mark>
93 <?php endif; ?>
94 </td>
95 </tr>
96 <tr>
97 <td data-export-label="WP Cron"><?php esc_html_e( 'WordPress cron', 'tutor' ); ?>:</td>
98 <td class="help"><?php echo tutor_utils()->help_tip( esc_html__( 'Displays whether or not WP Cron Jobs are enabled.', 'tutor' ) ); ?></td>
99 <td>
100 <?php if ( $environment['wp_cron'] ) : ?>
101 <mark class="yes"><span class="dashicons dashicons-yes"></span></mark>
102 <?php else : ?>
103 <mark class="no">&ndash;</mark>
104 <?php endif; ?>
105 </td>
106 </tr>
107 <tr>
108 <td data-export-label="Language"><?php esc_html_e( 'Language', 'tutor' ); ?>:</td>
109 <td class="help"><?php echo tutor_utils()->help_tip( esc_html__( 'The current language used by WordPress. Default = English', 'tutor' ) ); ?></td>
110 <td><?php echo esc_html( $environment['language'] ); ?></td>
111 </tr>
112 <tr>
113 <td data-export-label="External object cache"><?php esc_html_e( 'External object cache', 'tutor' ); ?>:</td>
114 <td class="help"><?php echo tutor_utils()->help_tip( esc_html__( 'Displays whether or not WordPress is using an external object cache.', 'tutor' ) ); ?></td>
115 <td>
116 <?php if ( $environment['external_object_cache'] ) : ?>
117 <mark class="yes"><span class="dashicons dashicons-yes"></span></mark>
118 <?php else : ?>
119 <mark class="no">&ndash;</mark>
120 <?php endif; ?>
121 </td>
122 </tr>
123
124 </tbody>
125 </table>
126
127
128 <table class="tutor_status_table widefat" cellspacing="0">
129 <thead>
130 <tr>
131 <th colspan="3" data-export-label="Server Environment"><h2><?php esc_html_e( 'Server environment', 'tutor' ); ?></h2></th>
132 </tr>
133 </thead>
134 <tbody>
135 <tr>
136 <td data-export-label="Server Info"><?php esc_html_e( 'Server info', 'tutor' ); ?>:</td>
137 <td class="help"><?php echo tutor_utils()->help_tip( esc_html__( 'Information about the web server that is currently hosting your site.', 'tutor' ) ); ?></td>
138 <td><?php echo esc_html( $environment['server_info'] ); ?></td>
139 </tr>
140 <tr>
141 <td data-export-label="PHP Version"><?php esc_html_e( 'PHP version', 'tutor' ); ?>:</td>
142 <td class="help"><?php echo tutor_utils()->help_tip( esc_html__( 'The version of PHP installed on your hosting server.', 'tutor' ) ); ?></td>
143 <td>
144 <?php
145 if ( version_compare( $environment['php_version'], '7.2', '>=' ) ) {
146 echo '<mark class="yes">' . esc_html( $environment['php_version'] ) . '</mark>';
147 } else {
148 $class = 'error';
149
150 if ( version_compare( $environment['php_version'], '5.6', '<' ) ) {
151 $notice = '<span class="dashicons dashicons-warning"></span> ' . __( 'Tutor will run under this version of PHP, however, it has reached end of life. We recommend using PHP version 7.2 or above for greater performance and security.', 'tutor' );
152 } elseif ( version_compare( $environment['php_version'], '7.2', '<' ) ) {
153 $notice = __( 'We recommend using PHP version 7.2 or above for greater performance and security.', 'tutor' );
154 $class = 'recommendation';
155 }
156
157 echo '<mark class="' . esc_attr( $class ) . '">' . esc_html( $environment['php_version'] ) . ' - ' . wp_kses_post( $notice ) . '</mark>';
158 }
159 ?>
160 </td>
161 </tr>
162 <?php if ( function_exists( 'ini_get' ) ) : ?>
163 <tr>
164 <td data-export-label="PHP Post Max Size"><?php esc_html_e( 'PHP post max size', 'tutor' ); ?>:</td>
165 <td class="help"><?php echo tutor_utils()->help_tip( esc_html__( 'The largest filesize that can be contained in one post.', 'tutor' ) ); ?></td>
166 <td><?php echo esc_html( size_format( $environment['php_post_max_size'] ) ); ?></td>
167 </tr>
168 <tr>
169 <td data-export-label="PHP Time Limit"><?php esc_html_e( 'PHP time limit', 'tutor' ); ?>:</td>
170 <td class="help"><?php echo tutor_utils()->help_tip( esc_html__( 'The amount of time (in seconds) that your site will spend on a single operation before timing out (to avoid server lockups)', 'tutor' ) ); ?></td>
171 <td><?php echo esc_html( $environment['php_max_execution_time'] ); ?></td>
172 </tr>
173 <tr>
174 <td data-export-label="PHP Max Input Vars"><?php esc_html_e( 'PHP max input vars', 'tutor' ); ?>:</td>
175 <td class="help"><?php echo tutor_utils()->help_tip( esc_html__( 'The maximum number of variables your server can use for a single function to avoid overloads.', 'tutor' ) ); ?></td>
176 <td><?php echo esc_html( $environment['php_max_input_vars'] ); ?></td>
177 </tr>
178 <tr>
179 <td data-export-label="cURL Version"><?php esc_html_e( 'cURL version', 'tutor' ); ?>:</td>
180 <td class="help"><?php echo tutor_utils()->help_tip( esc_html__( 'The version of cURL installed on your server.', 'tutor' ) ); ?></td>
181 <td><?php echo esc_html( $environment['curl_version'] ); ?></td>
182 </tr>
183 <tr>
184 <td data-export-label="SUHOSIN Installed"><?php esc_html_e( 'SUHOSIN installed', 'tutor' ); ?>:</td>
185 <td class="help"><?php echo tutor_utils()->help_tip( esc_html__( '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.', 'tutor' ) ); ?></td>
186 <td><?php echo $environment['suhosin_installed'] ? '<span class="dashicons dashicons-yes"></span>' : '&ndash;'; ?></td>
187 </tr>
188 <?php endif; ?>
189
190 <?php
191
192 if ( $environment['mysql_version'] ) :
193 ?>
194 <tr>
195 <td data-export-label="MySQL Version"><?php esc_html_e( 'MySQL version', 'tutor' ); ?>:</td>
196 <td class="help"><?php echo tutor_utils()->help_tip( esc_html__( 'The version of MySQL installed on your hosting server.', 'tutor' ) ); ?></td>
197 <td>
198 <?php
199 if ( version_compare( $environment['mysql_version'], '5.6', '<' ) && ! strstr( $environment['mysql_version_string'], 'MariaDB' ) ) {
200 /* Translators: %1$s: MySQL version, %2$s: Recommended MySQL version. */
201 echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( esc_html__( '%1$s - We recommend a minimum MySQL version of 5.6. See: %2$s', 'tutor' ), esc_html( $environment['mysql_version_string'] ), '<a href="https://wordpress.org/about/requirements/" target="_blank">' . esc_html__( 'WordPress requirements', 'tutor' ) . '</a>' ) . '</mark>';
202 } else {
203 echo '<mark class="yes">' . esc_html( $environment['mysql_version_string'] ) . '</mark>';
204 }
205 ?>
206 </td>
207 </tr>
208 <?php endif; ?>
209 <tr>
210 <td data-export-label="Max Upload Size"><?php esc_html_e( 'Max upload size', 'tutor' ); ?>:</td>
211 <td class="help"><?php echo tutor_utils()->help_tip( esc_html__( 'The largest filesize that can be uploaded to your WordPress installation.', 'tutor' ) ); ?></td>
212 <td><?php echo esc_html( size_format( $environment['max_upload_size'] ) ); ?></td>
213 </tr>
214 <tr>
215 <td data-export-label="Default Timezone is UTC"><?php esc_html_e( 'Default timezone is UTC', 'tutor' ); ?>:</td>
216 <td class="help"><?php echo tutor_utils()->help_tip( esc_html__( 'The default timezone for your server.', 'tutor' ) ); ?></td>
217 <td>
218 <?php
219 if ( 'UTC' !== $environment['default_timezone'] ) {
220 /* Translators: %s: default timezone.. */
221 echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( esc_html__( 'Default timezone is %s - it should be UTC', 'tutor' ), esc_html( $environment['default_timezone'] ) ) . '</mark>';
222 } else {
223 echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>';
224 }
225 ?>
226 </td>
227 </tr>
228 <tr>
229 <td data-export-label="fsockopen/cURL"><?php esc_html_e( 'fsockopen/cURL', 'tutor' ); ?>:</td>
230 <td class="help"><?php echo tutor_utils()->help_tip( esc_html__( 'Payment gateways can use cURL to communicate with remote servers to authorize payments, other plugins may also use it when communicating with remote services.', 'tutor' ) ); ?></td>
231 <td>
232 <?php
233 if ( $environment['fsockopen_or_curl_enabled'] ) {
234 echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>';
235 } else {
236 echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . esc_html__( 'Your server does not have fsockopen or cURL enabled - PayPal IPN and other scripts which communicate with other servers will not work. Contact your hosting provider.', 'tutor' ) . '</mark>';
237 }
238 ?>
239 </td>
240 </tr>
241 <tr>
242 <td data-export-label="DOMDocument"><?php esc_html_e( 'DOMDocument', 'tutor' ); ?>:</td>
243 <td class="help"><?php echo tutor_utils()->help_tip( esc_html__( 'HTML/Multipart emails use DOMDocument to generate inline CSS in templates.', 'tutor' ) ); ?></td>
244 <td>
245 <?php
246 if ( $environment['domdocument_enabled'] ) {
247 echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>';
248 } else {
249 /* Translators: %s: classname and link. */
250 echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( esc_html__( 'Your server does not have the %s class enabled - HTML/Multipart emails, and also some extensions, will not work without DOMDocument.', 'tutor' ), '<a href="https://php.net/manual/en/class.domdocument.php">DOMDocument</a>' ) . '</mark>';
251 }
252 ?>
253 </td>
254 </tr>
255 <tr>
256 <td data-export-label="GZip"><?php esc_html_e( 'GZip', 'tutor' ); ?>:</td>
257 <td class="help"><?php echo tutor_utils()->help_tip( esc_html__( 'GZip (gzopen) is used to open the GEOIP database from MaxMind.', 'tutor' ) ); ?></td>
258 <td>
259 <?php
260 if ( $environment['gzip_enabled'] ) {
261 echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>';
262 } else {
263 /* Translators: %s: classname and link. */
264 echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( esc_html__( 'Your server does not support the %s function - this is required to use the GeoIP database from MaxMind.', 'tutor' ), '<a href="https://php.net/manual/en/zlib.installation.php">gzopen</a>' ) . '</mark>';
265 }
266 ?>
267 </td>
268 </tr>
269 <tr>
270 <td data-export-label="Multibyte String"><?php esc_html_e( 'Multibyte string', 'tutor' ); ?>:</td>
271 <td class="help"><?php echo tutor_utils()->help_tip( esc_html__( 'Multibyte String (mbstring) is used to convert character encoding, like for emails or converting characters to lowercase.', 'tutor' ) ); ?></td>
272 <td>
273 <?php
274 if ( $environment['mbstring_enabled'] ) {
275 echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>';
276 } else {
277 /* Translators: %s: classname and link. */
278 echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( esc_html__( 'Your server does not support the %s functions - this is required for better character encoding. Some fallbacks will be used instead for it.', 'tutor' ), '<a href="https://php.net/manual/en/mbstring.installation.php">mbstring</a>' ) . '</mark>';
279 }
280 ?>
281 </td>
282 </tr>
283
284
285
286 </tbody>
287 </table>
288
289
290
291
292
293 <table class="tutor_status_table widefat" cellspacing="0">
294 <thead>
295 <tr>
296 <th colspan="3" data-export-label="Templates">
297 <h2>Templates </h2>
298 </th>
299 </tr>
300 </thead>
301 <tbody>
302 <tr>
303 <td data-export-label="Overrides">Overrides</td>
304 <td class="help">&nbsp;</td>
305 <td>
306 <?php
307 $override_files = \TUTOR\Admin::template_overridden_files();
308 if (is_array($override_files) && count($override_files)){
309 foreach ($override_files as $file){
310 echo "{$file} ,<br />";
311 }
312 }
313 ?>
314 </td>
315 </tr>
316 </tbody>
317 </table>
318
319 </div>