-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathshow.php
More file actions
37 lines (28 loc) · 683 Bytes
/
show.php
File metadata and controls
37 lines (28 loc) · 683 Bytes
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
<?php
if (array_key_exists('target',$_GET)) {
$target = $_GET["target"];
} else {
$target = 'web';
}
if (array_key_exists('character',$_GET)) {
$charNum = $_GET["character"];
} else {
$charNum = 1000;
}
require_once('connect.php');
spl_autoload_register(function ($class) {
include 'classes/' . $class . '.class.php';
});
$parser = new parser();
$header = new header($target);
$sheet = new sheet($basic, $target);
echo $header->showCode();
if ($target == 'web') {
$navbar = $parser->buildOutput('navbar.php','printme.php');
echo $navbar;
echo $sheet->showCode();
} else {
echo $sheet->showPrint();
}
require_once('footer.php');
?>