diff options
Diffstat (limited to 'download_remailers.php')
| -rw-r--r-- | download_remailers.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/download_remailers.php b/download_remailers.php new file mode 100644 index 0000000..c544dfd --- /dev/null +++ b/download_remailers.php @@ -0,0 +1,11 @@ +<?php +function downloadRemailers() { + $url = 'https://www.mixmin.net/yamn/mlist2.txt'; + $file = '/var/www/yamnweb/remailers.txt'; + if (!file_exists($file) || (time() - filemtime($file) > 86400)) { // Scarica solo se il file non esiste o è più vecchio di 24 ore + file_put_contents($file, file_get_contents($url)); + } +} + +downloadRemailers(); +?> |
