Skip to content

Commit 3525b6d

Browse files
Nothing to see here
1 parent 71088b6 commit 3525b6d

File tree

3 files changed

+95
-64
lines changed

3 files changed

+95
-64
lines changed

Sources/Actions/Like.php

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -803,69 +803,6 @@ protected function sendJsonReponse(): void
803803

804804
die;
805805
}
806-
807-
/***************************
808-
* Mysterious static methods
809-
***************************/
810-
811-
/**
812-
* What's this? I dunno, what are you talking about? Never seen this before, nope. No sir.
813-
*/
814-
public static function BookOfUnknown(): void
815-
{
816-
echo '<!DOCTYPE html>
817-
<html', Utils::$context['right_to_left'] ? ' dir="rtl"' : '', '>
818-
<head>
819-
<title>The Book of Unknown, ', @$_GET['verse'] == '2:18' ? '2:18' : '4:16', '</title>
820-
<style>
821-
em
822-
{
823-
font-size: 1.3em;
824-
line-height: 0;
825-
}
826-
</style>
827-
</head>
828-
<body style="background-color: #444455; color: white; font-style: italic; font-family: serif;">
829-
<div style="margin-top: 12%; font-size: 1.1em; line-height: 1.4; text-align: center;">';
830-
831-
if (!isset($_GET['verse']) || ($_GET['verse'] != '2:18' && $_GET['verse'] != '22:1-2')) {
832-
$_GET['verse'] = '4:16';
833-
}
834-
835-
if ($_GET['verse'] == '2:18') {
836-
echo '
837-
Woe, it was that his name wasn\'t <em>known</em>, that he came in mystery, and was recognized by none.&nbsp;And it became to be in those days <em>something</em>.&nbsp; Something not yet <em id="unknown" name="[Unknown]">unknown</em> to mankind.&nbsp; And thus what was to be known the <em>secret project</em> began into its existence.&nbsp; Henceforth the opposition was only <em>weary</em> and <em>fearful</em>, for now their match was at arms against them.';
838-
} elseif ($_GET['verse'] == '4:16') {
839-
echo '
840-
And it came to pass that the <em>unbelievers</em> dwindled in number and saw rise of many <em>proselytizers</em>, and the opposition found fear in the face of the <em>x</em> and the <em>j</em> while those who stood with the <em>something</em> grew stronger and came together.&nbsp; Still, this was only the <em>beginning</em>, and what lay in the future was <em id="unknown" name="[Unknown]">unknown</em> to all, even those on the right side.';
841-
} elseif ($_GET['verse'] == '22:1-2') {
842-
echo '
843-
<p>Now <em>behold</em>, that which was once the secret project was <em id="unknown" name="[Unknown]">unknown</em> no longer.&nbsp; Alas, it needed more than <em>only one</em>, but yet even thought otherwise.&nbsp; It became that the opposition <em>rumored</em> and lied, but still to no avail.&nbsp; Their match, though not <em>perfect</em>, had them outdone.</p>
844-
<p style="margin: 2ex 1ex 0 1ex; font-size: 1.05em; line-height: 1.5; text-align: center;">Let it continue.&nbsp; <em>The end</em>.</p>';
845-
}
846-
847-
echo '
848-
</div>
849-
<div style="margin-top: 2ex; font-size: 2em; text-align: right;">';
850-
851-
if ($_GET['verse'] == '2:18') {
852-
echo '
853-
from <span style="font-family: Georgia, serif;"><strong><a href="', Config::$scripturl, '?action=about:unknown;verse=4:16" style="color: white; text-decoration: none; cursor: text;">The Book of Unknown</a></strong>, 2:18</span>';
854-
} elseif ($_GET['verse'] == '4:16') {
855-
echo '
856-
from <span style="font-family: Georgia, serif;"><strong><a href="', Config::$scripturl, '?action=about:unknown;verse=22:1-2" style="color: white; text-decoration: none; cursor: text;">The Book of Unknown</a></strong>, 4:16</span>';
857-
} elseif ($_GET['verse'] == '22:1-2') {
858-
echo '
859-
from <span style="font-family: Georgia, serif;"><strong>The Book of Unknown</strong>, 22:1-2</span>';
860-
}
861-
862-
echo '
863-
</div>
864-
</body>
865-
</html>';
866-
867-
Utils::obExit(false);
868-
}
869806
}
870807

871808
?>

