mirror of
https://github.com/vrana/adminer.git
synced 2025-08-18 04:11:27 +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:
@@ -23,6 +23,13 @@ class Adminer {
|
||||
return array($_GET["server"], $_SESSION["usernames"][$_GET["server"]], $_SESSION["passwords"][$_GET["server"]]);
|
||||
}
|
||||
|
||||
/** Get key used for permanent login
|
||||
* @return string cryptic string which gets combined with password
|
||||
*/
|
||||
function permanentLogin() {
|
||||
return "";
|
||||
}
|
||||
|
||||
/** Identifier of selected database
|
||||
* @return string
|
||||
*/
|
||||
@@ -43,6 +50,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";
|
||||
}
|
||||
}
|
||||
|
||||
/** Authorize the user
|
||||
|
Reference in New Issue
Block a user