Response message updates.
This commit is contained in:
parent
450d2b5d90
commit
be84f215c0
|
|
@ -35,7 +35,7 @@ else {
|
|||
}
|
||||
|
||||
//add multi-lingual support
|
||||
require_once "app/calls/app_languages.php";
|
||||
require_once "app_languages.php";
|
||||
foreach($text as $key => $value) {
|
||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
|
@ -93,13 +93,9 @@ if (strlen($id)>0) {
|
|||
|
||||
}
|
||||
|
||||
//redirect the user
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=conferences.php\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "".$text['confirm-delete']."\n";
|
||||
echo "</div>\n";
|
||||
require_once "resources/footer.php";
|
||||
|
||||
$_SESSION["message"] = $text['confirm-delete'];
|
||||
header("Location: conferences.php");
|
||||
return;
|
||||
|
||||
?>
|
||||
|
|
@ -77,11 +77,9 @@ else {
|
|||
$sql .= "and conference_uuid = '".$conference_uuid."' ";
|
||||
$sql .= "and user_uuid = '".$user_uuid."' ";
|
||||
$db->exec(check_sql($sql));
|
||||
//redirect the browser
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=conferences_edit.php?id=$conference_uuid\">\n";
|
||||
echo "<div align='center'>".$text['confirm-delete']."</div>";
|
||||
require_once "resources/footer.php";
|
||||
|
||||
$_SESSION["message"] = $text['confirm-delete'];
|
||||
header("Location: conference_edit.php?id=".$conference_uuid);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -106,11 +104,9 @@ else {
|
|||
$sql_insert .= "'".$user_uuid."' ";
|
||||
$sql_insert .= ")";
|
||||
$db->exec($sql_insert);
|
||||
//redirect the browser
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=conferences_edit.php?id=$conference_uuid\">\n";
|
||||
echo "<div align='center'>".$text['confirm-add']."</div>";
|
||||
require_once "resources/footer.php";
|
||||
|
||||
$_SESSION["message"] = $text['confirm-add'];
|
||||
header("Location: conference_edit.php?id=".$conference_uuid);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -217,6 +213,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
$dialplan_detail_group = '2';
|
||||
dialplan_detail_add($_SESSION['domain_uuid'], $dialplan_uuid, $dialplan_detail_tag, $dialplan_detail_order, $dialplan_detail_group, $dialplan_detail_type, $dialplan_detail_data);
|
||||
|
||||
$_SESSION["message"] = $text['confirm-add'];
|
||||
|
||||
} //if ($action == "add")
|
||||
|
||||
if ($action == "update") {
|
||||
|
|
@ -271,6 +269,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
$sql .= "and dialplan_uuid = '$dialplan_uuid' ";
|
||||
$db->query($sql);
|
||||
|
||||
$_SESSION["message"] = $text['confirm-update'];
|
||||
|
||||
} //if ($action == "update")
|
||||
|
||||
//save the xml
|
||||
|
|
@ -286,13 +286,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
$switch_result = event_socket_request($fp, 'api '.$switch_cmd);
|
||||
}
|
||||
|
||||
//redirect the browser
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=conferences.php\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "".$text['confirm-update']."\n";
|
||||
echo "</div>\n";
|
||||
require_once "resources/footer.php";
|
||||
header("Location: conferences.php");
|
||||
return;
|
||||
|
||||
} //if ($_POST["persistformvar"] != "true")
|
||||
|
|
@ -408,7 +402,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
echo " <tr>\n";
|
||||
echo " <td class='vtable'>".$field['username']."</td>\n";
|
||||
echo " <td>\n";
|
||||
echo " <a href='conferences_edit.php?id=".$conference_uuid."&domain_uuid=".$_SESSION['domain_uuid']."&user_uuid=".$field['user_uuid']."&a=delete' alt='delete' onclick=\"return confirm('".$text['confirm-delete-2']."')\">$v_link_label_delete</a>\n";
|
||||
echo " <a href='conference_edit.php?id=".$conference_uuid."&domain_uuid=".$_SESSION['domain_uuid']."&user_uuid=".$field['user_uuid']."&a=delete' alt='delete' onclick=\"return confirm('".$text['confirm-delete-2']."')\">$v_link_label_delete</a>\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue