directory fixes
This commit is contained in:
parent
05977366b2
commit
00c06c76c9
2 changed files with 5 additions and 10 deletions
|
@ -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']);
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue