index : website | |
Archlinux32 website - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | packages/index.php | 6 | ||||
-rw-r--r-- | packages/pkginfo.php | 5 |
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( |