Use local JUSH version
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@622 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
b8b45482f1
commit
18d744a0cb
|
@ -173,6 +173,7 @@ if ($_COOKIE["lang"]) {
|
||||||
$replace = 'preg_replace("~\\\\\\\\?.*~", "", $_SERVER["REQUEST_URI"]) . "?file=\\0&version=' . $VERSION;
|
$replace = 'preg_replace("~\\\\\\\\?.*~", "", $_SERVER["REQUEST_URI"]) . "?file=\\0&version=' . $VERSION;
|
||||||
$file = preg_replace('~default\\.css|functions\\.js|favicon\\.ico|(up|down|plus|minus)\\.gif~', '<?php echo ' . $replace . '"; ?>', $file);
|
$file = preg_replace('~default\\.css|functions\\.js|favicon\\.ico|(up|down|plus|minus)\\.gif~', '<?php echo ' . $replace . '"; ?>', $file);
|
||||||
$file = preg_replace('~arrow\\.gif~', '" . ' . $replace, $file);
|
$file = preg_replace('~arrow\\.gif~', '" . ' . $replace, $file);
|
||||||
|
$file = str_replace("externals/jush/", "http://jush.sourceforge.net/", $file);
|
||||||
$file = str_replace('error_reporting(E_ALL & ~E_NOTICE);', 'error_reporting(E_ALL & ~E_NOTICE);
|
$file = str_replace('error_reporting(E_ALL & ~E_NOTICE);', 'error_reporting(E_ALL & ~E_NOTICE);
|
||||||
if (isset($_GET["file"])) {
|
if (isset($_GET["file"])) {
|
||||||
header("Expires: " . gmdate("D, d M Y H:i:s", time() + 365*24*60*60) . " GMT");
|
header("Expires: " . gmdate("D, d M Y H:i:s", time() + 365*24*60*60) . " GMT");
|
||||||
|
|
|
@ -107,10 +107,10 @@ function page_footer($missing = false) {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if ($_COOKIE["highlight"] == "jush") { ?>
|
<?php if ($_COOKIE["highlight"] == "jush") { ?>
|
||||||
<script type="text/javascript" src="http://jush.sourceforge.net/jush.js"></script>
|
<script type="text/javascript" src="externals/jush/jush.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
if (typeof jush != 'undefined') {
|
if (typeof jush != 'undefined') {
|
||||||
jush.style('http://jush.sourceforge.net/jush.css');
|
jush.style('externals/jush/jush.css');
|
||||||
jush.highlight_tag('pre');
|
jush.highlight_tag('pre');
|
||||||
jush.highlight_tag('code');
|
jush.highlight_tag('code');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue