+10
-2
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user