parent
97d6577e19
commit
25d60bda15
|
|
@ -267,11 +267,19 @@
|
||||||
*/
|
*/
|
||||||
function hyproxy_uninstall()
|
function hyproxy_uninstall()
|
||||||
{
|
{
|
||||||
|
//先备份
|
||||||
hyproxy_backup();
|
hyproxy_backup();
|
||||||
|
//循环删除所有站点
|
||||||
global $medoo;
|
global $medoo;
|
||||||
$table = 'module_hyproxy';
|
$table = 'module_hyproxy';
|
||||||
$medoo->delete($table, null);
|
$columns = array('hyproxy_id','server_name','status');
|
||||||
hyproxy_make();
|
$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";
|
return "[OK] All proxy del success.\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue