mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
2f56688b56
commit
8ab823728c
6 changed files with 22 additions and 36 deletions
|
@ -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="") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue