summaryrefslogtreecommitdiffstats
path: root/web/lib/aur.inc
diff options
context:
space:
mode:
authorCallan Barrett <wizzomafizzo@gmail.com>2008-01-15 07:54:23 +0100
committerDan McGee <dan@archlinux.org>2008-01-20 07:21:21 +0100
commit8ab823728c729e9780820bf15aad3585078c8342 (patch)
tree4873eec0eb010b46836c07f73d78b842ce679705 /web/lib/aur.inc
parent2f56688b56757a3365ee4cc48f1bd139216c74f9 (diff)
downloadaur-8ab823728c729e9780820bf15aad3585078c8342.tar.gz
aur-8ab823728c729e9780820bf15aad3585078c8342.tar.xz
More cleanup, add TU link to header
Cleans up links on front page, adds a TU link to the header to the voting application, fixes some titles and styling for logged in text Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Diffstat (limited to 'web/lib/aur.inc')
-rw-r--r--web/lib/aur.inc23
1 files changed, 0 insertions, 23 deletions
diff --git a/web/lib/aur.inc b/web/lib/aur.inc
index a9095cd9..cfe4a96f 100644
--- a/web/lib/aur.inc
+++ b/web/lib/aur.inc
@@ -447,29 +447,6 @@ function can_submit_pkg($name="", $sid="") {
return 0;
}
-# convert an ini_get number to a real integer - stupid PHP!
-#
-function initeger($inival="0", $isbytes=1) {
- $last_char = strtolower(substr($inival, -1));
- if ($isbytes) {
- switch ($last_char) {
- case 't': $multiplier = 1024 * 1024 * 1024; break;
- case 'm': $multiplier = 1024 * 1024; break;
- case 'k': $multiplier = 1024; break;
- default: $multiplier = 1; break;
- }
- } else {
- switch ($last_char) {
- case 't': $multiplier = 1000 * 1000 * 1000; break;
- case 'm': $multiplier = 1000 * 1000; break;
- case 'k': $multiplier = 1000; break;
- default: $multiplier = 1; break;
- }
- }
-
- return intval($inival) * $multiplier;
-}
-
# recursive delete directory
#
function rm_rf($dirname="") {