summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/aur.inc23
-rw-r--r--web/lib/pkgfuncs.inc8
2 files changed, 4 insertions, 27 deletions
diff --git a/web/lib/aur.inc b/web/lib/aur.inc
index a9095cd..cfe4a96 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="") {
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc
index d4f3ae7..a6086f8 100644
--- a/web/lib/pkgfuncs.inc
+++ b/web/lib/pkgfuncs.inc
@@ -290,10 +290,10 @@ function package_details($id=0, $SID="") {
} else {
# print out package details
- #
- echo "<div class=\"pgbox\">\n";
- echo " <div class=\"pgboxtitle\"><span class=\"f3\">".__("Package Details")."</span></div>\n";
- echo " <div class=\"pgboxbody\">\n";
+ #
+ echo "<div class=\"pgbox\">\n";
+ echo " <div class=\"pgboxtitle\"><span class=\"f3\">".__("Package Details")."</span></div>\n";
+ echo " <div class=\"pgboxbody\">\n";
echo " <table>\n";
echo " <tr><td class='boxSoft' colspan='2'><span class='f2'>";
echo $row["Name"] . " " . $row["Version"]."</span></td></tr>\n";