mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Change the tables to schemas.
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "includes/require.php";
|
||||
require_once "includes/checkauth.php";
|
||||
if (permission_exists('table_delete')) {
|
||||
if (permission_exists('schema_delete')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -35,17 +35,16 @@ else {
|
||||
}
|
||||
|
||||
//get the http values
|
||||
if (count($_GET)>0) {
|
||||
if (count($_GET) > 0) {
|
||||
$id = check_str($_GET["id"]);
|
||||
$table_uuid = check_str($_GET["table_uuid"]);
|
||||
$schema_uuid = check_str($_GET["schema_uuid"]);
|
||||
}
|
||||
|
||||
//delete the data
|
||||
if (strlen($id)>0) {
|
||||
$sql = "";
|
||||
$sql .= "delete from v_table_fields ";
|
||||
if (strlen($id) > 0) {
|
||||
$sql = "delete from v_schema_fields ";
|
||||
$sql .= "where domain_uuid = '$domain_uuid' ";
|
||||
$sql .= "and table_field_uuid = '$id' ";
|
||||
$sql .= "and schema_field_uuid = '$id' ";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
unset($sql);
|
||||
@@ -53,11 +52,11 @@ else {
|
||||
|
||||
//redirect the user
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=table_edit.php?id=$table_uuid\">\n";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=schema_edit.php?id=$schema_uuid\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Delete Complete\n";
|
||||
echo "</div>\n";
|
||||
require_once "includes/footer.php";
|
||||
return;
|
||||
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user