try { $client = CoreUtils::elasticClient(); $client->ping(); ?> <pre><code><strong>Indices</strong><br><?php echo $client->cat()->indices(['v' => true]); ?> </code></pre> <pre><code><strong>Nodes</strong><br><?php echo $client->cat()->nodes(['v' => true]); ?> </code></pre> <?php } catch (\Elasticsearch\Common\Exceptions\NoNodesAvailableException $e) { echo "<pre><code><strong>Server is down.</strong></code></pre>"; } ?> </section> <? } ?> <section class="recent-posts"> <h2><span class="typcn typcn-bell"></span>Most recent posts</h2> <div><?php echo Posts::getMostRecentList(); ?> </div> </section> </div> <?php echo CoreUtils::exportVars(array('ROLES_ASSOC' => Permission::ROLES_ASSOC, 'PRINTABLE_ASCII_PATTERN' => PRINTABLE_ASCII_PATTERN));