I use adminer last two years.
I have tried to use alternative css theme many times but with no success.
Facts:
I use adminer for mysql version + english only and download an alternative css. I put in the same folder as the adminer.php file.
CSS doesn't change. I check html source code via browser
<title>Login - Adminer</title>
<link rel="stylesheet" type="text/css" href="a.php?file=default.css&version=4.7.6">
<script src="a.php?file=functions.js&version=4.7.6" nonce="NzFmYWQxNDRlMDFjNGY0YzVmOGZiNzE5YTg5MjRlNjY="></script>
<link rel="shortcut icon" type="image/x-icon" href="a.php?file=favicon.ico&version=4.7.6">
<link rel="apple-touch-icon" href="a.php?file=favicon.ico&version=4.7.6">
default.css is loaded (when i click in it, css code is displayed in my browser window).
(Note i have created symbolic link a.php which points to adminer.php whicn in turn points to current version of adminer. That is
a.php -> /home/jexi/html/adminer.php
adminer.php -> adminer-4.7.6-mysql-en.php
adminer-4.7.6-mysql-en.php
)
It seems that always is loaded css with some default styles.
The strange thing is that in the source code of adminer.php there are lines of code
css(){$K=array();$sc="adminer.css";if(file_exists($sc))$K[]="$sc?v=".crc32(file_get_contents($sc));return$K;}
So, it seems that a check for css file is executed but css doesn't change.
Thanks!
Adminer checks for the presence of
adminer.cssin the same directory. Perhaps your symlinks confuse it.Ok I put adminer.css in /var/www/html/
Just in case other user needs it:
In /var/www/html/ i have
adminer.css and a.php (a.php is a symlink to $HOME/html/adminer.php).
and works fine :-)
Thanks!