punbb/include/url/File_based_(fancy).php
changeset 6 5e1f1e916419
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/punbb/include/url/File_based_(fancy).php	Sat Apr 05 23:56:45 2008 -0400
@@ -0,0 +1,117 @@
+<?php
+/***********************************************************************
+
+  Copyright (C) 2002-2008  PunBB.org
+
+  This file is part of PunBB.
+
+  PunBB is free software; you can redistribute it and/or modify it
+  under the terms of the GNU General Public License as published
+  by the Free Software Foundation; either version 2 of the License,
+  or (at your option) any later version.
+
+  PunBB is distributed in the hope that it will be useful, but
+  WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with this program; if not, write to the Free Software
+  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+  MA  02111-1307  USA
+
+************************************************************************/
+
+
+// Make sure no one attempts to run this script "directly"
+if (!defined('PUN'))
+	exit;
+
+// These are the "fancy" file based SEF URLs
+$pun_url = array(
+	'insertion_find'				=>  '.html',
+	'insertion_replace'				=>  '-$1.html',
+	'change_email'					=>	'change-email$1.html',
+	'change_email_key'				=>	'change-email$1-$2.html',
+	'change_password'				=>	'change-password$1.html',
+	'change_password_key'			=>	'change-password$1-$2.html',
+	'delete_user'					=>	'delete-user$1.html',
+	'delete'						=>	'delete$1.html',
+	'delete_avatar'					=>	'delete-avatar$1.html',
+	'edit'							=>	'edit$1.html',
+	'email'							=>	'email$1.html',
+	'forum'							=>	'forum$1$2.html',
+	'forum_rss'						=>	'forum$1-rss.html',
+	'forum_atom'					=>	'forum$1-atom.html',
+	'help'							=>	'help-$1.html',
+	'index'							=>	'',
+	'login'							=>	'login.html',
+	'logout'						=>	'logout$1-$2.html',
+	'mark_read'						=>	'mark-read.html',
+	'mark_forum_read'				=>	'mark-forum$1-read.html',
+	'new_topic'						=>	'new-topic$1.html',
+	'new_reply'						=>	'new-reply$1.html',
+	'post'							=>	'post$1.html#p$1',
+	'profile_about'					=>	'user$1-about.html',
+	'profile_identity'				=>	'user$1-identity.html',
+	'profile_settings'				=>	'user$1-settings.html',
+	'profile_avatar'				=>	'user$1-avatar.html',
+	'profile_signature'				=>	'user$1-signature.html',
+	'profile_admin'					=>	'user$1-admin.html',
+	'quote'							=>	'new-reply$1quote$2.html',
+	'register'						=>	'register.html',
+	'report'						=>	'report$1.html',
+	'request_password'				=>	'request-password.html',
+	'rules'							=>	'rules.html',
+	'search'						=>	'search.html',
+	'search_resultft'				=>	'search-k$1-$4-a$3-$5-$6-$2-$7.html',
+	'search_results'				=>	'search$1.html',
+	'search_new'					=>	'search-new.html',
+	'search_24h'					=>	'search-recent.html',
+	'search_unanswered'				=>	'search-unanswered.html',
+	'search_subscriptions'			=>	'search-subscriptions.html',
+	'search_user_posts'				=>	'search-posts-user$1.html',
+	'search_user_topics'			=>	'search-topics-user$1.html',
+	'subscribe'						=>	'subscribe$1.html',
+	'topic'							=>	'topic$1$2.html',
+	'topic_rss'						=>	'topic$1-rss.html',
+	'topic_atom'					=>	'topic$1-atom.html',
+	'topic_new_posts'				=>	'topic$1$2new-posts.html',
+	'topic_last_post'				=>	'topic$1last-post.html',
+	'unsubscribe'					=>	'unsubscribe$1.html',
+	'upload_avatar'					=>	'upload-avatar$1.html',
+	'user'							=>	'user$1.html',
+	'users'							=>	'users.html',
+	'users_browse'					=>	'users/$4/$1$2-$3.html',
+	'page'							=>	'p$1',
+	'moderate'						=>	'moderate.html',
+	'moderate_forum'				=>	'moderate$1.html',
+	'get_host'						=>	'get_host$1.html',
+	'move'							=>	'move_topics$1-$2.html',
+	'open'							=>	'open$1-$2-$3.html',
+	'close'							=>	'close$1-$2-$3.html',
+	'stick'							=>	'stick$1-$2-$3.html',
+	'unstick'						=>	'unstick$1-$2-$3.html',
+	'delete_multiple'				=>	'moderate$1-$2.html',
+	'admin_index'					=>	'admin.html',
+	'admin_bans'					=>	'admin-bans.html',
+	'admin_categories'				=>	'admin-categories.html',
+	'admin_censoring'				=>	'admin-censoring.html',
+	'admin_extensions_manage'		=>	'admin-extensions-manage.html',
+	'admin_extensions_install'		=>	'admin-extensions-install.html',
+	'admin_forums'					=>	'admin-forums.html',
+	'admin_groups'					=>	'admin-groups.html',
+	'admin_loader'					=>	'admin-loader.html',
+	'admin_reindex'					=>	'admin-reindex.html',
+	'admin_options_setup'			=>	'admin-options-setup.html',
+	'admin_options_features'		=>	'admin-options-features.html',
+	'admin_options_content'			=>	'admin-options-content.html',
+	'admin_options_email'			=>	'admin-options-email.html',
+	'admin_options_registration'	=>	'admin-options-registration.html',
+	'admin_options_communications'	=>	'admin-options-communications.html',
+	'admin_options_maintenance'		=>	'admin-options-maintenance.html',
+	'admin_prune'					=>	'admin-prune.html',
+	'admin_ranks'					=>	'admin-ranks.html',
+	'admin_reports'					=>	'admin-reports.html',
+	'admin_users'					=>	'admin-users.html'
+);