diff options
Diffstat (limited to 'main/survey/view_count.php')
-rw-r--r-- | main/survey/view_count.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/main/survey/view_count.php b/main/survey/view_count.php new file mode 100644 index 0000000..843df50 --- /dev/null +++ b/main/survey/view_count.php @@ -0,0 +1,16 @@ +<?php
+
+/**
+* Stevcek, ki steje stevilo ogledov linka na anketo (dodan je kot slika)
+*/
+
+include_once('../../function.php');
+include_once '../../vendor/autoload.php';
+
+$anketa = $_GET['a'];
+
+SurveySetting::getInstance()->setSID($anketa);
+$view_count = SurveySetting::getInstance()->getSurveyMiscSetting('view_count');
+SurveySetting::getInstance()->setSurveyMiscSetting('view_count', ($view_count+1)."");
+
+?>
\ No newline at end of file |