1
0
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:
CaMer0n
2012-08-06 08:55:51 +00:00
parent c7c9bfe517
commit e660ed3a43
12 changed files with 680 additions and 31 deletions

View File

@@ -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);