-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinn.php
More file actions
executable file
·70 lines (59 loc) · 1.95 KB
/
Copy pathinn.php
File metadata and controls
executable file
·70 lines (59 loc) · 1.95 KB
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
63
64
65
66
67
68
69
70
<?php
// addnews ready
// translator ready
// mail ready
require_once("common.php");
require_once("lib/commentary.php");
require_once("lib/pvpwarning.php");
require_once("lib/sanitize.php");
require_once("lib/pvplist.php");
require_once("lib/http.php");
require_once("lib/buffs.php");
require_once("lib/events.php");
require_once("lib/villagenav.php");
Translator::tlschema("inn");
Commentary::addcommentary();
$iname = Settings::getsetting("innname", LOCATION_INN);
$vname = Settings::getsetting("villagename", LOCATION_FIELDS);
$barkeep = Settings::getsetting('barkeep','`tCedrik');
$op = Http::httpget('op');
// Correctly reset the location if they fleeing the dragon
// This needs to be done up here because a special could alter your op.
if ($op == "fleedragon") {
$session['user']['location'] = $vname;
}
PageParts::page_header(array("%s",SanitizeClass::sanitize($iname)));
$skipinndesc = Events::handle_event("inn");
if (!$skipinndesc) {
GameDateTime::checkday();
OutputClass::rawoutput("<span style='color: #9900FF'>");
OutputClass::output_notl("`c`b");
OutputClass::output($iname);
OutputClass::output_notl("`b`c");
}
$subop = Http::httpget('subop');
$com = Http::httpget('comscroll');
$comment = Http::httppost('insertcommentary');
require_once("lib/partner.php");
$partner = Partner::get_partner();
OutputClass::addnav("Other");
VillageNavClass::villagenav();
OutputClass::addnav("I?Return to the Inn","inn.php");
switch ($op) {
case "": case "strolldown": case "fleedragon":
require("lib/inn/inn_default.php");
OutputClass::blocknav("inn.php");
break;
case "converse":
Commentary::commentdisplay("You stroll over to a table, place your foot up on the bench and listen in on the conversation:`n", "inn","Add to the conversation?",20);
break;
case "bartender":
require("lib/inn/inn_bartender.php");
break;
case "room":
require("lib/inn/inn_room.php");
break;
}
if (!$skipinndesc) OutputClass::rawoutput("</span>");
PageParts::page_footer();
?>