directory fixes

This commit is contained in:
asandikci 2024-01-07 13:15:08 +03:00
parent 05977366b2
commit 3651e381fb
No known key found for this signature in database
GPG key ID: 25C67A03B5666BC1
2 changed files with 5 additions and 10 deletions

View file

@ -85,6 +85,7 @@
localStorage.setItem("latest_visit", date);
}
<?php include __DIR__ . '/src/server.php'; ?>
current_guess = "<?php
if ($_POST['mainInput'] != null) {
echo htmlspecialchars($_POST['mainInput']);

View file

@ -2,8 +2,8 @@
use Yosymfony\Toml\Toml;
include 'todays.php';
include '../config.php';
include __DIR__ . '/todays.php';
include __DIR__ . '/../config.php';
require __DIR__ . '/../vendor/autoload.php';
$parser = new Toml();
@ -197,14 +197,8 @@ function getAPersonStats($person)
function parseTOML()
{
global $parser;
global $dock_local_test;
if ($dock_local_test) {
$array = $parser::ParseFile("../data.toml");
return $array;
} else {
$array = $parser::ParseFile("data.toml");
return $array;
}
$array = $parser::ParseFile(__DIR__ . "/../data.toml");
return $array;
}
updateRemoteData();