1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 08:06:59 +02:00

Use HTTP protocol if possible - adminer.org certificate is missing in Opera

This commit is contained in:
Jakub Vrana
2010-05-06 17:24:02 +02:00
parent c1f8382515
commit 4c47d354e7
4 changed files with 8 additions and 5 deletions

View File

@@ -23,11 +23,12 @@ function cookie(assign, days, params) {
}
/** Verify current Adminer version
* @param string 'http' or 'https'
*/
function verifyVersion() {
function verifyVersion(protocol) {
cookie('adminer_version=0', 1);
var script = document.createElement('script');
script.src = 'https://www.adminer.org/version.php';
script.src = protocol + '://www.adminer.org/version.php';
document.body.appendChild(script);
}