mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Remove LastVoted column
This has been introduced by commit aae43d9
(started working on package
comments, 2005-03-05) but it seems to be of no practical use. Remove the
field to save some space.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
b7b586a8c4
commit
8c07c091e8
6 changed files with 0 additions and 19 deletions
|
@ -32,7 +32,6 @@ CREATE TABLE Users (
|
||||||
LangPreference VARCHAR(5) NOT NULL DEFAULT 'en',
|
LangPreference VARCHAR(5) NOT NULL DEFAULT 'en',
|
||||||
IRCNick VARCHAR(32) NOT NULL DEFAULT '',
|
IRCNick VARCHAR(32) NOT NULL DEFAULT '',
|
||||||
PGPKey VARCHAR(40) NULL DEFAULT NULL,
|
PGPKey VARCHAR(40) NULL DEFAULT NULL,
|
||||||
LastVoted BIGINT UNSIGNED NOT NULL DEFAULT 0,
|
|
||||||
LastLogin BIGINT UNSIGNED NOT NULL DEFAULT 0,
|
LastLogin BIGINT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
LastLoginIPAddress INTEGER UNSIGNED NOT NULL DEFAULT 0,
|
LastLoginIPAddress INTEGER UNSIGNED NOT NULL DEFAULT 0,
|
||||||
InactivityTS BIGINT UNSIGNED NOT NULL DEFAULT 0,
|
InactivityTS BIGINT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
|
|
|
@ -373,9 +373,6 @@ function search_results_page($UTYPE,$O=0,$SB="",$U="",$T="",
|
||||||
case 'i':
|
case 'i':
|
||||||
$q.= "ORDER BY IRCNick, AccountTypeID ";
|
$q.= "ORDER BY IRCNick, AccountTypeID ";
|
||||||
break;
|
break;
|
||||||
case 'v':
|
|
||||||
$q.= "ORDER BY LastVoted, Username ";
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
$q.= "ORDER BY Username, AccountTypeID ";
|
$q.= "ORDER BY Username, AccountTypeID ";
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1071,12 +1071,6 @@ function pkg_vote ($atype, $ids, $action=true) {
|
||||||
|
|
||||||
$dbh->exec($q);
|
$dbh->exec($q);
|
||||||
|
|
||||||
if ($action) {
|
|
||||||
$q = "UPDATE Users SET LastVoted = UNIX_TIMESTAMP() ";
|
|
||||||
$q.= "WHERE ID = $uid";
|
|
||||||
$dbh->exec($q);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($action) {
|
if ($action) {
|
||||||
return array(true, __("Your votes have been cast for the selected packages."));
|
return array(true, __("Your votes have been cast for the selected packages."));
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -43,12 +43,6 @@
|
||||||
<?= $row["InactivityTS"] ? __("Inactive since") . ' ' . date("Y-m-d H:i", $row["InactivityTS"]) : __("Active"); ?>
|
<?= $row["InactivityTS"] ? __("Inactive since") . ' ' . date("Y-m-d H:i", $row["InactivityTS"]) : __("Active"); ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<th><?= __("Last Voted") . ":" ?></th>
|
|
||||||
<td>
|
|
||||||
<?= $row["LastVoted"] ? date("Y-m-d", $row["LastVoted"]) : __("Never"); ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>Links:</th>
|
<th>Links:</th>
|
||||||
<td><ul>
|
<td><ul>
|
||||||
|
|
|
@ -13,7 +13,6 @@ else:
|
||||||
<th><?= __("Real Name") ?></th>
|
<th><?= __("Real Name") ?></th>
|
||||||
<th><?= __("IRC Nick") ?></th>
|
<th><?= __("IRC Nick") ?></th>
|
||||||
<th><?= __("PGP Key Fingerprint") ?></th>
|
<th><?= __("PGP Key Fingerprint") ?></th>
|
||||||
<th><?= __("Last Voted") ?></th>
|
|
||||||
<th><?= __("Edit Account") ?></th>
|
<th><?= __("Edit Account") ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -42,7 +41,6 @@ else:
|
||||||
<td><?php $row["RealName"] ? print htmlspecialchars($row["RealName"],ENT_QUOTES) : print " " ?></td>
|
<td><?php $row["RealName"] ? print htmlspecialchars($row["RealName"],ENT_QUOTES) : print " " ?></td>
|
||||||
<td><?php $row["IRCNick"] ? print htmlspecialchars($row["IRCNick"],ENT_QUOTES) : print " " ?></td>
|
<td><?php $row["IRCNick"] ? print htmlspecialchars($row["IRCNick"],ENT_QUOTES) : print " " ?></td>
|
||||||
<td><?php $row["PGPKey"] ? print html_format_pgp_fingerprint($row["PGPKey"]) : print " " ?></td>
|
<td><?php $row["PGPKey"] ? print html_format_pgp_fingerprint($row["PGPKey"]) : print " " ?></td>
|
||||||
<td><?php $row["LastVoted"] ? print date("Y-m-d", $row["LastVoted"]) : print __("Never") ?></td>
|
|
||||||
<td>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
if ($UTYPE == "Trusted User" && $row["AccountType"] == "Developer"):
|
if ($UTYPE == "Trusted User" && $row["AccountType"] == "Developer"):
|
||||||
|
|
|
@ -57,7 +57,6 @@
|
||||||
<option value="t"><?= __("Account Type"); ?></option>
|
<option value="t"><?= __("Account Type"); ?></option>
|
||||||
<option value="r"><?= __("Real Name"); ?></option>
|
<option value="r"><?= __("Real Name"); ?></option>
|
||||||
<option value="i"><?= __("IRC Nick"); ?></option>
|
<option value="i"><?= __("IRC Nick"); ?></option>
|
||||||
<option value="v"><?= __("Last vote"); ?></option>
|
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Add table
Reference in a new issue