Пример #1
0
function fs_clear_bots_list()
{
    $res = fs_get_bots();
    if ($res) {
        foreach ($res as $r) {
            $id = $r['id'];
            $res1 = fs_remove_bot($id);
            if ($res1 != '') {
                return $res1;
            }
        }
    }
    return '';
}
Пример #2
0
function fs_ajax_removeBot(&$response)
{
    $bot_id = $_POST['bot_id'];
    $res = fs_remove_bot($bot_id);
    if ($res == '') {
        $response['message'] = sprintf(fs_r('Removed'));
        $response['fields']['botlist_placeholder'] = addslashes(fs_get_bot_list());
        $response['fields']['num_excluded'] = fs_get_num_excluded();
    } else {
        ajax_error($response, $res);
    }
}