-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathfaq.php
54 lines (42 loc) · 1.3 KB
/
faq.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
<?php
$currentFile = basename(__FILE__);
require("debugstatus.inc");
require("tools.inc");
require("header.inc");
require("tableofcontents.inc");
?>
<div class="main">
<div class="masterWidget" style="height:300px">
<h3>FAQ</h3><br>
<br>
<?php
// buffered output to have headings and content in order
$htBuffer = "";
function htt($z="") {
global $htBuffer;
$htBuffer .= htr($z);
}
// table of contents and content
$toc = new Toc();
htt($toc->add("WTF?"));
htt("oh yeahy");
htt();
htt($toc->add("Is namecoin cool?"));
htt("oh yeahy");
htt();
htt($toc->add("Is it bad that coins are lost with the name operations?"));
htt("Only a small amount is lost with each operation so there is room for plenty of names. Should it ever become a
problem we can still change the algorithm.");
htt();
// OUTPUT table of contents and content
$toc->ht_echo();
hte();
hte();
echo $htBuffer;
hte();
hte("Check out the " . anchor("http://dot-bit.org/FAQ", "dot-bit FAQ for now"));
hte();
?>
</div>
</div>
<?php require("footer.inc"); ?>