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 |