image-heberg/cron/updateTorIp.php
2023-08-26 01:31:22 +02:00

34 lines
1,002 B
PHP

<?php
/*
* Copyright 2008-2023 Anael MOBILIA
*
* This file is part of image-heberg.fr.
*
* image-heberg.fr is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* image-heberg.fr is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with image-heberg.fr. If not, see <http://www.gnu.org/licenses/>
*/
namespace ImageHeberg;
/*
* Mise à jour des adresses IP des noeuds de sortie TOR
*/
require __DIR__ . '/../config/config.php';
if (_TOR_DISABLE_UPLOAD_) {
$objTor = new Tor();
$objTor->updateListeExitNodes();
}
echo '...done' . PHP_EOL;