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 Zend Encoder/SafeGuard & PhpExpress)
- *
- * @ Version : 1.1.6.0
- * @ Author : DeZender
- * @ Release on : 02.06.2013
- * @ Official site : http://DeZender.Net
- *
- */
- public function safe_str($str) {
- return str_replace( array( '
- ', '
- ', '<', '>', '\'', '"', '%', '$', '!', '&' ), '', $str );
- }
- public function headers($last_modified, $expires = 0, $disable_caching = false, $enable_buffering = true) {
- $config_allow_gzipsite = &$config_allow_gzipsite;
- $preview = &$preview;
- if ($enable_buffering) {
- if (!( isset( $_SERVER['HTTP_ACCEPT_ENCODING'] ))) {
- $_SERVER['HTTP_ACCEPT_ENCODING'] = '';
- }
- if (extension_loaded( 'zlib' )) {
- if (!( $config_allow_gzipsite == '1')) {
- if ($config_allow_gzipsite == '2') {
- if (defined( 'IS_AUTHUSER' )) {
- }
- }
- }
- if (!( ( !( strpos( $_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip' ) !== false ) && !( strpos( $_SERVER['HTTP_ACCEPT_ENCODING'], 'deflate' ) !== false ) ))) {
- @ini_set( 'zlib.output_compression_level', 9 );
- ob_start( 'ob_gzhandler' );
- }
- } else {
- ob_start( );
- }
- }
- if (!( ( !$disable_caching && !$preview ))) {
- header( 'Expires: Thu, 21 Jul 1977 07:30:00 GMT' );
- header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
- header( 'Cache-Control: no-store, no-cache, must-revalidate' );
- header( 'Cache-Control: post-check=0, pre-check=0', false );
- header( 'Pragma: no-cache' );
- return null;
- }
- $modified_since = 0;
- if (isset( $_SERVER['HTTP_IF_MODIFIED_SINCE'] )) {
- $modified_since = $_SERVER['HTTP_IF_MODIFIED_SINCE'];
- $modified_since = explode( ';', $modified_since );
- $modified_since = strtotime( $modified_since[0] );
- }
- if ($expires) {
- $last_modified = time( ) - date( 's' );
- ........................................................................
- ......................................
- .............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement