-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
59 lines (53 loc) · 1.7 KB
/
index.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
<?php
include_once 'connect.php';
spl_autoload_register(function ($class) {
include 'classes/' . $class . '.class.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;
}
$parser = new parser();
$DB = new DB();
$basic_vampire = unserialize($DB->getVampire('1000'));
$header = new header($target);
echo $header;
?>
<body>
<h1>White Wolf character sheet generator</h1>
<p>I see the look in your eyes. The look that says, "I have a PDF of the character sheet. Heck, I have the famous fillable sheets from Mr. Gone! What do I need this site for?"</p>
<p> Heh. This is, as far as I know, the <strong>only</strong> character sheet generator that will actually count your freebie points and XP, and make sure your math is right.</p>
<p> So have at it. What do you have to lose, but a few minutes?</p>
<hr>
<div id="characterArea" class="characterContainer">
<div id="newCharacter" class="characterBox">
<div class="spacer"></div>
<p>New Vampire<br />
No Clan (yet)<br />
15 freebies<br />
15 XP</p>
</div>
<div class='holder'>
<?php
for ($i=0;$i<count($fiveChars);$i++) {
$data = unserialize($fiveChars[$i]['Data']);
$thisChar = $fiveChars[$i];
echo "<div id='load" . $thisChar['UID'] . "' class='loadBox " . $data['fluff']['clan'] . "'>" . "\n" .
"<p>" . $data['fluff']['character'] . "<br />" . "\n" .
$data['fluff']['clan'] . "<br />" . "\n" .
"15 freebies<br />" . "\n" .
"15 XP" . "</p>" . "\n" .
"</div>";
}
?>
</div>
</div>
<?php
require_once('footer.php');
?>