Hi, Regarding https://sourceforge.net/p/phpmyadmin/feature-requests/1489/ This is the line which adds new node to the navigation panel - https://github.com/phpmyadmin/phpmyadmin/blob/master/libraries/navigation/No... How to include 'sever_privileges.lib.php', in that file to be able to call functions like 'PMA_getDbRightsForUserOverview()'( )
Thanks
Viduranga Wijesooriya a écrit :
Hi, Regarding https://sourceforge.net/p/phpmyadmin/feature-requests/1489/ This is the line which adds new node to the navigation panel - https://github.com/phpmyadmin/phpmyadmin/blob/master/libraries/navigation/No... How to include 'sever_privileges.lib.php', in that file to be able to call functions like 'PMA_getDbRightsForUserOverview()'( )
Thanks
Try this in the __construct() method of this class: include_once './libraries/server_privileges.lib.php';
Hi guys,
I tried using 'PMA_getDbRightsForUserOverview()' and it turns out that it returns the overview of privileges for all users present in `mysql`.`user`.
What we need for this is the 'Create_priv' field for current user only. I also looked for such a function in './libraries/server_privileges.lib.php' but could not find any.
Do you know any functions which can give all the privileges from `mysql`.`user` current user..??
Thanks..:)
Regards, Dhananjay R. Nakrani, A Newbie to open-source projects.
On Wed, Jan 15, 2014 at 8:45 PM, Marc Delisle marc@infomarc.info wrote:
Viduranga Wijesooriya a écrit :
Hi, Regarding https://sourceforge.net/p/phpmyadmin/feature-requests/1489/ This is the line which adds new node to the navigation panel -
https://github.com/phpmyadmin/phpmyadmin/blob/master/libraries/navigation/No...
How to include 'sever_privileges.lib.php', in that file to be able to
call
functions like 'PMA_getDbRightsForUserOverview()'( )
Thanks
Try this in the __construct() method of this class: include_once './libraries/server_privileges.lib.php';
-- Marc Delisle http://infomarc.info | http://phpmyadmin.net
CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.cl... _______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
Yes. I think you need to create a new function which checks privileges of the current user
On Sat, Jan 18, 2014 at 12:44 PM, Dhananjay Nakrani < dhananjaynakrani@gmail.com> wrote:
Hi guys,
I tried using 'PMA_getDbRightsForUserOverview()' and it turns out that it returns the overview of privileges for all users present in `mysql`.`user`.
What we need for this is the 'Create_priv' field for current user only. I also looked for such a function in './libraries/server_privileges.lib.php' but could not find any.
Do you know any functions which can give all the privileges from `mysql`.`user` current user..??
Thanks..:)
Regards, Dhananjay R. Nakrani, A Newbie to open-source projects.
On Wed, Jan 15, 2014 at 8:45 PM, Marc Delisle marc@infomarc.info wrote:
Viduranga Wijesooriya a écrit :
Hi, Regarding https://sourceforge.net/p/phpmyadmin/feature-requests/1489/ This is the line which adds new node to the navigation panel -
https://github.com/phpmyadmin/phpmyadmin/blob/master/libraries/navigation/No...
How to include 'sever_privileges.lib.php', in that file to be able to
call
functions like 'PMA_getDbRightsForUserOverview()'( )
Thanks
Try this in the __construct() method of this class: include_once './libraries/server_privileges.lib.php';
-- Marc Delisle http://infomarc.info | http://phpmyadmin.net
CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.cl... _______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.cl... _______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
Le 2014-01-18 02:14, Dhananjay Nakrani a écrit :
Hi guys,
I tried using 'PMA_getDbRightsForUserOverview()' and it turns out that it returns the overview of privileges for all users present in `mysql`.`user`.
What we need for this is the 'Create_priv' field for current user only. I also looked for such a function in './libraries/server_privileges.lib.php' but could not find any.
Do you know any functions which can give all the privileges from `mysql`.`user` current user..??
Have a look in libraries/check_user_privileges.lib.php to the function PMA_analyseShowGrant().
Yeah. That worked... Thanks..:)
On Sat, Jan 18, 2014 at 5:51 PM, Marc Delisle marc@infomarc.info wrote:
Le 2014-01-18 02:14, Dhananjay Nakrani a écrit :
Hi guys,
I tried using 'PMA_getDbRightsForUserOverview()' and it turns out that it returns the overview of privileges for all users present in `mysql`.`user`.
What we need for this is the 'Create_priv' field for current user only. I also looked for such a function in './libraries/server_privileges.lib.php' but could not find any.
Do you know any functions which can give all the privileges from `mysql`.`user` current user..??
Have a look in libraries/check_user_privileges.lib.php to the function PMA_analyseShowGrant().
-- Marc Delisle http://infomarc.info | http://phpmyadmin.net
CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.cl... _______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel