summaryrefslogtreecommitdiffstats
path: root/download_remailers.php
diff options
context:
space:
mode:
authorGab <24553253+gabrix73@users.noreply.github.com>2024-12-31 04:40:34 +0100
committerGitHub <noreply@github.com>2024-12-31 04:40:34 +0100
commit2fbccac3356ecd4d4d2660ef4d59f1b675154f85 (patch)
tree65a2dd6ea46868eacb85a3ef84f44531edabb175 /download_remailers.php
parentd315398da40fcdd2b56321a7edd9ce8b61c53dce (diff)
downloadyamnweb-2fbccac3356ecd4d4d2660ef4d59f1b675154f85.tar.gz
yamnweb-2fbccac3356ecd4d4d2660ef4d59f1b675154f85.tar.xz
yamnweb-2fbccac3356ecd4d4d2660ef4d59f1b675154f85.zip
Add files via upload
Diffstat (limited to 'download_remailers.php')
-rw-r--r--download_remailers.php11
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();
+?>