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
|
composer.phar
|
||||||
/vendor/
|
/vendor/
|
||||||
/web/
|
/web/
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
if(isset($_GET['feld'])) {
|
||||||
$originalfeld = $_GET['feld'];
|
$originalfeld = $_GET['feld'];
|
||||||
if(is_array($_GET['feld']))
|
if(is_array($_GET['feld']))
|
||||||
{
|
{
|
||||||
@ -144,19 +145,17 @@ for($y = 0; $y < 9; $y++)
|
|||||||
$_GET['feld'] = $originalfeld;
|
$_GET['feld'] = $originalfeld;
|
||||||
|
|
||||||
$results['feld'] = $zielfeld;
|
$results['feld'] = $zielfeld;
|
||||||
|
|
||||||
if(isset($_GET['api']) && $_GET['api'] == 1)
|
if(isset($_GET['api']) && $_GET['api'] == 1)
|
||||||
{
|
{
|
||||||
echo json_encode($results);die();
|
echo json_encode($results);die();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (file_exists('./vendor/autoload.php')) require './vendor/autoload.php';
|
if (file_exists('./vendor/autoload.php')) require './vendor/autoload.php';
|
||||||
else trigger_error("./vendor/autoload.php not found");
|
else trigger_error("./vendor/autoload.php not found");
|
||||||
$oSmarty = new Smarty();
|
$oSmarty = new Smarty();
|
||||||
$oSmarty->template_dir = './/templates/';
|
|
||||||
$oSmarty->compile_dir = './templates_c/';
|
|
||||||
|
|
||||||
$oSmarty->assign('GET', $_GET);
|
$oSmarty->assign('GET', $_GET);
|
||||||
if(isset($results)) $oSmarty->assign('results', $results);
|
if(isset($results)) $oSmarty->assign('results', $results);
|
||||||
echo (microtime());
|
echo (microtime());
|
||||||
$oSmarty->display('index.tpl.html');
|
$oSmarty->display('index.tpl');
|
||||||
|
Loading…
Reference in New Issue
Block a user