mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Merge branch 'maint'
This commit is contained in:
commit
3ec3dfb6aa
4 changed files with 9 additions and 4 deletions
|
@ -35,7 +35,7 @@ CREATE TABLE Users (
|
||||||
IRCNick VARCHAR(32) NOT NULL DEFAULT '',
|
IRCNick VARCHAR(32) NOT NULL DEFAULT '',
|
||||||
PGPKey VARCHAR(40) NULL DEFAULT NULL,
|
PGPKey VARCHAR(40) NULL DEFAULT NULL,
|
||||||
LastLogin BIGINT UNSIGNED NOT NULL DEFAULT 0,
|
LastLogin BIGINT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
LastLoginIPAddress INTEGER UNSIGNED NOT NULL DEFAULT 0,
|
LastLoginIPAddress VARCHAR(40) NULL DEFAULT NULL,
|
||||||
InactivityTS BIGINT UNSIGNED NOT NULL DEFAULT 0,
|
InactivityTS BIGINT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
RegistrationTS TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
RegistrationTS TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
CommentNotify TINYINT(1) NOT NULL DEFAULT 1,
|
CommentNotify TINYINT(1) NOT NULL DEFAULT 1,
|
||||||
|
|
5
upgrading/4.2.1.txt
Normal file
5
upgrading/4.2.1.txt
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
1. Convert the LastLoginIPAddress column to VARCHAR(40):
|
||||||
|
|
||||||
|
----
|
||||||
|
ALTER TABLE Users MODIFY LastLoginIPAddress VARCHAR(40) NULL DEFAULT NULL;
|
||||||
|
----
|
|
@ -557,8 +557,8 @@ function try_login() {
|
||||||
}
|
}
|
||||||
|
|
||||||
$q = "UPDATE Users SET LastLogin = UNIX_TIMESTAMP(), ";
|
$q = "UPDATE Users SET LastLogin = UNIX_TIMESTAMP(), ";
|
||||||
$q.= "LastLoginIPAddress = " . $dbh->quote(ip2long($_SERVER['REMOTE_ADDR'])) . " ";
|
$q.= "LastLoginIPAddress = " . $dbh->quote($_SERVER['REMOTE_ADDR']) . " ";
|
||||||
$q.= "WHERE ID = '$userID'";
|
$q.= "WHERE ID = $userID";
|
||||||
$dbh->exec($q);
|
$dbh->exec($q);
|
||||||
|
|
||||||
/* Set the SID cookie. */
|
/* Set the SID cookie. */
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<h3><?= __("Recent Updates") ?> <span class="more">(<a href="<?= get_uri('/packages/') ?>?SB=l&SO=d"><?= _('more') ?></a>)</span></h3>
|
<h3><?= __("Recent Updates") ?> <span class="more">(<a href="<?= get_uri('/packages/') ?>?SB=l&SO=d"><?= __('more') ?></a>)</span></h3>
|
||||||
|
|
||||||
<a href="<?= get_uri('/rss/') ?>" title="Arch Package Updates RSS Feed" class="rss-icon"><img src="/images/rss.svg" alt="RSS Feed" /></a>
|
<a href="<?= get_uri('/rss/') ?>" title="Arch Package Updates RSS Feed" class="rss-icon"><img src="/images/rss.svg" alt="RSS Feed" /></a>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue