Line 48... |
Line 48... |
48 |
$rev = $youngest; |
48 |
$rev = $youngest; |
49 |
|
49 |
|
50 |
// Create a temporary directory. Here we have an unavoidable but highly |
50 |
// Create a temporary directory. Here we have an unavoidable but highly |
51 |
// unlikely to occure race condition |
51 |
// unlikely to occure race condition |
52 |
|
52 |
|
- |
|
53 |
if (count(glob("wsvn*"))<2) // Omezeni na pocet soucasne stahovanych souboru |
- |
|
54 |
{ |
53 |
$tmpname1 = tempnam("temp", "wsvn-"); |
55 |
$tmpname1 = tempnam("temp", "wsvn-"); |
54 |
$tmpname = $tmpname1; |
56 |
$tmpname = $tmpname1; |
55 |
$tmpname .= "dir"; |
57 |
$tmpname .= "dir"; |
56 |
if (mkdir($tmpname)) |
58 |
if (mkdir($tmpname)) |
57 |
{ |
59 |
{ |
Line 105... |
Line 107... |
105 |
// } |
107 |
// } |
106 |
|
108 |
|
107 |
@exec($cmd); |
109 |
@exec($cmd); |
108 |
} |
110 |
} |
109 |
unlink($tmpname1); // Pomocny soubor smazeme az po smazani adresare |
111 |
unlink($tmpname1); // Pomocny soubor smazeme az po smazani adresare |
- |
|
112 |
} |
- |
|
113 |
else |
110 |
|
114 |
{ |
- |
|
115 |
print "Sorry."; |
- |
|
116 |
print "Server is overloaded..."; |
- |
|
117 |
} |
111 |
?> |
118 |
?> |