return;
        }
        //if ($action == "add")
        if ($action == "update") {
            $sql = "update v_public_includes_details set ";
            //$sql .= "v_id = '$v_id', ";
            $sql .= "public_include_id = '{$public_include_id}', ";
            $sql .= "tag = '{$tag}', ";
            $sql .= "fieldtype = '{$fieldtype}', ";
            $sql .= "fielddata = '{$fielddata}', ";
            $sql .= "fieldorder = '{$fieldorder}' ";
            $sql .= "where public_includes_detail_id = '{$public_includes_detail_id}'";
            $db->exec(check_sql($sql));
            unset($sql);
            //synchronize the xml config
            sync_package_v_public_includes();
            require_once "includes/header.php";
            echo "<meta http-equiv=\"refresh\" content=\"2;url=v_public_includes_edit.php?id=" . $public_include_id . "\">\n";
            echo "<div align='center'>\n";
            echo "Update Complete\n";
            echo "</div>\n";
            require_once "includes/footer.php";
            return;
        }
        //if ($action == "update")
    }
    //if ($_POST["persistformvar"] != "true") {
}
//(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)
//Pre-populate the form
if (count($_GET) > 0 && $_POST["persistformvar"] != "true") {
Beispiel #2
0
function sync_package_freeswitch()
{
    global $config;
    sync_package_v_settings();
    sync_package_v_dialplan();
    sync_package_v_dialplan_includes();
    sync_package_v_extensions();
    sync_package_v_gateways();
    sync_package_v_modules();
    sync_package_v_public();
    sync_package_v_public_includes();
    sync_package_v_vars();
    sync_package_v_internal();
    sync_package_v_external();
    //sync_package_v_recordings();
    if (pkg_is_service_running('freeswitch')) {
        sync_package_v_auto_attendant();
    }
    sync_package_v_hunt_group();
}