Skip to content

Commit

Permalink
cleanup after svn migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Joungkyun committed Jun 6, 2016
1 parent 1120160 commit fab2d4e
Show file tree
Hide file tree
Showing 334 changed files with 16,958 additions and 15,967 deletions.
7 changes: 2 additions & 5 deletions COPYING
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
$Id: COPYING,v 1.3 2009-11-16 21:52:45 oops Exp $

GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301 USA
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
675 Mass Ave, Cambridge, MA 02139, USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

Expand Down
12 changes: 6 additions & 6 deletions COPYING.ko
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
$Id: COPYING.ko,v 1.3 2009-11-16 21:52:45 oops Exp $
GPL �ѱ� ������ ���� ���� �˾ƵѰ�.

GPL ������ ���� ȿ���� ���� ������ �켱 �˴ϴ�. �ѱ� ����� ���������� ���� ����
�ϱ� ������ �� ��� ������ �Ǹ��� ���� ������ �켱 �մϴ�.
1. �ѱ� ������ �ش� �ϴ� ������ ������ ȿ���� ������ ���ٴ� ���������� ���� ����
���� ���� �ѰͿ� ���Ѵ�. �������� ������ ������ ���������� ������.

2. ��� ���Ǵ� http://jsboard.kldp.org �� �ϱ⸦ �ٶ���.
-------------------------------------------------------------------------------

GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301 USA
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
675 Mass Ave, Cambridge, MA 02139, USA

���۱ǰ� ��� �㰡�� ���� �� ������ ���� �Ǵ� ��, ��� ���� ��ü�� ���� ������
���糪 ���鵵 �������� ���ȴ�. ��, ������ ���� ������ ÷���� ������ �ʴ´�.
Expand Down
35 changes: 35 additions & 0 deletions INSTALLER/SQL/board-freebsd.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#
# Table structure for table 'test'
#
CREATE TABLE test (
no int(6) DEFAULT '0' NOT NULL auto_increment,
num int(6) DEFAULT '0' NOT NULL,
idx int(6) DEFAULT '0' NOT NULL,
date int(11) DEFAULT '0' NOT NULL,
host tinytext,
name tinytext,
rname tinytext,
passwd varchar(56),
email tinytext,
url tinytext,
title tinytext,
text mediumtext,
refer int(6) DEFAULT '0' NOT NULL,
reyn int(1) DEFAULT '0' NOT NULL,
reno int(6) DEFAULT '0' NOT NULL,
rede int(6) DEFAULT '0' NOT NULL,
reto int(6) DEFAULT '0' NOT NULL,
html int(1) DEFAULT '1' NOT NULL,
comm int(6) DEFAULT '0' NOT NULL,
bofile varchar(100),
bcfile varchar(100),
bfsize int(4),
KEY no (no),
KEY num (num),
KEY idx (idx),
KEY reno (reno),
KEY date (date),
KEY reto (reto),
KEY comm (comm),
PRIMARY KEY (no)
);
35 changes: 35 additions & 0 deletions INSTALLER/SQL/board-linux.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#
# Table structure for table 'test'
#
CREATE TABLE test (
no int(6) DEFAULT '0' NOT NULL auto_increment,
num int(6) DEFAULT '0' NOT NULL,
idx int(6) DEFAULT '0' NOT NULL,
date int(11) DEFAULT '0' NOT NULL,
host tinytext,
name tinytext,
rname tinytext,
passwd varchar(56),
email tinytext,
url tinytext,
title tinytext,
text mediumtext,
refer int(6) DEFAULT '0' NOT NULL,
reyn int(1) DEFAULT '0' NOT NULL,
reno int(6) DEFAULT '0' NOT NULL,
rede int(6) DEFAULT '0' NOT NULL,
reto int(6) DEFAULT '0' NOT NULL,
html int(1) DEFAULT '1' NOT NULL,
comm int(6) DEFAULT '0' NOT NULL,
bofile varchar(100),
bcfile varchar(100),
bfsize int(4),
KEY no (no),
KEY num (num),
KEY idx (idx),
KEY reno (reno),
KEY date (date),
KEY reto (reto),
KEY comm (comm),
PRIMARY KEY (no)
);
16 changes: 16 additions & 0 deletions INSTALLER/SQL/comment.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
# Table structure for table 'test_comm'
#
CREATE TABLE test_comm (
no int(6) NOT NULL auto_increment,
reno int(20) NOT NULL default '0',
rname tinytext,
name tinytext,
passwd varchar(56) default NULL,
text mediumtext,
host tinytext,
date int(11) NOT NULL default '0',
PRIMARY KEY (no),
KEY parent (reno)
);

