Še malo čiščenja...

This commit is contained in:
May Doušak 2023-01-12 14:55:10 +01:00
parent 51eb4db0cc
commit 9acba2b071
4 changed files with 8 additions and 7 deletions

View File

@ -12,7 +12,7 @@
use PhpOffice\PhpPresentation\PhpPresentation;
use PhpOffice\PhpPresentation\IOFactory;
use PhpOffice\PhpPresentation\Style\Color;
use PhpOffice\PhpPresentation\Style\Alignment;
use PhpOffice\PhpPresentation\Style\Alignment;
define("ALLOW_HIDE_ZERRO_REGULAR", false); // omogočimo delovanje prikazovanja/skrivanja ničelnih vnosti za navadne odgovore
define("ALLOW_HIDE_ZERRO_MISSING", true); // omogočimo delovanje prikazovanja/skrivanja ničelnih vnosti za missinge
@ -85,6 +85,7 @@ class pptIzvozHeatmapImage {
// preberemo nastavitve iz baze (prej v sessionu)
SurveyUserSession::Init($this->anketa);
$this->sessionData = SurveyUserSession::getData('charts');
}
else
{
@ -97,8 +98,8 @@ class pptIzvozHeatmapImage {
$this->skin = SurveyUserSetting :: getInstance()->getSettings('default_chart_profile_skin');
$this->numbering = SurveyDataSettingProfiles :: getSetting('chartNumbering');
$this->frontpage = SurveyDataSettingProfiles :: getSetting('chartFP');
}
else {
} else {
return false;
}

View File

@ -284,7 +284,7 @@ class SurveyLanguageTechnology {
curl_setopt($curl, CURLOPT_FAILONERROR, TRUE);
// Removes the headers from the output
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, TRUE);
// Return the output instead of displaying it directly
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5);

View File

@ -75,8 +75,8 @@ class SqualoApi {
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// for debug only!
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, TRUE);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, TRUE);
$headers = array(
"Content-Type: application/json",

View File

@ -119,7 +119,7 @@ function executePOST(){
curl_setopt($ch, CURLOPT_HEADER ,1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt($ch, CURLINFO_HEADER_OUT, true);
/*$cookie_file = 'cookie.txt';
curl_setopt ($ch, CURLOPT_COOKIEFILE, $cookie_file);