Example #1
0
function update_proxy($proxyid, $name, $status, $useip, $dns, $ip, $port, $hosts)
{
    $result = db_save_proxy($name, $status, $useip, $dns, $ip, $port, $proxyid);
    if (!$result) {
        return $result;
    }
    update_hosts_by_proxyid($proxyid, $hosts);
    return $result;
}
Example #2
0
function update_proxy($proxyid, $name, $hosts)
{
    $result = db_save_proxy($name, $proxyid);
    if (!$result) {
        return $result;
    }
    update_hosts_by_proxyid($proxyid, $hosts);
    return $result;
}