first
This commit is contained in:
33
modules/admin/action/a.uninstall.php
Normal file
33
modules/admin/action/a.uninstall.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
checkAdmin(0);
|
||||
|
||||
// 제거탭 출력 설정 하지 않은 경우 차단
|
||||
if (!$d['admin']['uninstall'])
|
||||
{
|
||||
getLink('','','정상적인 접속이 아닙니다.','');
|
||||
}
|
||||
|
||||
// FTP 삭제
|
||||
if ($d['admin']['ftp_use']&&$d['admin']['ftp'])
|
||||
{
|
||||
getLink('','','죄송합니다. FTP를 이용한 삭제는 아직 지원하지 않습니다.','');
|
||||
}
|
||||
// NOBODY 삭제
|
||||
else {
|
||||
foreach ($table as $key => $val) db_query('drop table '.$val,$DB_CONNECT);
|
||||
include $g['path_core'].'function/dir.func.php';
|
||||
DirDelete('./');
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<script>
|
||||
top.location.href = 'http://<?php echo $_SERVER['HTTP_HOST']?>/';
|
||||
</script>
|
||||
</head>
|
||||
<body></body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user