PluginProbe ʕ •ᴥ•ʔ
Loco Translate / 2.8.4
Loco Translate v2.8.4
2.8.5 2.8.4 2.5.8 2.6.0 2.6.1 2.6.10 2.6.11 2.6.12 2.6.13 2.6.14 2.6.2 2.6.3 2.6.4 2.6.5 2.6.6 2.6.7 2.6.8 2.6.9 2.7.0 2.7.1 2.7.2 2.7.3 2.8.0 2.8.1 2.8.2 2.8.3 trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 1.2 1.2.1 1.2.2 1.3 1.3.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.14 2.0.15 2.0.16 2.0.17 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2.0 2.2.1 2.2.2 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7
loco-translate / tpl / admin / config / debug.php
loco-translate / tpl / admin / config Last commit date
apis.php 1 month ago debug.php 2 years ago prefs.php 5 years ago settings.php 1 month ago version.php 1 month ago
debug.php
138 lines
1 <?php
2 /**
3 * System diagnostics
4 */
5 $this->extend('../layout');
6
7 /* @var Loco_mvc_ViewParams $versions */
8 /* @var Loco_mvc_ViewParams $encoding */
9 ?>
10
11 <div class="panel" id="loco-versions">
12 <h3>
13 Versions
14 <a href="#loco-versions" class="loco-anchor" aria-hidden="true"></a>
15 </h3>
16 <dl><?php
17 foreach( $versions as $key => $value ): if( $value ):?>
18 <dt>
19 <?php self::e($key)?>:
20 </dt>
21 <dd>
22 <code class="path" id="loco-vers-<?php self::e(strtolower(strtr($key,' ','-')))?>"><?php
23 $versions->e($key)?></code>
24 </dd><?php
25 endif; endforeach?>
26 </dl>
27 </div>
28
29 <div class="panel" id="loco-unicode">
30 <h3>
31 Unicode
32 <a href="#loco-unicode" class="loco-anchor" aria-hidden="true"></a>
33 </h3>
34 <dl>
35 <dt>UTF-8 rendering:</dt>
36 <dd><?php echo $encoding->OK?> <span id="loco-utf8-check"><?php echo $encoding->tick?></span></dd>
37
38 <dt>Multibyte support:</dt>
39 <dd><?php $encoding->e('mbstring')?></dd>
40
41 <dt>Site character set</dt>
42 <dd><?php $encoding->e('charset')?></dd>
43 </dl>
44 </div>
45
46 <div class="panel" id="loco-ajax">
47 <h3>
48 Ajax
49 <a href="#loco-ajax" class="loco-anchor" aria-hidden="true"></a>
50 </h3>
51 <dl>
52 <dt>Endpoint:</dt>
53 <dd><code id="loco-ajax-url" class="path">/wp-admin/admin-ajax.php</code></dd>
54
55 <dt>JSON decoding:</dt>
56 <dd><?php echo $encoding->json?></dd>
57
58 <dt class="jsonly">Ajax test result:</dt>
59 <dd class="jsonly" id="loco-ajax-check"><span class="inline-spinner"> </span></dd>
60 </dl>
61 </div>
62
63 <div class="panel" id="loco-apis">
64 <h3>
65 Translation APIs
66 <a href="#loco-apis" class="loco-anchor" aria-hidden="true"></a>
67 </h3>
68 <dl><?php
69 /* @var Loco_mvc_ViewParams[] $apis */
70 foreach( $apis as $api ):?>
71 <dt><?php $api->e('name')?>:</dt>
72 <dd class="jsonly" id="loco-api-<?php $api->e('id')?>"><span class="inline-spinner"> </span></dd><?php
73 endforeach?>
74 </dl>
75 </div>
76
77 <div class="panel" id="loco-sizes">
78 <h3>
79 Limits
80 <a href="#loco-sizes" class="loco-anchor" aria-hidden="true"></a>
81 </h3>
82 <dl><?php
83 /* @var Loco_mvc_ViewParams $memory */
84 foreach( $memory as $key => $value ):?>
85 <dt>
86 <?php echo $memory->escape($key)?>:
87 </dt>
88 <dd>
89 <?php $memory->e($key)?>
90 </dd><?php
91 endforeach?>
92 </dl>
93 </div>
94
95 <div class="panel" id="loco-files">
96 <h3>
97 Filesystem
98 <a href="#loco-files" class="loco-anchor" aria-hidden="true"></a>
99 </h3>
100 <dl>
101 <dt>File mods disallowed:</dt>
102 <dd><?php echo $fs->disabled?'Yes':'No'?></dd>
103
104 <dt>File mod safety level:</dt>
105 <dd><?php $fs->e('fs_protect')?></dd><?php
106
107 /* @var Loco_mvc_ViewParams[] $locations */
108 foreach( $locations as $label => $f ):?>
109 <dt><?php echo $f->escape($label)?>:</dt>
110 <dd><?php
111 $f->e('path');
112 if( $f->writable ): echo ''; else:?>
113 <span class="icon icon-warn" title="Not writable directly by PHP"></span><?php
114 endif?>
115 </dd><?php
116 endforeach?>
117 <dt>PHP open_basedir:</dt>
118 <dd><?php self::e(ini_get('open_basedir'))?></dd>
119 </dl>
120 </div>
121
122 <div class="panel" id="loco-debug">
123 <h3>
124 Debug settings
125 <a href="#loco-debug" class="loco-anchor" aria-hidden="true"></a>
126 </h3>
127 <dl><?php
128 foreach( $debug as $key => $value ):?>
129 <dt>
130 <?php echo $debug->escape($key)?>:
131 </dt>
132 <dd>
133 <?php $debug->e($key)?>
134 </dd><?php
135 endforeach?>
136 </dl>
137 </div>
138