@@ -1,19 +1,19 @@ |
||
1 | 1 | <?php |
2 | 2 | function DeArchive($data) { |
3 | - if(is_string($data)) { |
|
4 | - if(substr($data,0,55) == "Creatures Evolution Engine - Archived information file.") { |
|
5 | - $data = substr($data,strpos($data,chr(0x1A).chr(0x04))+2); |
|
3 | + if (is_string($data)) { |
|
4 | + if (substr($data, 0, 55) == "Creatures Evolution Engine - Archived information file.") { |
|
5 | + $data = substr($data, strpos($data, chr(0x1A).chr(0x04))+2); |
|
6 | 6 | $data = gzuncompress($data); |
7 | 7 | return $data; |
8 | 8 | } |
9 | 9 | die('Couldn\'t dearchive -- Probably invalid file'); |
10 | 10 | return false; |
11 | - } else if(is_resource($data)) { |
|
11 | + } else if (is_resource($data)) { |
|
12 | 12 | return false; //coming soon |
13 | 13 | } |
14 | 14 | } |
15 | -function Archive($data,$filehandle=null) { |
|
16 | - if(is_resource($filehandle)) { |
|
15 | +function Archive($data, $filehandle = null) { |
|
16 | + if (is_resource($filehandle)) { |
|
17 | 17 | return false; |
18 | 18 | } |
19 | 19 | $data = gzcompress($data); |