} // creating or modifying exception was canceled if (isset($_POST['acc_exc_create_cancel']) || isset($_POST['acc_exc_mod_cancel'])) { $s_exception_defs = array(); } // init the array s_exceptions if ($s_exceptions_valid == FALSE || isset($_POST['acc_exc_reload'])) { $s_exceptions = get_exceptions($s_exceptions_order, $s_exceptions_dir); $s_exceptions_valid = TRUE; } // the Drop button on the udf panel was pushed if (isset($_POST['acc_exc_del']) && isset($_POST['acc_exc_del_name']) && $_POST['acc_exc_del_name'] != '') { $dname = $_POST['acc_exc_del_name']; $deps = get_dependencies(OT_EXCEPTION, $dname); if (count($deps) > 0) { $message = sprintf($MESSAGES['HAVE_DEPENDENCIES'], $acc_strings['Exception'], $dname, dependencies_string($deps)); } else { if ($s_cust['askdel'] == TRUE) { $s_confirmations['exc'] = array('msg' => sprintf($MESSAGES['CONFIRM_EXC_DELETE'], $dname), 'obj' => $dname); } else { drop_exception($dname); } } } } // setup $s_tables[] and $s_fields[] if necessary if ($s_connected == TRUE && $s_tables_valid == FALSE) { include_once './inc/get_tables.inc.php'; if (get_tables()) { $s_tables_valid = TRUE; }
} else { $sql = ''; } if ($s_wt['table'] == $s_modify_name) { $s_watch_buffer = ''; } } // // script is called from the delete table form // if (have_panel_permissions($s_login['user'], 'tb_delete')) { if (isset($_POST['tb_delete_doit']) && isset($_POST['tb_delete_name']) && !empty($_POST['tb_delete_name'])) { $tname = $_POST['tb_delete_name']; $deps = get_dependencies(OT_RELATION, $tname); if (count($deps) > 0) { $message = sprintf($MESSAGES['HAVE_DEPENDENCIES'], $tb_strings['Table'], $tname, dependencies_string($deps)); } else { $quote = identifier_quote($s_login['dialect']); $tstr = $quote . $tname . $quote; $drop_statement = $s_tables[$tname]['is_view'] == TRUE ? 'DROP VIEW ' . $tstr : 'DROP TABLE ' . $tstr; if ($s_cust['askdel'] == TRUE) { $s_confirmations['table'] = array('msg' => sprintf($MESSAGES['CONFIRM_TABLE_DELETE'], $tname), 'sql' => $drop_statement); } else { $sql = $drop_statement; } if ($s_modify_name == $_POST['tb_delete_name']) { $s_modify_name = ''; } if ($s_wt['table'] == $_POST['tb_delete_name']) { $s_wt['table'] = ''; $s_watch_buffer = '';