Changeset 1760432
- Timestamp:
- 11/07/2017 10:57:55 PM (8 years ago)
- Location:
- bravo-security
- Files:
-
- 3 edited
-
tags/1.1/hooks/tebravo.firewall.php (modified) (1 diff)
-
tags/1.1/includes/tebravo.htaccess.php (modified) (7 diffs)
-
trunk/includes/tebravo.htaccess.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bravo-security/tags/1.1/hooks/tebravo.firewall.php
r1760408 r1760432 1861 1861 $output[] = "<td colspan=2>"; 1862 1862 $output[] = "<textarea name='' style='width:35%; height:45px;' disabled></textarea>"; 1863 $output[] = "<br /><font class='smallfont'>".__("sep rate it by comma ','", TEBRAVO_TRANS)."<br />".__("google.com,bing.com,yahoo.com ...etc", TEBRAVO_TRANS)."</font></td>";1863 $output[] = "<br /><font class='smallfont'>".__("separate it by comma ','", TEBRAVO_TRANS)."<br />".__("google.com,bing.com,yahoo.com ...etc", TEBRAVO_TRANS)."</font></td>"; 1864 1864 1865 1865 -
bravo-security/tags/1.1/includes/tebravo.htaccess.php
r1751191 r1760432 75 75 if(empty($action)) 76 76 { 77 $newData = $this->delete_rule($this->prevent_images_start, $this->prevent_images_end, ''); 77 78 $this->prevent_images(); 78 79 } else { … … 161 162 $web_server = tebravo_phpsettings::web_server(); 162 163 163 $output[] = $this->prevent_images_start; 164 $output[] = ''; 165 $output[] = $this->prevent_images_start; 164 166 165 167 if( $web_server == 'nginx' ) … … 257 259 258 260 $output[] = $this->prevent_images_end; 261 $output[] = ' '; 259 262 260 263 return implode("\n", $output); … … 301 304 { 302 305 if( tebravo_phpsettings::web_server() != 'nginx'){ 306 $rules[] = ''; 303 307 $rules[] = $this->wplogin_start; 304 308 $rules[] = '<IfModule mod_rewrite.c>'; … … 314 318 $rules[] = '</IfModule>'; 315 319 $rules[] = $this->wplogin_end; 316 } else { 320 $rules[] = ''; 321 } else { 322 $rules[] = ''; 317 323 $rules[] = $this->wplogin_start; 318 324 $MU_rules = ''; … … 326 332 $rules[] = $MU_rules; 327 333 $rules[] = $this->wplogin_end; 334 $rules[] = ''; 328 335 } 329 336 … … 335 342 { 336 343 if( tebravo_phpsettings::web_server() != 'nginx'){ 344 $rules[] = ''; 337 345 $rules[] = $this->wpadmin_start; 338 346 $rules[] = "RewriteRule ^({$this->home_root})?{$this->wpadmin_slug}/?$ {$this->home_root}wp-admin [QSA,L]"; 339 347 $rules[] = $this->wpadmin_end; 340 } else { 348 $rules[] = ''; 349 } else { 350 $rules[] = ''; 341 351 $rules[] = $this->wpadmin_start; 342 352 $rules[] = "rewrite ^({$this->home_root})?{$this->wpadmin_slug}/?$ {$this->home_root}wp-admin\$query_string break;"; 343 353 $rules[] = $this->wpadmin_end; 354 $rules[] = ''; 344 355 } 345 356 -
bravo-security/trunk/includes/tebravo.htaccess.php
r1751191 r1760432 75 75 if(empty($action)) 76 76 { 77 $newData = $this->delete_rule($this->prevent_images_start, $this->prevent_images_end, ''); 77 78 $this->prevent_images(); 78 79 } else { … … 161 162 $web_server = tebravo_phpsettings::web_server(); 162 163 163 $output[] = $this->prevent_images_start; 164 $output[] = ''; 165 $output[] = $this->prevent_images_start; 164 166 165 167 if( $web_server == 'nginx' ) … … 257 259 258 260 $output[] = $this->prevent_images_end; 261 $output[] = ' '; 259 262 260 263 return implode("\n", $output); … … 301 304 { 302 305 if( tebravo_phpsettings::web_server() != 'nginx'){ 306 $rules[] = ''; 303 307 $rules[] = $this->wplogin_start; 304 308 $rules[] = '<IfModule mod_rewrite.c>'; … … 314 318 $rules[] = '</IfModule>'; 315 319 $rules[] = $this->wplogin_end; 316 } else { 320 $rules[] = ''; 321 } else { 322 $rules[] = ''; 317 323 $rules[] = $this->wplogin_start; 318 324 $MU_rules = ''; … … 326 332 $rules[] = $MU_rules; 327 333 $rules[] = $this->wplogin_end; 334 $rules[] = ''; 328 335 } 329 336 … … 335 342 { 336 343 if( tebravo_phpsettings::web_server() != 'nginx'){ 344 $rules[] = ''; 337 345 $rules[] = $this->wpadmin_start; 338 346 $rules[] = "RewriteRule ^({$this->home_root})?{$this->wpadmin_slug}/?$ {$this->home_root}wp-admin [QSA,L]"; 339 347 $rules[] = $this->wpadmin_end; 340 } else { 348 $rules[] = ''; 349 } else { 350 $rules[] = ''; 341 351 $rules[] = $this->wpadmin_start; 342 352 $rules[] = "rewrite ^({$this->home_root})?{$this->wpadmin_slug}/?$ {$this->home_root}wp-admin\$query_string break;"; 343 353 $rules[] = $this->wpadmin_end; 354 $rules[] = ''; 344 355 } 345 356
Note: See TracChangeset
for help on using the changeset viewer.