From 8c07c091e8b4bfcee33745d6c2e58a35cbf9a44d Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 9 Feb 2014 01:37:03 +0100 Subject: 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 --- web/lib/acctfuncs.inc.php | 3 --- web/lib/pkgfuncs.inc.php | 6 ------ web/template/account_details.php | 6 ------ web/template/account_search_results.php | 2 -- web/template/search_accounts_form.php | 1 - 5 files changed, 18 deletions(-) (limited to 'web') diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php index f705574..0207bbd 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 59cc975..5800a26 100644 --- a/web/lib/pkgfuncs.inc.php +++ b/web/lib/pkgfuncs.inc.php @@ -1071,12 +1071,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 { diff --git a/web/template/account_details.php b/web/template/account_details.php index 680a52e..5ba01d9 100644 --- a/web/template/account_details.php +++ b/web/template/account_details.php @@ -43,12 +43,6 @@ - - - - - - Links: