From d4e9b780785145d67d1b0bbc71e3825bdbd8f6e1 Mon Sep 17 00:00:00 2001 From: Brian Porter Date: Sun, 24 Oct 2021 18:35:14 -0500 Subject: [PATCH] Make all PATH declarations consistent to project root. --- admin/index.php | 8 +++++--- contribute.php | 4 +++- fullmap.php | 4 +++- includes/magic.php | 6 ++++-- index.php | 4 +++- profile.php | 4 +++- scripts/load_authors.php | 4 +++- scripts/load_morphs.php | 8 +++++--- supporters-all.php | 4 +++- 9 files changed, 32 insertions(+), 14 deletions(-) diff --git a/admin/index.php b/admin/index.php index 920b706..983d3c8 100644 --- a/admin/index.php +++ b/admin/index.php @@ -1,7 +1,9 @@ query("SELECT icon FROM artists ORDER BY icon ASC"); @@ -435,4 +437,4 @@ function bounceOut(){ header("Location: /admin/"); exit; } - + diff --git a/contribute.php b/contribute.php index 9b1d3f8..97b2615 100644 --- a/contribute.php +++ b/contribute.php @@ -1,5 +1,7 @@ diff --git a/fullmap.php b/fullmap.php index 8a64f9f..9120156 100644 --- a/fullmap.php +++ b/fullmap.php @@ -1,5 +1,7 @@ About Us
query("SELECT url_slug, name FROM dmillar_cartography.artists ORDER BY name ASC"); if ($navdata->rowCount() > 0) { diff --git a/index.php b/index.php index 8401027..a7d745f 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,7 @@ 0) ? $map_type : 1; $datafile = PATH . "/datacache/" . $map_type . ".json"; if (file_exists($datafile) && (time() - filemtime($datafile) >= 60 * 60 *24 * 5)) { include($datafile); } else { - include PATH . "/../cgi-bin/db_start.php"; + include PATH . "/cgi-bin/db_start.php"; $map_type_phr = ($map_type == 3) ? "IN (1,2,3)" : "= ". $map_type; $query = "SELECT id, image, artist_id, tile_type FROM tiles WHERE map_type ".$map_type_phr." AND approved = 1"; @@ -28,7 +30,7 @@ echo ''; } - include PATH . "/../cgi-bin/db_end.php"; + include PATH . "/cgi-bin/db_end.php"; echo $our_json; } ?> diff --git a/supporters-all.php b/supporters-all.php index 8bf5b65..63c0739 100644 --- a/supporters-all.php +++ b/supporters-all.php @@ -1,5 +1,7 @@