I figured it out. (The variable is passed by reference...)
Jay
On Mon, May 13, 2002, Jay F. Davis <jfdavis(a)mac.com> wrote:
Where is the $disp_mode variable set?
In sql.php, I find this:
include('./libraries/display_tbl.lib.php');
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(). ]
Thanks,
Jay Davis
_______________________________________________________________
Have big pipes?
SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth(a)sourceforge.net
_______________________________________________
Phpmyadmin-devel mailing list
Phpmyadmin-devel(a)lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel