changed structure

This commit is contained in:
Alexander Gabriel 2021-03-13 13:43:57 +01:00
parent 3ac00047ef
commit 1864f38189
3 changed files with 136 additions and 132 deletions

5
.gitignore vendored
View File

@ -1,3 +1,8 @@
favicon.ico
/stats/
/error/
robots.txt
composer.phar
/vendor/
/web/

View File

@ -1,5 +1,6 @@
<?php
if(isset($_GET['feld'])) {
$originalfeld = $_GET['feld'];
if(is_array($_GET['feld']))
{
@ -144,19 +145,17 @@ for($y = 0; $y < 9; $y++)
$_GET['feld'] = $originalfeld;
$results['feld'] = $zielfeld;
if(isset($_GET['api']) && $_GET['api'] == 1)
{
echo json_encode($results);die();
}
}
if (file_exists('./vendor/autoload.php')) require './vendor/autoload.php';
else trigger_error("./vendor/autoload.php not found");
$oSmarty = new Smarty();
$oSmarty->template_dir = './/templates/';
$oSmarty->compile_dir = './templates_c/';
$oSmarty->assign('GET', $_GET);
if(isset($results)) $oSmarty->assign('results', $results);
echo (microtime());
$oSmarty->display('index.tpl.html');
$oSmarty->display('index.tpl');