1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 18:14:07 +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

@@ -2,8 +2,9 @@
/** Load syntax highlighting
* @param string first three characters of database system version
* @param string 'http' or 'https' - used after compilation
*/
function bodyLoad(version) {
function bodyLoad(version, protocol) {
var jushRoot = '../externals/jush/';
var script = document.createElement('script');
script.src = jushRoot + 'jush.js';

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);
}