Mettre à jour 'update.php'

This commit is contained in:
Erreur32 2018-02-21 20:05:46 +01:00
parent de42303aff
commit 7978429aa9
1 changed files with 5 additions and 0 deletions

View File

@ -1,4 +1,8 @@
<?php <?php
// tests to check UPDATE try to remplace file_get_contents with curl
// to avoid a allow_url_fopen Apache limitaion
$ch = curl_init("https://tools.echosystem.fr/Password/htpasswd/version.txt"); $ch = curl_init("https://tools.echosystem.fr/Password/htpasswd/version.txt");
curl_setopt($ch, CURLOPT_NOBODY, true); curl_setopt($ch, CURLOPT_NOBODY, true);
@ -9,6 +13,7 @@ echo $retcode;
curl_close($ch); curl_close($ch);
?> ?>
<?php <?php
define('REMOTE_VERSION', 'https://tools.echosystem.fr/Password/htpasswd/version.txt'); define('REMOTE_VERSION', 'https://tools.echosystem.fr/Password/htpasswd/version.txt');
define('VERSION', '1.0.2'); define('VERSION', '1.0.2');