<br><br><div class="gmail_quote">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 class="im">> On Sat, Jun 30, 2012 at 5:31 PM, Marc Delisle <<a href="mailto:marc@infomarc.info">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 class="HOEnZb"><div class="h5"><br></div></div></blockquote><div>Ok Marc, Thank you. </div></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>