Changeset 703 for trunk


Ignore:
Timestamp:
03/17/11 15:01:21 (14 months ago)
Author:
r2
Message:

всякое

Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/bbcode/bbcode.lib.php

    r524 r703  
    11821182                $url = $href; 
    11831183                $local = true; 
     1184            } elseif (!strstr($href, '?')) { 
     1185                $url = '/go/url='.htmlspecialchars($href); 
     1186                $local = false; 
    11841187            } else { 
    1185                 $url = '/go/url='.htmlspecialchars($this->process_url($href)); 
    1186                 $local = false; 
    1187             } 
     1188                                $url = $href; 
     1189                        } 
    11881190            $attr .= ' href="'.$url.'"'; 
    11891191        } 
     
    12001202    } 
    12011203 
    1202   private function process_url($href){ 
    1203         return str_replace('?', '--q--', $href); 
    1204   } 
    12051204} 
    12061205 
  • trunk/includes/graphic.inc.php

    r670 r703  
    7272  if ($size === false) return false; 
    7373 
    74   $new_width   = $size[0]; 
    75   $new_height  = $size[1]; 
    76  
    7774  if (($new_height <= $maxheight) && ($new_width <= $maxwidth)){ 
    7875      @copy($src, $dest); 
  • trunk/url_rewrite.php

    r458 r703  
    148148 
    149149        $rules[] = array( 
    150                             'source'  => '/^content\/(.+).html$/i', 
    151                             'target'  => '/{1}.html', 
    152                             'action'  => 'redirect-301' 
    153                          ); 
    154  
    155         $rules[] = array( 
    156150                            'source'  => '/^content\/(.+)\/page\-([0-9]+)$/i', 
    157151                            'target'  => '/{1}/page-{2}', 
     
    160154 
    161155        $rules[] = array( 
     156                            'source'  => '/^content\/([0-9]+)\/(.+).html$/i', 
     157                            'target'  => '/{2}.html', 
     158                            'action'  => 'redirect-301' 
     159                         ); 
     160 
     161        $rules[] = array( 
     162                            'source'  => '/^content\/([0-9]+)\/(.+)$/i', 
     163                            'target'  => '/{2}', 
     164                            'action'  => 'redirect-301' 
     165                         ); 
     166 
     167        $rules[] = array( 
    162168                            'source'  => '/^content\/(.+)$/i', 
    163169                            'target'  => '/{1}', 
     
    166172 
    167173        $rules[] = array( 
    168                             'source'  => '/^content\/([0-9]+)\/(.+).html$/i', 
    169                             'target'  => '/{2}.html', 
    170                             'action'  => 'redirect-301' 
    171                          ); 
    172  
    173         $rules[] = array( 
    174174                            'source'  => '/^content\/([0-9]+)\/(.+)\/page\-([0-9]+).html$/i', 
    175175                            'target'  => '/{2}/page-{3}.html', 
     
    178178 
    179179        $rules[] = array( 
    180                             'source'  => '/^content\/([0-9]+)\/(.+)$/i', 
    181                             'target'  => '/{2}', 
    182                             'action'  => 'redirect-301' 
    183                          ); 
    184  
    185         $rules[] = array( 
    186180                            'source'  => '/^content\/([0-9]+)\/(.+)\/page\-([0-9]+)$/i', 
    187181                            'target'  => '/{2}/page-{3}', 
Note: See TracChangeset for help on using the changeset viewer.