punbb/include/url/Folder_based.php
changeset 6 5e1f1e916419
equal deleted inserted replaced
5:e3d7322305bf 6:5e1f1e916419
       
     1 <?php
       
     2 /***********************************************************************
       
     3 
       
     4   Copyright (C) 2002-2008  PunBB.org
       
     5 
       
     6   This file is part of PunBB.
       
     7 
       
     8   PunBB is free software; you can redistribute it and/or modify it
       
     9   under the terms of the GNU General Public License as published
       
    10   by the Free Software Foundation; either version 2 of the License,
       
    11   or (at your option) any later version.
       
    12 
       
    13   PunBB is distributed in the hope that it will be useful, but
       
    14   WITHOUT ANY WARRANTY; without even the implied warranty of
       
    15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    16   GNU General Public License for more details.
       
    17 
       
    18   You should have received a copy of the GNU General Public License
       
    19   along with this program; if not, write to the Free Software
       
    20   Foundation, Inc., 59 Temple Place, Suite 330, Boston,
       
    21   MA  02111-1307  USA
       
    22 
       
    23 ************************************************************************/
       
    24 
       
    25 
       
    26 // Make sure no one attempts to run this script "directly"
       
    27 if (!defined('PUN'))
       
    28 	exit;
       
    29 
       
    30 // These are the simple folder based SEF URLs
       
    31 $pun_url = array(
       
    32 	'change_email'					=>	'change/email/$1/',
       
    33 	'change_email_key'				=>	'change/email/$1/$2/',
       
    34 	'change_password'				=>	'change/password/$1/',
       
    35 	'change_password_key'			=>	'change/password/$1/$2/',
       
    36 	'delete'						=>	'delete/$1/',
       
    37 	'delete_avatar'					=>	'delete/avatar/$1/',
       
    38 	'delete_user'					=>	'delete/user/$1/',
       
    39 	'edit'							=>	'edit/$1/',
       
    40 	'email'							=>	'email/$1/',
       
    41 	'forum'							=>	'forum/$1/',
       
    42 	'forum_rss'						=>	'forum/$1/rss/',
       
    43 	'forum_atom'					=>	'forum/$1/atom/',
       
    44 	'help'							=>	'help/$1/',
       
    45 	'index'							=>	'',
       
    46 	'login'							=>	'login/',
       
    47 	'logout'						=>	'logout/$1/$2/',
       
    48 	'mark_read'						=>	'mark/read/',
       
    49 	'mark_forum_read'				=>	'mark/forum/$1/read/',
       
    50 	'new_topic'						=>	'new/topic/$1/',
       
    51 	'new_reply'						=>	'new/reply/$1/',
       
    52 	'post'							=>	'post/$1/#p$1',
       
    53 	'profile_about'					=>	'user/$1/about/',
       
    54 	'profile_identity'				=>	'user/$1/identity/',
       
    55 	'profile_settings'				=>	'user/$1/settings/',
       
    56 	'profile_avatar'				=>	'user/$1/avatar/',
       
    57 	'profile_signature'				=>	'user/$1/signature/',
       
    58 	'profile_admin'					=>	'user/$1/admin/',
       
    59 	'quote'							=>	'new/reply/$1/quote/$2/',
       
    60 	'register'						=>	'register/',
       
    61 	'report'						=>	'report/$1/',
       
    62 	'request_password'				=>	'request/password/',
       
    63 	'rules'							=>	'rules/',
       
    64 	'search'						=>	'search/',
       
    65 	'search_resultft'				=>	'search/k$1/$2/a$3/$4/$5/$6/$7/',
       
    66 	'search_results'				=>	'search/$1/',
       
    67 	'search_new'					=>	'search/new/',
       
    68 	'search_24h'					=>	'search/recent/',
       
    69 	'search_unanswered'				=>	'search/unanswered/',
       
    70 	'search_subscriptions'			=>	'search/subscriptions/',
       
    71 	'search_user_posts'				=>	'search/posts/user/$1/',
       
    72 	'search_user_topics'			=>	'search/topics/user/$1/',
       
    73 	'subscribe'						=>	'subscribe/$1/',
       
    74 	'topic'							=>	'topic/$1/',
       
    75 	'topic_rss'						=>	'topic/$1/rss/',
       
    76 	'topic_atom'					=>	'topic/$1/atom/',
       
    77 	'topic_new_posts'				=>	'topic/$1/new/posts/',
       
    78 	'topic_last_post'				=>	'topic/$1/last/post/',
       
    79 	'unsubscribe'					=>	'unsubscribe/$1/',
       
    80 	'upload_avatar'					=>	'upload/avatar/$1/',
       
    81 	'user'							=>	'user/$1/',
       
    82 	'users'							=>	'users/',
       
    83 	'users_browse'					=>	'users/$4/$1/$2/$3/',
       
    84 	'page'							=>	'page/$1/',
       
    85 	'moderate'						=>	'moderate/',
       
    86 	'moderate_forum'				=>	'moderate/$1/',
       
    87 	'get_host'						=>	'get_host/$1/',
       
    88 	'move'							=>	'move_topics/$1/$2/',
       
    89 	'open'							=>	'open/$1/$2/$3/',
       
    90 	'close'							=>	'close/$1/$2/$3/',
       
    91 	'stick'							=>	'stick/$1/$2/$3/',
       
    92 	'unstick'						=>	'unstick/$1/$2/$3/',
       
    93 	'delete_multiple'				=>	'moderate/$1/$2/',
       
    94 	'admin_index'					=>	'admin/',
       
    95 	'admin_bans'					=>	'admin/bans/',
       
    96 	'admin_categories'				=>	'admin/categories/',
       
    97 	'admin_censoring'				=>	'admin/censoring/',
       
    98 	'admin_extensions_manage'		=>	'admin/extensions/manage/',
       
    99 	'admin_extensions_install'		=>	'admin/extensions/install/',
       
   100 	'admin_forums'					=>	'admin/forums/',
       
   101 	'admin_groups'					=>	'admin/groups/',
       
   102 	'admin_loader'					=>	'admin/loader/',
       
   103 	'admin_reindex'					=>	'admin/reindex/',
       
   104 	'admin_options_setup'			=>	'admin/options/setup/',
       
   105 	'admin_options_features'		=>	'admin/options/features/',
       
   106 	'admin_options_content'			=>	'admin/options/content/',
       
   107 	'admin_options_email'			=>	'admin/options/email/',
       
   108 	'admin_options_registration'	=>	'admin/options/registration/',
       
   109 	'admin_options_communications'	=>	'admin/options/communications/',
       
   110 	'admin_options_maintenance'		=>	'admin/options/maintenance/',
       
   111 	'admin_prune'					=>	'admin/prune/',
       
   112 	'admin_ranks'					=>	'admin/ranks/',
       
   113 	'admin_reports'					=>	'admin/reports/',
       
   114 	'admin_users'					=>	'admin/users/'
       
   115 );