[Phpmyadmin-devel] proposals: Refactoring: Insert/edit, Privileges, Operations, Structure

Marc Delisle marc at infomarc.info
Tue Apr 3 18:46:49 CEST 2012


Le 2012-04-03 01:43, nandu a écrit :
> Marc
>       I tried my hands on git and was able to push my changes in phpmyadmin
> repository, please let me know
> if any further changes required.
> 
> Thanks
> 
> 

Nandu,
please give the reference to your repository. Also, please use
bottom-posting on this list.

> 
> 
> 
> On Mon, Apr 2, 2012 at 11:46 PM, Marc Delisle <marc at infomarc.info> wrote:
> 
>> Le 2012-04-02 13:18, nandu a écrit :
>>> hello
>>> Reagarding the submitting of patch I have a doubt since the ios device
>>> alphabets to be lowecased, should I just submit a text file with the
>>> following code??
>>>
>>> $(function () {
>>>    $('input:text').prop({
>>>        autocapitalize: 'off',
>>>        autocorrect: 'off'
>>>    });
>>> });
>>>
>>> I never submitted a patch before.
>>
>> Hi,
>> to see what a patch looks like, please visit [0], click on one of the
>> artifact, then download a file which is attached to the artifact.
>>
>> [0] https://sourceforge.net/tracker/?group_id=23067&atid=377410
>>
>>> thanks..
>>> Mar 31, 2012 at 10:36 PM, J.M. <me at mynetx.net> wrote:
>>>
>>>> Am 31. März 2012 18:51 schrieb nandu <nandu130 at gmail.com>:
>>>>> Marc,
>>>>>
>>>>> Thanks for considering, you asked me to submit patch, well for that i
>>>> need
>>>>> some time till then I found another thing
>>>>> that is when we log into phpMyadmin from an iOS device is difficult
>>>> because
>>>>> the device uppercases the first letter automatically. This can be
>>>> disabled
>>>>> by adding two attributes in the input tag and setting them both to off.
>>>>> it can be patched through
>>>>> autocapitalize="off" autocorrect="off" attributes in input.
>>>>> jQuery('input[type=text]').attr('autocapitalize','off');
>>>>>
>>>>> Also i need some guidelines from you with my proposal
>>>>> thanks
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Sat, Mar 31, 2012 at 5:26 PM, Marc Delisle <marc at infomarc.info>
>>>> wrote:
>>>>>>
>>>>>> Le 2012-03-31 06:19, nandu a écrit :
>>>>>>> PHP code mixed with HTML tags will basically cause crash,
>> "strip_tags"
>>>>>>> to
>>>>>>> strip every html and php tags
>>>>>>> in $var, every characters after "<" is removed.
>>>>>>> i think strip_tags() is mixed up.
>>>>>>>
>>>>>>> we often get error:tbl_replace.php: Missing parameter when adding
>> i.e.
>>>>>>> entries into mysql from within
>>>>>>> phpmyadmin chences of having issue with cookies on the system, i.e.if
>>>>>>> disabled cookies in the browser
>>>>>>> this can be changed.
>>>>>>> Instead of using the elseif statements code can be reduced with
>>>>>>> <script>
>>>>>>> <?php
>>>>>>> switch($anyval){ ?>
>>>>>>> $(document).ready(
>>>>>>>     function (){
>>>>>>>     <?php case 1:  //?>
>>>>>>>     <?php case 2:  //?>
>>>>>>>     <?php case 3:  //?>
>>>>>>> })
>>>>>>> <?php }?>
>>>>>>> </script>
>>>>>>
>>>>>> Nandu,
>>>>>> please submit some patches, it will be easier to see what you mean.
>>>>>>
>>>>>>>
>>>>>>> wecan either use the static method in the code in order to improve
>> the
>>>>>>> efficiency.
>>>>>>> another point I would like to ask what if we use the complete
>> pathname
>>>>>>> with
>>>>>>> require and include, it will be much faster.
>>>>>>
>>>>>> Seems like a good idea. I took this example in the PHP manual's
>>>> comments:
>>>>>>
>>>>>> // this can be inside libraries/common.inc.php
>>>>>> define('__ROOT__', dirname(dirname(__FILE__)));
>>>>>> // then other scripts use this
>>>>>> require_once(__ROOT__.'/foo.php);
>>>>>>
>>>>>> So we could define __ROOT__ once and use it afterwards. One thing I'm
>>>>>> not sure about: we prefixed with './' to help in open_basedir case, so
>>>>>> we would have to test this case.
>>>>>>
>>>>>> --
>>>>>> Marc Delisle
>>>>>> http://infomarc.info
>>>>>>
>>>>>>
>>>>>>
>>>>
>> ------------------------------------------------------------------------------
>>>>>> This SF email is sponsosred by:
>>>>>> Try Windows Azure free for 90 days Click Here
>>>>>> http://p.sf.net/sfu/sfd2d-msazure
>>>>>> _______________________________________________
>>>>>> Phpmyadmin-devel mailing list
>>>>>> Phpmyadmin-devel at lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Nandlal Ahirwar
>>>>> MCA, II yr
>>>>> Maulana Azad National Institute of Technology, Bhopal
>>>>> India
>>>>>
>>>>>
>>>>>
>>>>
>> ------------------------------------------------------------------------------
>>>>> This SF email is sponsosred by:
>>>>> Try Windows Azure free for 90 days Click Here
>>>>> http://p.sf.net/sfu/sfd2d-msazure
>>>>> _______________________________________________
>>>>> Phpmyadmin-devel mailing list
>>>>> Phpmyadmin-devel at lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
>>>>>
>>>>
>>>> Adding autocapitalize and/or autocorrect attributes to <input> tags is
>>>> not valid HTML5, though, which is what we'd like to achieve (refer to
>>>> http://www.w3schools.com/html5/tag_input.asp for all input tag
>>>> attributes allowed in HTML5).
>>>>
>>>> I suggest setting these attributes using jQuery in a document-ready
>>>> event handler if the user agent matches iOS or Android. Like this:
>>>>
>>>> $(function () {
>>>>    $('input:text').prop({
>>>>        autocapitalize: 'off',
>>>>        autocorrect: 'off'
>>>>    });
>>>> });
>>>>
>>>> What do you think?


-- 
Marc Delisle
http://infomarc.info

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 898 bytes
Desc: OpenPGP digital signature
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20120403/05632237/attachment.sig>


More information about the Developers mailing list