You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
643 B
24 lines
643 B
<?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();
|
|
}
|