Ejemplo n.º 1
0
	CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
	ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
	POSSIBILITY OF SUCH DAMAGE.
*/
require "guiconfig.inc";
if (!is_array($config['load_balancer']['lbpool'])) {
    $config['load_balancer']['lbpool'] = array();
}
$a_pool =& $config['load_balancer']['lbpool'];
if ($_POST) {
    $pconfig = $_POST;
    if ($_POST['apply']) {
        $retval = 0;
        config_lock();
        $retval |= filter_configure();
        $retval |= slbd_configure();
        config_unlock();
        $savemsg = get_std_save_message($retval);
        unlink_if_exists($d_vsconfdirty_path);
    }
}
if ($_GET['act'] == "del") {
    if ($a_pool[$_GET['id']]) {
        /* make sure no virtual servers reference this entry */
        if (is_array($config['load_balancer']['virtual_server'])) {
            foreach ($config['load_balancer']['virtual_server'] as $vs) {
                if ($vs['pool'] == $a_pool[$_GET['id']]['name']) {
                    $input_errors[] = "Bu girdi silinemez çünkü bir sanal sunucuyu işaret etmektedir.";
                    break;
                }
            }
Ejemplo n.º 2
0
function filter_configure_xmlrpc($raw_params)
{
    global $xmlrpc_g;
    $params = xmlrpc_params_to_php($raw_params);
    if (!xmlrpc_auth($params)) {
        return $xmlrpc_g['return']['authfail'];
    }
    require_once "vslb.inc";
    slbd_configure();
    filter_configure();
    system_routing_configure();
    return $xmlrpc_g['return']['true'];
}