Menu

#739 CSS issue

4.7.6
closed-works-for-me
nobody
CSS issue (1)
5
2020-03-09
2020-02-14
No

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&amp;version=4.7.6">
<script src="a.php?file=functions.js&amp;version=4.7.6" nonce="NzFmYWQxNDRlMDFjNGY0YzVmOGZiNzE5YTg5MjRlNjY="></script>
<link rel="shortcut icon" type="image/x-icon" href="a.php?file=favicon.ico&amp;version=4.7.6">
<link rel="apple-touch-icon" href="a.php?file=favicon.ico&amp;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!

Discussion

  • Jakub Vrána

    Jakub Vrána - 2020-03-06
    • status: open --> closed-works-for-me
     
  • Jakub Vrána

    Jakub Vrána - 2020-03-06

    Adminer checks for the presence of adminer.css in the same directory. Perhaps your symlinks confuse it.

     
  • Yannis Exidaridis

    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!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.