Browse Source

Pas de verif SSL pour premiumizeme

master
Cabillot Julien 4 years ago
parent
commit
4f4d39f672
1 changed files with 3 additions and 1 deletions
  1. 4
      lib/Download.php

4
lib/Download.php

@ -118,7 +118,9 @@ class Download {
$fp = fopen(DOWNLOADINGDIR.DIRECTORY_SEPARATOR.$this->filename, 'w+');
$ch = curl_init($this->premURL);
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt ($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_exec($ch);
$retour = curl_getinfo($ch);

Loading…
Cancel
Save