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 de2d426
Show file tree
Hide file tree
Showing 382 changed files with 7,757 additions and 22,150 deletions.
342 changes: 0 additions & 342 deletions COPYING

This file was deleted.

317 changes: 0 additions & 317 deletions COPYING.ko

This file was deleted.

607 changes: 607 additions & 0 deletions INSTALL.txt

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions Install/Config/account.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

cp -aRp ../admin_sample/db.ph.orig ../../include/db.ph
cp -aRp ../sample ../../include/test
chmod 707 ../../include
chmod 644 ../../include/db.ph
chmod 707 ../../include/test -R
chmod 644 ../../include/*.*

exit 0
6 changes: 6 additions & 0 deletions Install/Config/root.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

chgrp nobody ../../include
chmod 775 ../../include

exit 0
60 changes: 60 additions & 0 deletions Install/SQL/manager.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# MySQL dump 6.0
#
# Host: localhost Database: board
#--------------------------------------------------------
# Server version 3.22.23b

#
# Table structure for table 'BoardInformation'
#
CREATE TABLE BoardInformation (
id int(8) DEFAULT '0' NOT NULL auto_increment,
t_name tinytext,
super_user tinytext,
board_user tinytext,
pern varchar(3),
namel varchar(3),
titll varchar(5),
width varchar(5),
l0_bg varchar(16),
l0_fg varchar(16),
l1_bg varchar(16),
l1_fg varchar(16),
l2_bg varchar(16),
l2_fg varchar(16),
l3_bg varchar(16),
l3_fg varchar(16),
r0_bg varchar(16),
r0_fg varchar(16),
r1_bg varchar(16),
r1_fg varchar(16),
r2_bg varchar(16),
r2_fg varchar(16),
r3_bg varchar(16),
r3_fg varchar(16),
t0_bg varchar(16),
menuallow varchar(5),
file_upload varchar(5),
filesavedir tinytext,
maxfilesize tinytext,
mailtoadmin tinytext,
mailtowriter varchar(5),
bbshome tinytext,
use_url varchar(5),
use_email varchar(5),
user_ip_addr tinytext,
lang varchar(5),
PRIMARY KEY (id)
);

INSERT INTO BoardInformation VALUES ('','superuser','ooK/oSLfDJOUI','','','',
'','','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','en');


INSERT INTO BoardInformation VALUES ('','test','','ooK/oSLfDJOUI','10','8',
'40','550','#a5b5c5','#ffffff','#d5b5c5','#ffffff','#ffffff','#555555',
'#dcdcdc','#555555','#a5b5c5','#ffffff','#a5c5c5','#ffffff','#dcdcdc',
'#555555','#ffffff','#555555','#778899','no','no',
'./include/table_account_name/files','2000000','','no','','yes','yes','127.0.0.1','en');

38 changes: 38 additions & 0 deletions Install/SQL/mysql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# MySQL dump 6.0
#
# Host: localhost Database: board
#--------------------------------------------------------
# Server version 3.22.23b

#
# Table structure for table 'test'
#
CREATE TABLE test (
no int(8) DEFAULT '0' NOT NULL auto_increment,
num int(8) DEFAULT '0' NOT NULL,
date int(11) DEFAULT '0' NOT NULL,
host tinytext,
name tinytext,
passwd varchar(13),
email tinytext,
url tinytext,
title tinytext,
text mediumtext,
refer int(8) DEFAULT '0' NOT NULL,
reyn int(1) DEFAULT '0' NOT NULL,
reno int(8) DEFAULT '0' NOT NULL,
rede int(8) DEFAULT '0' NOT NULL,
reto int(8) DEFAULT '0' NOT NULL,
bofile varchar(100),
bcfile varchar(100),
bfsize int(4),
PRIMARY KEY (no),
KEY num (num),
KEY date (date),
KEY reno (reno)
);

Insert into test values('',1,'948894390','127.0.0.1','bbuwoo','0000',
'[email protected]','http://www.oops.org','이글을 보신후 꼭 삭제하십시오.',
'게시판을 처음 사용하실때 유의하실 점입니다. 일단 기본적으로 Admin mode의 password는 0000으로 맞추어져 있습니다. 게시판 상단의 admin 을 클릭하여 이것들을 변경하여 주십시오.
',0,0,0,0,0,'','','');
265 changes: 265 additions & 0 deletions Install/act.php3
Original file line number Diff line number Diff line change
@@ -0,0 +1,265 @@
<?
/************************************************************************
* *
* OOPS Administration Center v1.3 *
* Scripted by JoungKyun Kim *
* [email protected] http://www.oops.org *
* *
************************************************************************/


