Revision 4898,
625 bytes
checked in by thiagoaos, 13 years ago
(diff) |
Ticket #2180 - Adicionado código fonte completo do zpush
|
Line | |
---|
1 | <?php |
---|
2 | /*********************************************** |
---|
3 | * File : compat.php |
---|
4 | * Project : Z-Push |
---|
5 | * Descr : Help function for files |
---|
6 | * |
---|
7 | * Created : 01.10.2007 |
---|
8 | * |
---|
9 | * ᅵ Zarafa Deutschland GmbH, www.zarafaserver.de |
---|
10 | * This file is distributed under GPL v2. |
---|
11 | * Consult LICENSE file for details |
---|
12 | ************************************************/ |
---|
13 | |
---|
14 | if (!function_exists("file_put_contents")) { |
---|
15 | function file_put_contents($n,$d) { |
---|
16 | $f=@fopen($n,"w"); |
---|
17 | if (!$f) { |
---|
18 | return false; |
---|
19 | } else { |
---|
20 | fwrite($f,$d); |
---|
21 | fclose($f); |
---|
22 | return true; |
---|
23 | } |
---|
24 | } |
---|
25 | } |
---|
26 | |
---|
27 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.