Lines Matching refs:temp

118 chdir(Extract_Phar::$temp);
129 $a = realpath(Extract_Phar::$temp . DIRECTORY_SEPARATOR . $pt);
130 if (!$a || strlen(dirname($a)) < strlen(Extract_Phar::$temp)) {
160 static $temp;
207 $temp = self::tmpdir();
209 if (!$temp || !is_writable($temp)) {
216 $temp = $sessionpath;
219 $temp .= '/pharextract/'.basename(__FILE__, '.phar');
220 self::$temp = $temp;
222 @mkdir($temp, 0777, true);
223 $temp = realpath($temp);
225 if (!file_exists($temp . DIRECTORY_SEPARATOR . md5_file(__FILE__))) {
226 self::_removeTmpFiles($temp, getcwd());
227 @mkdir($temp, 0777, true);
228 @file_put_contents($temp . '/' . md5_file(__FILE__), '');
231 $a = !file_exists(dirname($temp . '/' . $path));
232 @mkdir(dirname($temp . '/' . $path), 0777, true);
236 @mkdir($temp . '/' . $path, 0777);
238 file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp));
239 @chmod($temp . '/' . $path, 0666);
244 chdir($temp);
257 if (is_dir('/temp') || mkdir('/temp')) {
258 return realpath('/temp');
327 static function _removeTmpFiles($temp, $origdir)
329 chdir($temp);
340 @rmdir($temp);
413 chdir(Extract_Phar::$temp);
424 $a = realpath(Extract_Phar::$temp . DIRECTORY_SEPARATOR . $pt);
425 if (!$a || strlen(dirname($a)) < strlen(Extract_Phar::$temp)) {
455 static $temp;
502 $temp = self::tmpdir();
504 if (!$temp || !is_writable($temp)) {
511 $temp = $sessionpath;
514 $temp .= '/pharextract/'.basename(__FILE__, '.phar');
515 self::$temp = $temp;
517 @mkdir($temp, 0777, true);
518 $temp = realpath($temp);
520 if (!file_exists($temp . DIRECTORY_SEPARATOR . md5_file(__FILE__))) {
521 self::_removeTmpFiles($temp, getcwd());
522 @mkdir($temp, 0777, true);
523 @file_put_contents($temp . '/' . md5_file(__FILE__), '');
526 $a = !file_exists(dirname($temp . '/' . $path));
527 @mkdir(dirname($temp . '/' . $path), 0777, true);
531 @mkdir($temp . '/' . $path, 0777);
533 file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp));
534 @chmod($temp . '/' . $path, 0666);
539 chdir($temp);
552 if (is_dir('/temp') || mkdir('/temp')) {
553 return realpath('/temp');
622 static function _removeTmpFiles($temp, $origdir)
624 chdir($temp);
635 @rmdir($temp);
708 chdir(Extract_Phar::$temp);
719 $a = realpath(Extract_Phar::$temp . DIRECTORY_SEPARATOR . $pt);
720 if (!$a || strlen(dirname($a)) < strlen(Extract_Phar::$temp)) {
750 static $temp;
797 $temp = self::tmpdir();
799 if (!$temp || !is_writable($temp)) {
806 $temp = $sessionpath;
809 $temp .= '/pharextract/'.basename(__FILE__, '.phar');
810 self::$temp = $temp;
812 @mkdir($temp, 0777, true);
813 $temp = realpath($temp);
815 if (!file_exists($temp . DIRECTORY_SEPARATOR . md5_file(__FILE__))) {
816 self::_removeTmpFiles($temp, getcwd());
817 @mkdir($temp, 0777, true);
818 @file_put_contents($temp . '/' . md5_file(__FILE__), '');
821 $a = !file_exists(dirname($temp . '/' . $path));
822 @mkdir(dirname($temp . '/' . $path), 0777, true);
826 @mkdir($temp . '/' . $path, 0777);
828 file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp));
829 @chmod($temp . '/' . $path, 0666);
834 chdir($temp);
847 if (is_dir('/temp') || mkdir('/temp')) {
848 return realpath('/temp');
917 static function _removeTmpFiles($temp, $origdir)
919 chdir($temp);
930 @rmdir($temp);