Lines Matching refs:temp
99 chdir(Extract_Phar::$temp);
110 $a = realpath(Extract_Phar::$temp . DIRECTORY_SEPARATOR . $pt);
111 if (!$a || strlen(dirname($a)) < strlen(Extract_Phar::$temp)) {
141 static $temp;
188 $temp = self::tmpdir();
190 if (!$temp || !is_writable($temp)) {
197 $temp = $sessionpath;
200 $temp .= '/pharextract/'.basename(__FILE__, '.phar');
201 self::$temp = $temp;
203 @mkdir($temp, 0777, true);
204 $temp = realpath($temp);
206 if (!file_exists($temp . DIRECTORY_SEPARATOR . md5_file(__FILE__))) {
207 self::_removeTmpFiles($temp, getcwd());
208 @mkdir($temp, 0777, true);
209 @file_put_contents($temp . '/' . md5_file(__FILE__), '');
212 $a = !file_exists(dirname($temp . '/' . $path));
213 @mkdir(dirname($temp . '/' . $path), 0777, true);
217 @mkdir($temp . '/' . $path, 0777);
219 file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp));
220 @chmod($temp . '/' . $path, 0666);
225 chdir($temp);
238 if (is_dir('/temp') || mkdir('/temp')) {
239 return realpath('/temp');
308 static function _removeTmpFiles($temp, $origdir)
310 chdir($temp);
321 @rmdir($temp);
393 chdir(Extract_Phar::$temp);
404 $a = realpath(Extract_Phar::$temp . DIRECTORY_SEPARATOR . $pt);
405 if (!$a || strlen(dirname($a)) < strlen(Extract_Phar::$temp)) {
435 static $temp;
482 $temp = self::tmpdir();
484 if (!$temp || !is_writable($temp)) {
491 $temp = $sessionpath;
494 $temp .= '/pharextract/'.basename(__FILE__, '.phar');
495 self::$temp = $temp;
497 @mkdir($temp, 0777, true);
498 $temp = realpath($temp);
500 if (!file_exists($temp . DIRECTORY_SEPARATOR . md5_file(__FILE__))) {
501 self::_removeTmpFiles($temp, getcwd());
502 @mkdir($temp, 0777, true);
503 @file_put_contents($temp . '/' . md5_file(__FILE__), '');
506 $a = !file_exists(dirname($temp . '/' . $path));
507 @mkdir(dirname($temp . '/' . $path), 0777, true);
511 @mkdir($temp . '/' . $path, 0777);
513 file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp));
514 @chmod($temp . '/' . $path, 0666);
519 chdir($temp);
532 if (is_dir('/temp') || mkdir('/temp')) {
533 return realpath('/temp');
602 static function _removeTmpFiles($temp, $origdir)
604 chdir($temp);
615 @rmdir($temp);
695 chdir(Extract_Phar::$temp);
706 $a = realpath(Extract_Phar::$temp . DIRECTORY_SEPARATOR . $pt);
707 if (!$a || strlen(dirname($a)) < strlen(Extract_Phar::$temp)) {
737 static $temp;
784 $temp = self::tmpdir();
786 if (!$temp || !is_writable($temp)) {
793 $temp = $sessionpath;
796 $temp .= '/pharextract/'.basename(__FILE__, '.phar');
797 self::$temp = $temp;
799 @mkdir($temp, 0777, true);
800 $temp = realpath($temp);
802 if (!file_exists($temp . DIRECTORY_SEPARATOR . md5_file(__FILE__))) {
803 self::_removeTmpFiles($temp, getcwd());
804 @mkdir($temp, 0777, true);
805 @file_put_contents($temp . '/' . md5_file(__FILE__), '');
808 $a = !file_exists(dirname($temp . '/' . $path));
809 @mkdir(dirname($temp . '/' . $path), 0777, true);
813 @mkdir($temp . '/' . $path, 0777);
815 file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp));
816 @chmod($temp . '/' . $path, 0666);
821 chdir($temp);
834 if (is_dir('/temp') || mkdir('/temp')) {
835 return realpath('/temp');
904 static function _removeTmpFiles($temp, $origdir)
906 chdir($temp);
917 @rmdir($temp);