Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 1.1.4.0
- * @ Author : DeZender
- * @ Release on : 30.03.2012
- * @ Official site : http://DeZender.Net
- *
- */
- function Gzip() {
- if (( ( ( headers_sent( ) || connection_aborted( ) ) || !function_exists( 'ob_gzhandler' ) ) || ini_get( 'zlib.output_compression' ) )) {
- return 0;
- }
- if (strpos( $_SERVER['HTTP_ACCEPT_ENCODING'], 'x-gzip' ) !== false) {
- return 'x-gzip';
- }
- if (strpos( $_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip' ) !== false) {
- return 'gzip';
- }
- return 0;
- }
- function Instance() {
- global $l2cfg;
- $string = '
- <!-- Страница сгенерирована за ' . round( microtime( true ) - TIMER_START, 5 ) . ' секунд-->';
- $encoding = Gzip( );
- if ($encoding) {
- $contents = ob_get_contents( );
- ob_end_clean( );
- if ($l2cfg['mysql']['debug']) {
- $string .= '' . '
- <!-- Для вывода использовалось сжатие ' . $encoding . ' -->
- ';
- $string .= '<!-- Общий размер файла: ' . strlen( $contents ) . ' байт ';
- $string .= 'После сжатия: ' . strlen( gzencode( $contents, 3, FORCE_GZIP ) ) . ' байт -->';
- $contents .= $string;
- }
- header( '' . 'Content-Encoding: ' . $encoding );
- $contents = gzencode( $contents, 3, FORCE_GZIP );
- echo $contents;
- exit( );
- return null;
- }
- echo $string;
- ob_end_flush( );
- exit( );
- }
- if (!defined( 'STRESSWEB' )) {
- exit( 'Access denied...' );
- }
- ........................................
- ...................
- .......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement