Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
JSBoard/login.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
41 lines (33 sloc)
1.38 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"; | |
?> |