diff options
Diffstat (limited to 'admin/survey/ajax.php')
-rw-r--r-- | admin/survey/ajax.php | 301 |
1 files changed, 175 insertions, 126 deletions
diff --git a/admin/survey/ajax.php b/admin/survey/ajax.php index 80cae5c..162d02e 100644 --- a/admin/survey/ajax.php +++ b/admin/survey/ajax.php @@ -14,6 +14,10 @@ if (isDebug()){ error_reporting(E_ALL ^ E_NOTICE);
ini_set('display_errors', '1');
}
+else{
+ error_reporting(E_ALL ^ E_NOTICE ^ E_STRICT);
+ ini_set('display_errors', '0');
+}
Common::start();
@@ -25,7 +29,7 @@ $surveySkin = 0; // Naložimo jezikovno datoteko
-$anketa = $_REQUEST['anketa'];
+$anketa = $_REQUEST['anketa'] ?? null;
$lang_admin = 0;
if ($anketa > 0) {
$sql = sisplet_query("SELECT lang_admin FROM srv_anketa WHERE id = '$anketa'");
@@ -49,11 +53,17 @@ include($file); $_SESSION['langX'] = $site_url .'lang/'.$lang_admin.'.php';
+$t = (isset($_GET['t'])) ? $_GET['t'] : '';
+$a = (isset($_GET['a'])) ? $_GET['a'] : '';
+$m = (isset($_GET['m'])) ? $_GET['m'] : '';
+$d = (isset($_GET['d'])) ? $_GET['d'] : '';
+
+
// preverimo dostop
$result = sisplet_query ("SELECT value FROM misc WHERE what='SurveyDostop'");
list ($SurveyDostop) = mysqli_fetch_row ($result);
-if ( (( ($admin_type <= $SurveyDostop && $SurveyDostop<3) || ($SurveyDostop==3) ) && ($admin_type>=0)) || $_GET['a']=='comment_manage' ) {
+if ( (( ($admin_type <= $SurveyDostop && $SurveyDostop<3) || ($SurveyDostop==3) ) && ($admin_type>=0)) || $a == 'comment_manage' ) {
// ok, bo slo naprej...
}
else {
@@ -67,94 +77,100 @@ $tracking_status = -1; /**************** UREJANJE ****************/
-if ($_GET['t'] == 'branching') {
+if ($t == 'branching') {
$tracking_status = 0;
$b = new BranchingAjax($anketa);
$b->ajax();
}
-elseif ($_GET['t'] == 'quota') {
+elseif ($t == 'quota') {
$tracking_status = 0;
$SQ = new SurveyQuotas($anketa);
$SQ->ajax();
}
-elseif ($_GET['t'] == 'vprasanje') {
+elseif ($t == 'vprasanje') {
$tracking_status = 0;
$v = new Vprasanje();
$v->ajax();
}
-elseif ($_GET['t'] == 'vprasanjeinline') {
+elseif ($t == 'vprasanjeinline') {
$tracking_status = 0;
$v = new VprasanjeInline();
$v->ajax();
}
-elseif ($_GET['t'] == 'prevajanje') {
+elseif ($t == 'vprasanjeDeleted') {
+ $tracking_status = 0;
+
+ $vd = new VprasanjeDeleted($anketa);
+ $vd->ajax();
+}
+elseif ($t == 'prevajanje') {
$tracking_status = 0;
$p = new Prevajanje();
$p->ajax();
}
-elseif ($_GET['t'] == 'glasovanje') {
+elseif ($t == 'glasovanje') {
$tracking_status = 0;
$gl = new Glasovanje($anketa);
$gl->ajax();
}
-elseif ($_GET['t'] == 'missingValues') {
+elseif ($t == 'missingValues') {
$tracking_status = 0;
$smv = new SurveyMissingValues($anketa);
$smv->ajax();
}
-elseif ($_GET['t'] == 'quiz') {
+elseif ($t == 'quiz') {
$tracking_status = 0;
$sq = new SurveyQuiz($anketa);
$sq -> ajax();
}
-elseif ($_GET['t'] == 'theme') {
+elseif ($t == 'theme') {
$tracking_status = 0;
$diplayIframe = ($_POST['a'] == 'previewThemeIframe' ? false : true);
$st = new SurveyTheme($anketa,$diplayIframe);
$st->Ajax();
}
-elseif ($_GET['t'] == 'heatmapRadij') {
+elseif ($t == 'heatmapRadij') {
$tracking_status = 0;
$hmr = new SurveyHeatMapRadij();
$hmr->ajax() ;
}
-elseif ($_GET['t'] == 'getheatmapradij') {
+elseif ($t == 'getheatmapradij') {
$tracking_status = 0;
$hmgr = new SurveyGetHeatMapRadij();
$hmgr->ajax() ;
}
-elseif ($_GET['t'] == 'getheatmapexporticons') {
+elseif ($t == 'getheatmapexporticons') {
$tracking_status = 0;
$hmei = new SurveyHeatMapExportIcons();
$hmei->ajax() ;
}
-elseif ($_GET['t'] == 'saveHeatmapImage') {
+elseif ($t == 'saveHeatmapImage') {
$tracking_status = 0;
$hmis = new SurveyHeatMapImageSave();
$hmis->ajax() ;
}
-elseif ($_GET['t'] == 'themeEditor') {
+elseif ($t == 'themeEditor') {
$tracking_status = 0;
$te = new SurveyThemeEditor($anketa, true);
$te->ajax();
}
-elseif ($_GET['t'] == 'changeSurveyLock') {
+elseif ($t == 'changeSurveyLock') {
$tracking_status = 0;
if (isset($_POST['name']) && $_POST['name'] == 'lockSurvey') {
@@ -168,31 +184,31 @@ elseif ($_GET['t'] == 'changeSurveyLock') { $sas = new SurveyAdminSettings();
$sas->showLockSurvey();
}
-elseif ($_GET['t'] == 'SurveyConnect') {
+elseif ($t == 'SurveyConnect') {
$tracking_status = 0;
$sc = new SurveyConnect();
$sc->ajax();
}
-elseif ($_GET['t'] == 'surveyCondition') {
+elseif ($t == 'surveyCondition') {
$tracking_status = 0;
$scp = new SurveyCondition($anketa);
$scp->ajax();
}
-elseif($_GET['t'] == 'checboxChangeTheme'){
+elseif($t == 'checboxChangeTheme'){
$tracking_status = 0;
$checkbox = new SurveyTheme($anketa);
$checkbox->Ajax();
}
-elseif($_GET['t'] == 'gdpr'){
+elseif($t == 'gdpr'){
$tracking_status = 0;
$gdpr = new GDPR();
$gdpr->ajax();
}
-elseif ($_GET['t'] == 'skupine') {
+elseif ($t == 'skupine') {
$tracking_status = 0;
$ss = new SurveySkupine($anketa);
@@ -202,76 +218,76 @@ elseif ($_GET['t'] == 'skupine') { /**************** ANALIZE ****************/
-elseif ($_GET['t'] == A_ANALYSIS) {
+elseif ($t == A_ANALYSIS) {
$tracking_status = 2;
$a = new SurveyAnalysis();
$a->Init($anketa);
$a->ajax();
}
-elseif ($_GET['t'] == 'crosstab') {
+elseif ($t == 'crosstab') {
$tracking_status = 2;
$sc = new SurveyCrosstabs();
$sc -> Init($anketa);
$sc -> ajax();
}
-elseif ($_GET['t'] == 'multicrosstabs') {
+elseif ($t == 'multicrosstabs') {
$tracking_status = 2;
$smc = new SurveyMultiCrosstabs($anketa);
$smc -> ajax();
}
-elseif ($_GET['t'] == 'means') {
+elseif ($t == 'means') {
$tracking_status = 2;
$sm = new SurveyMeans($anketa);
$sm -> ajax();
}
-elseif ($_GET['t'] == 'ttest') {
+elseif ($t == 'ttest') {
$tracking_status = 2;
$stt = new SurveyTTest($anketa);
$stt -> ajax();
}
-elseif ($_GET['t'] == 'table_chart') {
+elseif ($t == 'table_chart') {
$tracking_status = 2;
$stc = new SurveyTableChart($anketa);
$stc -> ajax();
}
-elseif ($_GET['t'] == 'charts') {
+elseif ($t == 'charts') {
$tracking_status = 2;
$sc = new SurveyChart();
$sc -> Init($anketa);
$sc -> ajax();
}
-elseif ($_GET['t'] == 'zoom') {
+elseif ($t == 'zoom') {
$tracking_status = 2;
$sz = new SurveyZoom($anketa);
$sz -> ajax();
}
-elseif ($_GET['t'] == 'break') {
+elseif ($t == 'break') {
$tracking_status = 2;
$sb = new SurveyBreak($anketa);
$sb->ajax() ;
}
-elseif($_GET['t'] == 'analysisGorenje'){
+elseif($t == 'analysisGorenje'){
$tracking_status = 2;
$SAG = new SurveyAnalysisGorenje($anketa);
$SAG->ajax();
}
-elseif ($_GET['t'] == 'ParaAnalysis') {
+elseif ($t == 'ParaAnalysis') {
$tracking_status = 2;
$spa = new SurveyParaAnalysis($anketa);
$spa->ajax();
}
-elseif ($_GET['t'] == 'custom_report') {
+elseif ($t == 'custom_report') {
$tracking_status = 2;
$SCR = new SurveyCustomReport($anketa);
@@ -281,7 +297,7 @@ elseif ($_GET['t'] == 'custom_report') { /**************** STATUS ****************/
-elseif ($_GET['t'] == 'dashboard') {
+elseif ($t == 'dashboard') {
$tracking_status = 3;
$ss = new SurveyStatistic();
@@ -292,62 +308,62 @@ elseif ($_GET['t'] == 'dashboard') { /**************** PODATKI ****************/
-elseif ($_GET['t'] == 'postprocess') {
+elseif ($t == 'postprocess') {
$tracking_status = 4;
$spp = new SurveyPostProcess($anketa);
$spp->ajax();
}
-elseif ($_GET['t'] == 'advanced_paradata') {
+elseif ($t == 'advanced_paradata') {
$tracking_status = 4;
$sq = new SurveyAdvancedParadata($anketa);
$sq -> ajax();
}
-elseif ($_GET['t'] == 'recode') {
+elseif ($t == 'recode') {
$tracking_status = 4;
$SR = new SurveyRecoding($anketa);
$SR -> Ajax();
}
-elseif ($_GET['t'] == 'displayData') {
+elseif ($t == 'displayData') {
$tracking_status = 4;
$dd = new SurveyDataDisplay($anketa);
$dd->ajax() ;
}
-elseif ($_GET['t'] == 'dataFile') {
+elseif ($t == 'dataFile') {
$tracking_status = 4;
$SDF = SurveyDataFile::get_instance();
$SDF->init($anketa);
$SDF->ajax();
}
-elseif ($_GET['t'] == 'mapData') {
+elseif ($t == 'mapData') {
$tracking_status = 4;
$md = new SurveyMapData();
$md->mapData() ;
}
-elseif ($_GET['t'] == 'mapDataAll') {
+elseif ($t == 'mapDataAll') {
$tracking_status = 4;
$md = new SurveyMapData();
$md->mapDataAll() ;
}
-elseif ($_GET['t'] == 'heatmapData') {
+elseif ($t == 'heatmapData') {
$tracking_status = 4;
$hmd = new SurveyHeatMap();
$hmd->ajax() ;
}
-elseif ($_GET['t'] == 'heatmapBackgroundData') {
+elseif ($t == 'heatmapBackgroundData') {
$tracking_status = 4;
$hmbd = new SurveyHeatMapBackground();
$hmbd->ajax() ;
}
-elseif ($_GET['t'] == 'setDataView') {
+elseif ($t == 'setDataView') {
$tracking_status = 4;
if ($_POST['what'] != null && trim($_POST['what']) != '' && is_string($_POST['what'])){
@@ -364,25 +380,26 @@ elseif ($_GET['t'] == 'setDataView') { SurveySession::append('data_view_settings','cur_rec_page','1');
}
}
-elseif ($_GET['t'] == 'surveyUsableResp') {
+elseif ($t == 'surveyUsableResp') {
$tracking_status = 4;
$sur = new SurveyUsableResp($anketa);
$sur->ajax();
}
-elseif($_GET['t'] == 'aaporCalculation'){
+elseif($t == 'aaporCalculation'){
$tracking_status = 4;
$ss = new SurveyStatistic();
$ss -> Init($anketa);
- if(!isset($_GET['m']))
+ if($m == ''){
$ss->DisplayAaporFullCalculation();
- else if(isset($_GET['m']) && $_GET['m'] == 'priblizek'){
+ }
+ else if($m == 'priblizek'){
$ss->DisplayAaporPriblizek();
}
}
-elseif ($_GET['t'] == 'appendMerge') {
+elseif ($t == 'appendMerge') {
$tracking_status = 4;
$am = new SurveyAppendMerge($anketa);
@@ -392,51 +409,51 @@ elseif ($_GET['t'] == 'appendMerge') { /**************** OBJAVA ****************/
-elseif ($_GET['t'] == 'telephone') {
+elseif ($t == 'telephone') {
$tracking_status = 5;
$tp = new SurveyTelephone($anketa);
$tp->ajax();
}
-elseif ($_GET['t'] == 'invitations') {
+elseif ($t == 'invitations') {
$tracking_status = 5;
$SIN = new SurveyInvitationsNew($anketa);
$SIN -> ajax();
}
-elseif ($_GET['t'] == 'notifications') {
+elseif ($t == 'notifications') {
$tracking_status = 5;
$NO = new Notifications();
$NO->ajax();
}
-elseif ($_GET['t'] == 'simpleMailInvitation') {
+elseif ($t == 'simpleMailInvitation') {
$tracking_status = 5;
$SSMI = new SurveySimpleMailInvitation($anketa);
$SSMI -> ajax();
}
-elseif ($_GET['t'] == 'surveyBaseSetting') {
+elseif ($t == 'surveyBaseSetting') {
$tracking_status = 5;
$SBS = new SurveyBaseSetting($anketa);
$SBS -> ajax();
}
-elseif ($_GET['t'] == 'getSiteUrl') {
+elseif ($t == 'getSiteUrl') {
$tracking_status = 5;
$hmii = new GetSiteUrl();
$hmii->ajax() ;
}
-elseif($_GET['t'] == 'WPN'){
- if($_GET['a'] == 'wpn_send_notification'){
+elseif($t == 'WPN'){
+ if($a == 'wpn_send_notification'){
$tracking_status = 5;
$WPN = new WPN($anketa);
$WPN -> sendWebPushNotificationsToAll();
}
}
-elseif ($_GET['t'] == 'SurveyUrlLinks') {
+elseif ($t == 'SurveyUrlLinks') {
$tracking_status = 5;
$sul = new SurveyUrlLinks($anketa);
@@ -446,20 +463,20 @@ elseif ($_GET['t'] == 'SurveyUrlLinks') { /**************** HIERARHIJA ****************/
-elseif ($_GET['t'] == 'hierarhy-means') {
+elseif ($t == 'hierarhy-means') {
$tracking_status = 6;
$sm = new HierarhijaAnalysis($anketa);
$sm -> ajax();
}
-elseif($_GET['t'] == 'hierarhija-ajax'){
+elseif($t == 'hierarhija-ajax'){
$tracking_status = 6;
$hierarhija = new \Hierarhija\HierarhijaAjax($anketa);
$hierarhija->ajax();
}
-elseif ($_GET['t'] == 'sa-uporabniki') {
+elseif ($t == 'sa-uporabniki') {
$tracking_status = 6;
if(!class_exists('Hierarhija\Ajax\AjaxHierarhijaDostopUporabnikovClass'))
@@ -467,23 +484,23 @@ elseif ($_GET['t'] == 'sa-uporabniki') { $hierarhija_dostop = new Hierarhija\Ajax\AjaxHierarhijaDostopUporabnikovClass();
- if($_GET['a'] == 'add') {
+ if($a == 'add') {
$hierarhija_dostop->save();
}
- elseif($_GET['a'] == 'check'){
+ elseif($a == 'check'){
$hierarhija_dostop->checkUserEmail();
}
- elseif($_GET['a'] == 'delete'){
+ elseif($a == 'delete'){
$hierarhija_dostop->delete();
}
- elseif($_GET['a'] == 'edit') {
+ elseif($a == 'edit') {
$user_id = (!empty($_POST['id']) ? $_POST['id'] : null);
$hierarhija_dostop->popupNew($user_id);
}
- elseif($_GET['a'] == 'update') {
+ elseif($a == 'update') {
$hierarhija_dostop->update();
}
- elseif($_GET['a'] == 'show') {
+ elseif($a == 'show') {
$hierarhija_dostop->show();
}
else {
@@ -494,86 +511,105 @@ elseif ($_GET['t'] == 'sa-uporabniki') { /**************** UPORABNIK ****************/
-elseif ($_GET['t'] == 'surveyList') {
+elseif ($t == 'surveyList') {
$SL = new SurveyList();
$SL->Ajax();
}
-elseif ($_GET['t'] == 'library') {
+elseif ($t == 'surveyListFolders') {
+ $SL = new SurveyListFolders();
+ $SL->ajax();
+}
+elseif ($t == 'library') {
$l = new Library();
$l->ajax();
}
-elseif ($_GET['t'] == 'help') {
+elseif ($t == 'libraryBranching') {
+ $lb = new LibraryBranching($anketa);
+ $lb->ajax();
+}
+elseif ($t == 'help') {
$h = new Help();
$h->ajax();
}
-elseif ($_GET['t'] == 'globalUserSettings') {
+elseif ($t == 'globalUserSettings') {
$sas = new SurveyAdminSettings();
$sas->setGlobalUserSetting();
}
-elseif($_GET['t'] == 'userAccess'){
+elseif($t == 'userAccess'){
$ua = UserAccess::getInstance($global_user_id);
$ua->ajax();
}
-elseif($_GET['t'] == 'userNarocila'){
+elseif($t == 'userNarocila'){
$UN = new UserNarocila();
$UN->ajax();
}
-elseif($_GET['t'] == 'userPlacila'){
+elseif($t == 'userPlacila'){
$UP = new UserPlacila();
$UP->ajax();
}
-elseif ($_GET['t'] == 'newSurvey') {
+elseif($t == 'domainChange'){
+ $usr_id = (isset($_POST['usr_id']) ? $_POST['usr_id'] : $global_user_id);
+
+ $dc = DomainChange::getInstance($usr_id);
+ $dc->ajax();
+}
+elseif ($t == 'newSurvey') {
$ns = new NewSurvey();
$ns->ajax();
}
-elseif ($_GET['a'] == 'user_tracking') {
- if($_GET['d'] == 'download'){
- return UserTrackingClass::init()->csvExport();
- }
+elseif ($a == 'user_tracking') {
+
+ if($d == 'download'){
+ return UserTrackingClass::init()->csvExport();
+ }
+}
+elseif ($t == 'archiveSurveys') {
+ $as = new ArchiveSurveys();
+ $as->ajax();
}
/**************** UPORABNIK - END ****************/
/**************** UNKNOWN, NAPREDNI MODULI ****************/
-elseif ($_GET['t'] == 'profileManager') {
+elseif ($t == 'profileManager') {
$tracking_status = -1;
$spm = new SurveyProfileManager();
$spm->ajax();
}
-elseif ($_GET['t'] == 'SurveyReminderTracking') {
+elseif ($t == 'SurveyReminderTracking') {
$tracking_status = -1;
$sur = new SurveyReminderTracking($anketa);
$sur->ajax();
}
-elseif ($_GET['t'] == 'inspect') {
+elseif ($t == 'inspect') {
$tracking_status = -1;
$SI = new SurveyInspect($anketa);
$SI -> ajax();
}
-elseif ($_GET['t'] == 'dostop') {
+elseif ($t == 'dostop') {
$tracking_status = -1;
$d = new Dostop();
$d->ajax();
}
-elseif ($_GET['t'] == 'missingProfiles') {
+elseif ($t == 'missingProfiles') {
$tracking_status = -1;
$smp = new SurveyMissingProfiles();
$smp->Init($anketa);
$smp->ajax();
}
-elseif ($_GET['t'] == 'statusProfile') {
+elseif ($t == 'statusProfile') {
$tracking_status = -1;
$ssp = new SurveyStatusProfiles();
$ssp -> Init($anketa);
$ssp->ajax();
}
-elseif ($_GET['t'] == 'timeProfile') {
+elseif ($t == 'timeProfile') {
global $global_user_id;
$tracking_status = -1;
@@ -582,7 +618,7 @@ elseif ($_GET['t'] == 'timeProfile') { $tp -> Init($anketa,$global_user_id);
$tp -> ajax();
}
-elseif ($_GET['t'] == 'dataSettingProfile') {
+elseif ($t == 'dataSettingProfile') {
global $global_user_id;
$tracking_status = -1;
@@ -591,204 +627,217 @@ elseif ($_GET['t'] == 'dataSettingProfile') { $dsp -> Init($anketa,$global_user_id);
$dsp -> ajax();
}
-elseif ($_GET['t'] == 'variableProfile') {
+elseif ($t == 'variableProfile') {
$tracking_status = -1;
$svp = new SurveyVariablesProfiles();
$svp -> Init($anketa,$global_user_id);
$svp->ajax();
}
-elseif ($_GET['t'] == 'export') {
+elseif ($t == 'export') {
$tracking_status = -1;
$se = new SurveyExport();
$se -> Init($anketa);
$se -> ajax();
}
-elseif ($_GET['t'] == 'conditionProfile') {
+elseif ($t == 'conditionProfile') {
$tracking_status = -1;
$scp = new SurveyConditionProfiles();
$scp -> Init($anketa,$global_user_id);
$scp -> ajax();
}
-elseif ($_GET['t'] == 'zankaProfile') {
+elseif ($t == 'zankaProfile') {
$tracking_status = -1;
$szp = new SurveyZankaProfiles();
$szp -> Init($anketa,$global_user_id);
$szp -> ajax();
}
-elseif ($_GET['t'] == 'slideshow') {
+elseif ($t == 'slideshow') {
$tracking_status = -1;
$ss = new SurveySlideshow($anketa);
$ss -> ajax();
}
-elseif ($_GET['t'] == 'chat') {
+elseif ($t == 'chat') {
$tracking_status = -1;
$sc = new SurveyChat($anketa);
$sc -> ajax();
}
-elseif ($_GET['t'] == 'panel') {
+elseif ($t == 'panel') {
$tracking_status = -1;
$sp = new SurveyPanel($anketa);
$sp -> ajax();
}
-elseif ($_GET['t'] == 'showTestSurveySMTP') {
+elseif ($t == 'email_access') {
+ $tracking_status = -1;
+
+ $sea = new SurveyEmailAccess($anketa);
+ $sea -> ajax();
+}
+elseif ($t == 'showTestSurveySMTP') {
$tracking_status = -1;
$sas = new SurveyAdminSettings();
$sas->ajax_showTestSurveySMTP();
}
-elseif ($_GET['t'] == 'evalvacija') {
+elseif ($t == 'evalvacija') {
$tracking_status = -1;
// UL EVALVACIJA
$eval = new Evalvacija($anketa);
$eval->ajax();
}
-elseif ($_GET['t'] == 'evoliTM') {
+elseif ($t == 'evoliTM') {
$tracking_status = -1;
// Evoli TeamMeter
$evoliTM = new SurveyTeamMeter($anketa);
$evoliTM->ajax();
}
+elseif ($t == 'kolektor') {
+ $tracking_status = -1;
+
+ // Modul za kolektor
+ $kolektor = new Kolektor();
+ $kolektor->ajax();
+}
/**************** UNKNOWN, NAPREDNI MODULI - END ****************/
/**************** MAZA ****************/
-elseif ($_GET['t'] == 'MAZA') {
+elseif ($t == 'MAZA') {
- if(isset($_GET['a'])){
+ if(isset($a)){
$anketa = $anketa;
- if($_GET['a'] == 'maza_send_notification'){
+ if($a == 'maza_send_notification'){
$tracking_status = 5;
$maza = new MAZA($anketa);
$maza->ajax_sendNotification();
}
- if($_GET['a'] == 'maza_send_notification_pwa'){
+ if($a == 'maza_send_notification_pwa'){
$tracking_status = 5;
$WPN = new WPN($anketa);
$WPN -> sendWebPushNotificationsToAll();
}
- else if($_GET['a'] == 'maza_on_off'){
+ else if($a == 'maza_on_off'){
$tracking_status = 0;
$maza = new MAZA($anketa);
$maza->ajax_maza_on_off();
}
- else if($_GET['a'] == 'maza_cancel_alarm'){
+ else if($a == 'maza_cancel_alarm'){
$tracking_status = 0;
$maza = new MAZA($anketa);
$maza->ajax_maza_cancel_alarm();
}
- else if($_GET['a'] == 'maza_generate_users'){
+ else if($a == 'maza_generate_users'){
$tracking_status = 0;
$maza = new MAZA($anketa);
$maza->ajax_maza_generate_users();
}
- else if($_GET['a'] == 'maza_survey_description'){
+ else if($a == 'maza_survey_description'){
$tracking_status = 0;
$maza = new MAZA($anketa);
$maza->ajax_maza_survey_description();
}
- else if($_GET['a'] == 'changeRepeatBy'){
+ else if($a == 'changeRepeatBy'){
$tracking_status = 0;
$maza = new MAZA($anketa);
$maza->ajax_changeRepeatBy();
}
- else if($_GET['a'] == 'changeTimeInDay'){
+ else if($a == 'changeTimeInDay'){
$tracking_status = 0;
$maza = new MAZA($anketa);
$maza->ajax_changeTimeInDay();
}
- else if($_GET['a'] == 'changeDayInWeek'){
+ else if($a == 'changeDayInWeek'){
$tracking_status = 0;
$maza = new MAZA($anketa);
$maza->ajax_changeDayInWeek();
}
- else if($_GET['a'] == 'changeEveryWhichDay'){
+ else if($a == 'changeEveryWhichDay'){
$tracking_status = 0;
$maza = new MAZA($anketa);
$maza->ajax_changeEveryWhichDay();
}
- else if($_GET['a'] == 'maza_save_repeater'){
+ else if($a == 'maza_save_repeater'){
$tracking_status = 0;
$maza = new MAZA($anketa);
$maza->ajax_saveRepeater();
}
- else if($_GET['a'] == 'cancelRepeater'){
+ else if($a == 'cancelRepeater'){
$tracking_status = 0;
$maza = new MAZA($anketa);
$maza->maza_cancel_repeater();
}
- else if($_GET['a'] == 'insert_geofence'){
+ else if($a == 'insert_geofence'){
$tracking_status = 0;
$maza = new MAZA($anketa);
$maza->ajax_insert_geofence();
}
- else if($_GET['a'] == 'update_geofence'){
+ else if($a == 'update_geofence'){
$tracking_status = 0;
$maza = new MAZA($anketa);
$maza->ajax_update_geofence();
}
- else if($_GET['a'] == 'update_geofence_name'){
+ else if($a == 'update_geofence_name'){
$tracking_status = 0;
$maza = new MAZA($anketa);
$maza->ajax_update_geofence_name();
}
- else if($_GET['a'] == 'delete_geofence'){
+ else if($a == 'delete_geofence'){
$tracking_status = 0;
$maza = new MAZA($anketa);
$maza->ajax_delete_geofence();
}
- else if($_GET['a'] == 'get_all_geofences'){
+ else if($a == 'get_all_geofences'){
$tracking_status = 0;
$maza = new MAZA($anketa);
$maza->ajax_get_all_geofences();
}
- else if($_GET['a'] == 'maza_cancel_geofencing'){
+ else if($a == 'maza_cancel_geofencing'){
$tracking_status = 0;
$maza = new MAZA($anketa);
$maza->maza_cancel_geofencing();
}
- else if($_GET['a'] == 'maza_run_geofences'){
+ else if($a == 'maza_run_geofences'){
$tracking_status = 0;
$maza = new MAZA($anketa);
$maza->maza_run_geofences();
}
- else if($_GET['a'] == 'maza_cancel_entry'){
+ else if($a == 'maza_cancel_entry'){
$tracking_status = 0;
$maza = new MAZA($anketa);
$maza->maza_cancel_entry();
}
- else if($_GET['a'] == 'maza_run_entry'){
+ else if($a == 'maza_run_entry'){
$tracking_status = 0;
$maza = new MAZA($anketa);
$maza->maza_run_entry();
}
- else if($_GET['a'] == 'maza_run_activity'){
+ else if($a == 'maza_run_activity'){
$tracking_status = 0;
$maza = new MAZA($anketa);
$maza->maza_run_activity();
}
- else if($_GET['a'] == 'maza_cancel_activity'){
+ else if($a == 'maza_cancel_activity'){
$tracking_status = 0;
$maza = new MAZA($anketa);
$maza->maza_cancel_activity();
}
- else if($_GET['a'] == 'maza_run_tracking'){
+ else if($a == 'maza_run_tracking'){
$tracking_status = 0;
$maza = new MAZA($anketa);
$maza->maza_run_tracking();
}
- else if($_GET['a'] == 'maza_cancel_tracking'){
+ else if($a == 'maza_cancel_tracking'){
$tracking_status = 0;
$maza = new MAZA($anketa);
$maza->maza_cancel_tracking();
@@ -808,7 +857,7 @@ else { // Shranimo tracking
if($anketa != null && $anketa > 0){
- TrackingClass::update($anketa, $status);
+ TrackingClass::update($anketa, $tracking_status);
}
//nismo vezani na anketo, tracking uporabnika
else{
|