Compare commits
5 Commits
15044a0568
...
cbdb07f53c
Author | SHA1 | Date |
---|---|---|
towards-a-new-leftypol | cbdb07f53c | |
towards-a-new-leftypol | dadb7b2318 | |
towards-a-new-leftypol | b4dbeb9369 | |
towards-a-new-leftypol | 47637b6c2f | |
towards-a-new-leftypol | 2ca1b2d619 |
|
@ -591,5 +591,5 @@ $config['filters'][] = array(
|
||||||
'message' => 'New threads are being created too quickly. Wait [at most] 10 minutes'
|
'message' => 'New threads are being created too quickly. Wait [at most] 10 minutes'
|
||||||
);
|
);
|
||||||
|
|
||||||
$config['global_message'] = '<span><a href="https://talk.leftychan.net/#/room/#welcome:matrix.leftychan.net" class="">Matrix</a></span> <span><a href="ircs://irc.leftychan.net:6697/#leftychan" class="">IRC Chat</a></span> <span><a href="mumble://leftychan.net" class="">Mumble</a></span> <span><a href="https://t.me/+RegtyzzrE0M1NDMx" class="">Telegram</a></span> <span><a href="https://discord.gg/AcZeFKXPmZ" class="">Discord</a></span>';
|
$config['global_message'] = '<span><a href="https://talk.leftychan.net/#/room/#welcome:matrix.leftychan.net">Matrix</a></span> <span><a href="ircs://irc.leftychan.net:6697/#leftychan">IRC Chat</a></span> <span><a href="mumble://leftychan.net">Mumble</a></span> <span><a href="https://t.me/+RegtyzzrE0M1NDMx">Telegram</a></span> <span><a href="https://discord.gg/AcZeFKXPmZ">Discord</a></span>';
|
||||||
$config['debug'] = false;
|
$config['debug'] = false;
|
||||||
|
|
|
@ -6,6 +6,8 @@
|
||||||
|
|
||||||
defined('TINYBOARD') or exit;
|
defined('TINYBOARD') or exit;
|
||||||
|
|
||||||
|
require_once 'inc/mod/pages.php';
|
||||||
|
|
||||||
// create a hash/salt pair for validate logins
|
// create a hash/salt pair for validate logins
|
||||||
function mkhash($username, $password, $salt = false) {
|
function mkhash($username, $password, $salt = false) {
|
||||||
global $config;
|
global $config;
|
||||||
|
|
|
@ -116,9 +116,9 @@
|
||||||
{% if config.captcha_tor_only %}
|
{% if config.captcha_tor_only %}
|
||||||
<script>
|
<script>
|
||||||
(() => {
|
(() => {
|
||||||
function isOnionDomain() {
|
function isHiddenService() {
|
||||||
const hostname = window.location.hostname;
|
const hostname = window.location.hostname;
|
||||||
return hostname.endsWith('.onion');
|
return hostname.endsWith('.onion') || hostname.endsWith('.i2p');
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeCaptchaField() {
|
function removeCaptchaField() {
|
||||||
|
@ -126,12 +126,11 @@
|
||||||
.forEach(e => e.parentNode.removeChild(e));
|
.forEach(e => e.parentNode.removeChild(e));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isOnionDomain()) {
|
if (!isHiddenService()) {
|
||||||
removeCaptchaField();
|
removeCaptchaField();
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
{% else %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if config.user_flag %}
|
{% if config.user_flag %}
|
||||||
|
|
Loading…
Reference in New Issue