-
Notifications
You must be signed in to change notification settings - Fork 0
/
html.php
87 lines (81 loc) · 1.73 KB
/
html.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?
function getmicrotime ()
{
list($usec, $sec) = explode(" ",microtime());
return ((double)$usec + (double)$sec);
}
function defstyle()
{
global $styles;
return $styles[1];
}
function getstyle()
{
global $styles, $users;
if ($users[style])
return $styles[$users[style]];
else return defstyle();
}
// Begins a full HTML page
function HTMLbeginfull ($title)
{
global $starttime;
$starttime = getmicrotime();
Header("Pragma: no-cache");
Header("Expires: Thu, 01 Jan 1970 00:00:00 GMT");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Promisance - <?=$title?></title>
<link rel="stylesheet" type="text/css" href="<?=getstyle()?>">
</head>
<body>
<table style="width:100%">
<tr><td style="width:144px;vertical-align:top"><?include("menus.php");?></td><td class="acenter" style="vertical-align:top"><?include("ad.php");?>
<?
}
// Ends a full HTML page
function HTMLendfull ()
{
global $starttime;
$endtime = getmicrotime() - $starttime;
echo "<!--$endtime-->\n<!--Mopra 1-->";
?>
</td></tr>
</table>
</body>
</html>
<?
}
// Begins a compact HTML page
function HTMLbegincompact ($title)
{
global $starttime;
$starttime = getmicrotime();
Header("Pragma: no-cache");
Header("Expires: Thu, 01 Jan 1970 00:00:00 GMT");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Promisance - <?=$title?></title>
<link rel="stylesheet" type="text/css" href="<?=getstyle()?>">
</head>
<body>
<div class="acenter">
<?
}
// Ends a compact HTML page
function HTMLendcompact ()
{
global $starttime;
$endtime = getmicrotime() - $starttime;
echo "<!--$endtime-->\n<!-- M344 2-->";
?>
</div>
</body>
</html>
<?
}
?>