directory fixes
This commit is contained in:
parent
05977366b2
commit
3651e381fb
2 changed files with 5 additions and 10 deletions
|
@ -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']);
|
||||||
|
|
|
@ -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) {
|
return $array;
|
||||||
$array = $parser::ParseFile("../data.toml");
|
|
||||||
return $array;
|
|
||||||
} else {
|
|
||||||
$array = $parser::ParseFile("data.toml");
|
|
||||||
return $array;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
updateRemoteData();
|
updateRemoteData();
|
||||||
|
|
Loading…
Reference in a new issue