Lines Matching refs:temp

98 chdir(Extract_Phar::$temp);
109 $a = realpath(Extract_Phar::$temp . DIRECTORY_SEPARATOR . $pt);
110 if (!$a || strlen(dirname($a)) < strlen(Extract_Phar::$temp)) {
140 static $temp;
187 $temp = self::tmpdir();
189 if (!$temp || !is_writable($temp)) {
196 $temp = $sessionpath;
199 $temp .= '/pharextract/'.basename(__FILE__, '.phar');
200 self::$temp = $temp;
202 @mkdir($temp, 0777, true);
203 $temp = realpath($temp);
205 if (!file_exists($temp . DIRECTORY_SEPARATOR . md5_file(__FILE__))) {
206 self::_removeTmpFiles($temp, getcwd());
207 @mkdir($temp, 0777, true);
208 @file_put_contents($temp . '/' . md5_file(__FILE__), '');
211 $a = !file_exists(dirname($temp . '/' . $path));
212 @mkdir(dirname($temp . '/' . $path), 0777, true);
216 @mkdir($temp . '/' . $path, 0777);
218 file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp));
219 @chmod($temp . '/' . $path, 0666);
224 chdir($temp);
237 if (is_dir('/temp') || mkdir('/temp')) {
238 return realpath('/temp');
307 static function _removeTmpFiles($temp, $origdir)
309 chdir($temp);
320 @rmdir($temp);
392 chdir(Extract_Phar::$temp);
403 $a = realpath(Extract_Phar::$temp . DIRECTORY_SEPARATOR . $pt);
404 if (!$a || strlen(dirname($a)) < strlen(Extract_Phar::$temp)) {
434 static $temp;
481 $temp = self::tmpdir();
483 if (!$temp || !is_writable($temp)) {
490 $temp = $sessionpath;
493 $temp .= '/pharextract/'.basename(__FILE__, '.phar');
494 self::$temp = $temp;
496 @mkdir($temp, 0777, true);
497 $temp = realpath($temp);
499 if (!file_exists($temp . DIRECTORY_SEPARATOR . md5_file(__FILE__))) {
500 self::_removeTmpFiles($temp, getcwd());
501 @mkdir($temp, 0777, true);
502 @file_put_contents($temp . '/' . md5_file(__FILE__), '');
505 $a = !file_exists(dirname($temp . '/' . $path));
506 @mkdir(dirname($temp . '/' . $path), 0777, true);
510 @mkdir($temp . '/' . $path, 0777);
512 file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp));
513 @chmod($temp . '/' . $path, 0666);
518 chdir($temp);
531 if (is_dir('/temp') || mkdir('/temp')) {
532 return realpath('/temp');
601 static function _removeTmpFiles($temp, $origdir)
603 chdir($temp);
614 @rmdir($temp);
694 chdir(Extract_Phar::$temp);
705 $a = realpath(Extract_Phar::$temp . DIRECTORY_SEPARATOR . $pt);
706 if (!$a || strlen(dirname($a)) < strlen(Extract_Phar::$temp)) {
736 static $temp;
783 $temp = self::tmpdir();
785 if (!$temp || !is_writable($temp)) {
792 $temp = $sessionpath;
795 $temp .= '/pharextract/'.basename(__FILE__, '.phar');
796 self::$temp = $temp;
798 @mkdir($temp, 0777, true);
799 $temp = realpath($temp);
801 if (!file_exists($temp . DIRECTORY_SEPARATOR . md5_file(__FILE__))) {
802 self::_removeTmpFiles($temp, getcwd());
803 @mkdir($temp, 0777, true);
804 @file_put_contents($temp . '/' . md5_file(__FILE__), '');
807 $a = !file_exists(dirname($temp . '/' . $path));
808 @mkdir(dirname($temp . '/' . $path), 0777, true);
812 @mkdir($temp . '/' . $path, 0777);
814 file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp));
815 @chmod($temp . '/' . $path, 0666);
820 chdir($temp);
833 if (is_dir('/temp') || mkdir('/temp')) {
834 return realpath('/temp');
903 static function _removeTmpFiles($temp, $origdir)
905 chdir($temp);
916 @rmdir($temp);