Ignore:
Timestamp:
Jul 30, 2022, 12:10:48 AM (2 years ago)
Author:
chronos
Message:
  • Fixed: Not working news import due to PHP SSL bug.
  • Added: News import from zdechov.net site.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Global.php

    r903 r938  
    382382  return call_user_func_array('pack', array_merge(array($v), (array)$a));
    383383}
     384
     385function file_get_contents_curl(string $Url)
     386{
     387  $Ch = curl_init();
     388
     389  curl_setopt($Ch, CURLOPT_AUTOREFERER, TRUE);
     390  curl_setopt($Ch, CURLOPT_HEADER, 0);
     391  curl_setopt($Ch, CURLOPT_RETURNTRANSFER, 1);
     392  curl_setopt($Ch, CURLOPT_URL, $Url);
     393  curl_setopt($Ch, CURLOPT_FOLLOWLOCATION, TRUE);
     394
     395  $Data = curl_exec($Ch);
     396  curl_close($Ch);
     397  return $Data;
     398}
Note: See TracChangeset for help on using the changeset viewer.