punbb/include/url/Default.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 regular, "non-SEF" URLs (you probably don't want to edit these)
       
    31 $pun_url = array(
       
    32 	'change_email'					=>	'profile.php?action=change_email&amp;id=$1',
       
    33 	'change_email_key'				=>	'profile.php?action=change_email&amp;id=$1&amp;key=$2',
       
    34 	'change_password'				=>	'profile.php?action=change_pass&amp;id=$1',
       
    35 	'change_password_key'			=>	'profile.php?action=change_pass&amp;id=$1&amp;key=$2',
       
    36 	'delete_user'					=>	'profile.php?action=delete_user&amp;id=$1',
       
    37 	'delete'						=>	'delete.php?id=$1',
       
    38 	'delete_avatar'					=>	'profile.php?action=delete_avatar&amp;id=$1',
       
    39 	'edit'							=>	'edit.php?id=$1',
       
    40 	'email'							=>	'misc.php?email=$1',
       
    41 	'forum'							=>	'viewforum.php?id=$1',
       
    42 	'forum_rss'						=>	'extern.php?action=feed&amp;fid=$1&amp;type=rss',
       
    43 	'forum_atom'					=>	'extern.php?action=feed&amp;fid=$1&amp;type=atom',
       
    44 	'help'							=>	'help.php?section=$1',
       
    45 	'index'							=>	'',
       
    46 	'login'							=>	'login.php',
       
    47 	'logout'						=>	'login.php?action=out&amp;id=$1&amp;csrf_token=$2',
       
    48 	'mark_read'						=>	'misc.php?action=markread',
       
    49 	'mark_forum_read'				=>	'misc.php?action=markforumread&amp;fid=$1',
       
    50 	'new_topic'						=>	'post.php?fid=$1',
       
    51 	'new_reply'						=>	'post.php?tid=$1',
       
    52 	'post'							=>	'viewtopic.php?pid=$1#p$1',
       
    53 	'profile_about'					=>	'profile.php?section=about&amp;id=$1',
       
    54 	'profile_identity'				=>	'profile.php?section=identity&amp;id=$1',
       
    55 	'profile_settings'				=>	'profile.php?section=settings&amp;id=$1',
       
    56 	'profile_preferences'			=>	'profile.php?section=preferences&amp;id=$1',
       
    57 	'profile_avatar'				=>	'profile.php?section=avatar&amp;id=$1',
       
    58 	'profile_signature'				=>	'profile.php?section=signature&amp;id=$1',
       
    59 	'profile_display'				=>	'profile.php?section=display&amp;id=$1',
       
    60 	'profile_privacy'				=>	'profile.php?section=privacy&amp;id=$1',
       
    61 	'profile_admin'					=>	'profile.php?section=admin&amp;id=$1',
       
    62 	'quote'							=>	'post.php?tid=$1&amp;qid=$2',
       
    63 	'register'						=>	'register.php',
       
    64 	'report'						=>	'misc.php?report=$1',
       
    65 	'request_password'				=>	'login.php?action=forget',
       
    66 	'rules'							=>	'misc.php?action=rules',
       
    67 	'search'						=>	'search.php',
       
    68 	'search_resultft'				=>	'search.php?action=search&amp;keywords=$1&amp;author=$3&amp;forum=$2&amp;search_in=$4&amp;sort_by=$5&amp;sort_dir=$6&amp;show_as=$7',
       
    69 	'search_results'				=>	'search.php?search_id=$1',
       
    70 	'search_new'					=>	'search.php?action=show_new',
       
    71 	'search_24h'					=>	'search.php?action=show_recent',
       
    72 	'search_unanswered'				=>	'search.php?action=show_unanswered',
       
    73 	'search_subscriptions'			=>	'search.php?action=show_subscriptions',
       
    74 	'search_user_posts'				=>	'search.php?action=show_user_posts&amp;user_id=$1',
       
    75 	'search_user_topics'			=>	'search.php?action=show_user_topics&amp;user_id=$1',
       
    76 	'subscribe'						=>	'misc.php?subscribe=$1',
       
    77 	'topic'							=>	'viewtopic.php?id=$1',
       
    78 	'topic_rss'						=>	'extern.php?action=feed&amp;tid=$1&amp;type=rss',
       
    79 	'topic_atom'					=>	'extern.php?action=feed&amp;tid=$1&amp;type=atom',
       
    80 	'topic_new_posts'				=>	'viewtopic.php?id=$1&amp;action=new',
       
    81 	'topic_last_post'				=>	'viewtopic.php?id=$1&amp;action=last',
       
    82 	'unsubscribe'					=>	'misc.php?unsubscribe=$1',
       
    83 	'upload_avatar'					=>	'profile.php?action=upload_avatar&amp;id=$1',
       
    84 	'user'							=>	'profile.php?id=$1',
       
    85 	'users'							=>	'userlist.php',
       
    86 	'users_browse'					=>	'userlist.php?show_group=$1&amp;sort_by=$2&amp;sort_dir=$3&amp;username=$4',
       
    87 	'page'							=>	'&amp;p=$1',
       
    88 	'moderate'						=>	'moderate.php',
       
    89 	'moderate_forum'				=>	'moderate.php?fid=$1',
       
    90 	'get_host'						=>	'moderate.php?get_host=$1',
       
    91 	'move'							=>	'moderate.php?fid=$1&amp;move_topics=$2',
       
    92 	'open'							=>	'moderate.php?fid=$1&amp;open=$2&amp;csrf_token=$3',
       
    93 	'close'							=>	'moderate.php?fid=$1&amp;close=$2&amp;csrf_token=$3',
       
    94 	'stick'							=>	'moderate.php?fid=$1&amp;stick=$2&amp;csrf_token=$3',
       
    95 	'unstick'						=>	'moderate.php?fid=$1&amp;unstick=$2&amp;csrf_token=$3',
       
    96 	'delete_multiple'				=>	'moderate.php?fid=$1&amp;tid=$2',
       
    97 	'admin_index'					=>	'admin/index.php',
       
    98 	'admin_bans'					=>	'admin/bans.php',
       
    99 	'admin_categories'				=>	'admin/categories.php',
       
   100 	'admin_censoring'				=>	'admin/censoring.php',
       
   101 	'admin_extensions_manage'		=>	'admin/extensions.php?section=manage',
       
   102 	'admin_extensions_install'		=>	'admin/extensions.php?section=install',
       
   103 	'admin_forums'					=>	'admin/forums.php',
       
   104 	'admin_groups'					=>	'admin/groups.php',
       
   105 	'admin_loader'					=>	'admin/loader.php',
       
   106 	'admin_reindex'					=>	'admin/reindex.php',
       
   107 	'admin_options_setup'			=>	'admin/options.php?section=setup',
       
   108 	'admin_options_features'		=>	'admin/options.php?section=features',
       
   109 	'admin_options_content'			=>	'admin/options.php?section=content',
       
   110 	'admin_options_email'			=>	'admin/options.php?section=email',
       
   111 	'admin_options_registration'	=>	'admin/options.php?section=registration',
       
   112 	'admin_options_communications'	=>	'admin/options.php?section=communications',
       
   113 	'admin_options_maintenance'		=>	'admin/options.php?section=maintenance',
       
   114 	'admin_prune'					=>	'admin/prune.php',
       
   115 	'admin_ranks'					=>	'admin/ranks.php',
       
   116 	'admin_reports'					=>	'admin/reports.php',
       
   117 	'admin_users'					=>	'admin/users.php'
       
   118 );