[Phpmyadmin-devel] $disp_mode variable

Jay F. Davis jfdavis at mac.com
Mon May 13 12:50:01 CEST 2002

Where is the $disp_mode variable set?

In sql.php, I find this:

        if (empty($disp_mode)) {
            // see the "PMA_setDisplayMode()" function in
            // libraries/display_tbl.lib.php
            $disp_mode = 'urdr11110';
        PMA_displayTable($result, $disp_mode);

Is that it? (i.e., it is always 'urdr11110'?)

I've analyzed PMA_setDisplayMode(), and I see that $disp_mode determines
whether certain editing/sorting, etc. features are enabled in browse
mode. I want to make 'edit' and 'delete' only appear when the user's
permissions allow these to be used. 

[ I'm willing to try a patch, but it seems that $disp_mode ought to be
set within PMA_setDisplayMode() rather than passed into the function
PMA_displayTable(). ]


Jay Davis

More information about the Developers mailing list