function set_watch_table_title($table)
{
    global $ptitle_strings;
    $title = (!isset($table) or $table == '') ? $ptitle_strings['tb_watch'] : $ptitle_strings['tb_watch'] . ': ' . $table;
    set_panel_title('tb_watch', $title);
}
Ejemplo n.º 2
0
        $s_modify_name = $_POST['tb_modify_name'];
        set_panel_title('tb_modify', $ptitle_strings['tb_modify'] . ': ' . $s_modify_name);
    }
}
//
// prevent bypassing of the $HIDE_PANEL setting for the modify column actions
//
if (!have_panel_permissions($s_login['user'], 'tb_modify') && (isset($_POST['tb_modify_del']) || isset($_POST['tb_modadd_doit']) || isset($_POST['tb_modcol_doit']))) {
    die('bad boy');
}
//
// script is called via the Ready button on the modify table form
//
if (isset($_POST['tb_modify_ready'])) {
    $s_modify_name = '';
    set_panel_title('tb_modify', $ptitle_strings['tb_modify']);
}
//
// script is called via the Add Column button on the modify table form
//
if (isset($_POST['tb_modify_add'])) {
    $s_coldefs['add'] = array();
    $col_add_flag = TRUE;
}
//
// add the new column to the table
//
if (isset($_POST['tb_modadd_doit'])) {
    save_coldef('add');
    // interbase keywords are not allowed as column names
    if (in_array(strtoupper($s_coldefs['add']['name']), get_reserved_words(SERVER_FAMILY, SERVER_VERSION))) {