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

View file

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