No dobra, po ciężkiej bitwie, jakoś poszło. Efekty mizerne

Jednak jest problem. Nie wszystko co includuję, zachowuje się tak jak bym chciał.
Szczegóły tutaj.Chodzi o to, że po wejściu na link
Logowanie wcina prawy panel i stopkę. Część skryptu admin.php, gdzie jest includowana klasa:
<?php
$sl_perm = 5;
include \"admin/sitelock.class.php\";
$DB = new GateDB;
?>
I sama klasa (wklejam cały, bo ma kilka odwołań):
<?php
$path_to_sl = \"\";
include $path_to_sl . \"sitelock.conf.php\";
class SiteLock {
function SiteLock() {
global $user, $password, $if_logged_in; global $cookie_name, $sl_cookie, $loggedout, $path_to_sl, $sl, $html; $GF = new SiteLockForm;
$GF->logout();
if ((isset($sl_cookie)) and
($loggedout != \"yes\")) { include $path_to_sl . \"dbclass.\" . $sl['db_type'] . \".php\";
$DB = new GateDB;
if ($DB->db_initialize()) {
if ($DB->find_user_by_cookie($sl_cookie)) {
$if_logged_in = \"yes\";
} else {
$GF->print_form_in();
}
} else {
echo('Nie mogłem połączyć się z serweram baz danych. Administrator tej strony powinien ją poprawnie skonfigurować.');
}
} else {
if ($GF->check_form_in()) {
include $path_to_sl . \"dbclass.\" . $sl['db_type'] . \".php\";
$DB = new GateDB;
if ($DB->db_initialize()) {
if ($DB->find_user($user, $password)) {
$this->generate_cookie();
if ($DB->update_user_entry($user, $password)) {
$if_logged_in = \"yes\";
} else {
echo('Nie mogłem ukatualnić informacji w bazie danych. Prawdopodobnie baza danych nie a odpowiednich tabel i pól wymienionych w pliku konfiguracyjnym.');
}
} else {
$GF->print_form_in('Dane niepoprawne. Proszę wpisać swój identyfikator i hasło.');
}
} else {
echo('Nie mogłem połączyć się z serweram baz danych. Administrator tej strony powinien ją poprawnie skonfigurować.');
}
} else {
$GF->print_form_in('Proszę wpisać swój identyfikator i hasło.');
}
}
}
function generate_cookie() {
return $sl_cookie;
}
}
class SiteLockForm {
function print_form_in($login_message) {
echo '<title>Strona logowania</title>'; echo $html['br'] . $html['br'] . $html['br']; echo \"n\" . '<form method=\"post\">' . \"n\"; echo '<table border=\"0\" width=\"\" align=\"center\">' . \"n\"; echo '<tr><td colspan=\"2\">'; echo $html['b'] . $login_message . $html['/b'] . $html['br'] . $html['br']; echo '</td></tr>' . \"n\"; echo '<tr><td>Identyfikator: </td><td>'; echo '<input type=\"text\" name=\"' . $sl['form_user'] . '\" maxlength=\"15\" size=\"12\">'; echo '</td></tr>' . \"n\"; echo '<tr><td>Hasło: </td><td>'; echo '<input type=\"password\" name=\"' . $sl['form_password'] . '\" maxlength=\"15\" size=\"12\">'; echo '</td></tr>' . \"n\"; echo '<tr><td colspan=\"2\" align=\"center\">'; echo $html['br']. '<input type=\"submit\" value=\"Zaloguj\">'; echo '</td></tr>' . \"n\"; echo '</table>' . \"n\"; echo '</form>' . \"n\"; }
function print_form_out() {
echo $user . $html['brn'] . \"n\"; echo '<form method=\"post\">'; echo '<input type=\"submit\" name=\"' . $sl['form_logout'] .'\" value=\"' . $sl['form_logout'] . '\">'; }
function check_form_in() {
global $user, $password, $html; return true;
} else {
return false;
}
}
function logout() {
global $logout, $sl, $loggedout; $loggedout = \"yes\";
}
}
function admin_print_user($id, $user, $password, $perm) {
echo '<form name=\"' . $user . '\" method=\"post\">'; echo '<input type=\"hidden\" name=\"form_id\" value=\"' . $id . '\">'; echo '<td><input type=\"text\" name=\"form_user\" value=\"'; echo $user . '\" size=\"10\" maxlength=\"15\"></td>'; echo '<td><input type=\"text\" name=\"form_password\" value=\"'; }
echo '\" size=\"10\" maxlength=\"15\"></td>'; echo '<td><input type=\"text\" name=\"form_perm\" value=\"'; echo $perm . '\" size=\"10\" maxlength=\"15\"></td>'; echo '<td><a href=\"javascript:confirm_change('' . $user . '')\">'; echo ('Zmień'). '</a></td>'; echo '<td><a href=\"javascript:confirm_delete('' . $user . '')\">'; echo ('Skasuj') . '</a></td>'; }
function admin_print_user_new() {
echo '<form method=\"post\" action=' . $sl['add_page'] . '>'; echo '<td><input type=\"text\" name=\"form_user\" size=\"10\" maxlength=\"15\"></td>'; echo '<td><input type=\"text\" name=\"form_password\" size=\"10\" maxlength=\"15\"></td>'; echo '<td><input type=\"text\" name=\"form_perm\" size=\"10\" maxlength=\"15\"></td>'; echo '<td><input type=\"submit\" name=\"delete\" value=\"' .'Dodaj'. '\"></td>'; }
}
/* Execution of the script starts here: */
$SL = new SiteLock;
if ($if_logged_in != \"yes\") {
}
?>
P.S. Nie patrzcie na layout, to ma służyć nauce php, na sztukę czas przyjdzie później.