<?php
include "./include/version.php";
include "./include/print.php";
include "./include/get.php";
include "./include/check.php";
include "./include/error.php";
parse_query_str();

$agent = get_agent();
if(preg_match("/links|w3m|lynx/i",$agent['br'])) $textBrowser = 1;

if($table && file_exists("data/$table/config.php"))
  { include "data/$table/config.php"; }

# input 문의 size를 browser별로 맞추기 위한 설정
$size = form_size(6);

$opt = !$table ? "" : "&table=$table";
$hin = !$table ? "" : "<INPUT TYPE=hidden NAME=table VALUE=\"$table\">";
$tin = ($type == "admin") ? "<INPUT TYPE=hidden NAME=type VALUE=\"$type\">" : "";
$board['align'] = $board['align'] ? $board['align'] : "center";
$print['theme'] = !$print['theme'] ? "KO-default" : $print['theme'];

meta_char_check($print['theme'], 1, 1);

include "./theme/{$print['theme']}/config.php";
include "./theme/{$print['theme']}/login.template";
?>
