SimplePortal

Support => English Support => Topic started by: Divecall on September 06, 2013, 02:34:29 AM

Title: Book of Sinan ?
Post by: Divecall on September 06, 2013, 02:34:29 AM
Looking thru the code, i found in Subs-Portal.php (starting Line 690) the funktion called "BookOfSinan".

What exactly doing this function


Code: [Select]
function BookOfSinan()
{
global $context, $scripturl;

echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '>
<head>
<title>The Book of Sinan, ', @$_GET['verse'] == '3:17' ? '3:17' : '1:15', '</title>
<style type="text/css">
em
{
font-size: 1.3em;
line-height: 0;
}
</style>
<meta name="robots" content="noindex" />
</head>
<body style="background-color: #161F4E; color: #FFFFFF; font-style: italic; font-family: serif;">
<div style="margin-top: 12%; font-size: 1.1em; line-height: 1.4; text-align: center;">';
if (@$_GET['verse'] == '3:17')
echo '
...And suddenly the <em id="dream" name="Blue Dream">dream</em> was over. Whether this was an <em>end</em> or a new <em>start</em>, however, was a <em id="mystery" name="MysteriousGate">mystery</em> to all...
</div>';
else
echo '
...It all started with a noob. He united <em>simplicity</em> with <em>power</em>, and achieved the <em>ultimate power of simplicity</em>.<br />This power lead him to the domination of World of <em>Blocks</em>...
</div>';
echo '
<div style="margin-top: 2ex; font-size: 2em; text-align: right;">';
if (@$_GET['verse'] == '3:17')
echo '
from <span style="font-family: Georgia, serif;"><strong><a href="http://www.bluedream.info/aboutsinan.php" style="color: white; text-decoration: none; cursor: text;">The Book of Sinan</a></strong>, 3:17</span>';
else
echo '
from <span style="font-family: Georgia, serif;"><strong><a href="', $scripturl, '?about:sinan;verse=3:17" style="color: white; text-decoration: none; cursor: text;">The Book of Sinan</a></strong>, 1:15</span>';
echo '
</div>
</body>
</html>';

obExit(false);
}

Title: Re: Book of Sinan ?
Post by: phantomm on September 06, 2013, 11:22:15 AM
http://simpleportal.net/index.php?about:sinan  >:-D
Title: Re: Book of Sinan ?
Post by: spuds on September 08, 2013, 05:46:09 PM
Its commonly known as a Software Easter Egg ... there are similar "about" pages in SMF as well  ;)
Title: Re: Book of Sinan ?
Post by: Divecall on September 09, 2013, 06:25:20 PM
Ahh..ok.

Thank you for your answers.

@spuds: Do you have something for us (URL)?
Title: Re: Book of Sinan ?
Post by: Burke Knight on September 09, 2013, 07:44:27 PM
Indeed... I'd like to see some, too. :)
Title: Re: Book of Sinan ?
Post by: ccbtimewiz on September 24, 2013, 01:18:02 AM
It's an easter egg that was created similar to the one already in SMF itself

http://simpleportal.net/index.php?action=about:unknown
Title: Re: Book of Sinan ?
Post by: [SiNaN] on September 25, 2013, 10:56:54 AM
It's a little piece of code for myself among thousands of lines I coded for the community.
SimplePortal 2.3.8 © 2008-2024, SimplePortal