");
include "../config.php";
include "session.php";
include "../lib.php";
$reply_table = "$table_name"."_reply";
if(file_exists("../$table_name"))
{
echo(" $table_name µð·ºÅ丮°¡ Á¸ÀçÇÕ´Ï´Ù. »èÁ¦ÇϽðųª Àç ¼³Ä¡ÀÇ °æ¿ì $table_name µð·ºÅ丮¸¦ ´Ù¸¥ À̸§À¸·Î ¹Ù²Ù¼¼¿ä ");
exit();
}
if(fileperms("..")==16839||fileperms("..")==16895) $check="1";
if(!$check)
{
echo(" µð·ºÅ丮 ÆÛ¹Ì¼ÇÀÌ 707·Î ÆÛ¹Ì¼ÇÀÌ µÇ¾î ÀÖÁö ¾Ê½À´Ï´Ù. Åڳݿ¡¼ ÆÛ¹Ì¼ÇÀ» Á¶Á¤Çϼ¼¿ä. ");
exit();
}
if(table_exists(get_list_tables($db_name),$table_name))
{
echo (" $db_name DB ¿¡ $table_name tableÀÌ Á¸ÀçÇÕ´Ï´Ù. ");
exit();
}
if(table_exists(get_list_tables($db_name),$reply_table))
{
echo (" $db_name DB ¿¡ $reply_table tableÀÌ Á¸ÀçÇÕ´Ï´Ù. ");
exit();
}
mkdir("../photo/$table_name",0707);
mkdir("../photo/$table_name/photo",0707);
mkdir("../photo/$table_name/photo_middle",0707);
mkdir("../photo/$table_name/photo_small",0707);
chmod("../photo/$table_name",0707);
chmod("../photo/$table_name/photo",0707);
chmod("../photo/$table_name/photo_middle",0707);
chmod("../photo/$table_name/photo_small",0707);
$fp=fopen("../photo/$table_name/photo_config.php","w");
fwrite($fp," \n
\$table_name = '$table_name';
\$album_name = '$album_name';
\$pic_number = '$pic_number';
\$line_number = '$line_number';
\$page_number = '$page_number';
\$subject_legnth = '$subject_legnth';
\$photo_width = '$photo_width';
\$photo_height = '$photo_height';
\$table_space = '$table_space';
\$bgcolor = '$bgcolor';
\$reply_table = '$reply_table';
\$comment_view = '$comment_view';
\$admin_write = '$admin_write';
\$head_file = '$head_file';
\$foot_file = '$foot_file';
\$s_list_position = '$s_list_position';
\n?>");
$fp2=fopen("../photo/$table_name/top_design.php","w") or Error("top_design.php ÆÄÀÏ »ý¼º ½ÇÆÐ
µð·ºÅ丮ÀÇ ÆÛ¹Ì¼ÇÀ» 707·Î Áֽʽÿä","");
fwrite($fp2," $top_design ");
$fp3=fopen("../photo/$table_name/bottom_design.php","w") or Error("bottom_design.php ÆÄÀÏ »ý¼º ½ÇÆÐ
µð·ºÅ丮ÀÇ ÆÛ¹Ì¼ÇÀ» 707·Î Áֽʽÿä","");
fwrite($fp3," $bottom_design ");
fclose($fp);
fclose($fp2);
fclose($fp3);
mysql_query("create table $table_name (
number int(10) not null default '0' auto_increment primary key,
year varchar(4),
month varchar(2),
day varchar(2),
subject text,
content text,
filename varchar(50),
name varchar(20),
pass varchar(10),
hit int(5),
ip varchar(12)
)",$dbcon);
mysql_query("create table $reply_table (
number int(10) not null default '0' auto_increment primary key,
m_number varchar(10),
signdate varchar(10),
signdate2 varchar(10),
comment text,
name varchar(20),
pass varchar(10),
ip varchar(12) )",$dbcon);
echo(" |
");
echo"
";
include "./copyright.html";
echo" |
";
echo("
|
|