mirror of
https://github.com/DzzXH/DzzOffice.git
synced 2026-01-23 12:25:18 +08:00
24 lines
643 B
PHP
24 lines
643 B
PHP
<?php
|
|
/*
|
|
* 应用卸载程序示例
|
|
* @copyright Leyun internet Technology(Shanghai)Co.,Ltd
|
|
* @license http://www.dzzoffice.com/licenses/license.txt
|
|
* @package DzzOffice
|
|
* @link http://www.dzzoffice.com
|
|
* @author zyx(zyx@dzz.cc)
|
|
*/
|
|
|
|
if (!defined('IN_DZZ') || !defined('IN_ADMIN')) {
|
|
exit('Access Denied');
|
|
}
|
|
//提示用户删除的严重程度
|
|
if($_GET['confirm']=='DELETE'){
|
|
$sql = <<<EOF
|
|
DROP TABLE IF EXISTS `dzz_test`;
|
|
EOF;
|
|
runquery($sql);
|
|
$finish = true; //结束时必须加入此句,告诉应用安装程序已经完成自定义的安装流程
|
|
}else{
|
|
header("Location: $confirm_uninstall_url");
|
|
exit();
|
|
} |