PluginProbe
Adminify – White Label, Admin Menu Editor, Login Customizer / 2.0.6
Adminify – White Label, Admin Menu Editor, Login Customizer v2.0.6
4.3.1 4.3.0 4.2.26 4.2.25 4.2.24 4.2.23 4.2.22 4.2.21 4.2.20 4.2.19 4.2.18 4.2.17 4.2.16 4.2.15 4.2.14 4.2.13 4.2.12 4.2.11 4.2.10 4.2.9 4.2.8 4.2.7 4.2.6 4.2.5 4.1.17 All 164 releases
adminify / Inc / Modules / ServerInformation / ServerInfo_Constant_Details.php

ServerInfo_Constant_Details.php in Adminify – White Label, Admin Menu Editor, Login Customizer 2.0.6, at Inc/Modules/ServerInformation/ServerInfo_Constant_Details.php

1,135 lines 67.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace WPAdminify\Inc\Modules\ServerInformation;
4
5 use WPAdminify\Inc\Classes\ServerInfo;
6 use WPAdminify\Inc\Utils;
7
8 // no direct access allowed
9 if (!defined('ABSPATH')) exit;
10
11 /**
12 * WPAdminify
13 * @package Server Information
14 *
15 * @author WP Adminify <support@wpadminify.com>
16 */
17
18 class ServerInfo_Constant_Details
19 {
20
21 public function __construct()
22 {
23 $this->init();
24 }
25
26 public function init()
27 {
28 $server_info = new ServerInfo();
29 $help = '<span class="dashicons dashicons-editor-help"></span>';
30 $enabled = '<span class="adminify-compability enable"><span class="dashicons dashicons-yes"></span> ' . esc_html__('Enabled', 'adminify') . '</span>';
31 $disabled = '<span class="adminify-compability disable"><span class="dashicons dashicons-no"></span> ' . esc_html__('Disabled', 'adminify') . '</span>';
32 $yes = '<span class="adminify-compability enable"><span class="dashicons dashicons-yes"></span> ' . esc_html__('Yes', 'adminify') . '</span>';
33 $no = '<span class="adminify-compability disable"><span class="dashicons dashicons-no"></span> ' . esc_html__('No', 'adminify') . '</span>';
34 $entered = '<span class="adminify-compability enable"><span class="dashicons dashicons-yes"></span> ' . esc_html__('Defined', 'adminify') . '</span>';
35 $not_entered = '<span class="adminify-compability disable"><span class="dashicons dashicons-no"></span> ' . esc_html__('Not defined', 'adminify') . '</span>';
36 $sec_key = '<span class="error"><span class="dashicons dashicons-warning"></span> ' . esc_html__('Please enter this security key in the wp-confiq.php file', 'adminify') . '!</span>';
37
38 ?>
39
40 <div class="wrap">
41 <h1>
42 <?php echo Utils::admin_page_title(esc_html__('WordPress Constants', 'adminify')); ?>
43 </h1>
44 </div>
45
46 <p><?php echo __('Use the following constants to manage important settings of your WordPress installation in the <code>wp-config.php</code> file. Learn more about <a href="https://wordpress.org/support/article/editing-wp-config-php/" target="_blank" rel="noopener">here</a>', 'adminify'); ?>.</p>
47
48 <table class="wp-list-table widefat posts mt-6">
49 <thead>
50 <tr>
51 <th class="manage-column"><?php esc_html_e('Info', 'adminify'); ?></th>
52 <th class="manage-column"><?php esc_html_e('Result', 'adminify'); ?></th>
53 <th class="manage-column"><?php echo esc_html__('Example', 'adminify'); ?></th>
54 </tr>
55 </thead>
56 <tbody>
57 <tr>
58 <td><?php esc_html_e('WP Language', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#language-and-language-directory" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
59 <td>
60 <?php if (defined('WPLANG') && WPLANG) :
61 echo WPLANG;
62 else :
63 echo $not_entered . ' / ' . get_locale();
64 endif; ?>
65 </td>
66 <td><code class="is-pulled-left p-2"> <?php echo "define( 'WPLANG', 'de_DE' );"; ?></code></td>
67 </tr>
68 <tr>
69 <td><?php esc_html_e('WP Force SSL Admin', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#require-ssl-for-admin-and-logins" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
70 <td>
71 <?php if (defined('FORCE_SSL_ADMIN') && true === FORCE_SSL_ADMIN) :
72 echo $enabled;
73 else :
74 echo $disabled;
75 endif; ?>
76 </td>
77 <td><code class="is-pulled-left p-2"> <?php echo "define( 'FORCE_SSL_ADMIN', true );"; ?></code></td>
78 </tr>
79 <tr class="table-border-top">
80 <td><?php esc_html_e('WP PHP Memory Limit', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#increasing-memory-allocated-to-php" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
81 <td>
82 <?php if (WP_MEMORY_LIMIT == '-1') {
83 echo '-1 / ' . esc_html__('Unlimited', 'adminify');
84 } else {
85 echo (int)WP_MEMORY_LIMIT . ' MB';
86 }
87 echo ' (' . esc_html__('defined limit', 'adminify') . ')';
88
89 if ((int)WP_MEMORY_LIMIT < (int)ini_get('memory_limit') && WP_MEMORY_LIMIT != '-1') {
90 echo ' <span class="warning"><span class="dashicons dashicons-warning"></span> ' . sprintf(__('The WP PHP Memory Limit is less than the %s Server PHP Memory Limit', 'adminify'), (int)ini_get('memory_limit') . ' MB') . '!</span>';
91 } ?>
92 </td>
93 <td><code class="is-pulled-left p-2"> <?php echo "define( 'WP_MEMORY_LIMIT', '64M' );"; ?></code></td>
94 </tr>
95 <tr>
96 <td><?php esc_html_e('WP PHP Max Memory Limit', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#increasing-memory-allocated-to-php" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
97 <td>
98 <?php if (WP_MAX_MEMORY_LIMIT == '-1') {
99 echo '-1 / ' . esc_html__('Unlimited', 'adminify');
100 } else {
101 echo (int)WP_MAX_MEMORY_LIMIT . ' MB';
102 }
103 echo ' (' . esc_html__('defined limit', 'adminify') . ')'; ?>
104 </td>
105 <td><code class="is-pulled-left p-2"> <?php echo "define( 'WP_MAX_MEMORY_LIMIT', '256M' );"; ?></code></td>
106 </tr>
107 <tr class="table-border-top">
108 <td><?php esc_html_e('WP Post Revisions', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#disable-post-revisions" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
109 <td>
110 <?php if (defined('WP_POST_REVISIONS') && WP_POST_REVISIONS == false) {
111 esc_html_e('Disabled', 'adminify');
112 } else {
113 echo WP_POST_REVISIONS;
114 } ?>
115 </td>
116 <td><code class="is-pulled-left p-2"> <?php echo "define( 'WP_POST_REVISIONS', false );"; ?></code></td>
117 </tr>
118 <tr>
119 <td><?php esc_html_e('WP Autosave Interval', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#modify-autosave-interval" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
120 <td>
121 <?php if (defined('AUTOSAVE_INTERVAL') && AUTOSAVE_INTERVAL) :
122 echo AUTOSAVE_INTERVAL . ' ' . esc_html__('Seconds', 'adminify');
123 endif; ?>
124 </td>
125 <td><code class="is-pulled-left p-2"> <?php echo "define( 'AUTOSAVE_INTERVAL', 160 );"; ?></code></td>
126 </tr>
127 <tr>
128 <td><?php esc_html_e('WP Mail Interval', 'adminify'); ?>:</td>
129 <td>
130 <?php if (defined('WP_MAIL_INTERVAL') && WP_MAIL_INTERVAL) :
131 echo WP_MAIL_INTERVAL . ' ' . esc_html__('Seconds', 'adminify');
132 else :
133 echo $not_entered;
134 endif; ?>
135 </td>
136 <td><code class="is-pulled-left p-2"> <?php echo "define( 'WP_MAIL_INTERVAL', 60 );"; ?></code></td>
137 </tr>
138 <tr>
139 <td><?php esc_html_e('WP Empty Trash', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#empty-trash" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
140 <td>
141 <?php if (EMPTY_TRASH_DAYS == 0) {
142 echo $disabled;
143 } else {
144 echo EMPTY_TRASH_DAYS . ' ' . 'Days';
145 } ?>
146 </td>
147 <td><code class="is-pulled-left p-2"> <?php echo "define( 'EMPTY_TRASH_DAYS', 30 );"; ?></code></td>
148 </tr>
149 <tr>
150 <td><?php esc_html_e('WP Media Trash', 'adminify'); ?>:</td>
151 <td>
152 <?php if (defined('MEDIA_TRASH') && true === MEDIA_TRASH) :
153 echo $enabled;
154 else :
155 echo $disabled;
156 endif; ?>
157 </td>
158 <td><code class="is-pulled-left p-2"> <?php echo "define( 'MEDIA_TRASH', true );"; ?></code></td>
159 </tr>
160 <tr>
161 <td><?php esc_html_e('WP Cleanup Image Edits', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#cleanup-image-edits" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
162 <td>
163 <?php if (defined('IMAGE_EDIT_OVERWRITE') && true === IMAGE_EDIT_OVERWRITE) :
164 echo $enabled;
165 else :
166 echo $disabled;
167 endif; ?>
168 </td>
169 <td><code class="is-pulled-left p-2"> <?php echo "define( 'IMAGE_EDIT_OVERWRITE', true );"; ?></code></td>
170 </tr>
171 <tr class="table-border-top">
172 <td><?php esc_html_e('WP Multisite', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#enable-multisite-network-ability" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
173 <td>
174 <?php if (defined('WP_ALLOW_MULTISITE') && true === WP_ALLOW_MULTISITE) :
175 echo $enabled;
176 else :
177 echo $disabled;
178 endif; ?>
179 </td>
180 <td><code class="is-pulled-left p-2"> <?php echo "define( 'WP_ALLOW_MULTISITE', true );"; ?></code></td>
181 </tr>
182 <tr>
183 <td><?php esc_html_e('WP Main Site Domain', 'adminify'); ?>:</td>
184 <td>
185 <?php if (defined('DOMAIN_CURRENT_SITE') && DOMAIN_CURRENT_SITE) :
186 echo DOMAIN_CURRENT_SITE;
187 else :
188 echo $not_entered;
189 endif; ?>
190 </td>
191 <td><code class="is-pulled-left p-2"> <?php echo "define( 'DOMAIN_CURRENT_SITE', 'www.domain.com' );"; ?></code></td>
192 </tr>
193 <tr>
194 <td><?php esc_html_e('WP Main Site Path', 'adminify'); ?>:</td>
195 <td>
196 <?php if (defined('PATH_CURRENT_SITE') && PATH_CURRENT_SITE) :
197 echo PATH_CURRENT_SITE;
198 else :
199 echo $not_entered;
200 endif; ?>
201 </td>
202 <td><code class="is-pulled-left p-2"> <?php echo "define( 'PATH_CURRENT_SITE', '/path/to/wordpress/' );"; ?></code></td>
203 </tr>
204 <tr>
205 <td><?php esc_html_e('WP Main Site ID', 'adminify'); ?>:</td>
206 <td>
207 <?php if (defined('SITE_ID_CURRENT_SITE') && SITE_ID_CURRENT_SITE) :
208 echo SITE_ID_CURRENT_SITE;
209 else :
210 echo $not_entered;
211 endif; ?>
212 </td>
213 <td><code class="is-pulled-left p-2"> <?php echo "define( 'SITE_ID_CURRENT_SITE', 1 );"; ?></code></td>
214 </tr>
215 <tr>
216 <td><?php esc_html_e('WP Main Site Blog ID', 'adminify'); ?>:</td>
217 <td>
218 <?php if (defined('BLOG_ID_CURRENT_SITE') && BLOG_ID_CURRENT_SITE) :
219 echo BLOG_ID_CURRENT_SITE;
220 else :
221 echo $not_entered;
222 endif; ?>
223 </td>
224 <td><code class="is-pulled-left p-2"> <?php echo "define( 'BLOG_ID_CURRENT_SITE', 1 );"; ?></code></td>
225 </tr>
226 <tr>
227 <td><?php esc_html_e('WP Allow Subdomain Install', 'adminify'); ?>:</td>
228 <td>
229 <?php if (defined('SUBDOMAIN_INSTALL') && true === SUBDOMAIN_INSTALL) :
230 echo $enabled;
231 else :
232 echo $disabled;
233 endif; ?>
234 </td>
235 <td><code class="is-pulled-left p-2"> <?php echo "define( 'SUBDOMAIN_INSTALL', true );"; ?></code></td>
236 </tr>
237 <tr>
238 <td><?php esc_html_e('WP Allow Subdirectory Install', 'adminify'); ?>:</td>
239 <td>
240 <?php if (defined('ALLOW_SUBDIRECTORY_INSTALL') && true === ALLOW_SUBDIRECTORY_INSTALL) :
241 echo $enabled;
242 else :
243 echo $disabled;
244 endif; ?>
245 </td>
246 <td><code class="is-pulled-left p-2"> <?php echo "define( 'ALLOW_SUBDIRECTORY_INSTALL', true );"; ?></code></td>
247 </tr>
248 <tr>
249 <td><?php esc_html_e('WP Site Specific Upload Directory', 'adminify'); ?>:</td>
250 <td>
251 <?php if (defined('BLOGUPLOADDIR') && BLOGUPLOADDIR) :
252 echo BLOGUPLOADDIR;
253 else :
254 echo $not_entered;
255 endif; ?>
256 </td>
257 <td><code class="is-pulled-left p-2"> <?php echo "define( 'BLOGUPLOADDIR', '' );"; ?></code></td>
258 </tr>
259 <tr>
260 <td><?php esc_html_e('WP Upload Base Directory', 'adminify'); ?>:</td>
261 <td>
262 <?php if (defined('UPLOADBLOGSDIR') && UPLOADBLOGSDIR) :
263 echo UPLOADBLOGSDIR;
264 else :
265 echo $not_entered;
266 endif; ?>
267 </td>
268 <td><code class="is-pulled-left p-2"> <?php echo "define( 'UPLOADBLOGSDIR', 'wp-content/blogs.dir' );"; ?></code></td>
269 </tr>
270 <tr>
271 <td><?php esc_html_e('WP Load Sunrise', 'adminify'); ?>:</td>
272 <td>
273 <?php if (defined('SUNRISE') && true === SUNRISE) :
274 echo $enabled;
275 else :
276 echo $disabled;
277 endif; ?>
278 </td>
279 <td><code class="is-pulled-left p-2"> <?php echo "define( 'SUNRISE', true );"; ?></code></td>
280 </tr>
281 <tr class="table-border-top">
282 <td><?php esc_html_e('WP Debug Mode', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#wp_debug" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
283 <td>
284 <?php if (defined('WP_DEBUG') && WP_DEBUG) :
285 echo $enabled;
286 else :
287 echo $disabled;
288 endif; ?>
289 </td>
290 <td><code class="is-pulled-left p-2"> <?php echo "define( 'WP_DEBUG', true );"; ?></code></td>
291 </tr>
292 <tr>
293 <td><?php esc_html_e('WP Debug Log', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#wp_debug" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
294 <td>
295 <?php if (defined('WP_DEBUG_LOG') && WP_DEBUG_LOG) :
296 echo $enabled;
297 else :
298 echo $disabled;
299 endif; ?>
300 </td>
301 <td><code class="is-pulled-left p-2"> <?php echo "define( 'WP_DEBUG_LOG', true );"; ?></code></td>
302 </tr>
303 <tr>
304 <td><?php esc_html_e('WP Debug Display', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#wp_debug" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
305 <td>
306 <?php if (defined('WP_DEBUG_DISPLAY') && WP_DEBUG_DISPLAY) :
307 echo $enabled;
308 else :
309 echo $disabled;
310 endif; ?>
311 </td>
312 <td><code class="is-pulled-left p-2"> <?php echo "define( 'WP_DEBUG_DISPLAY', true );"; ?></code></td>
313 </tr>
314 <tr>
315 <td><?php esc_html_e('WP Script Debug', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#script_debug" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
316 <td>
317 <?php if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) :
318 echo $enabled;
319 else :
320 echo $disabled;
321 endif; ?>
322 </td>
323 <td><code class="is-pulled-left p-2"> <?php echo "define( 'SCRIPT_DEBUG', true );"; ?></code></td>
324 </tr>
325 <tr>
326 <td><?php esc_html_e('WP Save Queries', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#save-queries-for-analysis" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
327 <td>
328 <?php if (defined('SAVEQUERIES') && SAVEQUERIES) :
329 echo $enabled;
330 else :
331 echo $disabled;
332 endif; ?>
333 </td>
334 <td><code class="is-pulled-left p-2"> <?php echo "define( 'SAVEQUERIES', true );"; ?></code></td>
335 </tr>
336 <tr class="table-border-top">
337 <td><?php esc_html_e('WP Automatic Updates', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#disable-wordpress-auto-updates" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
338 <td>
339 <?php if (defined('AUTOMATIC_UPDATER_DISABLED') && AUTOMATIC_UPDATER_DISABLED) :
340 echo $disabled;
341 else :
342 echo $enabled;
343 endif; ?>
344 </td>
345 <td><code class="is-pulled-left p-2"> <?php echo "define( 'AUTOMATIC_UPDATER_DISABLED', true );"; ?></code></td>
346 </tr>
347 <tr>
348 <td><?php esc_html_e('WP Core Updates', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#disable-wordpress-core-updates" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
349 <td>
350 <?php if (defined('WP_AUTO_UPDATE_CORE') && false === WP_AUTO_UPDATE_CORE) :
351 echo $disabled;
352 elseif (defined('WP_AUTO_UPDATE_CORE') && 'minor' === WP_AUTO_UPDATE_CORE) :
353 echo $enabled . ' / <span class="error"><span class="dashicons dashicons-warning"></span> ' . esc_html__('Only for minor updates', 'adminify') . '</span>';
354 else :
355 echo $enabled;
356 endif; ?>
357 </td>
358 <td><code class="is-pulled-left p-2"> <?php echo "define( 'WP_AUTO_UPDATE_CORE', false );"; ?></code></td>
359 </tr>
360 <tr>
361 <td><?php esc_html_e('WP Default Theme Updates', 'adminify'); ?>:</td>
362 <td>
363 <?php if (defined('CORE_UPGRADE_SKIP_NEW_BUNDLED') && true === CORE_UPGRADE_SKIP_NEW_BUNDLED) :
364 echo $disabled;
365 else :
366 echo $enabled;
367 endif; ?>
368 </td>
369 <td><code class="is-pulled-left p-2"> <?php echo "define( 'CORE_UPGRADE_SKIP_NEW_BUNDLED', true );"; ?></code></td>
370 </tr>
371 <tr>
372 <td><?php esc_html_e('WP Plugin and Theme Editor', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#disable-the-plugin-and-theme-editor" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
373 <td>
374 <?php if (defined('DISALLOW_FILE_EDIT') && true === DISALLOW_FILE_EDIT) :
375 echo $disabled;
376 else :
377 echo $enabled;
378 endif; ?>
379 </td>
380 <td><code class="is-pulled-left p-2"> <?php echo "define( 'DISALLOW_FILE_EDIT', true );"; ?></code></td>
381 </tr>
382 <tr>
383 <td><?php esc_html_e('WP Plugin and Theme Updates', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#disable-plugin-and-theme-update-and-installation" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
384 <td>
385 <?php if (defined('DISALLOW_FILE_MODS') && true === DISALLOW_FILE_MODS) :
386 echo $disabled;
387 else :
388 echo $enabled;
389 endif; ?>
390 </td>
391 <td><code class="is-pulled-left p-2"> <?php echo "define( 'DISALLOW_FILE_MODS', true );"; ?></code></td>
392 </tr>
393 <tr>
394 <td><?php esc_html_e('WP Default Theme', 'adminify'); ?>:</td>
395 <td>
396 <?php if (defined('WP_DEFAULT_THEME') && WP_DEFAULT_THEME) :
397 echo WP_DEFAULT_THEME;
398 endif; ?>
399 </td>
400 <td><code class="is-pulled-left p-2"> <?php echo "define( 'WP_DEFAULT_THEME', 'default-theme-folder-name' );" ?></td>
401 </tr>
402 <tr class="table-border-top">
403 <td><?php esc_html_e('WP Alternate Cron', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#alternative-cron" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
404 <td>
405 <?php if (defined('ALTERNATE_WP_CRON') && true === ALTERNATE_WP_CRON) :
406 echo $enabled;
407 else :
408 echo $disabled;
409 endif; ?>
410 </td>
411 <td><code class="is-pulled-left p-2"> <?php echo "define( 'ALTERNATE_WP_CRON', true );"; ?></code></td>
412 </tr>
413 <tr>
414 <td><?php esc_html_e('WP Cron', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#disable-cron-and-cron-timeout" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
415 <td>
416 <?php if (defined('DISABLE_WP_CRON') && DISABLE_WP_CRON) :
417 echo $disabled;
418 else :
419 echo $enabled;
420 endif; ?>
421 </td>
422 <td><code class="is-pulled-left p-2"> <?php echo "define( 'DISABLE_WP_CRON', true );"; ?></code></td>
423 </tr>
424 <tr>
425 <td><?php esc_html_e('WP Cron Lock Timeout', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#disable-cron-and-cron-timeout" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
426 <td>
427 <?php if (defined('WP_CRON_LOCK_TIMEOUT') && WP_CRON_LOCK_TIMEOUT) :
428 echo WP_CRON_LOCK_TIMEOUT . ' ' . esc_html__('Seconds', 'adminify');
429 else :
430 echo $disabled;
431 endif; ?>
432 </td>
433 <td><code class="is-pulled-left p-2"> <?php echo "define( 'WP_CRON_LOCK_TIMEOUT', 60 );"; ?></code></td>
434 </tr>
435 <tr class="table-border-top">
436 <td><?php esc_html_e('WP Cache', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#cache" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
437 <td>
438 <?php if (defined('WP_CACHE') && true === WP_CACHE) :
439 echo $enabled;
440 else :
441 echo $disabled;
442 endif; ?>
443 </td>
444 <td><code class="is-pulled-left p-2"> <?php echo "define( 'WP_CACHE', true );"; ?></code></td>
445 </tr>
446 <tr>
447 <td><?php esc_html_e('WP Concatenate Admin JS/CSS', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#disable-javascript-concatenation" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
448 <td>
449 <?php if (defined('CONCATENATE_SCRIPTS') && false === CONCATENATE_SCRIPTS || true === SCRIPT_DEBUG) :
450 echo $disabled;
451 if (true === SCRIPT_DEBUG) :
452 echo ' / <span class="warning"><span class="dashicons dashicons-warning"></span> ' . esc_html__('Not available if WP Script Debug is true', 'adminify') . '</span>';
453 endif;
454 else :
455 echo $enabled;
456 endif; ?>
457 </td>
458 <td><code class="is-pulled-left p-2"> <?php echo "define( 'CONCATENATE_SCRIPTS', false );"; ?></code></td>
459 </tr>
460 <tr>
461 <td><?php esc_html_e('WP Compress Admin JS', 'adminify'); ?>:</td>
462 <td>
463 <?php if (defined('COMPRESS_SCRIPTS') && false === COMPRESS_SCRIPTS || true === SCRIPT_DEBUG) :
464 echo $disabled;
465 if (true === SCRIPT_DEBUG) :
466 echo ' / <span class="warning"><span class="dashicons dashicons-warning"></span> ' . esc_html__('Not available if WP Script Debug is true', 'adminify') . '</span>';
467 endif;
468 else :
469 echo $enabled;
470 endif; ?>
471 </td>
472 <td><code class="is-pulled-left p-2"> <?php echo "define( 'COMPRESS_SCRIPTS', false );"; ?></code></td>
473 </tr>
474 <tr>
475 <td><?php esc_html_e('WP Compress Admin CSS', 'adminify'); ?>:</td>
476 <td>
477 <?php if (defined('COMPRESS_CSS') && false === COMPRESS_CSS || true === SCRIPT_DEBUG) :
478 echo $disabled;
479 if (true === SCRIPT_DEBUG) :
480 echo ' / <span class="warning"><span class="dashicons dashicons-warning"></span> ' . esc_html__('Not available if WP Script Debug is true', 'adminify') . '</span>';
481 endif;
482 else :
483 echo $enabled;
484 endif; ?>
485 </td>
486 <td><code class="is-pulled-left p-2"> <?php echo "define( 'COMPRESS_CSS', false );"; ?></code></td>
487 </tr>
488 <tr>
489 <td><?php esc_html_e('WP Enforce GZip Admin JS/CSS', 'adminify'); ?>:</td>
490 <td>
491 <?php if (!defined('ENFORCE_GZIP') || defined('ENFORCE_GZIP') && false === ENFORCE_GZIP || true === SCRIPT_DEBUG) :
492 echo $disabled;
493 if (true === SCRIPT_DEBUG) :
494 echo ' / <span class="warning"><span class="dashicons dashicons-warning"></span> ' . esc_html__('Not available if WP Script Debug is true', 'adminify') . '</span>';
495 endif;
496 else :
497 echo $enabled;
498 endif; ?>
499 </td>
500 <td><code class="is-pulled-left p-2"> <?php echo "define( 'ENFORCE_GZIP', true );"; ?></code></td>
501 </tr>
502 <tr class="table-border-top">
503 <td><?php esc_html_e('WP Allow unfiltered HTML', 'adminify'); ?>: <a href="https://codex.wordpress.org/Editing_wp-config.php#Disable_unfiltered_HTML_for_all_users" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
504 <td>
505 <?php if (defined('DISALLOW_UNFILTERED_HTML') && true === DISALLOW_UNFILTERED_HTML) :
506 echo $disabled . ' ' . esc_html__('for all users', 'adminify');
507 else :
508 echo $enabled . ' ' . esc_html__('for users with administrator or editor roles', 'adminify');
509 endif; ?>
510 </td>
511 <td><code class="is-pulled-left p-2"> <?php echo "define( 'DISALLOW_UNFILTERED_HTML', true );"; ?></code></td>
512 </tr>
513 <tr>
514 <td><?php esc_html_e('WP Allow unfiltered Uploads', 'adminify'); ?>:</td>
515 <td>
516 <?php if (defined('ALLOW_UNFILTERED_UPLOADS') && true === ALLOW_UNFILTERED_UPLOADS) :
517 echo $enabled;
518 else :
519 echo $disabled;
520 endif; ?>
521 </td>
522 <td><code class="is-pulled-left p-2"> <?php echo "define( 'ALLOW_UNFILTERED_UPLOADS', true );"; ?></code></td>
523 </tr>
524 <tr>
525 <td><?php esc_html_e('WP Block External URL Requests', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#block-external-url-requests" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
526 <td>
527 <?php if (defined('WP_HTTP_BLOCK_EXTERNAL') && true === WP_HTTP_BLOCK_EXTERNAL) :
528 echo $enabled;
529 if (defined('WP_ACCESSIBLE_HOSTS')) :
530 echo ' / ' . esc_html__('Accessible Hosts', 'adminify') . ': ' . WP_ACCESSIBLE_HOSTS;
531 endif;
532 else :
533 echo $disabled;
534 endif; ?>
535 </td>
536 <td><code class="is-pulled-left p-2"> <?php echo "define( 'WP_HTTP_BLOCK_EXTERNAL', true );"; ?></code></td>
537 </tr>
538 <tr>
539 <td><?php esc_html_e('WP Redirect Nonexistent Blogs', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#redirect-nonexistent-blogs" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
540 <td>
541 <?php if (defined('NOBLOGREDIRECT') && NOBLOGREDIRECT != '') :
542 echo NOBLOGREDIRECT;
543 else :
544 echo $not_entered;
545 endif; ?>
546 </td>
547 <td><code class="is-pulled-left p-2"> <?php echo "define( 'NOBLOGREDIRECT', 'http://example.com' );"; ?></code></td>
548 </tr>
549 <tr class="table-border-top">
550 <td><?php esc_html_e('WP Cookie Domain', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#set-cookie-domain" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
551 <td>
552 <?php if (defined('COOKIE_DOMAIN') && COOKIE_DOMAIN != '') :
553 echo COOKIE_DOMAIN;
554 else :
555 echo $not_entered;
556 endif; ?>
557 </td>
558 <td><code class="is-pulled-left p-2"> <?php echo "define( 'COOKIE_DOMAIN', 'www.example.com' );"; ?></code></td>
559 </tr>
560 <tr>
561 <td><?php esc_html_e('WP Cookie Hash', 'adminify'); ?>:</td>
562 <td>
563 <?php if (defined('COOKIEHASH') && COOKIEHASH) :
564 echo COOKIEHASH;
565 else :
566 echo $not_entered;
567 endif; ?>
568 </td>
569 <td><code class="is-pulled-left p-2"> <?php echo "define( 'COOKIEHASH', '' );"; ?></code></td>
570 </tr>
571 <tr>
572 <td><?php esc_html_e('WP Auth Cookie', 'adminify'); ?>:</td>
573 <td>
574 <?php if (defined('AUTH_COOKIE') && AUTH_COOKIE) :
575 echo AUTH_COOKIE;
576 else :
577 echo $not_entered;
578 endif; ?>
579 </td>
580 <td><code class="is-pulled-left p-2"> <?php echo "define( 'AUTH_COOKIE', '' );"; ?></code></td>
581 </tr>
582 <tr>
583 <td><?php esc_html_e('WP Secure Auth Cookie', 'adminify'); ?>:</td>
584 <td>
585 <?php if (defined('SECURE_AUTH_COOKIE') && SECURE_AUTH_COOKIE) :
586 echo SECURE_AUTH_COOKIE;
587 else :
588 echo $not_entered;
589 endif; ?>
590 </td>
591 <td><code class="is-pulled-left p-2"> <?php echo "define( 'SECURE_AUTH_COOKIE', '' );"; ?></code></td>
592 </tr>
593 <tr>
594 <td><?php esc_html_e('WP Cookie Path', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#additional-defined-constants" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
595 <td>
596 <?php if (defined('COOKIEPATH') && COOKIEPATH) :
597 echo COOKIEPATH;
598 else :
599 echo $not_entered;
600 endif; ?>
601 </td>
602 <td><code class="is-pulled-left p-2"> <?php echo "define( 'COOKIEPATH', '' );"; ?></code></td>
603 </tr>
604 <tr>
605 <td><?php esc_html_e('WP Site Cookie Path', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#additional-defined-constants" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
606 <td>
607 <?php if (defined('SITECOOKIEPATH') && SITECOOKIEPATH) :
608 echo SITECOOKIEPATH;
609 else :
610 echo $not_entered;
611 endif; ?>
612 </td>
613 <td><code class="is-pulled-left p-2"> <?php echo "define( 'SITECOOKIEPATH', '' );"; ?></code></td>
614 </tr>
615 <tr>
616 <td><?php esc_html_e('WP Admin Cookie Path', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#additional-defined-constants" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
617 <td>
618 <?php if (defined('ADMIN_COOKIE_PATH') && ADMIN_COOKIE_PATH) :
619 echo ADMIN_COOKIE_PATH;
620 else :
621 echo $not_entered;
622 endif; ?>
623 </td>
624 <td><code class="is-pulled-left p-2"> <?php echo "define( 'ADMIN_COOKIE_PATH', '' );"; ?></code></td>
625 </tr>
626 <tr>
627 <td><?php esc_html_e('WP Plugins Cookie Path', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#additional-defined-constants" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
628 <td>
629 <?php if (defined('PLUGINS_COOKIE_PATH') && PLUGINS_COOKIE_PATH) :
630 echo PLUGINS_COOKIE_PATH;
631 else :
632 echo $not_entered;
633 endif; ?>
634 </td>
635 <td><code class="is-pulled-left p-2"> <?php echo "define( 'PLUGINS_COOKIE_PATH', '' );"; ?></code></td>
636 </tr>
637 <tr>
638 <td><?php esc_html_e('WP Logged In Cookie', 'adminify'); ?>:</td>
639 <td>
640 <?php if (defined('LOGGED_IN_COOKIE') && LOGGED_IN_COOKIE) :
641 echo LOGGED_IN_COOKIE;
642 else :
643 echo $not_entered;
644 endif; ?>
645 </td>
646 <td><code class="is-pulled-left p-2"> <?php echo "define( 'LOGGED_IN_COOKIE', '' );"; ?></code></td>
647 </tr>
648 <tr>
649 <td><?php esc_html_e('WP Test Cookie', 'adminify'); ?>:</td>
650 <td>
651 <?php if (defined('TEST_COOKIE') && TEST_COOKIE) :
652 echo TEST_COOKIE;
653 else :
654 echo $not_entered;
655 endif; ?>
656 </td>
657 <td><code class="is-pulled-left p-2"> <?php echo "define( 'TEST_COOKIE', '' );"; ?></code></td>
658 </tr>
659 <tr>
660 <td><?php esc_html_e('WP User Cookie', 'adminify'); ?>:</td>
661 <td>
662 <?php if (defined('USER_COOKIE') && USER_COOKIE) :
663 echo USER_COOKIE;
664 else :
665 echo $not_entered;
666 endif; ?>
667 </td>
668 <td><code class="is-pulled-left p-2"> <?php echo "define( 'USER_COOKIE', '' );"; ?></code></td>
669 </tr>
670 <tr class="table-border-top">
671 <td><?php esc_html_e('WP Directory Permission', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#override-of-default-file-permissions" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
672 <td>
673 <?php if (defined('FS_CHMOD_DIR') && FS_CHMOD_DIR) :
674 echo 'chmod' . ' ' . FS_CHMOD_DIR;
675 else :
676 echo $not_entered;
677 endif; ?>
678 </td>
679 <td><code class="is-pulled-left p-2"> <?php echo "define( 'FS_CHMOD_DIR', ( 0755 & ~ umask() ) );" ?></td>
680 </tr>
681 <tr>
682 <td><?php esc_html_e('WP File Permission', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#override-of-default-file-permissions" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
683 <td>
684 <?php if (defined('FS_CHMOD_FILE') && FS_CHMOD_FILE) :
685 echo 'chmod' . ' ' . FS_CHMOD_FILE;
686 else :
687 echo $not_entered;
688 endif; ?>
689 </td>
690 <td><code class="is-pulled-left p-2"> <?php echo "define( 'FS_CHMOD_FILE', ( 0644 & ~ umask() ) );" ?></td>
691 </tr>
692 <tr class="table-border-top">
693 <td><?php esc_html_e('WP FTP Method', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#wordpress-upgrade-constants" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
694 <td>
695 <?php if (defined('FS_METHOD') && FS_METHOD) :
696 echo FS_METHOD;
697 else :
698 echo $not_entered;
699 endif; ?>
700 </td>
701 <td><code class="is-pulled-left p-2"> <?php echo "define( 'FS_METHOD', 'ftpext' );" ?></td>
702 </tr>
703 <tr>
704 <td><?php esc_html_e('WP FTP Base', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#wordpress-upgrade-constants" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
705 <td>
706 <?php if (defined('FTP_BASE') && FTP_BASE) :
707 echo FTP_BASE;
708 else :
709 echo $not_entered;
710 endif; ?>
711 </td>
712 <td><code class="is-pulled-left p-2"> <?php echo "define( 'FTP_BASE', '/path/to/wordpress/' );" ?></td>
713 </tr>
714 <tr>
715 <td><?php esc_html_e('WP FTP Content Dir', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#wordpress-upgrade-constants" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
716 <td>
717 <?php if (defined('FTP_CONTENT_DIR') && FTP_CONTENT_DIR) :
718 echo FTP_CONTENT_DIR;
719 else :
720 echo $not_entered;
721 endif; ?>
722 </td>
723 <td><code class="is-pulled-left p-2"> <?php echo "define( 'FTP_CONTENT_DIR', '/path/to/wordpress/wp-content/' );" ?></td>
724 </tr>
725 <tr>
726 <td><?php esc_html_e('WP FTP Plugin Dir', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#wordpress-upgrade-constants" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
727 <td>
728 <?php if (defined('FTP_PLUGIN_DIR') && FTP_PLUGIN_DIR) :
729 echo FTP_PLUGIN_DIR;
730 else :
731 echo $not_entered;
732 endif; ?>
733 </td>
734 <td><code class="is-pulled-left p-2"> <?php echo "define( 'FTP_PLUGIN_DIR ', '/path/to/wordpress/wp-content/plugins/' );" ?></td>
735 </tr>
736 <tr>
737 <td><?php esc_html_e('WP SSH Public Key', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#wordpress-upgrade-constants" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
738 <td>
739 <?php if (defined('FTP_PUBKEY') && FTP_PUBKEY) :
740 echo FTP_PUBKEY;
741 else :
742 echo $not_entered;
743 endif; ?>
744 </td>
745 <td><code class="is-pulled-left p-2"> <?php echo "define( 'FTP_PUBKEY', '/home/username/.ssh/id_rsa.pub' );" ?></td>
746 </tr>
747 <tr>
748 <td><?php esc_html_e('WP SSH Private Key', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#wordpress-upgrade-constants" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
749 <td>
750 <?php if (defined('FTP_PRIKEY') && FTP_PRIKEY) :
751 echo FTP_PRIKEY;
752 else :
753 echo $not_entered;
754 endif; ?>
755 </td>
756 <td><code class="is-pulled-left p-2"> <?php echo "define( 'FTP_PRIKEY', '/home/username/.ssh/id_rsa' );" ?></td>
757 </tr>
758 <tr>
759 <td><?php esc_html_e('WP FTP Username', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#wordpress-upgrade-constants" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
760 <td>
761 <?php if (defined('FTP_USER') && FTP_USER) :
762 echo FTP_USER;
763 else :
764 echo $not_entered;
765 endif; ?>
766 </td>
767 <td><code class="is-pulled-left p-2"> <?php echo "define( 'FTP_USER', 'username' );" ?></td>
768 </tr>
769 <tr>
770 <td><?php esc_html_e('WP FTP Password', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#wordpress-upgrade-constants" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
771 <td>
772 <?php if (defined('FTP_PASS') && FTP_PASS) :
773 echo '****';
774 else :
775 echo $not_entered;
776 endif; ?>
777 </td>
778 <td><code class="is-pulled-left p-2"> <?php echo "define( 'FTP_PASS', 'password' );" ?></td>
779 </tr>
780 <tr>
781 <td><?php esc_html_e('WP FTP Host', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#wordpress-upgrade-constants" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
782 <td>
783 <?php if (defined('FTP_HOST') && FTP_HOST) :
784 echo FTP_HOST;
785 else :
786 echo $not_entered;
787 endif; ?>
788 </td>
789 <td><code class="is-pulled-left p-2"> <?php echo "define( 'FTP_HOST', 'ftp.example.org' );" ?></td>
790 </tr>
791 <tr>
792 <td><?php esc_html_e('WP FTP SSL', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#wordpress-upgrade-constants" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
793 <td>
794 <?php if (defined('FTP_SSL') && true === FTP_SSL) :
795 echo $enabled;
796 else :
797 echo $disabled;
798 endif; ?>
799 </td>
800 <td><code class="is-pulled-left p-2"> <?php echo "define( 'FTP_SSL', false );" ?></td>
801 </tr>
802 <tr class="table-border-top">
803 <td><?php esc_html_e('WP Site URL', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#wp_siteurl" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
804 <td>
805 <?php if (defined('WP_SITEURL') && WP_SITEURL) :
806 echo WP_SITEURL;
807 else :
808 echo $not_entered;
809 endif; ?>
810 </td>
811 <td><code class="is-pulled-left p-2"> <?php echo "define( 'WP_SITEURL', 'http://example.com/wordpress' );"; ?></code></td>
812 </tr>
813 <tr>
814 <td><?php esc_html_e('WP Home', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#blog-address-url" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
815 <td>
816 <?php if (defined('WP_HOME') && WP_HOME) :
817 echo WP_HOME;
818 else :
819 echo $not_entered;
820 endif; ?>
821 </td>
822 <td><code class="is-pulled-left p-2"> <?php echo "define( 'WP_HOME', 'http://example.com' );"; ?></code></td>
823 </tr>
824 <tr class="table-border-top">
825 <td><?php esc_html_e('WP Uploads Path', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#moving-uploads-folder" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
826 <td>
827 <?php if (defined('UPLOADS') && '' != UPLOADS) :
828 echo UPLOADS;
829 else :
830 $upload_dir = wp_upload_dir();
831 echo $upload_dir['basedir'];
832 endif; ?>
833 </td>
834 <td><code class="is-pulled-left p-2"> <?php echo "define( 'UPLOADS', dirname(__FILE__) . 'wp-content/media' );"; ?></code></td>
835 </tr>
836 <tr>
837 <td><?php esc_html_e('WP Template Path', 'adminify'); ?>:</td>
838 <td>
839 <?php echo TEMPLATEPATH; ?>
840 </td>
841 <td><code class="is-pulled-left p-2"> <?php echo "define( 'TEMPLATEPATH', dirname(__FILE__) . 'wp-content/themes/theme-folder' );"; ?></code></td>
842 </tr>
843 <tr>
844 <td><?php esc_html_e('WP Stylesheet Path', 'adminify'); ?>:</td>
845 <td>
846 <?php echo STYLESHEETPATH; ?>
847 </td>
848 <td><code class="is-pulled-left p-2"> <?php echo "define( 'STYLESHEETPATH', dirname(__FILE__) . 'wp-content/themes/theme-folder' );"; ?></code></td>
849 </tr>
850 <tr>
851 <td><?php esc_html_e('WP Content Path', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#moving-wp-content-folder" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
852 <td>
853 <?php echo WP_CONTENT_DIR; ?>
854 </td>
855 <td><code class="is-pulled-left p-2"> <?php echo "define( 'WP_CONTENT_DIR', dirname(__FILE__) . '/blog/wp-content' );"; ?></code></td>
856 </tr>
857 <tr>
858 <td><?php esc_html_e('WP Content URL', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#moving-wp-content-folder" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
859 <td>
860 <?php echo WP_CONTENT_URL; ?>
861 </td>
862 <td><code class="is-pulled-left p-2"> <?php echo "define( 'WP_CONTENT_URL', 'http://example/blog/wp-content' );"; ?></code></td>
863 </tr>
864 <tr>
865 <td><?php esc_html_e('WP Plugin Path', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#moving-plugin-folder" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
866 <td>
867 <?php echo WP_PLUGIN_DIR; ?>
868 </td>
869 <td><code class="is-pulled-left p-2"> <?php echo "define( 'WP_PLUGIN_DIR', dirname(__FILE__) . '/blog/wp-content/plugins' );"; ?></code></td>
870 </tr>
871 <tr>
872 <td><?php esc_html_e('WP Plugin URL', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#moving-plugin-folder" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
873 <td>
874 <?php echo WP_PLUGIN_URL; ?>
875 </td>
876 <td><code class="is-pulled-left p-2"> <?php echo "define( 'WP_PLUGIN_URL', 'http://example/blog/wp-content/plugins' );"; ?></code></td>
877 </tr>
878 <tr>
879 <td><?php esc_html_e('WP Language Path', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#language-and-language-directory" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
880 <td>
881 <?php echo WP_LANG_DIR; ?>
882 </td>
883 <td><code class="is-pulled-left p-2"> <?php echo "define( 'WP_LANG_DIR', dirname(__FILE__) . '/wordpress/languages' );"; ?></code></td>
884 </tr>
885 <tr>
886 <td><?php esc_html_e('WP Temporary Files Path', 'adminify'); ?>:</td>
887 <td>
888 <?php if (defined('WP_TEMP_DIR') && '' != WP_TEMP_DIR) :
889 echo WP_TEMP_DIR;
890 else :
891 echo get_temp_dir();
892 endif; ?>
893 </td>
894 <td><code class="is-pulled-left p-2"> <?php echo "define( 'WP_TEMP_DIR', dirname(__FILE__) . 'wp-content/temp' );"; ?></code></td>
895 </tr>
896 </tbody>
897 </table>
898
899 <h2 class="mb-0 mt-6"><?php echo esc_html__('Database', 'adminify'); ?></h2>
900
901 <p class="mb-4"><?php echo __('Use the following constants to manage important database settings of your WordPress installation in the <code>wp-config.php</code> file. Learn more about <a href="https://wordpress.org/support/article/editing-wp-config-php/#configure-database-settings" target="_blank">here</a>', 'adminify'); ?>.</p>
902
903 <table class="wp-list-table widefat posts mt-5">
904 <thead>
905 <tr>
906 <th class="manage-column"><?php echo esc_html__('Info', 'adminify'); ?></th>
907 <th class="manage-column"><?php echo esc_html__('Result', 'adminify'); ?></th>
908 <th class="manage-column"><?php echo esc_html__('Example', 'adminify'); ?></th>
909 </tr>
910 </thead>
911 <tbody>
912 <tr>
913 <td><?php esc_html_e('MySQL Version', 'adminify'); ?>:</td>
914 <td colspan="2"><?php echo $server_info->get_mysql_version(); ?></td>
915 </tr>
916 <tr>
917 <td><?php esc_html_e('DB Name', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#set-database-name" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
918 <td><?php echo DB_NAME; ?></td>
919 <td><code class="is-pulled-left p-2"> <?php echo "define( 'DB_NAME', 'MyDatabaseName' );"; ?></code></td>
920 </tr>
921 <tr>
922 <td><?php esc_html_e('DB User', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#set-database-user" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
923 <td><?php echo DB_USER; ?></td>
924 <td><code class="is-pulled-left p-2"> <?php echo "define( 'DB_USER', 'MyUserName' );"; ?></code></td>
925 </tr>
926 <tr>
927 <td><?php esc_html_e('DB Host', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#set-database-host" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
928 <td><?php echo DB_HOST; ?></td>
929 <td><code class="is-pulled-left p-2"> <?php echo "define( 'DB_HOST', 'MyDatabaseHost' );"; ?></code></td>
930 </tr>
931 <tr>
932 <td><?php esc_html_e('DB Password', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#set-database-password" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
933 <td><?php echo '***'; ?></td>
934 <td><code class="is-pulled-left p-2"> <?php echo "define( 'DB_PASSWORD', 'MyPassWord' );"; ?></code></td>
935 </tr>
936 <tr>
937 <td><?php esc_html_e('DB Charset', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#database-character-set" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
938 <td><?php echo DB_CHARSET; ?></td>
939 <td><code class="is-pulled-left p-2"> <?php echo "define( 'DB_CHARSET', 'utf8' );"; ?></code></td>
940 </tr>
941 <tr>
942 <td><?php esc_html_e('DB Collate', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#database-collation" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
943 <td>
944 <?php if (defined('DB_COLLATE') && empty(DB_COLLATE)) {
945 echo $not_entered;
946 } else {
947 echo DB_COLLATE;
948 } ?>
949 </td>
950 <td><code class="is-pulled-left p-2"> <?php echo "define( 'DB_COLLATE', 'utf8_general_ci' );"; ?></code></td>
951 </tr>
952 <tr>
953 <td><?php esc_html_e('WP Allow DB Repair', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#automatic-database-optimizing" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
954 <td>
955 <?php if (defined('WP_ALLOW_REPAIR') && WP_ALLOW_REPAIR) :
956 echo $enabled;
957 else :
958 echo $disabled;
959 endif; ?>
960 </td>
961 <td><code class="is-pulled-left p-2"> <?php echo "define( 'WP_ALLOW_REPAIR', true );"; ?></code></td>
962 </tr>
963 <tr>
964 <td><?php esc_html_e('WP Disallow Upgrade Global Tables', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#do_not_upgrade_global_tables" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
965 <td>
966 <?php if (defined('DO_NOT_UPGRADE_GLOBAL_TABLES') && true === DO_NOT_UPGRADE_GLOBAL_TABLES) :
967 echo $enabled;
968 else :
969 echo $disabled;
970 endif; ?>
971 </td>
972 <td><code class="is-pulled-left p-2"> <?php echo "define( 'DO_NOT_UPGRADE_GLOBAL_TABLES', true );"; ?></code></td>
973 </tr>
974 <tr>
975 <td><?php esc_html_e('WP Custom User Table', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#custom-user-and-usermeta-tables" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
976 <td>
977 <?php if (defined('CUSTOM_USER_TABLE') && CUSTOM_USER_TABLE) :
978 echo CUSTOM_USER_TABLE;
979 else :
980 echo $not_entered;
981 endif; ?>
982 </td>
983 <td><code class="is-pulled-left p-2"> <?php echo "define( 'CUSTOM_USER_TABLE', &dollar;table_prefix.'my_users' );"; ?></code></td>
984 </tr>
985 <tr>
986 <td><?php esc_html_e('WP Custom User Meta Table', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#custom-user-and-usermeta-tables" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
987 <td>
988 <?php if (defined('CUSTOM_USER_META_TABLE') && CUSTOM_USER_META_TABLE) :
989 echo CUSTOM_USER_META_TABLE;
990 else :
991 echo $not_entered;
992 endif; ?>
993 </td>
994 <td><code class="is-pulled-left p-2"> <?php echo "define( 'CUSTOM_USER_META_TABLE', &dollar;table_prefix.'my_usermeta' );"; ?></code></td>
995 </tr>
996 <tr>
997 <td><?php esc_html_e('WP Display Database Errors', 'adminify'); ?>:</td>
998 <td>
999 <?php if (defined('DIEONDBERROR') && true === DIEONDBERROR) :
1000 echo $enabled;
1001 else :
1002 echo $disabled;
1003 endif; ?>
1004 </td>
1005 <td><code class="is-pulled-left p-2"><?php echo "define( 'DIEONDBERROR', true );"; ?></code></td>
1006 </tr>
1007 <tr>
1008 <td><?php esc_html_e('WP Database Error Log File', 'adminify'); ?>:</td>
1009 <td>
1010 <?php if (defined('ERRORLOGFILE') && ERRORLOGFILE) :
1011 echo ERRORLOGFILE;
1012 else :
1013 echo $not_entered;
1014 endif; ?>
1015 </td>
1016 <td><code class="is-pulled-left p-2"><?php echo "define( 'ERRORLOGFILE', '/absolute-path-to-file/' );"; ?></code></td>
1017 </tr>
1018 <tr class="table-border-top">
1019 <td><?php esc_html_e('Table Prefix', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#table_prefix" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
1020 <td colspan="2"><?php echo $server_info->get_table_prefix()['tablePrefix']; ?></td>
1021 </tr>
1022 <tr>
1023 <td><?php esc_html_e('Table Base Prefix', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#table_prefix" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
1024 <td colspan="2"><?php echo $server_info->get_table_prefix()['tableBasePrefix'] . ' (' . esc_html__('defined', 'adminify') . ')'; ?></td>
1025 </tr>
1026 </tbody>
1027 </table>
1028
1029 <h2 class="mb-0 mt-6"><?php echo esc_html__('Security Keys', 'adminify'); ?></h2>
1030
1031 <p class="mb-4"><?php echo __('Use the following constants to set the security keys for your WordPress installation in the <code>wp-config.php</code> file. Learn more about <a href="https://wordpress.org/support/article/editing-wp-config-php/#security-keys" target="_blank" rel="noopener">here</a>', 'adminify'); ?>.</p>
1032
1033 <table class="wp-list-table widefat posts mt-5">
1034 <thead>
1035 <tr>
1036 <th class="manage-column"><?php echo esc_html__('Info', 'adminify'); ?></th>
1037 <th class="manage-column"><?php echo esc_html__('Result', 'adminify'); ?></th>
1038 <th class="manage-column"><?php echo esc_html__('Example', 'adminify'); ?></th>
1039 </tr>
1040 </thead>
1041 <tbody>
1042 <tr>
1043 <td><?php esc_html_e('WP Auth Key', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#security-keys" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
1044 <td>
1045 <?php if (empty(AUTH_KEY)) {
1046 echo $sec_key;
1047 } else {
1048 echo $entered;
1049 } ?>
1050 </td>
1051 <td><code class="is-pulled-left p-2"><?php echo "define( 'AUTH_KEY', 'MyKey' );"; ?></code></td>
1052 </tr>
1053 <tr>
1054 <td><?php esc_html_e('WP Secure Auth Key', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#security-keys" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
1055 <td>
1056 <?php if (empty(SECURE_AUTH_KEY)) {
1057 echo $sec_key;
1058 } else {
1059 echo $entered;
1060 } ?>
1061 </td>
1062 <td><code class="is-pulled-left p-2"><?php echo "define( 'SECURE_AUTH_KEY', 'MyKey' );"; ?></code></td>
1063 </tr>
1064 <tr>
1065 <td><?php esc_html_e('WP Logged In Key', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#security-keys" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
1066 <td>
1067 <?php if (empty(LOGGED_IN_KEY)) {
1068 echo $sec_key;
1069 } else {
1070 echo $entered;
1071 } ?>
1072 </td>
1073 <td><code class="is-pulled-left p-2"><?php echo "define( 'LOGGED_IN_KEY', 'MyKey' );"; ?></code></td>
1074 </tr>
1075 <tr>
1076 <td><?php esc_html_e('WP Nonce Key', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#security-keys" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
1077 <td>
1078 <?php if (empty(NONCE_KEY)) {
1079 echo $sec_key;
1080 } else {
1081 echo $entered;
1082 } ?>
1083 </td>
1084 <td><code class="is-pulled-left p-2"><?php echo "define( 'NONCE_KEY', 'MyKey' );"; ?></code></td>
1085 </tr>
1086 <tr>
1087 <td><?php esc_html_e('WP Auth Salt', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#security-keys" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
1088 <td>
1089 <?php if (empty(AUTH_SALT)) {
1090 echo $sec_key;
1091 } else {
1092 echo $entered;
1093 } ?>
1094 </td>
1095 <td><code class="is-pulled-left p-2"><?php echo "define( 'AUTH_SALT', 'MyKey' );"; ?></code></td>
1096 </tr>
1097 <tr>
1098 <td><?php esc_html_e('WP Secure Auth Salt', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#security-keys" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
1099 <td>
1100 <?php if (empty(SECURE_AUTH_SALT)) {
1101 echo $sec_key;
1102 } else {
1103 echo $entered;
1104 } ?>
1105 </td>
1106 <td><code class="is-pulled-left p-2"><?php echo "define( 'SECURE_AUTH_SALT', 'MyKey' );"; ?></code></td>
1107 </tr>
1108 <tr>
1109 <td><?php esc_html_e('WP Logged In Auth Salt', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#security-keys" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
1110 <td>
1111 <?php if (empty(LOGGED_IN_SALT)) {
1112 echo $sec_key;
1113 } else {
1114 echo $entered;
1115 } ?>
1116 </td>
1117 <td><code class="is-pulled-left p-2"><?php echo "define( 'LOGGED_IN_SALT', 'MyKey' );"; ?></code></td>
1118 </tr>
1119 <tr>
1120 <td><?php esc_html_e('WP Nonce Salt', 'adminify'); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#security-keys" target="_blank" rel="noopener"><?php echo $help; ?></a></td>
1121 <td>
1122 <?php if (empty(NONCE_SALT)) {
1123 echo $sec_key;
1124 } else {
1125 echo $entered;;
1126 } ?>
1127 </td>
1128 <td><code class="is-pulled-left p-2"><?php echo "define( 'NONCE_SALT', 'MyKey' );"; ?></code></td>
1129 </tr>
1130 </tbody>
1131 </table>
1132
1133 <?php }
1134 }
1135