summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/index.php6
-rw-r--r--packages/pkginfo.php5
2 files changed, 7 insertions, 4 deletions
diff --git a/packages/index.php b/packages/index.php
index cd1413d..bb59503 100644
--- a/packages/index.php
+++ b/packages/index.php
@@ -1,7 +1,9 @@
<?php
+require "../init.php";
+
+require BASE . "/lib/mysql.php";
+require BASE . "/lib/style.php";
- include "lib/mysql.php";
- include "lib/style.php";
foreach (array("bugs","sort","del") as $expected_param)
if (! isset($_GET[$expected_param]))
diff --git a/packages/pkginfo.php b/packages/pkginfo.php
index fe1066b..e76bcec 100644
--- a/packages/pkginfo.php
+++ b/packages/pkginfo.php
@@ -1,7 +1,8 @@
<?php
+require "../init.php"
- include "lib/mysql.php";
- include "lib/style.php";
+require BASE . "/lib/mysql.php";
+require BASE . "/lib/style.php";
$json_content = json_decode(
file_get_contents(