<br><br><div class="gmail_quote">On Sat, Jun 30, 2012 at 6:17 PM, Thilina Buddika Abeyrathna <span dir="ltr"><<a href="mailto:thilinaabeyrathna@gmail.com" target="_blank">thilinaabeyrathna@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><br><div class="gmail_quote"><div class="im">On Sat, Jun 30, 2012 at 5:56 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">
Le 2012-06-30 08:18, Thilina Buddika Abeyrathna a écrit :<br>
<div>> On Sat, Jun 30, 2012 at 5:31 PM, Marc Delisle <<a href="mailto:marc@infomarc.info" target="_blank">marc@infomarc.info</a>> wrote:<br>
><br>
>> Le 2012-06-30 03:04, Thilina Buddika Abeyrathna a écrit :<br>
>>> Hi Marc,<br>
>>> There are two hard coded values in server_privileges.lib.php script which<br>
>>> username and hostname lengths. (line 849). Can we define those values in<br>
>> a<br>
>>> config file and access using $GLOBAL['cfg']['username_length'] and<br>
>>> $GLOBAL['cfg']['hostname_length'], Then it'll maintainable.<br>
>><br>
>> Hi Thilina,<br>
>> I cannot find this in your repo, please reply by posting a code snippet.<br>
>><br>
><br>
> in server_privileges.lib.php (lin 844)<br>
> $username_length = 16;<br>
> $hostname_length = 41;<br>
> My suggestion was, remove the hard corded value and define those hard<br>
> corded values in config file and access<br>
> using $GLOBAL['cfg']['username_length'] etc.<br>
<br>
</div>Well, these values have been chosen by MySQL itself; I'm not sure what<br>
to do with them, as I don't see why a person installing phpMyAdmin would<br>
need to change them.<br>
<br>
When we add configuration directives, we must have a clear reason.<br>
<div><div><br></div></div></blockquote></div><div>Ok Marc, Thank you.</div></div></blockquote><div><br></div><div>Hi Marc,</div><div>There are two variables in server_privileges.php file which I couldn't find the definitions.</div>
<div>line 226. (brown color variables)</div><div>======</div><div><div>if ($<font color="#990000">pred_username </font>== 'any') {</div><div> $username = '';</div><div>}</div><div>switch ($<font color="#993300">pred_hostname</font>) {</div>
<div>case 'any':</div></div></div><div>=====</div><div>So can you help me to get that.</div>-- <br><font face="georgia, serif">Regards.</font><br><br><font face="'trebuchet ms', sans-serif" color="#660000">Thilina Abeyrathna</font><font face="georgia, serif"><br>
</font><div><font face="georgia, serif" size="1">Gtalk : thilinaabeyrathna</font></div><div><font face="georgia, serif" size="1">skype: thilinabuddika88</font></div><div><font face="georgia, serif"><font size="1"><a href="http://thilinaa.wordpress.com" target="_blank">thilinaa.wordpress.com</a> <br>
</font><br></font></div><br>