Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/minify/builder/ocCheck.php
Go to the documentation of this file.
00001 <?php 
00008 $_oc = ini_get('zlib.output_compression');
00009  
00010 // allow access only if builder is enabled
00011 require dirname(__FILE__) . '/../config.php';
00012 if (! $min_enableBuilder) {
00013     header('Location: /');
00014     exit();
00015 }
00016 
00017 if (isset($_GET['hello'])) {
00018     // echo 'World!'
00019     
00020     // try to prevent double encoding (may not have an effect)
00021     ini_set('zlib.output_compression', '0');
00022     
00023     require $min_libPath . '/HTTP/Encoder.php';
00024     HTTP_Encoder::$encodeToIe6  = true; // just in case
00025     $he = new HTTP_Encoder(array(
00026         'content' => 'World!'
00027         ,'method' => 'deflate'
00028     ));
00029     $he->encode();
00030     $he->sendAll();
00031 
00032 } else {
00033     // echo status "0" or "1"
00034     header('Content-Type: text/plain');
00035     echo (int)$_oc;
00036 }
 All Data Structures Namespaces Files Functions Variables Enumerations