-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtemplate.php
More file actions
260 lines (214 loc) · 6.27 KB
/
Copy pathtemplate.php
File metadata and controls
260 lines (214 loc) · 6.27 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
<?php
function page_header($title)
{
echo <<<EOT
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- change this to the title you want to appear in browser title bar -->
<title>$title</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META HTTP-EQUIV="Reply-to" CONTENT="webmaster@suncoastlug.org">
<META NAME="Keywords" CONTENT="linux, suncoast, user group, lug">
<META NAME="Copyright" CONTENT="1997-2007 Suncoast Linux Users Group">
<META NAME="GENERATOR" CONTENT="Linux, Kate, PHP">
<META NAME="Author" CONTENT="Paul M. Foster">
<META NAME="Description" CONTENT="SLUG Home Page">
<meta name="description" content="Homepage of Suncoast Linux Users Group (SLUG)" />
<link rel="stylesheet" href="slug.css" type="text/css" />
</head>
<body>
<!-- the title that appears in the page header -->
<div id="wrap">
<div id="header">
<div id="logo">
<img src="slug.gif" alt="The Official SLUG Logo" />
</div>
<div id="title">
$title
</div>
</div>
<div id="sidebar">
<ul id="navlist">
<li><a href="./index.php">Home</a></li>
<li><a href="./history.php">History</a></li>
<li><a href="./join.php">Join Us</a></li>
<li><a href="./treasury.php">Treasury</a></li>
<li><a href="./meetings.php">Meetings</a></li>
<li><a href="./lists.php">Lists</a></li>
<li><a href="./officers.php">Officers</a></li>
<li><a href="./bylaws.php">Bylaws</a></li>
<li><a href="./faq.php">FAQ</a></li>
<li><a href="./links.php">Links</a></li>
<li><a href="./definitions.php">Definitions</a></li>
<li><a href="./opensource.php">Open Source</a></li>
<li><a href="./books.php">Books</a></li>
<li><a href="./sponsors.php">Sponsors</a></li>
<li><a href="./email.php">Email</a></li>
<li><a href="./proscons.php">Pros & Cons</a></li>
<li><a href="./jobs.php">Jobs</a></li>
<li><a href="./forsale.php">For Sale</a></li>
<li><a href="./helpers.php">Helpers</a></li>
</ul>
<ul id="navlist">
<li><a href="http://www.linux.org" target="_blank">Linux.org</a></li>
<li><a href="http://www.linux.com">Linux.com</a></li>
<li><a href="http://www.lwn.net">Linux World News</a></li>
<li><a href="http://www.slashdot.org">Slashdot</a></li>
<li><a href="http://www.freshmeat.net">Freshmeat</a></li>
<li><a href="http://www.kernel.org">Kernel.org</a></li>
</ul>
<ul id="navlist">
<li><a href="http://www.linuxjournal.com">Linux Journal</a></li>
<li><a href="http://www.linux-mag.com">Linux Magazine</a></li>
<li><a href="http://www.linuxgazette.net">Linux Gazette</a></li>
<li><a href="http://www.linux.com">Linux.com</a></li>
<li><a href="http://www.linxuformat.co.uk">Linux Format</a></li>
</ul>
<ul id="navlist">
<li><a href="http://www.cheapbytes.com">CheapBytes</a></li>
<li><a href="http://www.linuxcentral.com">Linux Central</a></li>
<li><a href="http://www.linuxcd.org">Linux CD</a></li>
<li><a href="http://www.osdisc.com">OS Disc</a></li>
</ul>
<ul id="navlist">
<li><a href="http://www.debian.org">Debian</a></li>
<li><a href="http://www.mandriva.com">Mandriva</a></li>
<li><a href="http://www.redhat.com">Red Hat</a></li>
<li><a href="http://www.slackware.org">Slackware</a></li>
<li><a href="http://www.novell.com/linux">SUSE Linux</a></li>
<li><a href="http://www.turbolinux.com">Turbo Linux</a></li>
<li><a href="http://www.knopper.net/knoppix/index-en.html">Knoppix</a></li>
<li><a href="http://www.mepis.org">Mepis</a></li>
<li><a href="http://www.ubuntu.com">Ubuntu</a></li>
<li><a href="http://www.distrowatch.com">DistroWatch</a></li>
</ul>
<!--end sidebar-->
</div>
<div id="container">
<!-- title was here -->
<!-- here is your page content -->
EOT;
}
function page_footer()
{
echo <<<EOT
<!-- end page content -->
<!-- end container -->
</div>
<div id="footer"> <br />
<a href="./snags.php">Problems or comments?</a><br>
Version 6.0 Last Updated 17 June 2010<br>
Copyright © 1997-2010 by Suncoast Linux Users Group (SLUG)<br>
Linux is a trademark of Linus Torvalds<br>
<!-- Open Source is a registered certification mark of the <a href="http://www.opensource.org">Open Source Initiative, Inc.</a><br> -->
CSS by <a href="http://www.dream-logic.com">dreamLogic</a><br>
</div>
<!-- end wrap-->
</div>
</body>
</html>
EOT;
}
function strempty($str)
{
if (strlen(trim($str)) == 0)
return true;
else
return false;
}
function bold($content)
{
return "<b>$content</b>";
}
function red($content)
{
return "<font color=\"red\">$content</font>\n";
}
function row_start()
{
print "<tr>\n";
}
function row_end()
{
print "</tr>\n";
}
function table_start($border = false, $rules = false)
{
print "<table cellpadding=\"5\" cellspacing=\"5\"";
if ($border)
print " border=\"1\"";
if ($rules)
print " rules=\"all\"";
print ">\n";
}
function table_end()
{
print "</table>\n";
}
function form_start($action, $method)
{
print "<form action=\"$action\" method=\"$method\">\n";
}
function form_end()
{
print "</form>\n";
}
function cell($span, $content)
{
if ($span == 1)
print "<td>$content</td>\n";
else
print "<td colspan=\"$span\">$content</td>\n";
}
function rev_cell($span, $text)
{
if ($span == 1)
print "<td style=\"background-color: black; color: white;\">\n";
else
print "<td colspan=\"$span\" style=\"background-color: black; color: white;\">\n";
print "<b>$text</b>";
print "</td>\n";
}
function blank_cells($number)
{
for ($i = 0; $i < $number; $i++)
cell(1, ' ');
}
function rcell($span, $content)
{
if ($span == 1)
print "<td align=\"right\">$content</td>\n";
else
print "<td align=\"right\" colspan=\"$span\">$content</td>\n";
}
function lcell($span, $content)
{
if ($span == 1)
print "<td align=\"left\">$content</td>\n";
else
print "<td align=\"left\" colspan=\"$span\">$content</td>\n";
}
function ccell($span, $content)
{
if ($span == 1)
print "<td align=\"center\">$content</td>\n";
else
print "<td align=\"center\" colspan=\"$span\">$content</td>\n";
}
function table_head($content)
{
print "<th>$content</th>\n";
}
// from Ralph Harmon at Olesen Logistics
function randpass()
{
$max_chars = 5;
$rand_pass = "";
for ($i = 0; $i < $max_chars; $i++) {
mt_srand((double) microtime() * 1000000);
$rand_pass = $rand_pass . chr(mt_rand(50,57));
}
return($rand_pass);
}
?>