From a7658fe3c2aed04966f6d891729e0a842561d68b Mon Sep 17 00:00:00 2001 From: Lorenzo Yario Date: Fri, 3 May 2024 15:54:09 -0700 Subject: [PATCH 1/2] allow tripcodes to be disabled --- inc/config.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/config.php b/inc/config.php index 2b271ee2..d75f0e48 100644 --- a/inc/config.php +++ b/inc/config.php @@ -628,6 +628,9 @@ // Example: Custom secure tripcode. // $config['custom_tripcode']['##securetrip'] = '!!somethingelse'; + //Disable tripcodes. This will make it so all new posts will act as if no tripcode exists. + $config['disable_tripcodes'] = false; + // Allow users to mark their image as a "spoiler" when posting. The thumbnail will be replaced with a // static spoiler image instead (see $config['spoiler_image']). $config['spoiler_images'] = false; From 82881fe512b98283f2af2e3b97860fd1b1932d95 Mon Sep 17 00:00:00 2001 From: Lorenzo Yario Date: Wed, 8 May 2024 18:34:35 -0700 Subject: [PATCH 2/2] disabling tripcodes --- post.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/post.php b/post.php index e3f0682d..aba6c6be 100644 --- a/post.php +++ b/post.php @@ -850,7 +850,12 @@ if (isset($_POST['delete'])) { $trip = generate_tripcode($post['name']); $post['name'] = $trip[0]; - $post['trip'] = isset($trip[1]) ? $trip[1] : ''; // XX: Dropped posts and tripcodes + if ($config['disable_tripcodes'] = true && !$mod) { + $post['trip'] = ''; + } + else { + $post['trip'] = isset($trip[1]) ? $trip[1] : ''; // XX: Dropped posts and tripcodes + } $noko = false; if (strtolower($post['email']) == 'noko') {