get();
//action add or update
if (isset($_REQUEST["id"])) {
$action = "update";
$conference_profile_uuid = check_str($_REQUEST["id"]);
}
else {
$action = "add";
}
//get http post variables and set them to php variables
if (count($_POST) > 0) {
$profile_name = check_str($_POST["profile_name"]);
$profile_enabled = check_str($_POST["profile_enabled"]);
$profile_description = check_str($_POST["profile_description"]);
}
//check to see if the http post exists
if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//get the uuid
if ($action == "update") {
$conference_profile_uuid = check_str($_POST["conference_profile_uuid"]);
}
//check for all required data
$msg = '';
if (strlen($profile_name) == 0) { $msg .= $text['message-required']." ".$text['label-profile_name']."
\n"; }
if (strlen($profile_enabled) == 0) { $msg .= $text['message-required']." ".$text['label-profile_enabled']."
\n"; }
//if (strlen($profile_description) == 0) { $msg .= $text['message-required']." ".$text['label-profile_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 " |