23 changes: 23 additions & 0 deletions INSTALLER/SQL/userdb-freebsd.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#
# Table structure for table 'userdb'
#
CREATE TABLE userdb (
no int(6) NOT NULL auto_increment,
nid varchar(30) NOT NULL default '',
name varchar(30) NOT NULL default '',
email tinytext NOT NULL,
url tinytext NOT NULL,
passwd varchar(100) NOT NULL default '',
position int(1) NOT NULL default '0',
PRIMARY KEY (no),
KEY no (no),
UNIQUE KEY nid (nid),
KEY name (name),
KEY position (position)
) TYPE=MyISAM;

#
# Dumping data for table 'userdb'
#

INSERT INTO userdb VALUES ('','admin','°ü¸®ÀÚ','','','\$1\$Cx\$.2OyfWZCiPTc4sSw0vswc/',1);
25 changes: 25 additions & 0 deletions INSTALLER/SQL/userdb-linux.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#
# Table structure for table 'userdb'
#

CREATE TABLE userdb (
no int(6) NOT NULL auto_increment,
nid varchar(30) NOT NULL default '',
name varchar(30) NOT NULL default '',
email tinytext NOT NULL,
url tinytext NOT NULL,
passwd varchar(100) NOT NULL default '',
position int(1) NOT NULL default '0',
PRIMARY KEY (no),
KEY no (no),
UNIQUE KEY nid (nid),
KEY name (name),
KEY position (position)
) TYPE=MyISAM;

#
# Dumping data for table 'userdb'
#

INSERT INTO userdb VALUES ('','admin','°ü¸®ÀÚ','','','lHJTjGW8VhHc.',1);

184 changes: 184 additions & 0 deletions INSTALLER/act.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
<?php
include_once "../include/print.php";
parse_query_str();
session_start(); // session을 시작한다.
$path['type'] = "Install";

if ($langss == "ko") $langs['code'] = "ko";
else $langs['code'] = "en";

include_once"../include/ostype.php";
include_once"../include/lang.php";
include_once"../include/get.php";
include_once"../include/error.php";
include_once"../include/check.php";
include_once"./include/passwd.php";
include_once"./include/check.php";

# Password Checkk
inst_pwcheck($passwd,$_SESSION['mysqlpass'],$langs['act_pw']);

# MySQL login
if($mysqlroot) {
$connect = mysql_connect($mysql_sock,"root",$passwd) or die($langs['inst_sql_err']);
$indb['lists'] = mysql_list_dbs($connect);
$indb['num'] = mysql_num_rows($indb['lists']);
} else {
$connect = mysql_connect($mysql_sock,$mysqlusername,$passwd) or die($langs['inst_sql_err']);
}

# install.php 에서 넘어온 변수값들 체크
$indb['check'] = inst_check($mysqlroot);

# DB 정보 유무 chek에 통과시 MySQL에 셋팅
if ($indb['check']) {
if($mysqlroot) {
# MySQL에 DB 생성
$create['dbname'] = "CREATE DATABASE {$dbinst['name']}";
$result['dbname'] = mysql_db_query("mysql",$create['dbname'],$connect);
}

# 외부 DB 일 경우에는 접근 권한을 외부로 지정한다.
if($mysql_sock != "127.0.0.1" && $mysql_sock != "localhost" && !preg_match("/mysql.sock/i",$mysql_sock))
$access_permit = $mysql_sock;
else $access_permit = "localhost";

if($mysqlroot) {
# user 및 db 등록(grant 문 이용)
$create['regis'] = "GRANT all privileges ON {$dbinst['name']}.*
TO {$dbinst['user']}@$access_permit
IDENTIFIED BY '{$dbinst['pass']}'";
$result['regis'] = mysql_db_query("mysql",$create['regis'],$connect);
}

# test 게시판을 생성
$create['table'] = "CREATE TABLE test (
no int(6) DEFAULT '0' NOT NULL auto_increment,
num int(6) DEFAULT '0' NOT NULL,
idx int(6) DEFAULT '0' NOT NULL,
date int(11) DEFAULT '0' NOT NULL,
host tinytext,
name tinytext,
rname tinytext,
passwd varchar(56),
email tinytext,
url tinytext,
title tinytext,
text mediumtext,
refer int(6) DEFAULT '0' NOT NULL,
reyn int(1) DEFAULT '0' NOT NULL,
reno int(6) DEFAULT '0' NOT NULL,
rede int(6) DEFAULT '0' NOT NULL,
reto int(6) DEFAULT '0' NOT NULL,
html int(1) DEFAULT '1' NOT NULL,
comm int(6) DEFAULT '0' NOT NULL,
bofile varchar(100),
bcfile varchar(100),
bfsize int(4),
KEY no (no),
KEY num (num),
KEY idx (idx),
KEY reno (reno),
KEY date (date),
KEY reto (reto),
KEY comm (comm),
PRIMARY KEY (no))";

