mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Use an INI-style configuration file
Replace web/lib/config.inc.php with an INI-style configuration file. This allows us to get rid of several globals and makes it easier to use the same configuration file in external scripts. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
a0a5230708
commit
76343fb915
24 changed files with 200 additions and 216 deletions
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
include_once("config.inc.php");
|
||||
|
||||
include_once("pkgbasefuncs.inc.php");
|
||||
|
||||
/**
|
||||
|
@ -462,8 +462,6 @@ function pkg_get_details($id=0) {
|
|||
/**
|
||||
* Display the package details page
|
||||
*
|
||||
* @global string $AUR_LOCATION The AUR's URL used for notification e-mails
|
||||
* @global bool $USE_VIRTUAL_URLS True if using URL rewriting, otherwise false
|
||||
* @param string $id The package ID to get details page for
|
||||
* @param array $row Package details retrieved by pkg_get_details()
|
||||
* @param string $SID The session ID of the visitor
|
||||
|
@ -471,9 +469,6 @@ function pkg_get_details($id=0) {
|
|||
* @return void
|
||||
*/
|
||||
function pkg_display_details($id=0, $row, $SID="") {
|
||||
global $AUR_LOCATION;
|
||||
global $USE_VIRTUAL_URLS;
|
||||
|
||||
$dbh = DB::connect();
|
||||
|
||||
if (isset($row['error'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue