0){ $this->anketa = $anketa; } } // Izvedemo vse potrebno pri vklopu (vklopimo obvescanje, ugasnemo belezenje parapodatkov...) public function turnOnVoting(){ global $lang; SurveySetting::getInstance()->Init($this->anketa); // Ugasnimo belezenje vseh parapodatkov SurveySetting::getInstance()->setSurveyMiscSetting('survey_ip', '1'); SurveySetting::getInstance()->setSurveyMiscSetting('survey_show_ip', '0'); SurveySetting::getInstance()->setSurveyMiscSetting('survey_browser', '1'); SurveySetting::getInstance()->setSurveyMiscSetting('survey_referal', '1'); SurveySetting::getInstance()->setSurveyMiscSetting('survey_date', '1'); // Vklopimo email vabila sisplet_query("UPDATE srv_anketa SET user_base='1', show_email='0' WHERE id='".$this->anketa."'"); sisplet_query("INSERT INTO srv_anketa_module (ank_id, modul) VALUES ('".$this->anketa."', 'email')"); // Ugasnemo obvescanje respondenta sisplet_query("UPDATE srv_alert SET finish_respondent='0', finish_respondent_cms='0' WHERE ank_id='".$this->anketa."'"); } // Nastavitve volitev public function displaySettings(){ global $lang; echo '
'; } // Pridobimo trenutne nastavitve volitev za anketo private function getSettings(){ $settings = array(); return $settings; } }