1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 16:17:48 +02:00

Add a donate link

This commit is contained in:
Jakub Vrana
2017-04-16 10:42:27 +02:00
parent 7af1ee3702
commit c0a3f30060
4 changed files with 4 additions and 2 deletions

View File

@@ -89,7 +89,7 @@ if ($auth) {
set_session($key, null);
}
unset_permanent();
redirect(substr(preg_replace('~\b(username|db|ns)=[^&]*&~', '', ME), 0, -1), lang('Logout successful.'));
redirect(substr(preg_replace('~\b(username|db|ns)=[^&]*&~', '', ME), 0, -1), lang('Logout successful.') . ' ' . lang('Thanks for using Adminer, consider <a href="%s">donating</a>.', 'https://sourceforge.net/donate/index.php?group_id=264133'));
}
} elseif ($permanent && !$_SESSION["pwds"]) {