Advertisement
Guest User

Untitled

a guest
Apr 30th, 2012
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 1.1.4.0
  8. * @ Author : DeZender
  9. * @ Release on : 30.03.2012
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function Gzip() {
  15. if (( ( ( headers_sent( ) || connection_aborted( ) ) || !function_exists( 'ob_gzhandler' ) ) || ini_get( 'zlib.output_compression' ) )) {
  16. return 0;
  17. }
  18.  
  19. if (strpos( $_SERVER['HTTP_ACCEPT_ENCODING'], 'x-gzip' ) !== false) {
  20. return 'x-gzip';
  21. }
  22.  
  23. if (strpos( $_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip' ) !== false) {
  24. return 'gzip';
  25. }
  26.  
  27. return 0;
  28. }
  29.  
  30. function Instance() {
  31. global $l2cfg;
  32. $string = '
  33. <!-- Страница сгенерирована за ' . round( microtime( true ) - TIMER_START, 5 ) . ' секунд-->';
  34. $encoding = Gzip( );
  35. if ($encoding) {
  36. $contents = ob_get_contents( );
  37. ob_end_clean( );
  38. if ($l2cfg['mysql']['debug']) {
  39. $string .= '' . '
  40. <!-- Для вывода использовалось сжатие ' . $encoding . ' -->
  41. ';
  42. $string .= '<!-- Общий размер файла: ' . strlen( $contents ) . ' байт ';
  43. $string .= 'После сжатия: ' . strlen( gzencode( $contents, 3, FORCE_GZIP ) ) . ' байт -->';
  44. $contents .= $string;
  45. }
  46.  
  47. header( '' . 'Content-Encoding: ' . $encoding );
  48. $contents = gzencode( $contents, 3, FORCE_GZIP );
  49. echo $contents;
  50. exit( );
  51. return null;
  52. }
  53.  
  54. echo $string;
  55. ob_end_flush( );
  56. exit( );
  57. }
  58.  
  59. if (!defined( 'STRESSWEB' )) {
  60. exit( 'Access denied...' );
  61. }
  62. ........................................
  63. ...................
  64. .......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement