- ? , .
Magento Connect Manager 2.0, FTP. , .
Magento sys_get_temp_dir . , /tmp. , , Magento , FTP Magento Connect. .
/var/tmp .
11 /downloader /lib/Mage, . , , . , , , , . . , sys_get_temp_dir .
, , :
/var/package/tmp/
/downloader/.cache
/media
FTP , root Magento .
Magento Connect, , **. , , , , . , , - magento_root. , .
, , -, , . , Varien tmpDir , . .
downloader\lib\Mage\Connect\Config.php, 207:
// $tempFile = tempnam(sys_get_temp_dir(),'config');
$tempFile = tempnam($this->magento_root. '/var/tmp/' ,'config');
downloader\lib\Mage\Connect\Command\Registry.php, 315:
//$localXml = tempnam(sys_get_temp_dir(),'package');
$magento_root = dirname(dirname(__FILE__)) . '/../../../..';
$localXml = tempnam($magento_root. '/var/tmp/' ,'package');
downloader\lib\Mage\Connect\Loader\Ftp.php, 107:
$magento_root = dirname(dirname(__FILE__)) . '/../../../..';
$tmpDir = $magento_root . '/var/tmp/';
downloader\Maged\Controller.php, 869 **:
//$tempFile = tempnam(sys_get_temp_dir(),'maintenance');
$tempFile = tempnam($config->__get('magento_root') . '/var/tmp/' ,'maintenance');
:
\Maged\Model\Connect.php, 404:
//$tempFile = tempnam(sys_get_temp_dir(),'config');
$tempFile = tempnam($configObj->magento_root. '/var/tmp/' ,'config');
downloader\Maged\Model\Config\Abstract.php, 88 **:
// $tempFile = tempnam(sys_get_temp_dir(),'configini');
$magento_root = dirname(dirname(__FILE__)) . '/../../..';
$tempFile = tempnam($magento_root. '/var/tmp/' ,'configini');
downloader\lib\Mage\Connect\Packager.php - 5 .
96 - , :
// $tempConfigFile = tempnam(sys_get_temp_dir(),'conf');
$magento_root = dirname(dirname(__FILE__)) . '/../../..';
$tempConfigFile = tempnam($magento_root . '/var/tmp/' ,'conf');
111:
// $tempCacheFile = tempnam(sys_get_temp_dir(),'cache');
$magento_root = dirname(dirname(__FILE__)) . '/../../..';
$tempCacheFile = tempnam($magento_root . '/var/tmp/' ,'cache');
135, if:
$magento_root = dirname(dirname(__FILE__)) . '/../../..';
if else:
// $configFile=tempnam(sys_get_temp_dir(),'conf');
$configFile = tempnam($magento_root. '/var/tmp/' ,'conf');
158:
//$tempConfigFile = tempnam(sys_get_temp_dir(),'conf_');
$magento_root = dirname(dirname(__FILE__)) . '/../../..';
$tempConfigFile = tempnam($magento_root. '/var/tmp/' ,'conf_');