-
Notifications
You must be signed in to change notification settings - Fork 1
/
43.php
62 lines (56 loc) · 1.9 KB
/
43.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
$whereat = 'home';
// confirm the session...
require_once 'commons/dbconnect.php';
require_once 'commons/sessions.php';
require_once 'commons/rpgfunctions.php';
require_once 'commons/grammar.php';
require_once 'commons/formatting.php';
require_once 'commons/inventory.php';
require_once 'commons/love.php';
require_once 'commons/messages.php';
require_once 'commons/questlib.php';
if($now_month != 10 || $now_day != 11 || $now_year != 2010)
{
header('Location: /');
exit();
}
$quest = get_quest_value($user['idnum'], 'fourty-two');
if($quest === false)
{
add_inventory($user['user'], '', 'Life, the Universe and Everything', '', 'home');
add_quest_value($user['idnum'], 'fourty-two', 1);
$dialog = '
<p>"Today\'s the day, don\'t you think? 10/11/10? Why, that\'s 42 in binary!</p>
<p>"Wait, that\'s not right... 101110 would come out to...</p>
<p>"What if you do the year last? 10/10/11?</p>
<p>"No, wait... hm...</p>
<p>"Well, never mind all that! Here, look, just take this! You never can be too prepared..."</p>
<p><i>(You received Life, the Universe, and Everything! Find it in your common room.)</i></p>
<p>"Now, if you\'ll excuse me, there\'s somewhere I have to be!"</p>
';
}
else
{
$dialog = '
<p>"Today\'s the day, don\'t you think? 10--</p>
<p>"Hold on a tic... you look kind of...</p>
<p>"Right! Never mind all that! Terribly sorry! I\'ll just be on my way!"</p>
';
}
require 'commons/html.php';
?>
<head>
<title><?= $SETTINGS['site_name'] ?> > A Really Hoopy Frood</title>
<?php include 'commons/head.php'; ?>
</head>
<body>
<?php include 'commons/header_2.php'; ?>
<?= ($check_message ? "<p style=\"color:blue;\">$check_message</p>" : "") ?>
<h4>A Really Hoopy Frood</h4>
<p><i>A strange man is outside your door...</i></p>
<?= $dialog ?>
<p><i>Having said all that, he leaves.</i></p>
<?php include 'commons/footer_2.php'; ?>
</body>
</html>