/****************************************************/

// mysql을 관리할 root의 password 를 지정

$passwd = "" ;
$auth = crypt("$passwd","oo");
/****************************************************/

include("../include/multi_lang.ph");

if (!$mysql_root) {
echo ("<script>\n" .
"alert('$no_pass_alert')\n" .
"document.location='./index.php3'\n" .
"</script>" );
exit ;
}


if ($mysql_root != $auth) {
echo ("<script>\n" .
"alert('$pass_alert')\n" .
"document.location='./cookie.php3?mode=logout'\n" .
"</script>" );
exit ;
}



/* 먼저 유저가 사용할 db를 생성 */

$connect = mysql_connect( localhost, root , $passwd ) or die( "Unable to connect to SQL server" );
$db_list = mysql_list_dbs($connect);
$db_num = mysql_num_rows($db_list);

mysql_select_db('mysql', $connect);

/* Password 지정 여부 */

if (!$pass_db) {
echo ("<script>\n" .
"alert('$nopass')\n" .
"history.back() \n" .
"</script>" );
exit ;
}


/* 만드려는 DB의 존재유무 check */

for ($i=0; $i<$db_num; $i++) {

$dbname = mysql_dbname($db_list,$i) ;

if (!$name_db) {

echo ("<script>\n" .
"alert('$no_db_alert')\n" .
"history.back() \n" .
"</script>" );
exit ;
}

if (eregi("^[0-9]", $name_db)) {

echo ("<script>\n" .
"alert('$no_numberic_db_alert')\n" .
"history.back() \n" .
"</script>" );
exit ;

}

else if ($name_db == $dbname) {

echo ("<script>\n" .
"alert('$exist_db_alert')\n" .
"history.back() \n" .
"</script>" );
exit ;
}

}

/* 등록하려는 User의 존재 유무 check */
$user_check = "select user from user where user = '$user_db'" ;
$result = mysql_query($user_check, $connect );
$row=mysql_fetch_array($result);

if ($row) {
echo ("<script>\n" .
"alert('$exist_user_alert')\n" .
"history.back() \n" .
"</script>" );
exit ;
}


/* DB 유뮤 chek에 통과시 MySQL에 DB 생성 */
$create_db = "create database $name_db" ;
$result = mysql_query($create_db, $connect );

/* User 유뮤 chek에 통과시 User를 user table에 등록 */
$create_user = "insert into user (Host,User,Password) values('localhost','$user_db',password('$pass_db')) ";
$result = mysql_query($create_user, $connect );

/* 해당 User의 DB와 User를 db table에 등록 */
$regist_db_name_db = "insert into db values('localhost','$name_db','$user_db','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y') ";
$result = mysql_query($regist_db_name_db, $connect );


/* test 게시판 table을 생성 */

mysql_select_db($name_db,$connect);

$date = time();
$host_ext = "127.0.0.1";
$name_ext = "bbuwoo";
$passwd_ext = "asdf";
$email_ext = "[email protected]";
$url_ext = "http://www.oops.org";
$subject_msg = "$title_ext" ;
$text_msg = "$text_ext" ;

$create_table = "CREATE TABLE test (
no int(8) DEFAULT '0' NOT NULL auto_increment,
num int(8) DEFAULT '0' NOT NULL,
date int(11) DEFAULT '0' NOT NULL,
host tinytext,
name tinytext,
passwd varchar(13),
email tinytext,
url tinytext,
title tinytext,
text mediumtext,
refer int(8) DEFAULT '0' NOT NULL,
reyn int(1) DEFAULT '0' NOT NULL,
reno int(8) DEFAULT '0' NOT NULL,
rede int(8) DEFAULT '0' NOT NULL,
reto int(8) DEFAULT '0' NOT NULL,
bofile varchar(100),
bcfile varchar(100),
bfsize int(4),
PRIMARY KEY (no),
KEY num (num),
KEY date (date),
KEY reno (reno))";

