Lines Matching refs:temp

119 chdir(Extract_Phar::$temp);
130 $a = realpath(Extract_Phar::$temp . DIRECTORY_SEPARATOR . $pt);
131 if (!$a || strlen(dirname($a)) < strlen(Extract_Phar::$temp)) {
161 static $temp;
208 $temp = self::tmpdir();
210 if (!$temp || !is_writable($temp)) {
217 $temp = $sessionpath;
220 $temp .= '/pharextract/'.basename(__FILE__, '.phar');
221 self::$temp = $temp;
223 @mkdir($temp, 0777, true);
224 $temp = realpath($temp);
226 if (!file_exists($temp . DIRECTORY_SEPARATOR . md5_file(__FILE__))) {
227 self::_removeTmpFiles($temp, getcwd());
228 @mkdir($temp, 0777, true);
229 @file_put_contents($temp . '/' . md5_file(__FILE__), '');
232 $a = !file_exists(dirname($temp . '/' . $path));
233 @mkdir(dirname($temp . '/' . $path), 0777, true);
237 @mkdir($temp . '/' . $path, 0777);
239 file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp));
240 @chmod($temp . '/' . $path, 0666);
245 chdir($temp);
258 if (is_dir('/temp') || mkdir('/temp')) {
259 return realpath('/temp');
328 static function _removeTmpFiles($temp, $origdir)
330 chdir($temp);
341 @rmdir($temp);
414 chdir(Extract_Phar::$temp);
425 $a = realpath(Extract_Phar::$temp . DIRECTORY_SEPARATOR . $pt);
426 if (!$a || strlen(dirname($a)) < strlen(Extract_Phar::$temp)) {
456 static $temp;
503 $temp = self::tmpdir();
505 if (!$temp || !is_writable($temp)) {
512 $temp = $sessionpath;
515 $temp .= '/pharextract/'.basename(__FILE__, '.phar');
516 self::$temp = $temp;
518 @mkdir($temp, 0777, true);
519 $temp = realpath($temp);
521 if (!file_exists($temp . DIRECTORY_SEPARATOR . md5_file(__FILE__))) {
522 self::_removeTmpFiles($temp, getcwd());
523 @mkdir($temp, 0777, true);
524 @file_put_contents($temp . '/' . md5_file(__FILE__), '');
527 $a = !file_exists(dirname($temp . '/' . $path));
528 @mkdir(dirname($temp . '/' . $path), 0777, true);
532 @mkdir($temp . '/' . $path, 0777);
534 file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp));
535 @chmod($temp . '/' . $path, 0666);
540 chdir($temp);
553 if (is_dir('/temp') || mkdir('/temp')) {
554 return realpath('/temp');
623 static function _removeTmpFiles($temp, $origdir)
625 chdir($temp);
636 @rmdir($temp);
709 chdir(Extract_Phar::$temp);
720 $a = realpath(Extract_Phar::$temp . DIRECTORY_SEPARATOR . $pt);
721 if (!$a || strlen(dirname($a)) < strlen(Extract_Phar::$temp)) {
751 static $temp;
798 $temp = self::tmpdir();
800 if (!$temp || !is_writable($temp)) {
807 $temp = $sessionpath;
810 $temp .= '/pharextract/'.basename(__FILE__, '.phar');
811 self::$temp = $temp;
813 @mkdir($temp, 0777, true);
814 $temp = realpath($temp);
816 if (!file_exists($temp . DIRECTORY_SEPARATOR . md5_file(__FILE__))) {
817 self::_removeTmpFiles($temp, getcwd());
818 @mkdir($temp, 0777, true);
819 @file_put_contents($temp . '/' . md5_file(__FILE__), '');
822 $a = !file_exists(dirname($temp . '/' . $path));
823 @mkdir(dirname($temp . '/' . $path), 0777, true);
827 @mkdir($temp . '/' . $path, 0777);
829 file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp));
830 @chmod($temp . '/' . $path, 0666);
835 chdir($temp);
848 if (is_dir('/temp') || mkdir('/temp')) {
849 return realpath('/temp');
918 static function _removeTmpFiles($temp, $origdir)
920 chdir($temp);
931 @rmdir($temp);