6
|
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&id=$1',
|
|
33 |
'change_email_key' => 'profile.php?action=change_email&id=$1&key=$2',
|
|
34 |
'change_password' => 'profile.php?action=change_pass&id=$1',
|
|
35 |
'change_password_key' => 'profile.php?action=change_pass&id=$1&key=$2',
|
|
36 |
'delete_user' => 'profile.php?action=delete_user&id=$1',
|
|
37 |
'delete' => 'delete.php?id=$1',
|
|
38 |
'delete_avatar' => 'profile.php?action=delete_avatar&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&fid=$1&type=rss',
|
|
43 |
'forum_atom' => 'extern.php?action=feed&fid=$1&type=atom',
|
|
44 |
'help' => 'help.php?section=$1',
|
|
45 |
'index' => '',
|
|
46 |
'login' => 'login.php',
|
|
47 |
'logout' => 'login.php?action=out&id=$1&csrf_token=$2',
|
|
48 |
'mark_read' => 'misc.php?action=markread',
|
|
49 |
'mark_forum_read' => 'misc.php?action=markforumread&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&id=$1',
|
|
54 |
'profile_identity' => 'profile.php?section=identity&id=$1',
|
|
55 |
'profile_settings' => 'profile.php?section=settings&id=$1',
|
|
56 |
'profile_preferences' => 'profile.php?section=preferences&id=$1',
|
|
57 |
'profile_avatar' => 'profile.php?section=avatar&id=$1',
|
|
58 |
'profile_signature' => 'profile.php?section=signature&id=$1',
|
|
59 |
'profile_display' => 'profile.php?section=display&id=$1',
|
|
60 |
'profile_privacy' => 'profile.php?section=privacy&id=$1',
|
|
61 |
'profile_admin' => 'profile.php?section=admin&id=$1',
|
|
62 |
'quote' => 'post.php?tid=$1&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&keywords=$1&author=$3&forum=$2&search_in=$4&sort_by=$5&sort_dir=$6&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&user_id=$1',
|
|
75 |
'search_user_topics' => 'search.php?action=show_user_topics&user_id=$1',
|
|
76 |
'subscribe' => 'misc.php?subscribe=$1',
|
|
77 |
'topic' => 'viewtopic.php?id=$1',
|
|
78 |
'topic_rss' => 'extern.php?action=feed&tid=$1&type=rss',
|
|
79 |
'topic_atom' => 'extern.php?action=feed&tid=$1&type=atom',
|
|
80 |
'topic_new_posts' => 'viewtopic.php?id=$1&action=new',
|
|
81 |
'topic_last_post' => 'viewtopic.php?id=$1&action=last',
|
|
82 |
'unsubscribe' => 'misc.php?unsubscribe=$1',
|
|
83 |
'upload_avatar' => 'profile.php?action=upload_avatar&id=$1',
|
|
84 |
'user' => 'profile.php?id=$1',
|
|
85 |
'users' => 'userlist.php',
|
|
86 |
'users_browse' => 'userlist.php?show_group=$1&sort_by=$2&sort_dir=$3&username=$4',
|
|
87 |
'page' => '&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&move_topics=$2',
|
|
92 |
'open' => 'moderate.php?fid=$1&open=$2&csrf_token=$3',
|
|
93 |
'close' => 'moderate.php?fid=$1&close=$2&csrf_token=$3',
|
|
94 |
'stick' => 'moderate.php?fid=$1&stick=$2&csrf_token=$3',
|
|
95 |
'unstick' => 'moderate.php?fid=$1&unstick=$2&csrf_token=$3',
|
|
96 |
'delete_multiple' => 'moderate.php?fid=$1&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 |
);
|