summaryrefslogtreecommitdiffstats
path: root/main/survey/ajax.php
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-01-11 12:35:47 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2022-01-11 12:35:47 +0100
commit19985dbb8c0aa66dc4bf7905abc1148de909097d (patch)
tree2cd5a5d20d7e80fc2a51adf60d838d8a2c40999e /main/survey/ajax.php
download1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.gz
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.bz2
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.lz
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.xz
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.zst
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.zip
Diffstat (limited to 'main/survey/ajax.php')
-rw-r--r--main/survey/ajax.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/main/survey/ajax.php b/main/survey/ajax.php
new file mode 100644
index 0000000..4027393
--- /dev/null
+++ b/main/survey/ajax.php
@@ -0,0 +1,33 @@
+<?php
+
+include_once('../../function.php');
+include_once('../../vendor/autoload.php');
+
+
+// pod do /main/survey/ - kot ROOT direktorij
+define('MAIN', __DIR__ . DIRECTORY_SEPARATOR);
+
+//direktorij app
+define('APP', MAIN . 'app' . DIRECTORY_SEPARATOR);
+
+
+// Nastavitve, kjer določamo PHP debuging/error
+require APP . 'config.php';
+new App\Controllers\Controller();
+
+// Definicija vseh spremenljiv, ki jih uporabljamo med razredi
+new App\Controllers\VariableClass();
+require_once(APP.'global_function.php');
+
+// začetek aplikacije
+new \App\Controllers\SurveyController(true);
+
+// Poklicemo ustrezen ajax
+if ($_GET['t'] == 'parapodatki') {
+ SurveyAdvancedParadataLog::getInstance()->ajax();
+}
+else {
+ new \App\Controllers\AjaxController();
+}
+
+?> \ No newline at end of file