# comment table 생성
$create['comment'] = "CREATE TABLE test_comm (
no int(6) NOT NULL auto_increment,
reno int(20) NOT NULL default '0',
rname tinytext,
name tinytext,
passwd varchar(56) default NULL,
text mediumtext,
host tinytext,
date int(11) NOT NULL default '0',
PRIMARY KEY (no),
KEY parent (reno))";

$create['utable'] = "CREATE TABLE userdb (
no int(6) NOT NULL auto_increment,
nid varchar(100) NOT NULL default '',
name varchar(100) NOT NULL default '',
email tinytext NOT NULL,
url tinytext NOT NULL,
passwd varchar(100) NOT NULL default '',
position int(1) NOT NULL default '0',
PRIMARY KEY (no),
KEY no (no),
UNIQUE KEY nid (nid),
KEY name (name),
KEY position (position))";

#require("../admin/include/first_reg.php");
$passwd_ext = crypt($passwd_ext);

$create['data'] = "INSERT INTO test (no,num,idx,date,host,name,passwd,email,url,title,
text,refer,reyn,reno,rede,reto,html,comm,bofile,
bcfile,bfsize)
VALUES ('',1,1,$date,'$host_ext','$name_ext','$passwd_ext',
'$email_ext','$url_ext','$subj_msg','$text_msg',0,0,
0,0,0,0,0,'','','')";
$create['udata'] = "INSERT INTO userdb (no,nid,name,email,url,passwd,position)
VALUES ('','{$dbinst['aid']}','{$dbinst['aname']}','{$dbinst['aemail']}',
'','{$ostypes['dpass']}',1)";

$result['table'] = mysql_db_query($dbinst['name'],$create['table'], $connect );
$result['utable'] = mysql_db_query($dbinst['name'],$create['utable'], $connect );
$result['utable'] = mysql_db_query($dbinst['name'],$create['comment'], $connect );
#$result['data'] = mysql_db_query($dbinst['name'],$create['data'], $connect );
$result['udata'] = mysql_db_query($dbinst['name'],$create['udata'], $connect );

# 설정 파일 위치
mkdir("../data/test",0775);
mkdir("../data/test/files",0770);
copy("sample/data/config.php","../data/test/config.php");
copy("sample/data/html_head.php","../data/test/html_head.php");
copy("sample/data/html_tail.php","../data/test/html_tail.php");
copy("sample/data/stylesheet.php","../data/test/stylesheet.php");
copy("sample/admin/global.php.orig","../config/global.php");
copy("sample/admin/spam_list.txt.orig","../config/spam_list.txt");

chmod("../data/test/config.php",0664);
chmod("../data/test/html_head.php",0664);
chmod("../data/test/html_tail.php",0664);
chmod("../data/test/stylesheet.php",0664);
chmod("../config/global.php",0660);
chmod("../config/spam_list.txt",0664);

# 설정 파일에 DB 정보를 입력
$create['gfile'] = "../config/global.php";
$create['str'] = file_operate($create['gfile'],"r","Can't open {$create['gfile']}");

$create['str'] = str_replace("@DBSERVER@",$mysql_sock,$create['str']);
$create['str'] = str_replace("@DBNAME@",$dbinst['name'],$create['str']);
$create['str'] = str_replace("@DBPASS@",$dbinst['pass'],$create['str']);
$create['str'] = str_replace("@DBUSER@",$dbinst['user'],$create['str']);

# spam 변수 설정
mt_srand((double) microtime() * 1000000);
$create['spam1'] = mt_rand(10001,99999);
$create['spam2'] = mt_rand(11,99);
$create['spam3'] = mt_rand(11,99);
$create['str'] = str_replace("@SPAM1@",$create['spam1'],$create['str']);
$create['str'] = str_replace("@SPAM2@",$create['spam2'],$create['str']);
$create['str'] = str_replace("@SPAM3@",$create['spam3'],$create['str']);

# theme 설정
$themes = ($langs['code'] == "ko") ? "KO-default" : "EN-default";
$create['str'] = str_replace("@THEME@",$themes,$create['str']);

file_operate($create['gfile'],"w","Can't update {$create['gfile']}",$create['str']);

# 등록후 변수값들 초기화
$dbinst['name'] = "";
$dbinst['user'] = "";
$dbinst['pass'] = "";

} else print_error($langs['inst_error'],250,150,1);

mysql_close();
?>
<script>document.location='session.php?mode=first&langss=<?=$langss?>';</script>
<NOSCRIPT><META http-equiv="refresh" content="0;URL=./session.php?mode=first&langss=<?=$langss?>"></NOSCRIPT>
Loading

0 comments on commit fab2d4e

Please sign in to comment.