Plugin Directory

Changeset 1760432


Ignore:
Timestamp:
11/07/2017 10:57:55 PM (8 years ago)
Author:
technoyer
Message:

update htaccess class

Location:
bravo-security
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • bravo-security/tags/1.1/hooks/tebravo.firewall.php

    r1760408 r1760432  
    18611861            $output[] = "<td colspan=2>";
    18621862            $output[] = "<textarea name='' style='width:35%; height:45px;' disabled></textarea>";
    1863             $output[] = "<br /><font class='smallfont'>".__("seprate 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>";
    18641864           
    18651865           
  • bravo-security/tags/1.1/includes/tebravo.htaccess.php

    r1751191 r1760432  
    7575        if(empty($action))
    7676        {
     77            $newData = $this->delete_rule($this->prevent_images_start, $this->prevent_images_end, '');
    7778            $this->prevent_images();
    7879        } else {
     
    161162        $web_server = tebravo_phpsettings::web_server();
    162163       
    163         $output[] = $this->prevent_images_start;
     164        $output[] = '';
     165        $output[] = $this->prevent_images_start;
    164166       
    165167        if( $web_server == 'nginx' )
     
    257259       
    258260        $output[] = $this->prevent_images_end;
     261        $output[] = ' ';
    259262       
    260263        return implode("\n", $output);
     
    301304    {
    302305        if( tebravo_phpsettings::web_server() != 'nginx'){
     306            $rules[] = '';
    303307            $rules[] = $this->wplogin_start;
    304308            $rules[] = '<IfModule mod_rewrite.c>';
     
    314318            $rules[] = '</IfModule>';
    315319            $rules[] = $this->wplogin_end;
    316         } else {
     320            $rules[] = '';
     321        } else {
     322            $rules[] = '';
    317323            $rules[] = $this->wplogin_start;
    318324            $MU_rules = '';
     
    326332            $rules[] = $MU_rules;
    327333            $rules[] = $this->wplogin_end;
     334            $rules[] = '';
    328335        }
    329336       
     
    335342    {
    336343        if( tebravo_phpsettings::web_server() != 'nginx'){
     344            $rules[] = '';
    337345            $rules[] = $this->wpadmin_start;
    338346            $rules[] = "RewriteRule ^({$this->home_root})?{$this->wpadmin_slug}/?$ {$this->home_root}wp-admin [QSA,L]";
    339347            $rules[] = $this->wpadmin_end;
    340         } else {
     348            $rules[] = '';
     349        } else {
     350            $rules[] = '';
    341351            $rules[] = $this->wpadmin_start;
    342352            $rules[] = "rewrite ^({$this->home_root})?{$this->wpadmin_slug}/?$ {$this->home_root}wp-admin\$query_string break;";
    343353            $rules[] = $this->wpadmin_end;
     354            $rules[] = '';
    344355        }
    345356       
  • bravo-security/trunk/includes/tebravo.htaccess.php

    r1751191 r1760432  
    7575        if(empty($action))
    7676        {
     77            $newData = $this->delete_rule($this->prevent_images_start, $this->prevent_images_end, '');
    7778            $this->prevent_images();
    7879        } else {
     
    161162        $web_server = tebravo_phpsettings::web_server();
    162163       
    163         $output[] = $this->prevent_images_start;
     164        $output[] = '';
     165        $output[] = $this->prevent_images_start;
    164166       
    165167        if( $web_server == 'nginx' )
     
    257259       
    258260        $output[] = $this->prevent_images_end;
     261        $output[] = ' ';
    259262       
    260263        return implode("\n", $output);
     
    301304    {
    302305        if( tebravo_phpsettings::web_server() != 'nginx'){
     306            $rules[] = '';
    303307            $rules[] = $this->wplogin_start;
    304308            $rules[] = '<IfModule mod_rewrite.c>';
     
    314318            $rules[] = '</IfModule>';
    315319            $rules[] = $this->wplogin_end;
    316         } else {
     320            $rules[] = '';
     321        } else {
     322            $rules[] = '';
    317323            $rules[] = $this->wplogin_start;
    318324            $MU_rules = '';
     
    326332            $rules[] = $MU_rules;
    327333            $rules[] = $this->wplogin_end;
     334            $rules[] = '';
    328335        }
    329336       
     
    335342    {
    336343        if( tebravo_phpsettings::web_server() != 'nginx'){
     344            $rules[] = '';
    337345            $rules[] = $this->wpadmin_start;
    338346            $rules[] = "RewriteRule ^({$this->home_root})?{$this->wpadmin_slug}/?$ {$this->home_root}wp-admin [QSA,L]";
    339347            $rules[] = $this->wpadmin_end;
    340         } else {
     348            $rules[] = '';
     349        } else {
     350            $rules[] = '';
    341351            $rules[] = $this->wpadmin_start;
    342352            $rules[] = "rewrite ^({$this->home_root})?{$this->wpadmin_slug}/?$ {$this->home_root}wp-admin\$query_string break;";
    343353            $rules[] = $this->wpadmin_end;
     354            $rules[] = '';
    344355        }
    345356       
Note: See TracChangeset for help on using the changeset viewer.