Q695 Posted September 11, 2014 Share Posted September 11, 2014 Does anyone know what the source code for the PHP MyAdmin login prompt (the pop out box) looks like? Quote Link to comment https://forums.phpfreaks.com/topic/290988-how-does-the-php-myadmin-login-prompt-work/ Share on other sites More sharing options...
gristoi Posted September 11, 2014 Share Posted September 11, 2014 phpmyadmin is open source and available for download, just grab and unzip it. http://www.phpmyadmin.net/home_page/downloads.php Be warned, it's a mess in there Quote Link to comment https://forums.phpfreaks.com/topic/290988-how-does-the-php-myadmin-login-prompt-work/#findComment-1490724 Share on other sites More sharing options...
Q695 Posted September 11, 2014 Author Share Posted September 11, 2014 I mean when the cookie expires it asks you to relogin in an in page html alert. How are those created? Quote Link to comment https://forums.phpfreaks.com/topic/290988-how-does-the-php-myadmin-login-prompt-work/#findComment-1490792 Share on other sites More sharing options...
Solution kicken Posted September 11, 2014 Solution Share Posted September 11, 2014 I haven't used phpMyAdmin in a long time, so I haven't seen what you're talking about however I would guess they are just using a JS based dialog, such as JQuery UI's Dialog. The basic process probably goes something like: - phpMyAdmin sends request to server via Ajax - Server responds with authentication error - phpMyAdmin opens login dialog - phpMyAdmin sends login details - When successful authentication occurs, phpMyAdmin repeats original request. 1 Quote Link to comment https://forums.phpfreaks.com/topic/290988-how-does-the-php-myadmin-login-prompt-work/#findComment-1490793 Share on other sites More sharing options...
Q695 Posted September 11, 2014 Author Share Posted September 11, 2014 (edited) The answer is better than the Nuclear answer, thanks. I haven't used phpMyAdmin in a long time, so I haven't seen what you're talking about however I would guess they are just using a JS based dialog, such as JQuery UI's Dialog. Edited September 11, 2014 by Q695 Quote Link to comment https://forums.phpfreaks.com/topic/290988-how-does-the-php-myadmin-login-prompt-work/#findComment-1490795 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.