");
include "../config.php";
include "session.php";
$reply_table = "$table_name"."_reply";
if(!unlink("../photo/$table_name/photo_config.php"))
{
echo("
;
");
}
if(!unlink("../photo/$table_name/top_design.php"))
{
echo("
;
");
}
if(!unlink("../photo/$table_name/bottom_design.php"))
{
echo("
;
");
}
$fp=fopen("../photo/$table_name/photo_config.php","w");
$fp2=fopen("../photo/$table_name/top_design.php","w");
$fp3=fopen("../photo/$table_name/bottom_design.php","w");
if(!$fp)
{
echo("
;
");
}
if(!$fp2)
{
echo("
;
");
}
if(!$fp3)
{
echo("
;
");
}
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?>");
//$top_design=addslashes($top_design);
//$bottom_design=addslashes($bottom_design);
fwrite($fp2," $top_design ");
fwrite($fp3," $bottom_design ");
fclose($fp);
fclose($fp2);
fclose($fp3);
echo("