get();
//action add or update
if (isset($_REQUEST["id"])) {
$action = "update";
$conference_profile_param_uuid = check_str($_REQUEST["id"]);
}
else {
$action = "add";
}
//set the parent uuid
if (strlen($_GET["conference_profile_uuid"]) > 0) {
$conference_profile_uuid = check_str($_GET["conference_profile_uuid"]);
}
//get http post variables and set them to php variables
if (count($_POST)>0) {
$profile_param_name = check_str($_POST["profile_param_name"]);
$profile_param_value = check_str($_POST["profile_param_value"]);
$profile_param_enabled = check_str($_POST["profile_param_enabled"]);
$profile_param_description = check_str($_POST["profile_param_description"]);
}
//process the http post if it exists
if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//get the uuid
if ($action == "update") {
$conference_profile_param_uuid = check_str($_POST["conference_profile_param_uuid"]);
}
//check for all required data
$msg = '';
if (strlen($profile_param_name) == 0) { $msg .= $text['message-required']." ".$text['label-profile_param_name']."
\n"; }
if (strlen($profile_param_value) == 0) { $msg .= $text['message-required']." ".$text['label-profile_param_value']."
\n"; }
if (strlen($profile_param_enabled) == 0) { $msg .= $text['message-required']." ".$text['label-profile_param_enabled']."
\n"; }
//if (strlen($profile_param_description) == 0) { $msg .= $text['message-required']." ".$text['label-profile_param_description']."
\n"; }
if (strlen($msg) > 0 && strlen($_POST["persistformvar"]) == 0) {
require_once "resources/header.php";
require_once "resources/persist_form_var.php";
echo "
| \n";
echo $msg." "; echo " |