Big upgrade to 1.3 beta. Basic things are working.
<?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 regular, "non-SEF" URLs (you probably don't want to edit these)
$pun_url = array(
'change_email' => 'profile.php?action=change_email&id=$1',
'change_email_key' => 'profile.php?action=change_email&id=$1&key=$2',
'change_password' => 'profile.php?action=change_pass&id=$1',
'change_password_key' => 'profile.php?action=change_pass&id=$1&key=$2',
'delete_user' => 'profile.php?action=delete_user&id=$1',
'delete' => 'delete.php?id=$1',
'delete_avatar' => 'profile.php?action=delete_avatar&id=$1',
'edit' => 'edit.php?id=$1',
'email' => 'misc.php?email=$1',
'forum' => 'viewforum.php?id=$1',
'forum_rss' => 'extern.php?action=feed&fid=$1&type=rss',
'forum_atom' => 'extern.php?action=feed&fid=$1&type=atom',
'help' => 'help.php?section=$1',
'index' => '',
'login' => 'login.php',
'logout' => 'login.php?action=out&id=$1&csrf_token=$2',
'mark_read' => 'misc.php?action=markread',
'mark_forum_read' => 'misc.php?action=markforumread&fid=$1',
'new_topic' => 'post.php?fid=$1',
'new_reply' => 'post.php?tid=$1',
'post' => 'viewtopic.php?pid=$1#p$1',
'profile_about' => 'profile.php?section=about&id=$1',
'profile_identity' => 'profile.php?section=identity&id=$1',
'profile_settings' => 'profile.php?section=settings&id=$1',
'profile_preferences' => 'profile.php?section=preferences&id=$1',
'profile_avatar' => 'profile.php?section=avatar&id=$1',
'profile_signature' => 'profile.php?section=signature&id=$1',
'profile_display' => 'profile.php?section=display&id=$1',
'profile_privacy' => 'profile.php?section=privacy&id=$1',
'profile_admin' => 'profile.php?section=admin&id=$1',
'quote' => 'post.php?tid=$1&qid=$2',
'register' => 'register.php',
'report' => 'misc.php?report=$1',
'request_password' => 'login.php?action=forget',
'rules' => 'misc.php?action=rules',
'search' => 'search.php',
'search_resultft' => 'search.php?action=search&keywords=$1&author=$3&forum=$2&search_in=$4&sort_by=$5&sort_dir=$6&show_as=$7',
'search_results' => 'search.php?search_id=$1',
'search_new' => 'search.php?action=show_new',
'search_24h' => 'search.php?action=show_recent',
'search_unanswered' => 'search.php?action=show_unanswered',
'search_subscriptions' => 'search.php?action=show_subscriptions',
'search_user_posts' => 'search.php?action=show_user_posts&user_id=$1',
'search_user_topics' => 'search.php?action=show_user_topics&user_id=$1',
'subscribe' => 'misc.php?subscribe=$1',
'topic' => 'viewtopic.php?id=$1',
'topic_rss' => 'extern.php?action=feed&tid=$1&type=rss',
'topic_atom' => 'extern.php?action=feed&tid=$1&type=atom',
'topic_new_posts' => 'viewtopic.php?id=$1&action=new',
'topic_last_post' => 'viewtopic.php?id=$1&action=last',
'unsubscribe' => 'misc.php?unsubscribe=$1',
'upload_avatar' => 'profile.php?action=upload_avatar&id=$1',
'user' => 'profile.php?id=$1',
'users' => 'userlist.php',
'users_browse' => 'userlist.php?show_group=$1&sort_by=$2&sort_dir=$3&username=$4',
'page' => '&p=$1',
'moderate' => 'moderate.php',
'moderate_forum' => 'moderate.php?fid=$1',
'get_host' => 'moderate.php?get_host=$1',
'move' => 'moderate.php?fid=$1&move_topics=$2',
'open' => 'moderate.php?fid=$1&open=$2&csrf_token=$3',
'close' => 'moderate.php?fid=$1&close=$2&csrf_token=$3',
'stick' => 'moderate.php?fid=$1&stick=$2&csrf_token=$3',
'unstick' => 'moderate.php?fid=$1&unstick=$2&csrf_token=$3',
'delete_multiple' => 'moderate.php?fid=$1&tid=$2',
'admin_index' => 'admin/index.php',
'admin_bans' => 'admin/bans.php',
'admin_categories' => 'admin/categories.php',
'admin_censoring' => 'admin/censoring.php',
'admin_extensions_manage' => 'admin/extensions.php?section=manage',
'admin_extensions_install' => 'admin/extensions.php?section=install',
'admin_forums' => 'admin/forums.php',
'admin_groups' => 'admin/groups.php',
'admin_loader' => 'admin/loader.php',
'admin_reindex' => 'admin/reindex.php',
'admin_options_setup' => 'admin/options.php?section=setup',
'admin_options_features' => 'admin/options.php?section=features',
'admin_options_content' => 'admin/options.php?section=content',
'admin_options_email' => 'admin/options.php?section=email',
'admin_options_registration' => 'admin/options.php?section=registration',
'admin_options_communications' => 'admin/options.php?section=communications',
'admin_options_maintenance' => 'admin/options.php?section=maintenance',
'admin_prune' => 'admin/prune.php',
'admin_ranks' => 'admin/ranks.php',
'admin_reports' => 'admin/reports.php',
'admin_users' => 'admin/users.php'
);