From 8e1afc98ff0448426ef359ee6d5c02be3ac8d21f Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Thu, 20 Feb 2020 20:16:11 +0100 Subject: [PATCH] no proxy cache --- index.php | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/index.php b/index.php index 8bf31bad..454d4138 100755 --- a/index.php +++ b/index.php @@ -21,27 +21,6 @@ if(version_compare(PHP_VERSION, '5.6.0', '<')) { exit('PHP 5.6+ required.'); } -/*Configuration Proxy */ -$proxy = 'cache-etu.univ-artois.fr:3128'; -if (!empty($proxy)) { - $proxy = str_replace('http://', 'tcp://', $proxy); - $context = array( - 'http' => array( - 'proxy' => $proxy, - 'request_fulluri' => true, - 'verify_peer' => false, - 'verify_peer_name' => false, - ), - "ssl"=>array( - "verify_peer"=>false, - "verify_peer_name"=>false - ) - ); - stream_context_set_default($context); -} else { - echo "Proxy not found" . PHP_EOL; -} - /* Set locale to French */ date_default_timezone_set('Europe/Paris'); setlocale (LC_TIME, 'fr_FR', 'french');