o: ActiveSupport::Cache::Entry :@compressedF:@value"®"¨
| dl.php | ||
|---|---|---|
| 50 | 50 |
// Create a temporary directory. Here we have an unavoidable but highly |
| 51 | 51 |
// unlikely to occure race condition |
| 52 | 52 |
|
| 53 |
$tmpname = tempnam("temp", "wsvn");
|
|
| 54 |
if (mkdir("dir".$tmpname))
|
|
| 53 |
$tmpfile1 = tempnam("temp", "wsvn");
|
|
| 54 |
$tmpfile2 = tempnam("temp", "wsvn");
|
|
| 55 |
$tempname = $tmpfile1.$tmpfile2; |
|
| 56 |
if (mkdir($tmpname)) |
|
| 55 | 57 |
{
|
| 56 | 58 |
// Get the name of the directory being archived |
| 57 | 59 |
$arcname = substr($path, 0, -1); |
| ... | ... | |
| 104 | 106 |
|
| 105 | 107 |
@exec($cmd); |
| 106 | 108 |
} |
| 107 |
unlink($tmpname); |
|
| 109 |
unlink($tmpfile1); |
|
| 110 |
unlink($tmpfile2); |
|
| 108 | 111 |
?> |