모듈 프로그램 자료실
| 라이센스 | GPL2 |
|---|---|
| 기타 라이센스 | |
| 적용 버전 | 베타버전(1.0이전) |
- 설치할때 모듈디렉토리(/modules/uninstall)에 넣어주세요.
에디터 플러스 사용했구요.
번역은 저 나름데로 구글어스로 했어요.
그리고 데이타 베이스는 안지워지고
files 만 지워져요.
그리고 사용방법은요
http://◎◎◎◎◎.◎◎.◎◎/제로보드가 설치된 경로/?module=uninstall
하시면 됩니다.
관리자 페이지에서 하는것이 아니에요. 단독모듈입니다.
그리고 관리자만 되게 만들었어요.
앞의 게시글이 더러워 져서 다시 씀


영문 메시지는
Uninstall completed. Thank you for having been with Zeroboard XE.
제거 완료. 제로보드 XE와 함께해 주셨던 것에 감사드립니다.
가 조금 더 나을 듯 합니다. having been with이 썩 좋아보이진 않지만...
참고하시죠.
당연히 table까지 싹 drop하는겁니다.
<?
if($exec=="uninstall"&&$uninstall=="ok") {
if(!$u_hostname) Error("Hostname을 입력하세요");
if(!$u_userid) Error("User ID를 입력하세요");
if(!$u_password) Error("Password를 입력하세요");
if(!$u_dbname) Error("DB Name을 입력하세요");
mysql_close($connect);
$connect = @mysql_connect($u_hostname,$u_userid,$u_password) or error(mysql_error());
@mysql_select_db($u_dbname) or Error(mysql_error());
$result = mysql_query("show table status from $u_dbname like 'zetyx%'",$connect) or error(mysql_error());
while($data=mysql_fetch_array($result)) {
mysql_query("drop table $data[Name]");
}
zRmDir("./data");
zRmDir("./icon");
z_unlink("./config.php");
error("제로보드가 서버에서 완전히 제거되었습니다","install.php");
exit();
}
?>
<table border=0 cellspacing=0 cellpadding=10 bgcolor=eeeeee width=100% height=100%>
<form name=uninstall method=post onsubmit="return confirm('제거하시겠습니까?')">
<input type=hidden name=exec value="uninstall">
<input type=hidden name=uninstall value="ok">
<tr>
<td valign=top style=line-height:160% align=center>
<br>
<font size=4 color=black><b>제로보드 제거</b><br></font>
<br>
<font color=black>
<table border=0>
<tr>
<td style=line-height:160%;color=black>
제로보드를 제거하시기 전에 꼭 DB 백업을 하시기 바랍니다.<br>
상단의 <b>DB 백업</b> 버튼을 누르면 현재 제로보드의 모든 테이블을 백업 받으실수 있습니다.<br>
백업을 받으셨다면 아래의 DB 정보를 입력하시고 확인 버튼을 누르시면 제로보드는 제거가 됩니다.<br>
제로보드 제거시 DB의 정보와 data, icon, config.php 등의 파일까지 모두 삭제가 됩니다.<br>
</td>
</tr>
</table>
<br>
<table border=0 cellspacing=1 cellpadding=3 bgcolor=777777>
<tr>
<td bgcolor=555555 align=right style=font-family:tahoma;font-size:8pt;color:white width=100><b>Hostname </td>
<td bgcolor=f3f3f3><input type=input name=u_hostname value="" class=input size=20></td>
</tr>
<tr>
<td bgcolor=555555 align=right style=font-family:tahoma;font-size:8pt;color:white width=100><b>User ID </td>
<td bgcolor=f3f3f3><input type=input name=u_userid value="" class=input size=20></td>
</tr>
<tr>
<td bgcolor=555555 align=right style=font-family:tahoma;font-size:8pt;color:white width=100><b>Password </td>
<td bgcolor=f3f3f3><input type=password name=u_password value="" class=input size=20></td>
</tr>
<tr>
<td bgcolor=555555 align=right style=font-family:tahoma;font-size:8pt;color:white width=100><b>DB Name </td>
<td bgcolor=f3f3f3><input type=input name=u_dbname value="" class=input size=20></td>
</tr>
<tr>
<td colspan=2 bgcolor=555555 align=center><input type=submit value=" 확 인 " style=border-color:#b0b0b0;background-color:#3d3d3d;color:#ffffff;font-size:8pt;font-family:Tahoma;height:20px;></td>
</tr>
</table>
</td>
</tr>
</form>
</table>
음
이런방법도 있습니다.
제로보드4를 XE로 생각하고 예로 설명하겠습니다.
텔넷이나 ssh2로 접속해서 자신의 계정 루트/web 디렉토리로 이동한 후
rm -rf ./bbs 라고 타이핑하여 제로보드4 디렉토리를 완전히 지워줍니다.
이렇게요
[honam36@보안검열 web]$ rm -rf ./bbs
그 후에, mysql -u 자신의 아이디 -p 엔터 치고 나면
[honam36@보안검열 web]$ mysql -u honam36 -p honam36
Enter password:
이렇게 비밀번호를 입력하라는 메시지가 뜹니다.
비밀번호를 입력하시고 엔터 치세요. 화면상에는 안 나옵니다 ㅡㅡㅋ
그러면
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 168696 to server version: 4.0.24-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
그러면, show tables; 명령으로.. 지금 제 디비에 있는 테이블들을 쫙 봅닏.
그러면 대략 이런식으로 나옵니다.
mysql> show tables;
+-----------------------------+
| Tables_in_honam36 |
+-----------------------------+
| tc_Attachments |
| tc_BlogSettings |
| tc_BlogStatistics |
| tc_Categories |
| tc_Comments |
| tc_CommentsNotified |
| tc_CommentsNotifiedQueue |
| tc_CommentsNotifiedSiteInfo |
| tc_DailyStatistics |
| tc_Entries |
| tc_FeedGroupRelations |
| tc_FeedGroups |
| tc_FeedItems |
| tc_FeedReads |
| tc_FeedSettings |
| tc_FeedStarred |
| tc_Feeds |
| tc_Filters |
| tc_Links |
| tc_OpenIDComments |
| tc_OpenIDUsers |
| tc_Plugins |
| tc_RefererLogs |
| tc_RefererStatistics |
| tc_ReservedWords |
| tc_ServiceSettings |
| tc_SessionVisits |
| tc_Sessions |
| tc_SkinSettings |
| tc_SubscriptionLogs |
| tc_SubscriptionStatistics |
| tc_TagRelations |
| tc_Tags |
| tc_TeamUserSettings |
| tc_Teamblog |
| tc_TrackbackLogs |
| tc_Trackbacks |
| tc_UserSettings |
| tc_Users |
| tc_XMLRPCPingSettings |
| zetyx_admin_table |
| zetyx_get_memo |
| zetyx_group_table |
| zetyx_member_table |
| zetyx_send_memo |
+-----------------------------+
45 rows in set (0.00 sec)
mysql>
저는 tc는 텍스트큐브, zetyx_ 로 시작하는것들은 제로보드 4입니다.
그러면 지울 테이블을 고릅니다.
zetyx_ 로 시작하는것들만 지워주면 되겠지요.
mysql> drop table zetyx_admin_table;
Query OK, 0 rows affected (0.01 sec)
mysql> drop table zetyx_get_memo;
Query OK, 0 rows affected (0.01 sec)
mysql> drop table zetyx_group_table;
Query OK, 0 rows affected (0.01 sec)
mysql> drop table zetyx_member_table;
Query OK, 0 rows affected (0.01 sec)
mysql> drop table zetyx_send_memo;
Query OK, 0 rows affected (0.01 sec)
mysql>
이렇게 지워주시고 나서 다시 확인해봅시다.
mysql> show tables;
+-----------------------------+
| Tables_in_honam36 |
+-----------------------------+
| tc_Attachments |
| tc_BlogSettings |
| tc_BlogStatistics |
| tc_Categories |
| tc_Comments |
| tc_CommentsNotified |
| tc_CommentsNotifiedQueue |
| tc_CommentsNotifiedSiteInfo |
| tc_DailyStatistics |
| tc_Entries |
| tc_FeedGroupRelations |
| tc_FeedGroups |
| tc_FeedItems |
| tc_FeedReads |
| tc_FeedSettings |
| tc_FeedStarred |
| tc_Feeds |
| tc_Filters |
| tc_Links |
| tc_OpenIDComments |
| tc_OpenIDUsers |
| tc_Plugins |
| tc_RefererLogs |
| tc_RefererStatistics |
| tc_ReservedWords |
| tc_ServiceSettings |
| tc_SessionVisits |
| tc_Sessions |
| tc_SkinSettings |
| tc_SubscriptionLogs |
| tc_SubscriptionStatistics |
| tc_TagRelations |
| tc_Tags |
| tc_TeamUserSettings |
| tc_Teamblog |
| tc_TrackbackLogs |
| tc_Trackbacks |
| tc_UserSettings |
| tc_Users |
| tc_XMLRPCPingSettings |
+-----------------------------+
40 rows in set (0.00 sec)
mysql>
제로보드 4 테이블만 싹 지워졌네요 :)
끝내고 나서는
mysql> exit
해주시면 처음으로 돌아갑니다.
[honam36@보안검열 web]$
이렇게요,
뭐 이런 방법도 있다는것만 알아두세요,
제가 첫번째로 아직 한번에 여러 테이블을 지우는 방법은 모릅니다 ㅡㅡㅋ
와일드카드를 써봤지만 문법에 맞지 않다고 하네요 ㅡㅡ; 그래서 노가다를 했구요 ㅋ
mysql_query(drop table~~~ 이런식으로 하면 된다고 하네요. 그러고보니 위에도 나와있었죠ㅋ
그리고 두번째로 mysql 구문을 php에서 적용하는것도 가물가물 하구요..
두번째거야 집에 있는 책에 있지만 찾기가 귀찮고...
음, 두가지 다 인터넷에 나와있으니까 캬캬캬캬캬컄님이 검색해보시고 조합해서 만들어보세요.
제로보드 XE 테이블 머릿말이 xe였죠 아마,
아이디와 패스워드를 확인 한 다음에 맞으면
xe로 시작하는 테이블을 싹 날리는 sql문을 php로 작성하는 식으로 하시면 될겁니다.
근데요, 이거때문에 홈피 망할 수도 있어요. http://홈피주소/제로보드xe설치경로/modules/uninstall/tpl/delcmd.php 하면 그냥 지워지기 때문에...... 조심하세요.






자유게시판에 그때 글쓴 님. 언인스톨 모듈 올리셨네.. 굿입니다~
궁금한 질문 몇가지만 드릴께요.
1. 언인스톨 실행하면 zbxe 폴더안의 폴더들은 그대로 있고, files에 있는 내용들만 지워지는건가요? 그럼 업로드한 파일들도 모두 지워지는건가요?
2. 만약 언인스톨하고 /zbxe로 주소를 치고 들어가면 설치화면이 뜨는건가요?
3. 그럼 재설치를 한후 새 게시판을 생성해서 지워지지 않은 데이버베이스의 내용들을 다시 생성된 게시판에 넣으려면 어떻게 해야 하는건가요?
혹시나 만약 언인스톨하게 되는 경우가 있음 궁금한것 해결하고 해보려고요.. ^^
좋은 자료 감사하구요~ 즐거운 하루~