index : website | |
Archlinux32 website - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <deep42thought@noreply.example.org> | 2018-06-19 17:49:43 +0000 |
---|---|---|
committer | Gitea <gitea@fake.local> | 2018-06-19 17:49:43 +0000 |
commit | 4eaa80ae7e67bbadf4b6cdd4634496368dc451d5 (patch) | |
tree | 2945adcd6fa5a2cb8485060c2a2bc57b27fbb290 /packages | |
parent | 1e8cfa2306848879b4fa4b39fb60e80389d3d808 (diff) | |
parent | 9d5b807d4944fa05c68fd38be1f9705f40137238 (diff) |
-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..fb88b22 100644 --- a/packages/index.php +++ b/packages/index.php @@ -1,7 +1,9 @@ <?php +require_once "../init.php"; + +require_once BASE . "/lib/mysql.php"; +require_once 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..b29d8cf 100644 --- a/packages/pkginfo.php +++ b/packages/pkginfo.php @@ -1,7 +1,8 @@ <?php +require_once "../init.php" - include "lib/mysql.php"; - include "lib/style.php"; +require_once BASE . "/lib/mysql.php"; +require_once BASE . "/lib/style.php"; $json_content = json_decode( file_get_contents( |