Statuspage - Source Excerpt 02
Summary
This source excerpt preserves a bounded section of Antichrist.net/wp-content/plugins/uaix-locale-router/src/Admin/StatusPage.php so readers can inspect the evidence without opening the full source file.
**Source path:** Antichrist.net/wp-content/plugins/uaix-locale-router/src/Admin/StatusPage.php
<?php echo wp_kses_post( Html::badge( $status['dictionary_dir_writable'] ? 'Writable' : 'Not writable', $status['dictionary_dir_writable'] ? 'success' : 'error' ) ); ?>
</div>
<div class="uaixlr-status-row">
<span>Validation table</span>
<?php echo wp_kses_post( Html::badge( $status['validation_table_exists'] ? 'Ready' : 'Missing', $status['validation_table_exists'] ? 'success' : 'warning' ) ); ?>
</div>
<div class="uaixlr-status-row">
<span>Dictionary manifest entries</span>
<code><?php echo esc_html( (string) $status['dictionary_manifest_count'] ); ?></code>
</div>
</div>
<p class="description uaixlr-path-line"><code><?php echo esc_html( $status['dictionary_dir'] ); ?></code></p>
<p class="description uaixlr-path-line"><code><?php echo esc_html( $status['validation_table_name'] ); ?></code></p>
</div>
</div>
<div class="uaixlr-card uaixlr-card-wide">
<h2>Theme and Plugin Link Review</h2>
<p>This scan reviews active UAIX theme and plugin sources for hardcoded links that either drop locale context or pin navigation to one specific language.</p>
<div class="uaixlr-status-list">
<div class="uaixlr-status-row">
<span>Review status</span>
<?php echo wp_kses_post( Html::badge( 'good' === $link_review['severity'] ? 'Clean' : 'Needs review', 'good' === $link_review['severity'] ? 'success' : 'warning' ) ); ?>
</div>
<div class="uaixlr-status-row">
<span>Files scanned</span>
<code><?php echo esc_html( (string) $link_review['files_scanned'] ); ?></code>
</div>
<div class="uaixlr-status-row">
<span>Bare internal links</span>
<code><?php echo esc_html( (string) $link_review['bare_internal_links'] ); ?></code>
</div>
<div class="uaixlr-status-row">
<span>Explicit locale links</span>
<code><?php echo esc_html( (string) $link_review['explicit_locale_links'] ); ?></code>
</div>
</div>
<div class="uaixlr-callout <?php echo esc_attr( 'good' === $link_review['severity'] ? 'uaixlr-callout-info' : 'uaixlr-callout-warning' ); ?>">
<p><strong><?php echo esc_html( $link_review['summary'] ); ?></strong></p>
<?php if ( ! empty( $link_review['issues'] ) ) : ?>
<ul class="uaixlr-guidance-list">
<?php foreach ( $link_review['issues'] as $issue ) : ?>
<li><?php echo esc_html( $issue ); ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<ul class="uaixlr-guidance-list">
<?php foreach ( $link_review['guidance'] as $guidance ) : ?>
<li><?php echo esc_html( $guidance ); ?></li>
<?php endforeach; ?>
</ul>
</div>
<?php if ( ! empty( $link_review['findings'] ) ) : ?>
<div class="uaixlr-status-note">
<p><strong>Sample findings</strong></p>
<ul class="uaixlr-findings-list">
<?php foreach ( $link_review['findings'] as $finding ) : ?>
<li class="uaixlr-finding">
<p><strong><?php echo esc_html( $finding['label'] ); ?></strong> <code><?php echo esc_html( $finding['path'] . ':' . (string) $finding['line'] ); ?></code></p>
<pre class="uaixlr-inline-code"><?php echo esc_html( $finding['snippet'] ); ?></pre>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
</div>
<div class="uaixlr-card uaixlr-card-wide">
<h2>Localized Homepage Check</h2>
<p>This loopback confirms that the locale-prefixed homepage URL is reaching WordPress after a bare-URL redirect instead of dying at the web server layer.</p>
<div class="uaixlr-status-list">
<div class="uaixlr-status-row">
<span>Check status</span>
<?php
echo wp_kses_post(
Html::badge(
'good' === $localized_check['severity'] ? 'Reachable' : ( 'critical' === $localized_check['severity'] ? 'Blocked' : 'Needs review' ),
'good' === $localized_check['severity'] ? 'success' : ( 'critical' === $localized_check['severity'] ? 'error' : 'warning' )
)
);
?>
</div>
<div class="uaixlr-status-row">
<span>Localized homepage URL</span>
<code><?php echo esc_html( $localized_check['localized_home_url'] ); ?></code>
</div>
<div class="uaixlr-status-row">
<span>Latest response</span>
<code>
<?php
if ( $localized_check['status_code'] > 0 ) {
echo esc_html( 'HTTP ' . (string) $localized_check['status_code'] );
} elseif ( ! empty( $localized_check['response_error'] ) ) {
echo esc_html( $localized_check['response_error'] );
} else {
echo esc_html( 'not recorded' );
}
?>
</code>
</div>
<div class="uaixlr-status-row">
<span>Rewrite handoff</span>
<?php echo wp_kses_post( Html::badge( ! empty( $localized_check['likely_server_rewrite_issue'] ) ? 'Likely blocked before WordPress' : 'No rewrite gap detected', ! empty( $localized_check['likely_server_rewrite_issue'] ) ? 'error' : 'success' ) ); ?>
</div>
</div>
<div class="uaixlr-callout <?php echo esc_attr( 'good' === $localized_check['severity'] ? 'uaixlr-callout-info' : ( 'critical' === $localized_check['severity'] ? 'uaixlr-callout-warning' : 'uaixlr-callout-info' ) ); ?>">
<p><strong><?php echo esc_html( $localized_check['summary'] ); ?></strong></p>
<?php if ( ! empty( $localized_check['issues'] ) ) : ?>
<ul class="uaixlr-guidance-list">
<?php foreach ( $localized_check['issues'] as $issue ) : ?>
<li><?php echo esc_html( $issue ); ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php if ( 'good' !== $localized_check['severity'] ) : ?>
<p><strong>What to do next</strong></p>
<ol class="uaixlr-guidance-list">
<?php foreach ( $localized_check['fix_steps'] as $step ) : ?>
<li><?php echo esc_html( $step ); ?></li>
<?php endforeach; ?>
</ol>
<div class="uaixlr-actions-row">
<?php if ( ! empty( $localized_check['likely_server_rewrite_issue'] ) && ! empty( $htaccess_status['auto_repair_available'] ) ) : ?>
<form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" class="uaixlr-inline-form">
<?php wp_nonce_field( 'uaixlr_repair_htaccess' ); ?>
<input type="hidden" name="action" value="uaixlr_repair_htaccess" />
<?php submit_button( 'Repair .htaccess', 'secondary', 'submit', false ); ?>
</form>
<?php endif; ?>
<a class="button" href="<?php echo esc_url( admin_url( 'site-health.php' ) ); ?>">Open Site Health</a>
<a class="button" href="<?php echo esc_url( admin_url( 'options-permalink.php' ) ); ?>">Open Permalink Settings</a>
</div>
<?php endif; ?>
</div>
<?php if ( ! empty( $localized_check['likely_server_rewrite_issue'] ) ) : ?>
<div class="uaixlr-status-note">
<p><strong>Where to put this</strong></p>
<p>Put this block in the site-root <code>.htaccess</code> file in the same folder as <code>wp-admin</code>, <code>wp-content</code>, and <code>index.php</code>.</p>
<p>WordPress theme and plugin ZIP uploads do not modify that site-root server file.</p>
<p>Do not paste it into <code>wp-content</code>, the plugin folder, or a subdirectory. If <code>.htaccess</code> is missing from cPanel File Manager, enable hidden files in <strong>Settings</strong> first. If the file still does not exist, create a new file named <code>.htaccess</code> in the site root. If cPanel says the file already exists when you try to create it, the file is already there but hidden, so turn on hidden files and edit the existing one.</p>
</div>
<div class="uaixlr-callout <?php echo esc_attr( ! empty( $htaccess_status['auto_repair_available'] ) ? 'uaixlr-callout-info' : 'uaixlr-callout-warning' ); ?>">
<?php if ( ! empty( $htaccess_status['auto_repair_available'] ) ) : ?>
<p><strong>Automatic repair is available.</strong> The button above refreshes the UAIX Locale Router and WordPress rewrite marker blocks in <code>.htaccess</code>.</p>
<?php else : ?>
<p><strong>Automatic repair is not available.</strong></p>
<?php if ( ! empty( $htaccess_status['manual_reason'] ) ) : ?>
<p><?php echo esc_html( $htaccess_status['manual_reason'] ); ?></p>
<?php endif; ?>
<p><strong>Exact manual rewrite snippet</strong></p>
<pre class="uaixlr-code-block"><?php echo esc_html( $localized_check['rewrite_block'] ); ?></pre>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
<div class="uaixlr-card uaixlr-card-wide">
<h2>Repair Tools</h2>
<p>Run a safe repair pass to refresh default options, upload directories, validation storage, rewrite rules, and runtime bootstrap.</p>