Sources/Actions/Unknown.php

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<?php
2+
3+
/**
4+
* Simple Machines Forum (SMF)
5+
*
6+
* @package SMF
7+
* @author Simple Machines https://www.simplemachines.org
8+
* @copyright 2025 Simple Machines and individual contributors
9+
* @license https://www.simplemachines.org/about/smf/license.php BSD
10+
*
11+
* @version 3.0 Alpha 2
12+
*/
13+
14+
declare(strict_types=1);
15+
16+
namespace SMF\Actions;
17+
18+
use SMF\ActionInterface;
19+
use SMF\ActionTrait;
20+
use SMF\Config;
21+
use SMF\Utils;
22+
23+
/**
24+
* Class Unknown
25+
*/
26+
class Unknown implements ActionInterface
27+
{
28+
use ActionTrait;
29+
30+
/********************
31+
* Mysterious methods
32+
********************/
33+
34+
/**
35+
* What's this? I dunno, what are you talking about? Never seen this before, nope. No sir.
36+
*/
37+
public function execute(): void
38+
{
39+
echo '<!DOCTYPE html>
40+
<html', Utils::$context['right_to_left'] ? ' dir="rtl"' : '', '>
41+
<head>
42+
<title>The Book of Unknown, ', @$_GET['verse'] == '2:18' ? '2:18' : '4:16', '</title>
43+
<style>
44+
em
45+
{
46+
font-size: 1.3em;
47+
line-height: 0;
48+
}
49+
</style>
50+
</head>
51+
<body style="background-color: #444455; color: white; font-style: italic; font-family: serif;">
52+
<div style="margin-top: 12%; font-size: 1.1em; line-height: 1.4; text-align: center;">';
53+
54+
if (!isset($_GET['verse']) || ($_GET['verse'] != '2:18' && $_GET['verse'] != '22:1-2')) {
55+
$_GET['verse'] = '4:16';
56+
}
57+
58+
if ($_GET['verse'] == '2:18') {
59+
echo '
60+
Woe, it was that his name wasn\'t <em>known</em>, that he came in mystery, and was recognized by none.&nbsp;And it became to be in those days <em>something</em>.&nbsp; Something not yet <em id="unknown" name="[Unknown]">unknown</em> to mankind.&nbsp; And thus what was to be known the <em>secret project</em> began into its existence.&nbsp; Henceforth the opposition was only <em>weary</em> and <em>fearful</em>, for now their match was at arms against them.';
61+
} elseif ($_GET['verse'] == '4:16') {
62+
echo '
63+
And it came to pass that the <em>unbelievers</em> dwindled in number and saw rise of many <em>proselytizers</em>, and the opposition found fear in the face of the <em>x</em> and the <em>j</em> while those who stood with the <em>something</em> grew stronger and came together.&nbsp; Still, this was only the <em>beginning</em>, and what lay in the future was <em id="unknown" name="[Unknown]">unknown</em> to all, even those on the right side.';
64+
} elseif ($_GET['verse'] == '22:1-2') {
65+
echo '
66+
<p>Now <em>behold</em>, that which was once the secret project was <em id="unknown" name="[Unknown]">unknown</em> no longer.&nbsp; Alas, it needed more than <em>only one</em>, but yet even thought otherwise.&nbsp; It became that the opposition <em>rumored</em> and lied, but still to no avail.&nbsp; Their match, though not <em>perfect</em>, had them outdone.</p>
67+
<p style="margin: 2ex 1ex 0 1ex; font-size: 1.05em; line-height: 1.5; text-align: center;">Let it continue.&nbsp; <em>The end</em>.</p>';
68+
}
69+
70+
echo '
71+
</div>
72+
<div style="margin-top: 2ex; font-size: 2em; text-align: right;">';
73+
74+
if ($_GET['verse'] == '2:18') {
75+
echo '
76+
from <span style="font-family: Georgia, serif;"><strong><a href="', Config::$scripturl, '?action=about:unknown;verse=4:16" style="color: white; text-decoration: none; cursor: text;">The Book of Unknown</a></strong>, 2:18</span>';
77+
} elseif ($_GET['verse'] == '4:16') {
78+
echo '
79+
from <span style="font-family: Georgia, serif;"><strong><a href="', Config::$scripturl, '?action=about:unknown;verse=22:1-2" style="color: white; text-decoration: none; cursor: text;">The Book of Unknown</a></strong>, 4:16</span>';
80+
} elseif ($_GET['verse'] == '22:1-2') {
81+
echo '
82+
from <span style="font-family: Georgia, serif;"><strong>The Book of Unknown</strong>, 22:1-2</span>';
83+
}
84+
85+
echo '
86+
</div>
87+
</body>
88+
</html>';
89+
90+
Utils::obExit(false);
91+
}
92+
}
93+
94+
?>

Sources/Forum.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ class Forum
277277
'', Actions\TrackIP::class,
278278
],
279279
'about:unknown' => [
280-
'', [Actions\Like::class, 'BookOfUnknown'],
280+
'', Actions\Unknown::class,
281281
],
282282
'unread' => [
283283
'', Actions\Unread::class,

0 commit comments

Comments
 (0)