<div dir="ltr">Hi<font face="arial, sans-serif"><span style="white-space:nowrap"> guys,</span></font><div><span style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap">I tried using '</span><span style="color:rgb(153,119,255);font-family:'Courier New',Courier,monospace,serif;font-size:12px;font-weight:bold;line-height:18px">PMA_</span><span style="color:rgb(153,119,255);font-family:'Courier New',Courier,monospace,serif;font-size:12px;font-weight:bold;line-height:18px">getDbRightsForUserOverview()</span><span style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap">' and it turns out that it returns the overview of privileges for all users present in `mysql`.`user`. </span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap">What we need for this is the 'Create_priv' field for current user only. I also looked for such a function in </span><span style="font-size:13px;font-family:arial,sans-serif">'./libraries/server_</span><span style="font-size:13px;font-family:arial,sans-serif">privileges.lib.php' but could not find any.</span></div>
<div style><span style="font-size:13px;font-family:arial,sans-serif"><br></span></div><div style><font face="arial, sans-serif">Do you know any functions which can give all the privileges from </font><span style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap">`mysql`.`user` current user..??</span></div>
<div style><span style="font-size:13px;font-family:arial,sans-serif"><br></span></div><div style><span style="font-size:13px;font-family:arial,sans-serif">Thanks..:)</span></div><div style><span style="font-size:13px;font-family:arial,sans-serif"><br>
</span></div><div style><span style="font-size:13px;font-family:arial,sans-serif">Regards,</span></div><div style><span style="font-size:13px;font-family:arial,sans-serif">Dhananjay R. Nakrani,</span></div><div style><span style="font-size:13px;font-family:arial,sans-serif">A Newbie to open-source projects.</span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 15, 2014 at 8:45 PM, Marc Delisle <span dir="ltr"><<a href="mailto:marc@infomarc.info" target="_blank">marc@infomarc.info</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Viduranga Wijesooriya a écrit :<br>
<div><div class="h5">> Hi,<br>
> Regarding <a href="https://sourceforge.net/p/phpmyadmin/feature-requests/1489/" target="_blank">https://sourceforge.net/p/phpmyadmin/feature-requests/1489/</a><br>
> This is the line which adds new node to the navigation panel -<br>
> <a href="https://github.com/phpmyadmin/phpmyadmin/blob/master/libraries/navigation/Nodes/Node_Database_Container.class.php#L42" target="_blank">https://github.com/phpmyadmin/phpmyadmin/blob/master/libraries/navigation/Nodes/Node_Database_Container.class.php#L42</a><br>
> How to include 'sever_privileges.lib.php', in that file to be able to call<br>
> functions like 'PMA_getDbRightsForUserOverview()'( )<br>
><br>
> Thanks<br>
<br>
</div></div>Try this in the __construct() method of this class:<br>
include_once './libraries/server_privileges.lib.php';<br>
<br>
--<br>
Marc Delisle<br>
<a href="http://infomarc.info" target="_blank">http://infomarc.info</a> | <a href="http://phpmyadmin.net" target="_blank">http://phpmyadmin.net</a><br>
<br>
------------------------------------------------------------------------------<br>
CenturyLink Cloud: The Leader in Enterprise Cloud Services.<br>
Learn Why More Businesses Are Choosing CenturyLink Cloud For<br>
Critical Workloads, Development Environments & Everything In Between.<br>
Get a Quote or Start a Free Trial Today.<br>
<a href="http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk" target="_blank">http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk</a><br>
_______________________________________________<br>
Phpmyadmin-devel mailing list<br>
<a href="mailto:Phpmyadmin-devel@lists.sourceforge.net">Phpmyadmin-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel</a><br>
</blockquote></div><br></div>