16 |
$otd_render = 'otd_html1_renderpage'; |
$otd_render = 'otd_html1_renderpage'; |
17 |
|
|
18 |
//------------------------------------------------------------------------------ |
//------------------------------------------------------------------------------ |
19 |
|
//- Configuration: |
20 |
|
|
21 |
//common_benchmark_addstep('otd_html1: ...'); |
//- Colour sceme: |
22 |
|
|
23 |
|
$otd_html1['colours'] = array( |
24 |
|
|
25 |
|
'bg' => 'white', |
26 |
|
'text' => 'black', |
27 |
|
|
28 |
|
'text2' => '#107080', |
29 |
|
|
30 |
|
// Link colours: |
31 |
|
'a' => '#506040', |
32 |
|
'a:hover' => '#5060a0', |
33 |
|
// 'a:visited' => '#506040', |
34 |
|
|
35 |
|
// Content colours: |
36 |
|
'bg11' => '#40d8c0', |
37 |
|
'bg12' => '#40e8e0', |
38 |
|
'border1' => '#20a0b0', |
39 |
|
|
40 |
|
// Page frame colours: |
41 |
|
'bg21' => '#a0c090', |
42 |
|
'bg22' => '#40c8b0', |
43 |
|
'border2' => '#40a080', |
44 |
|
|
45 |
|
); |
46 |
|
|
47 |
//------------------------------------------------------------------------------ |
//------------------------------------------------------------------------------ |
48 |
|
|
174 |
|
|
175 |
for($i = 0; $i < count($list); $i++) { |
for($i = 0; $i < count($list); $i++) { |
176 |
|
|
177 |
/* |
$imgtag = otd_html1_get_imgtag('icons/flags/' . $list[$i][3] . '.gif', $list[$i][4], 15, 20); |
|
$imgtag = '<img alt="' . $list[$i][4] . '" border="0" height="12" src="' . $common['site']['gfxurl'] . 'icons/flags/' . $list[$i][3] . '.gif" width="17" />'; |
|
|
*/ |
|
|
$imgtag = otd_html1_get_imgtag('icons/flags/' . $list[$i][3] . '.gif', $list[$i][4], 12, 17); |
|
178 |
|
|
179 |
$titledata .= ($i ? ' |
$titledata .= ($i ? ' |
180 |
' : '') . (($language_id == $list[$i][3]) ? $imgtag : '<a href="?li=' . $list[$i][3] . '" title="' . $list[$i][4] . '">' . $imgtag . '</a>'); |
' : '') . (($language_id == $list[$i][3]) ? $imgtag : '<a href="?li=' . $list[$i][3] . '" title="' . $list[$i][4] . '">' . $imgtag . '</a>'); |
250 |
global $common_sessiondata; |
global $common_sessiondata; |
251 |
|
|
252 |
$boxheight = 48; |
$boxheight = 48; |
253 |
$boxwidth = 280; |
$boxwidth = 240; |
254 |
|
|
255 |
if($common_sessiondata['user_auth']['authorised']) { |
if($common_sessiondata['user_auth']['authorised']) { |
256 |
|
|
257 |
echo '<table cellspacing="0" cellpadding="2" class="f22" width="' . $boxwidth . '"> |
echo '<table cellspacing="0" cellpadding="2" class="f22" width="' . $boxwidth . '"> |
258 |
<tr> |
<tr> |
259 |
<th class="box2" height="' . $boxheight . '" width="44"><b>User<br />login</b></th> |
<th class="box2" height="' . $boxheight . '" width="40"><b>User<br />login</b></th> |
260 |
<td align="center" valign="top" style="padding:4px;"> |
<td align="center" valign="top" style="padding:4px;"> |
261 |
<small> |
<small> |
262 |
You are logged in the ' . $common_sessiondata['user_auth']['logincount'] . '. time as <b>' . $common_sessiondata['user_auth']['name'] . '</b>. Login time was <b>' . date('H:i:s, d.m.Y', $common_sessiondata['user_auth']['logintime']) . '</b>.<br/ > |
You are logged in the ' . $common_sessiondata['user_auth']['logincount'] . '. time as <b>' . $common_sessiondata['user_auth']['name'] . '</b>. Login time was <b>' . date('H:i:s, d.m.Y', $common_sessiondata['user_auth']['logintime']) . '</b>.<br/ > |
268 |
|
|
269 |
} else { |
} else { |
270 |
|
|
271 |
echo '<form action="" method="post" style="margin:0;"> |
echo '<form action="' . $_SERVER['REQUEST_URI'] . '" method="post" style="margin:0;"> |
272 |
<table cellspacing="0" cellpadding="0" class="f22" width="' . $boxwidth . '"> |
<table cellspacing="0" cellpadding="0" class="f22" width="' . $boxwidth . '"> |
273 |
<tr> |
<tr> |
274 |
<th class="box2" height="' . $boxheight . '" rowspan="2" width="44"><b>User<br />login</b></th> |
<th class="box2" height="' . $boxheight . '" rowspan="2" width="40"><b>User<br />login</b></th> |
275 |
<td align="right">User name:</td> |
<td align="right">User name:</td> |
276 |
<td rowspan="2"> </td> |
<td rowspan="2"> </td> |
277 |
<td><input name="un" size="10" type="text" tabindex="1" /></td> |
<td><input name="un" size="8" type="text" tabindex="1" /></td> |
278 |
<th class="box2" rowspan="2"><input type="submit" value="OK" tabindex="3" /></th> |
<th class="box2" rowspan="2"><input type="submit" value="OK" tabindex="3" /></th> |
279 |
</tr> |
</tr> |
280 |
<tr> |
<tr> |
281 |
<td align="right">Password:</td><td><input name="pw" size="10" type="password" tabindex="2" /></td> |
<td align="right">Password:</td><td><input name="pw" size="8" type="password" tabindex="2" /></td> |
282 |
</tr> |
</tr> |
283 |
</table> |
</table> |
284 |
</form> |
</form> |
356 |
|
|
357 |
global $common; |
global $common; |
358 |
|
|
359 |
|
$contentheight = 240; // Minimum height of content and navigation. |
360 |
|
|
361 |
$endmtimesegs = explode(' ', microtime()); |
$endmtimesegs = explode(' ', microtime()); |
362 |
$startmtimesegs = explode(' ', $common['benchmark'][0][1]); |
$startmtimesegs = explode(' ', $common['benchmark'][0][1]); |
363 |
$timediff = (float)($endmtimesegs[1] - $startmtimesegs[1]); |
$timediff = (float)($endmtimesegs[1] - $startmtimesegs[1]); |
365 |
|
|
366 |
echo '</td> |
echo '</td> |
367 |
<td class="bg11" style="padding:0;"> |
<td class="bg11" style="padding:0;"> |
368 |
' . otd_html1_get_imgtag('blank.gif', '', 1, 8) . ' |
' . otd_html1_get_imgtag('blank.gif', '', $contentheight, 8) . ' |
369 |
</td> |
</td> |
370 |
</tr> |
</tr> |
371 |
<tr class="bg11"> |
<tr class="bg11"> |
387 |
|
|
388 |
function otd_html1_pagehead() { |
function otd_html1_pagehead() { |
389 |
|
|
390 |
|
global $otd_html1; |
391 |
|
|
392 |
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
393 |
|
|
394 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
396 |
<head> |
<head> |
397 |
<title>www.netfrag.org</title> |
<title>www.netfrag.org</title> |
398 |
<style type="text/css"><!-- |
<style type="text/css"><!-- |
399 |
body { margin:0; } |
a { color:' . $otd_html1['colours']['a'] . '; font-weight:bold; text-decoration:none; } |
400 |
body, input, table { font: 10pt verdana, serif; } |
a:hover { color:' . $otd_html1['colours']['a:hover'] . '; } |
401 |
|
body { background-color:' . $otd_html1['colours']['bg'] . '; color:' . $otd_html1['colours']['text'] . '; margin:0; } |
402 |
|
body, input, table { font: 8pt verdana, serif; } |
403 |
input { border:1px; } |
input { border:1px; } |
404 |
.bg11, .f11, .hl11 { background-color:#40d8c0; } |
.bg11, .f11, .hl11 { background-color:' . $otd_html1['colours']['bg11'] . '; } |
405 |
.bg12, .box1, .f12, .hl12 { background-color:#40e8e0; } |
.bg12, .box1, .f12, .hl12 { background-color:' . $otd_html1['colours']['bg12'] . '; } |
406 |
.bg13 { background-color:#20a0c0; } |
.bg21, .box2, .f21, .hl21 { background-color:' . $otd_html1['colours']['bg21'] . '; } |
407 |
.bg21, .box2, .f21, .hl21 { background-color:#a0c090; } |
.bg22, .f22, .hl22 { background-color:' . $otd_html1['colours']['bg22'] . '; } |
408 |
.bg22, .f22 { background-color:#40c8b0; } |
.box1, .f11, .f12 { border:1px solid ' . $otd_html1['colours']['border1'] . '; } |
409 |
.bg23 { background-color:#40c080; } |
.box2, .f21, .f22 { border:1px solid ' . $otd_html1['colours']['border2'] . '; } |
410 |
.box1, .f11, .f12 { border:1px solid #20a0b0; } |
.box1, .box2, .hl11, .hl12, .hl21, .hl22 { padding:4px; } |
411 |
.box2, .f21, .f22 { border:1px solid #40a080; } |
.c2 { color:' . $otd_html1['colours']['text2'] . '; } |
|
.box1, .box2, .hl11, .hl12, .hl21 { padding:4px; } |
|
412 |
--></style> |
--></style> |
413 |
</head> |
</head> |
414 |
|
|
419 |
|
|
420 |
function otd_html1_pageheader() { |
function otd_html1_pageheader() { |
421 |
|
|
422 |
global $common_sessiondata; |
global $common_sessiondata, $otd_html1, $request_contentkey; |
423 |
|
|
424 |
$leftbarwidth = 150; // Inner width (w/o padding) of left bar. |
$leftbarwidth = 144; // Inner width (w/o padding) of left bar. |
425 |
|
|
426 |
$benchlist = $common_sessiondata['user_prefs']['benchlist']; |
$benchlist = $common_sessiondata['user_prefs']['benchlist']; |
427 |
$debug = $common_sessiondata['user_prefs']['debug']; |
$debug = $common_sessiondata['user_prefs']['debug']; |
428 |
|
|
429 |
echo '<table cellspacing="0" cellpadding="8" style="border-bottom:2px solid #40a080; width:100%;"> |
$urlprefix = $_SERVER['PATH_INFO'] . '?ck=' . $request_contentkey . '&'; |
430 |
|
|
431 |
|
echo '<table cellspacing="0" cellpadding="8" style="border-bottom:2px solid ' . $otd_html1['colours']['border2'] . '; border-top:2px solid ' . $otd_html1['colours']['border2'] . '; width:100%;"> |
432 |
<tr> |
<tr> |
433 |
<td class="bg11" colspan="3"> |
<td class="bg11" colspan="3"> |
434 |
<table cellspacing="0" cellpadding="0" style="width:100%"> |
<table cellspacing="0" cellpadding="0" style="width:100%"> |
435 |
<tr class="bg11"> |
<tr class="bg11"> |
436 |
<th width="100%"> |
<th width="100%"> |
437 |
<span style="border-bottom:2px solid black; font-size:24pt; letter-spacing:-2pt; padding-bottom:3px;"> |
<span style="border-bottom:2px solid black; font-size:24pt; letter-spacing:-2pt; padding-bottom:3px;"> |
438 |
www.<font color="#107080">n</font>et<font color="#107080">f</font>rag.<font color="#107080">o</font>rg</span> |
www.<span class="c2">n</span>et<span class="c2">f</span>rag.<span class="c2">o</span>rg</span> |
439 |
<p style="margin-top:4px;"> |
<p style="margin-top:6px;"> |
440 |
<small>NetFrag and friends</small> |
<small>NetFrag and friends</small> |
441 |
</p> |
</p> |
442 |
</th> |
</th> |
443 |
<td> </td> |
<td> |
444 |
|
' . otd_html1_get_imgtag('blank.gif', '', 1, 8) . ' |
445 |
|
</td> |
446 |
<td> |
<td> |
447 |
'; |
'; |
448 |
|
|
454 |
</td> |
</td> |
455 |
</tr> |
</tr> |
456 |
<tr> |
<tr> |
457 |
<td class="bg11" style="border-top:2px solid #40a080;" valign="top"> |
<td class="bg11" style="border-top:2px solid ' . $otd_html1['colours']['border1'] . ';" valign="top"> |
|
<p> |
|
458 |
<div class="box2" style="margin-bottom:8px;"><big>Navigation:</big></div> |
<div class="box2" style="margin-bottom:8px;"><big>Navigation:</big></div> |
459 |
|
<div style="margin-bottom:32px;"> |
460 |
• <a href="">Home page</a><br /> |
• <a href="">Home page</a><br /> |
461 |
' . otd_html1_get_imgtag('blank.gif', '', 1, $leftbarwidth) . ' |
' . otd_html1_get_imgtag('blank.gif', '', 1, $leftbarwidth) . ' |
462 |
</p> |
</div> |
|
<p> |
|
463 |
<div class="box2" style="margin-bottom:8px;"><big>Tools:</big></div> |
<div class="box2" style="margin-bottom:8px;"><big>Tools:</big></div> |
464 |
• Benchmark list: [' . ($benchlist ? '<a href="?benchlist=0">off</a>' : '<a href="?benchlist=1">on</a>') . ']<br /> |
• Benchmark list: [<a href="' . $urlprefix . 'benchlist=' . ($benchlist ? '0">off' : '1">on') . '</a>]<br /> |
465 |
• Debug outputs: [' . ($debug ? '<a href="?debug=0">off</a>' : '<a href="?debug=1">on</a>') . ']<br /> |
• Debug outputs: [<a href="' . $urlprefix . 'debug=' . ($debug ? '0">off' : '1">on') . '</a>]<br /> |
|
</p> |
|
466 |
</td> |
</td> |
467 |
<td style="border:2px solid #3090a8; padding:8px;" valign="top"> |
<td style="border:2px solid #3090a8; padding:8px;" valign="top"> |
468 |
'; |
'; |