mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Show global gateways.
This commit is contained in:
@@ -79,7 +79,7 @@ else {
|
|||||||
$description = check_str($_POST["description"]);
|
$description = check_str($_POST["description"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
|
|
||||||
$msg = '';
|
$msg = '';
|
||||||
if ($action == "update") {
|
if ($action == "update") {
|
||||||
@@ -296,7 +296,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||||||
header("Location: gateways.php");
|
header("Location: gateways.php");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)
|
} //(count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0)
|
||||||
|
|
||||||
//pre-populate the form
|
//pre-populate the form
|
||||||
if (count($_GET) > 0 && $_POST["persistformvar"] != "true") {
|
if (count($_GET) > 0 && $_POST["persistformvar"] != "true") {
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ else {
|
|||||||
|
|
||||||
//prepare to page the results
|
//prepare to page the results
|
||||||
$sql = "select count(*) as num_rows from v_gateways ";
|
$sql = "select count(*) as num_rows from v_gateways ";
|
||||||
$sql .= "where domain_uuid = '$domain_uuid' ";
|
$sql .= "where (domain_uuid = '$domain_uuid' or domain_uuid is null) ";
|
||||||
$prep_statement = $db->prepare($sql);
|
$prep_statement = $db->prepare($sql);
|
||||||
if ($prep_statement) {
|
if ($prep_statement) {
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
@@ -123,7 +123,7 @@ else {
|
|||||||
|
|
||||||
//get the list
|
//get the list
|
||||||
$sql = "select * from v_gateways ";
|
$sql = "select * from v_gateways ";
|
||||||
$sql .= "where domain_uuid = '$domain_uuid' ";
|
$sql .= "where (domain_uuid = '$domain_uuid' or domain_uuid is null) ";
|
||||||
if (strlen($order_by) == 0) {
|
if (strlen($order_by) == 0) {
|
||||||
$sql .= "order by gateway asc ";
|
$sql .= "order by gateway asc ";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user