summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/lib/acctfuncs.inc.php3
-rw-r--r--web/lib/pkgfuncs.inc.php6
-rw-r--r--web/template/account_details.php6
-rw-r--r--web/template/account_search_results.php2
-rw-r--r--web/template/search_accounts_form.php1
5 files changed, 0 insertions, 18 deletions
diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php
index f7055740..0207bbdc 100644
--- a/web/lib/acctfuncs.inc.php
+++ b/web/lib/acctfuncs.inc.php
@@ -373,9 +373,6 @@ function search_results_page($UTYPE,$O=0,$SB="",$U="",$T="",
case 'i':
$q.= "ORDER BY IRCNick, AccountTypeID ";
break;
- case 'v':
- $q.= "ORDER BY LastVoted, Username ";
- break;
default:
$q.= "ORDER BY Username, AccountTypeID ";
break;
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index 59cc9756..5800a265 100644
--- a/web/lib/pkgfuncs.inc.php
+++ b/web/lib/pkgfuncs.inc.php
@@ -1072,12 +1072,6 @@ function pkg_vote ($atype, $ids, $action=true) {
$dbh->exec($q);
if ($action) {
- $q = "UPDATE Users SET LastVoted = UNIX_TIMESTAMP() ";
- $q.= "WHERE ID = $uid";
- $dbh->exec($q);
- }
-
- if ($action) {
return array(true, __("Your votes have been cast for the selected packages."));
} else {
return array(true, __("Your votes have been removed from the selected packages."));
diff --git a/web/template/account_details.php b/web/template/account_details.php
index 680a52e3..5ba01d99 100644
--- a/web/template/account_details.php
+++ b/web/template/account_details.php
@@ -44,12 +44,6 @@
</td>
</tr>
<tr>
- <th><?= __("Last Voted") . ":" ?></th>
- <td>
- <?= $row["LastVoted"] ? date("Y-m-d", $row["LastVoted"]) : __("Never"); ?>
- </td>
- </tr>
- <tr>
<th>Links:</th>
<td><ul>
<li><a href="<?= get_uri('/packages/'); ?>?K=<?= $row['Username'] ?>&amp;SeB=m"><?= __("View this user's packages") ?></a></li>
diff --git a/web/template/account_search_results.php b/web/template/account_search_results.php
index ae7c112a..bd4ee294 100644
--- a/web/template/account_search_results.php
+++ b/web/template/account_search_results.php
@@ -13,7 +13,6 @@ else:
<th><?= __("Real Name") ?></th>
<th><?= __("IRC Nick") ?></th>
<th><?= __("PGP Key Fingerprint") ?></th>
- <th><?= __("Last Voted") ?></th>
<th><?= __("Edit Account") ?></th>
</tr>
</thead>
@@ -42,7 +41,6 @@ else:
<td><?php $row["RealName"] ? print htmlspecialchars($row["RealName"],ENT_QUOTES) : print "&nbsp;" ?></td>
<td><?php $row["IRCNick"] ? print htmlspecialchars($row["IRCNick"],ENT_QUOTES) : print "&nbsp;" ?></td>
<td><?php $row["PGPKey"] ? print html_format_pgp_fingerprint($row["PGPKey"]) : print "&nbsp;" ?></td>
- <td><?php $row["LastVoted"] ? print date("Y-m-d", $row["LastVoted"]) : print __("Never") ?></td>
<td>
<?php
if ($UTYPE == "Trusted User" && $row["AccountType"] == "Developer"):
diff --git a/web/template/search_accounts_form.php b/web/template/search_accounts_form.php
index 202b1aa3..d7f54beb 100644
--- a/web/template/search_accounts_form.php
+++ b/web/template/search_accounts_form.php
@@ -57,7 +57,6 @@
<option value="t"><?= __("Account Type"); ?></option>
<option value="r"><?= __("Real Name"); ?></option>
<option value="i"><?= __("IRC Nick"); ?></option>
- <option value="v"><?= __("Last vote"); ?></option>
</select>
</td>
</tr>