-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.php
62 lines (42 loc) · 1.24 KB
/
theme.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
/**
This is the Dumpit theme.
This theme just dumps the received content.
@package urlaube\dumpit
@version 0.1a2
@author Yahe <[email protected]>
@since 0.1a0
*/
// ===== DO NOT EDIT HERE =====
// prevent script from getting called directly
if (!defined("URLAUBE")) { die(""); }
class Dumpit extends BaseSingleton implements Theme {
public static function theme() {
print("METHOD: ");
var_dump(value(Main::class, METHOD));
print("PROTOCOL: ");
var_dump(value(Main::class, PROTOCOL));
print("HOSTNAME: ");
var_dump(value(Main::class, HOSTNAME));
print("PORT: ");
var_dump(value(Main::class, PORT));
print("URI: ");
var_dump(value(Main::class, URI));
print("ROOTURI: ");
var_dump(value(Main::class, ROOTURI));
print("HANDLER: ");
var_dump(Handlers::getActive());
print("METADATA: ");
var_dump(value(Main::class, METADATA));
print("PAGE: ");
var_dump(value(Main::class, PAGE));
print("PAGECOUNT: ");
var_dump(value(Main::class, PAGECOUNT));
print("CONTENT: ");
var_dump(value(Main::class, CONTENT));
// we handled this page
return true;
}
}
// register theme
Themes::register(Dumpit::class, "theme", Dumpit::class);