<br><br><div class="gmail_quote">On Mon, Mar 29, 2010 at 5:18 PM, Michal Čihař <span dir="ltr"><<a href="mailto:michal@cihar.com">michal@cihar.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi<br>
<br>
Dne Mon, 29 Mar 2010 02:11:47 +0530<br>
Rohit Kalhans <<a href="mailto:rohit.kalhans@gmail.com">rohit.kalhans@gmail.com</a>> napsal(a):<br>
<div class="im"><br>
> Well i have made some changes towards implementing the AJAX UI in form of a<br>
> plug-in with slight change to the native code.<br>
><br>
> 1. Created the folder ajaxUI in the root directory which will house all the<br>
> files related to the AJAX UI. This folder will be helpful as this will house<br>
> all the code for the ajax UI.<br>
><br>
> 2. Added 2 new variables in the $cfg array in config.default.php. here is a<br>
> snippet of the added code<br>
><br>
> /****************************************************************************************<br>
> * Ajax UI config variables<br>
> *<br>
> */<br>
><br>
> /**<br>
> * Advanced Ajax UI feature can be disable by the Admin<br>
> *<br>
> * @global boolean cfg['advancedAjaxInterface']<br>
> */<br>
><br>
> $cfg['advancedAjaxInterface'] = TRUE;<br>
><br>
> /**<br>
> * Advanced Ajax UI feature can be disable by the Admin<br>
> *<br>
> * @global string cfg['pma_current_UI']<br>
> * @possible values 'advanced' 'standard'<br>
> * @default "standard"<br>
> */<br>
><br>
> $cfg['pma_current_UI'] = 'standard';<br>
><br>
> The Administrator can choose to enable or disable the ajax interface using<br>
> the config variable and in that case the option (mentioned in the next<br>
> point) will not be displayed.<br>
<br>
</div>What would be reason for enabling/disabling AJAX? AJAX should not be<br>
intrusive and when user does not have enabled javascript, all should<br>
work as it works right now. I also don't get the difference between<br>
these two configuration options.<br></blockquote><div><br>The Idea behind enabling and disabling AJAX is that I am trying to develop it as a plug-in to the existing code, and the user can choose not to use this feature. Since PMA is also being used by many hosting sites apart from personal users, this may be up to the discretion of the service provider to use this plug-in. he may uninstall this plug-in by changing the cfg['advancedAjaxInterface'] to FALSE and the plug-in even it is installed will be inactive and if the user(service provider) feels like people should use this plug-in he just have to change the value of the above mentioned variable.<br>
<br>I have past experiences with Ajax and a few of them are not pretty gud. At times when using ajax, on a slow connection (or for a busy server), this becomes a problem more than a feature. this does not make AJAX intrusive but on the contrary provides a flexibility to either use or do not use this functionality (for the person who has installed PMA ) . <br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br>
> 3. Added the user option to select his current interface according to his<br>
> need. (check the attached image).<br>
<br>
</div>Same applies as above.<br></blockquote><div><br>This is for the user to make a choice whether or not he wants to use this feature or not. Say, he has to log in remotely, of from a different browser which does not support JAVASCRIPT. Even though this can be detected but what about old browsers (IE-6 etc which support javascript but are pretty slow with JavaScript and may bore the user to death :) ) and slow net-connections(say the user is using in prime-time). The user may need to just load a basic html view and this drop-down box provides him an option to do that. However the default view takes care of the the graceful degradation even if JavaScript is not enabled, (or present). Also if the user chooses to use the Advanced UI and if javascript is not present or enabled PMA will switch back to the normal view as it isnow with an alert to the user. <br>
<br>The same technique is being used by <a href="http://www.zimbra.com/">ZIMBRA</a> and GMAIL. <br> <br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br>
> 4, Modified files like sql.php to get the desired html output suitable for<br>
> the Ajax interface if selected by the user (BY checking the value of<br>
> $cfg['pma_current_UI'] ).<br>
><br>
> but I am struck in the *./libraries/common.inc.php *becoz this file converts<br>
> the all the POST and GET variables in to $_REQUEST variables and loads the<br>
> $cfg variables into $GLOBALS.<br>
><br>
> The thing is that I want to modify the value of one of $GLOBALS['cfg']<br>
> ['pma_current_UI'] variable but could not do that as my $_POST variable is<br>
> disappearing mysteriously ;)<br>
<br>
</div>Probably you are missing token for XSS protection and request variables. </blockquote><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
are filtered.<br></blockquote><div><br>Well i got that and now the code is working fine. Thanx newaz. for now i have a different concern. <br>Can a git repository be accessed through a http proxy like squid?<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<font color="#888888"><br>
--<br>
Michal Čihař | <a href="http://cihar.com" target="_blank">http://cihar.com</a> | <a href="http://blog.cihar.com" target="_blank">http://blog.cihar.com</a><br>
</font><br>------------------------------------------------------------------------------<br>
Download Intel® Parallel Studio Eval<br>
Try the new software tools for yourself. Speed compiling, find bugs<br>
proactively, and fine-tune applications for parallel performance.<br>
See why Intel Parallel Studio got high marks during beta.<br>
<a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Rohit Kalhans<br>homepage: <a href="http://rohit-kalhans.co.cc">http://rohit-kalhans.co.cc</a><br>BLOG: <a href="http://13lackburn.blogspot.com">http://13lackburn.blogspot.com</a><br>