修复卸载插件不删除日志的问题。

Signed-off-by: HITSword <admin@huayizhiyun.com>
master
HITSword 2020-01-09 19:33:10 +08:00
parent 97d6577e19
commit 25d60bda15
1 changed files with 10 additions and 2 deletions

View File

@ -267,11 +267,19 @@
*/
function hyproxy_uninstall()
{
//先备份
hyproxy_backup();
//循环删除所有站点
global $medoo;
$table = 'module_hyproxy';
$medoo->delete($table, null);
hyproxy_make();
$columns = array('hyproxy_id','server_name','status');
$where = '';
$list = $medoo->select($table, $columns, $where);
if (!empty($list)) {
foreach ($list as $row) {
hyproxy_del($row['server_name']);
}
}
return "[OK] All proxy del success.\n";
}