Changeset 821159
- Timestamp:
- 12/13/2013 03:03:05 PM (12 years ago)
- File:
-
- 1 edited
-
tr-cache-and-security/trunk/inc/actions.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tr-cache-and-security/trunk/inc/actions.php
r812722 r821159 116 116 117 117 $need = ''; 118 $begin = " \n// BEGIN CACHE SECURITY\n";119 $end = "// END CACHE SECURITY \n\n";118 $begin = "// BEGIN CACHE SECURITY"; 119 $end = "// END CACHE SECURITY"; 120 120 $defines = array( 121 121 'admin_ssl' => 'FORCE_SSL_ADMIN', … … 134 134 if(!empty($need)) 135 135 { 136 $need = $begin . $need . $end;136 $need = $begin ."\n". $need .$end ."\n"; 137 137 } 138 138 if($onlycontent) return $need; … … 149 149 if(strpos($data,$begin)===false) 150 150 { 151 $data = str_replace('<?php','<?php'. $need,$data);151 $data = str_replace('<?php','<?php'."\n".$need,$data); 152 152 }else 153 153 { … … 193 193 $need = 'IndexIgnore *'."\n"; 194 194 $need_rewrite = ''; 195 $begin = " \n# BEGIN CACHE SECURITY\n";196 $end = "# END CACHE SECURITY \n\n";195 $begin = "# BEGIN CACHE SECURITY"; 196 $end = "# END CACHE SECURITY"; 197 197 if ( $bwpsserver == 'apache' || $bwpsserver == 'litespeed' ) { 198 198 $before_rewrite.= "<IfModule mod_rewrite.c>\nRewriteEngine On".PHP_EOL; … … 371 371 if(!empty($need)) 372 372 { 373 $need = $begin. $need.$end;373 $need = $begin."\n".$need."\n".$end; 374 374 } 375 375 if($onlycontent) return $need; … … 388 388 if(strpos($data,$begin)===false) 389 389 { 390 $data = $need. $data;390 $data = $need."\n".$data; 391 391 }else 392 392 {
Note: See TracChangeset
for help on using the changeset viewer.