changed structure
This commit is contained in:
parent
3ac00047ef
commit
1864f38189
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,3 +1,8 @@
|
||||
favicon.ico
|
||||
/stats/
|
||||
/error/
|
||||
robots.txt
|
||||
|
||||
composer.phar
|
||||
/vendor/
|
||||
/web/
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user