summaryrefslogtreecommitdiffstats
path: root/main/survey/view_count.php
blob: 843df50124c3fcb405cd72b97aca6b12844918c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)."");

?>