-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogin.php
More file actions
41 lines (33 loc) · 1.38 KB
/
login.php
File metadata and controls
41 lines (33 loc) · 1.38 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
<?php
# $Id: login.php,v 1.5 2009-11-16 21:52:45 oops Exp $
require_once './include/variable.php';
require_once './include/version.php';
require_once './include/print.php';
require_once './include/get.php';
require_once './include/check.php';
require_once './include/error.php';
parse_query_str ();
$agent = get_agent ();
$table = trim ($table);
if ($table) {
if (!preg_match("/^[a-z]/i", $table))
print_error("$name Value must start with an alphabet",250,150,1);
if (preg_match("/[^a-z0-9_-]/i",$table))
print_error("Can't use special characters except alphabat, numberlic , _, - charcters",250,150,1);
if (preg_match("/^as$/i",$name))
print_error("Cat't use table name as "as"",250,150,1);
}
if($table && file_exists("data/$table/config.php")) {
require_once "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);
require_once "./theme/{$print['theme']}/config.php";
require_once "./theme/{$print['theme']}/login.template";
?>