mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-31 13:50:23 +02:00
fix: move debug mode to config (#3324)
* fix: move debug mode to config * fix: also move debug_whitelist to .ini config * fix: move logic back to Debug class * docs * docs * fix: disable debug mode by default * fix: restore previous behavior for alerts * fix: center-align alert text
This commit is contained in:
@@ -17,11 +17,11 @@
|
||||
</a>
|
||||
</header>
|
||||
|
||||
<?php if ($system_message): ?>
|
||||
<div class="alert">
|
||||
<?= raw($system_message) ?>
|
||||
<?php foreach ($messages as $message): ?>
|
||||
<div class="alert-<?= raw($message['level'] ?? 'info') ?>">
|
||||
<?= raw($message['body']) ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?= raw($page) ?>
|
||||
</div>
|
||||
|
@@ -4,20 +4,6 @@
|
||||
document.addEventListener('DOMContentLoaded', rssbridge_list_search);
|
||||
</script>
|
||||
|
||||
<?php if (Debug::isEnabled()): ?>
|
||||
<?php if (!Debug::isSecure()): ?>
|
||||
<section class="critical-warning">
|
||||
Warning : Debug mode is active from any location,
|
||||
make sure only you can access RSS-Bridge.
|
||||
</section>
|
||||
<?php else: ?>
|
||||
<section class="warning">
|
||||
Warning : Debug mode is active from your IP address,
|
||||
your requests will bypass the cache.
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<section class="searchbar">
|
||||
<h3>Search</h3>
|
||||
<input
|
||||
|
Reference in New Issue
Block a user