This repository has been archived on 2023-09-19. You can view files and clone it, but cannot push or open issues or pull requests.
AcmlmboardZero/layout.php

101 lines
3.4 KiB
PHP

<?php
//Include disclaimer
include ('lib/disclaimer.php');
//Set scheme file here
if(!$loguserid){
require ('schemes/rednight.php');
} else {
$scheme=mysqli_fetch_array(mysqli_query($con,"SELECT schemes.id,schemes.file,users.scheme,users.id FROM schemes INNER JOIN users ON users.scheme=schemes.id AND users.id=$loguserid"));
if(file_exists("schemes/$scheme[file]") and $scheme['file']!="") {
require("schemes/$scheme[file]");
} else {
require ('schemes/rednight.php');
}
}
//Name of site
$boardname="AcmlmBoard Zero";
//table code
$tablewidth="100%";
$fonttag="<font face=$font size=-1>";
$fonthead="<font face=$font size=-1 color=$tableheadtext>";
$smallfont="<font face=$font2 size=-2>";
$tccell1="<td bgcolor=$tablebg1><center>$fonttag";
$tccell2="<td bgcolor=$tablebg2><center>$fonttag";
$tccell2w="<td bgcolor=$tablebg2 nowrap><center>$fonttag";
$tccellh="<td bgcolor=$tableheadbg><center>$fonthead";
$tzoff=0;
$tccellha="<td bgcolor=$tableheadbg";
$tccellhb="><center>$fonthead";
$tblstart="<table border=0 bgcolor=$tableborder width=$tablewidth align=center cellpadding=0 cellspacing=0>
<td>
<table border=0 cellpadding=2 cellspacing=1 width=100% bgcolor=$tableborder>";
$tblend="</table></td></table>";
//Include disclaimer
include ('lib/disclaimer.php');
/*
if ($logpassword!="") {
$tzoff=$users[$loguserid][15]*3600;
}
*/
//$linkstop present different links depending on if the user is logged in
//$linksbottom are for both logged-in and guest users
$views=mysqli_fetch_array(mysqli_query($con,"SELECT id,views FROM misc WHERE id = 1"));
$header1="<html><head><title>$boardname</title>
<STYLE TYPE=text/css> A:link, A:visited, A:active, A:hover { text-decoration: none; font-weight: bold }
A:HOVER { color: $linkcolor4; }
</style></head>
<body bgcolor=$bgcolor background=$bgimage text=$textcolor link=$linkcolor vlink=$linkcolor2 alink=$linkcolor3>
<center>
$disclaimer
<table border=0 bgcolor=$tableborder width=$tablewidth align=center cellpadding=0 cellspacing=0>
<td>
<table border=0 cellpadding=2 cellspacing=1 width=100% bgcolor=$tableborder>
<td bgcolor=$tablebg1 colspan=3><center><img src=$banner alt=$boardname></td><tr>
<td bgcolor=$tablebg2 width=120 rowspan=2><center>$smallfont"."Views: $views[views]</td>$tccell2$smallfont
";
if($loguserid) {
$headlinks="
<a href=login.php?action=logout>Logout</a> |
<a href=editprofile.php>Edit profile</a>
";
} else {
$headlinks="
<a href=register.php>Register</a> |
<a href=login.php>Login</a>
";
}
$lowerlinks="
<a href=index.php>Main</a> |
<a href=memberlist.php>Memberlist</a> |
<a href=debug.php>Debug Menu</a> |
</a href=ranks.php><s>Ranks</s></a>
";
$header2="
</td>
<td bgcolor=$tablebg2 width=120 rowspan=2><center>$smallfont
".date("m-d-y h:i A",time()+$tzoff)."<tr>$tccell2$smallfont$lowerlinks</td>
</table>
</td>
</table>
</center>";
function makeheader($header1,$headlinks,$header2) {
$header="$header1$headlinks$header2";
return $header;
}
$header=makeheader($header1,$headlinks,$header2);
$footer="</td></table></td></table></embed></noembed></noscript></noembed></embed>
<center>$smallfont"."<br><a href=bug.php>Submit Bug Report!</a><br><br>AcmlmBoard Zero 0.7.1 Pre-release ~ 7-27-2018<br>(C) 2000-2018 Acmlm, NinCollin<br><img src=images/poweredbyacmlm.gif></body></html>";
?>