From 96b6a18533aa75d1680bfbb9b0a7bd6ce8006efb Mon Sep 17 00:00:00 2001 From: jrtechs Date: Sun, 27 Mar 2022 17:54:00 +0000 Subject: [PATCH] Fixed relative php path issues --- games/insertScore.php | 2 +- includes/header.php | 15 ++++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/games/insertScore.php b/games/insertScore.php index b8f6178..641660d 100644 --- a/games/insertScore.php +++ b/games/insertScore.php @@ -2,7 +2,7 @@ //5-16-17 -include_once 'club_connect.php'; +include_once '../club_connect.php'; if(isset($_POST['game_new_score'])) { diff --git a/includes/header.php b/includes/header.php index 9965317..d42265e 100644 --- a/includes/header.php +++ b/includes/header.php @@ -5,13 +5,18 @@ $admin = false; session_start(); ob_start(); + +echo getcwd(); +echo "$dir"; if($dir == 2) { require_once("../club_connect.php"); + // require_once('insertScore.php'); } else { - require_once("club_connect.php"); + require_once("./club_connect.php"); + // require_once('./games/insertScore.php'); } @@ -34,12 +39,6 @@ if((md5($_SERVER['HTTP_USERAGENT'] . 'salt')) == ($_SESSION['agent']) && } } -try -{ - include('games/insertScore.php'); -} -catch (Exception $ex) -{} echo ' @@ -90,7 +89,6 @@ if($dir == 2)
Bamboo Field Zombie Pandas - Link
@@ -149,7 +147,6 @@ else
Bamboo Field Zombie Pandas - Link