mirror of
https://github.com/vrana/adminer.git
synced 2025-08-15 02:54:28 +02:00
Use JUSH only with supported drivers
This commit is contained in:
@@ -69,6 +69,7 @@ class Adminer {
|
||||
*/
|
||||
function head() {
|
||||
global $jush;
|
||||
if (support("sql")) {
|
||||
?>
|
||||
<link rel="stylesheet" type="text/css" href="../externals/jush/jush.css">
|
||||
<script type="text/javascript" src="../externals/jush/modules/jush.js"></script>
|
||||
@@ -76,6 +77,7 @@ class Adminer {
|
||||
<script type="text/javascript" src="../externals/jush/modules/jush-txt.js"></script>
|
||||
<script type="text/javascript" src="../externals/jush/modules/jush-<?php echo $jush; ?>.js"></script>
|
||||
<?php
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -806,6 +808,7 @@ username.form['auth[driver]'].onchange();
|
||||
echo "<p class='message'>" . lang('No tables.') . "\n";
|
||||
} else {
|
||||
$this->tablesPrint($tables);
|
||||
if (support("sql")) {
|
||||
$links = array();
|
||||
foreach ($tables as $table => $type) {
|
||||
$links[] = preg_quote($table, '/');
|
||||
@@ -821,6 +824,7 @@ username.form['auth[driver]'].onchange();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** Prints databases list in menu
|
||||
* @param string
|
||||
|
Reference in New Issue
Block a user