$insert_data = "Insert into test values('',1,$date,'$host_ext','$name_ext','$passwd_ext',
'$email_ext','$url_ext','$subject_msg','$text_msg',0,0,0,0,0,'','','')";


$result = mysql_query($create_table, $connect );
$result_insert = mysql_query( $insert_data, $connect );



/* 게시판 정보를 담는 Table 생성 */
$create_boardinfo = "CREATE TABLE BoardInformation (
id int(8) DEFAULT '0' NOT NULL auto_increment,
t_name tinytext,
super_user tinytext,
board_user tinytext,
pern varchar(3),
namel varchar(3),
titll varchar(5),
width varchar(5),
l0_bg varchar(16),
l0_fg varchar(16),
l1_bg varchar(16),
l1_fg varchar(16),
l2_bg varchar(16),
l2_fg varchar(16),
l3_bg varchar(16),
l3_fg varchar(16),
r0_bg varchar(16),
r0_fg varchar(16),
r1_bg varchar(16),
r1_fg varchar(16),
r2_bg varchar(16),
r2_fg varchar(16),
r3_bg varchar(16),
r3_fg varchar(16),
t0_bg varchar(16),
menuallow varchar(5),
file_upload varchar(5),
filesavedir tinytext,
maxfilesize tinytext,
mailtoadmin tinytext,
mailtowriter varchar(5),
bbshome tinytext,
use_url varchar(5),
use_email varchar(5),
user_ip_addr tinytext,
lang varchar(5),
PRIMARY KEY (id))" ;

/* 게시판 전체 관리자를 위한 정보 입력 */
$boardinfo_data_superdb = "INSERT INTO BoardInformation VALUES
('','superuser','ooK/oSLfDJOUI','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','$lang')" ;
/* test 게시판에 대한 정보 입력 */
$boardinfo_data_testdb = "INSERT INTO BoardInformation VALUES
('','test','','ooK/oSLfDJOUI','10','8',
'40','550','#a5b5c5','#ffffff','#a5c5c5','#ffffff',
'#ffffff','#555555','#dcdcdc','#555555','#a5b5c5',
'#ffffff','#a5c5c5','#ffffff','#dcdcdc','#555555',
'#ffffff','#555555','#778899','no','no',
'./include/table_account_name/files','2000000','','no','','yes',
'yes','127.0.0.1','$lang')" ;

$sbresult = mysql_query($create_boardinfo, $connect );
$sbresult_insert = mysql_query( $boardinfo_data_superdb, $connect );
$stresult_insert = mysql_query( $boardinfo_data_testdb, $connect );


/* mysql을 reload */
exec("mysqladmin -u root --password=$passwd reload");



/* include/db.ph file 수정 */

exec("cp ./admin_sample/db.ph.orig ../include/db.ph");
exec("cp -aRp ./sample ../include/test");

$fp = fopen("../include/db.ph", "r");
while(!feof($fp)) {
$cha_str .= fgets($fp, 100);
}
fclose($fp);

$cha_str = ereg_replace( DBuser, $user_db, $cha_str ) ;
$cha_str = ereg_replace( DBname, $name_db, $cha_str ) ;
$cha_str = ereg_replace( DBpass, $pass_db, $cha_str ) ;

$fp = fopen( "../include/db.ph", "w" ) ;
fwrite($fp, $cha_str);
fclose($fp);

/* test db의 설정 file을 설치 */

/* 등록을 하고 나서 reflesh될때 변수값들을 초기화 */
$user_db = "" ;
$name_db = "" ;
$pass_db = "" ;

mysql_close();

echo("<script>\n" .
" document.location='cookie.php3?mode=first&lang=$lang'\n" .
"</script> ") ;

?>
7 changes: 7 additions & 0 deletions Install/admin_sample/db.ph.orig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?
$db_server = "localhost"; // DB ���� �ּ�
$db_user = "DBuser"; // DB �����
$db_name = "DBname"; // DB �̸�
$db_pass = "DBpass"; // DB ��ȣ
$user_ip_addr = "127.0.0.1"; // ������ IP (�����ڰ� �Խù� ������ ��Ʈ�� ���� ����)
?>
3 changes: 3 additions & 0 deletions Install/admin_sample/info.php3.orig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?
$super_user = "ooK/oSLfDJOUI" ;
?>
Loading

0 comments on commit de2d426

Please sign in to comment.