mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 09:04:38 +02:00
e_TEMP added for system temp folder. Import options added for LiveJournal and html (non-CMS) pages. (work in progress)
This commit is contained in:
@@ -290,9 +290,11 @@ class e_file
|
||||
}
|
||||
|
||||
// Grab a remote file and save it in the /temp directory. requires CURL
|
||||
function getRemoteFile($remote_url, $local_file)
|
||||
function getRemoteFile($remote_url, $local_file, $type='temp')
|
||||
{
|
||||
$fp = fopen(e_MEDIA.$local_file, 'w'); // media-directory is the root.
|
||||
$path = ($type == 'media') ? e_MEDIA : e_TEMP;
|
||||
|
||||
$fp = fopen($path.$local_file, 'w'); // media-directory is the root.
|
||||
|
||||
$cp = curl_init($remote_url);
|
||||
curl_setopt($cp, CURLOPT_FILE, $fp);
|
||||
|
Reference in New Issue
Block a user