1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-31 20:02:03 +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:
Dag
2023-06-02 20:22:09 +02:00
committed by GitHub
parent c5cd229445
commit ee498eadf9
18 changed files with 121 additions and 158 deletions

View File

@@ -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