변환프로그램 #22 마크업 및 스타일 완료

This commit is contained in:
whitedot
2014-01-29 10:03:12 +09:00
parent 2178764db1
commit 8b50062f86
2 changed files with 49 additions and 25 deletions

View File

@ -11,25 +11,34 @@ if($is_admin != 'super')
alert('최고관리자로 로그인 후 실행해 주십시오.', G5_URL);
?>
<div>
<p>이 프로그램은 그누보드5 설치 후 바로 실행하셔야만 합니다.<br>
만약 그누보드5 사이트를 운영 중에 이 프로그램을 실행하시면 DB 데이터가<br>
망실되거나 데이터의 오류가 발생할 수 있습니다. 또한 중복해서 실행하실<br>
경우에도 DB 데이터의 오류가 발생할 수 있으니 반드시 한번만 실행해 주십시오.
<style>
#g4_import p {padding:0 0 10px;line-height:1.8em}
#g4_import_frm {margin:20px 0 30px;padding:30px 0;border:1px solid #e9e9e9;background:#f5f8f9;text-align:center}
#g4_import_frm .frm_input {background-color:#fff !important}
#g4_import_frm .btn_submit {padding:0 10px;height:24px}
</style>
<div id="g4_import">
<p>
이 프로그램은 그누보드5 설치 후 바로 실행하셔야만 합니다.<br>
만약 그누보드5 사이트를 운영 중에 이 프로그램을 실행하시면 DB 데이터가 망실되거나 데이터의 오류가 발생할 수 있습니다.<br>
또한 중복해서 실행하실 경우에도 DB 데이터의 오류가 발생할 수 있으니 반드시 한번만 실행해 주십시오.
</p>
<p>프로그램을 실행하시려면 그누보드4의 config.php 파일 경로를 입력하신 후 확인을 클릭해 주십시오.</p>
<form name="fimport" method="post" action="./g4_import_run.php" onsubmit="return fimport_submit(this);">
<div>
<label for="file_path">config.php 파일 경로</label>
<input type="text" name="file_path" id="file_path" required class="frm_input required">
<input type="submit" value="확인">
</div>
<p>
경로는 그누보드5 설치 루트를 기준으로 그누보드4의 config.php 파일의 상대경로입니다.<br>
예를 들어 그누보드4를 웹루트에 설치하셨고 그누보드5를 g5라는 하위 폴더에 설치하셨다면<br>
입력하실 경로는 ../config.php 입니다.
</p>
<div id="g4_import_frm">
<label for="file_path">config.php 파일 경로</label>
<input type="text" name="file_path" id="file_path" required class="frm_input required">
<input type="submit" value="확인" class="btn_submit">
</div>
</form>
<p>
경로는 그누보드5 설치 루트를 기준으로 그누보드4의 config.php 파일의 상대경로입니다.<br>
예를 들어 그누보드4를 웹루트에 설치하셨고 그누보드5를 g5라는 하위 폴더에 설치하셨다면 입력하실 경로는 ../config.php 입니다.
</p>
</div>
<script>

View File

@ -7,6 +7,8 @@ ini_set('memory_limit', '50M');
$g5['title'] = '그누보드4 DB 데이터 이전';
include_once(G5_PATH.'/_head.php');
echo '<link rel="stylesheet" href="'.G5_URL.'/g4_import.css">';
if(empty($_POST))
alert('올바른 방법으로 이용해 주십시오.', G5_URL);
@ -47,6 +49,15 @@ function noRefresh()
document.onkeydown = noRefresh ;
</script>
<style>
#g4_import_run {}
#g4_import_run ol {margin: 0;padding: 0 0 0 25px;border: 1px solid #E9E9E9;border-bottom: 0;background: #f5f8f9;list-style:none;zoom:1}
#g4_import_run li {padding:7px 10px;border-bottom:1px solid #e9e9e9}
#g4_import_run #run_msg {padding:30px 0;text-align:center}
</style>
<div id="g4_import_run">
<ol>
<?php
flush();
@ -95,7 +106,7 @@ for($i=0; $row=sql_fetch_array($result); $i++) {
sql_query(" INSERT INTO {$g5['member_table']} SET $sql_common ");
}
echo '<p>member table 복사</p>'.PHP_EOL;
echo '<li>member table 복사</li>'.PHP_EOL;
unset($columns);
unset($fiels);
@ -120,7 +131,7 @@ for($i=0; $row=sql_fetch_array($result); $i++) {
sql_query(" INSERT INTO {$g5['point_table']} SET $sql_common ");
}
echo '<p>point table 복사</p>'.PHP_EOL;
echo '<li>point table 복사</li>'.PHP_EOL;
// login table 복사
$sql = " select * from {$g4['login_table']} ";
@ -146,7 +157,7 @@ for($i=0; $row=sql_fetch_array($result); $i++) {
sql_query(" INSERT INTO {$g5['login_table']} SET $sql_common ");
}
echo '<p>login table 복사</p>'.PHP_EOL;
echo '<li>login table 복사</li>'.PHP_EOL;
// visit table 복사
$sql = " select * from {$g4['visit_table']} ";
@ -172,7 +183,7 @@ for($i=0; $row=sql_fetch_array($result); $i++) {
sql_query(" INSERT INTO {$g5['visit_table']} SET $sql_common ");
}
echo '<p>visit table 복사</p>'.PHP_EOL;
echo '<li>visit table 복사</li>'.PHP_EOL;
// visit sum table 복사
$sql = " select * from {$g4['visit_sum_table']} ";
@ -198,7 +209,7 @@ for($i=0; $row=sql_fetch_array($result); $i++) {
sql_query(" INSERT INTO {$g5['visit_sum_table']} SET $sql_common ");
}
echo '<p>visit sum table 복사</p>'.PHP_EOL;
echo '<li>visit sum table 복사</li>'.PHP_EOL;
// group table 복사
$columns = array();
@ -236,7 +247,7 @@ for($i=0; $row=sql_fetch_array($result); $i++) {
sql_query(" INSERT INTO {$g5['group_table']} SET $sql_common ");
}
echo '<p>group table 복사</p>'.PHP_EOL;
echo '<li>group table 복사</li>'.PHP_EOL;
unset($columns);
unset($fiels);
@ -326,7 +337,7 @@ for($i=0; $row=sql_fetch_array($result); $i++) {
sql_query(" INSERT INTO $create_table SET $sql_common3 ");
}
echo '<p>'.str_replace(G5_TABLE_PREFIX.'write_', '', $create_table).' 게시글 복사</p>';
echo '<li>'.str_replace(G5_TABLE_PREFIX.'write_', '', $create_table).' 게시글 복사</li>';
}
}
@ -371,17 +382,21 @@ foreach($tables as $table) {
continue;
}
echo '<p>'.$table.' table 복사</p>'.PHP_EOL;
echo '<li>'.$table.' table 복사</li>'.PHP_EOL;
}
unset($columns);
unset($fiels);
echo '<p>&nbsp;</p>'.PHP_EOL;
echo '<p><b>그누보드4 DB 데이터 이전 완료</b></p>'.PHP_EOL;
echo '</ol>'.PHP_EOL;
echo '<div id="run_msg">그누보드4 DB 데이터 이전 완료</div>'.PHP_EOL;
// 실행완료 세션에 기록
set_session('tables_copied', 'done');
?>
</div>
<?php
include_once(G5_PATH.'/_tail.php');
?>