Compare commits

..

No commits in common. "d478f65ba012033751860932416ebb276bd748f6" and "0a04e747c4466d5f1e0ce8abe509eae960f1d1e4" have entirely different histories.

3 changed files with 5 additions and 6 deletions

View File

@ -591,5 +591,5 @@ $config['filters'][] = array(
'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">Matrix</a></span> &nbsp; <span><a href="ircs://irc.leftychan.net:6697/#leftychan">IRC Chat</a></span> &nbsp; <span><a href="mumble://leftychan.net">Mumble</a></span> &nbsp; <span><a href="https://t.me/+RegtyzzrE0M1NDMx">Telegram</a></span> &nbsp; <span><a href="https://discord.gg/AcZeFKXPmZ">Discord</a></span><br/><br/><span>We will be performing scheduled maintenance from 2-3am UTC, May 30th. The board will be read only during this time.</span>';
$config['global_message'] = '<span><a href="https://talk.leftychan.net/#/room/#welcome:matrix.leftychan.net" class="">Matrix</a></span> &nbsp; <span><a href="ircs://irc.leftychan.net:6697/#leftychan" class="">IRC Chat</a></span> &nbsp; <span><a href="mumble://leftychan.net" class="">Mumble</a></span> &nbsp; <span><a href="https://t.me/+RegtyzzrE0M1NDMx" class="">Telegram</a></span> &nbsp; <span><a href="https://discord.gg/AcZeFKXPmZ" class="">Discord</a></span>';
$config['debug'] = false;

View File

@ -6,8 +6,6 @@
defined('TINYBOARD') or exit;
require_once 'inc/mod/pages.php';
// create a hash/salt pair for validate logins
function mkhash($username, $password, $salt = false) {
global $config;

View File

@ -116,9 +116,9 @@
{% if config.captcha_tor_only %}
<script>
(() => {
function isHiddenService() {
function isOnionDomain() {
const hostname = window.location.hostname;
return hostname.endsWith('.onion') || hostname.endsWith('.i2p');
return hostname.endsWith('.onion');
}
function removeCaptchaField() {
@ -126,11 +126,12 @@
.forEach(e => e.parentNode.removeChild(e));
}
if (!isHiddenService()) {
if (!isOnionDomain()) {
removeCaptchaField();
}
})();
</script>
{% else %}
{% endif %}
{% endif %}
{% if config.user_flag %}