1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-16 11:34:10 +02:00

Permanent login

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1281 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-12-18 17:39:48 +00:00
parent 1bcee1ebad
commit 95b4ea471d
6 changed files with 64 additions and 4 deletions

View File

@@ -11,6 +11,10 @@ class Adminer {
return array(); // default INI settings
}
function permanentLogin() {
return "";
}
function database() {
global $connection;
$dbs = get_databases(false);
@@ -27,6 +31,9 @@ class Adminer {
<tr><th><?php echo lang('Password'); ?><td><input type="password" name="password">
</table>
<?php
if ($this->permanentLogin()) {
echo "<p>" . checkbox("permanent", 1, $_COOKIE["adminer_permanent"], lang('Permanent login')) . "\n";
}
}
function login($login, $password) {