Ignore:
Timestamp:
07/23/10 10:18:02 (22 months ago)
Author:
fuze
Message:

Личные сообщения: html вынесен в smarty, добавлена пагинация, мелкие недочеты исправлены.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/fuze/components/users/router.php

    r181 r235  
    283283                            'opt'   => 'in' 
    284284                         ); 
    285  
     285                                                  
     286        $routes[] = array( 
     287                            '_uri'  => '/^users\/([0-9]+)\/messages([0-9]+).html$/i', 
     288                            'do'    => 'messages', 
     289                            1       => 'id', 
     290                            'opt'   => 'in', 
     291                            2       => 'cpage' 
     292                         ); 
     293                                                  
    286294        //RewriteRule ^users/([0-9]*)/messages-sent.html$ /index.php?view=users&do=messages&id=$1&opt=out 
    287295        $routes[] = array( 
     
    291299                            'opt'   => 'out' 
    292300                         ); 
    293  
     301                                                  
     302        $routes[] = array( 
     303                            '_uri'  => '/^users\/([0-9]+)\/messages\-sent([0-9]+).html$/i', 
     304                            'do'    => 'messages', 
     305                            1       => 'id', 
     306                            'opt'   => 'out', 
     307                            2       => 'cpage' 
     308                         ); 
     309                                                  
    294310        //RewriteRule ^users/([0-9]*)/messages-new.html$ /index.php?view=users&do=messages&id=$1&opt=new 
    295311        $routes[] = array( 
     
    309325                            'opt'   => 'history' 
    310326                         ); 
    311  
     327                                                  
     328        $routes[] = array( 
     329                            '_uri'  => '/^users\/([0-9]+)\/messages\-history([0-9]+)\-([0-9]+).html$/i', 
     330                            'do'    => 'messages', 
     331                            1       => 'id', 
     332                            2       => 'with_id', 
     333                            'opt'   => 'history', 
     334                            3       => 'cpage' 
     335                         ); 
     336                                                  
    312337        //RewriteRule ^users/[0-9]*)/reply([0-9]*).html$ /index.php?view=users&do=sendmessage&id=$1&replyid=$2 
    313338        $routes[] = array( 
Note: See TracChangeset for help on using the changeset viewer.