Header improvements

This commit is contained in:
Jacob 2023-08-27 21:58:33 +02:00
parent 09fb1ae5b8
commit 39a9d5310d
2 changed files with 9 additions and 3 deletions

2
.gitignore vendored
View file

@ -1,4 +1,4 @@
*packages/.*
*packages/*.PKGBUILD
*zst*
*db*
*tar.gz*

View file

@ -59,8 +59,6 @@ function main() {
$packageNames = array();
$packageDescs = array();
printHead("speedie-aur", "speedie-aur Arch Linux repository");
foreach(scandir(".") as $f) {
$path = pathinfo($f);
if ($path['extension'] == "PKGBUILD") {
@ -90,6 +88,8 @@ function main() {
$validPkgs++;
}
printHead("Found $validPkgs packages matching '$query' in speedie-aur", "Found $validPkgs packages matching search query '$query' in speedie-aur");
print "\t\t\t<p class=\"matches\">$validPkgs packages found matching '$query'..</p>\n";
print "\t\t\t\t<ul class=\"pkglist\">\n";
@ -99,6 +99,8 @@ function main() {
print "\t\t\t\t</ul>\n";
} else if ($request == "all") {
printHead("All packages in speedie-aur", "There are $packageCount packages in speedie-aur");
print "\t\t\t<p>Total number of packages: $packageCount</p>\n";
print "\t\t\t\t<ul class=\"pkglist\">\n";
@ -108,6 +110,8 @@ function main() {
print "\t\t\t\t</ul>\n";
} else if ($request == "view" && $query == '') {
printHead("speedie-aur", "My unofficial Arch Linux repository containing many useful packages");
print "\t\t<h1>speedie-aur</h1>\n";
print "\t\t\t<p>Welcome to aur.speedie.site. This is just my Arch Linux repository.</p>\n";
print "\t\t<h2>Installation</h2>\n";
@ -169,6 +173,8 @@ function main() {
$pkgSource = $packageSources[$i];
$pkgLicense = $packageLicenses[$i];
printHead("Viewing package '$packageName'", "$packageName from the speedie-aur Arch Linux repository.");
print "\t\t<h1>$pkgName</h1>\n";
print "\t\t\t<table>\n";