Home » Support Forums for PMBT 2.X » General Help for 2.X » problem url forum after install
| | |
| Re: problem url forum after install [message #3633 is a reply to message #3632] |
Wed, 10 February 2010 12:32   |
|
ok replace phpBB3/rewrite.php with this
<?php
/*
*-------------------------------phpMyBitTorrent--------------------------------*
*--- The Ultimate BitTorrent Tracker and BMS (Bittorrent Management System) ---*
*-------------- Created By Antonio Anzivino (aka DJ Echelon) --------------*
*------------- http://www.p2pmania.it -------------*
*------------ Based on the Bit Torrent Protocol made by Bram Cohen ------------*
*------------- http://www.bittorrent.com -------------*
*------------------------------------------------------------------------------*
*------------------------------------------------------------------------------*
*-- This program 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. --*
*-- --*
*-- This program 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 --*
*-- --*
*------------------------------------------------------------------------------*
*------ ©2005 phpMyBitTorrent Development Team ------*
*----------- http://phpmybittorrent.com -----------*
*------------------------------------------------------------------------------*
*/
if (!defined('IN_PHPBB'))
{
exit;
}
//die($phpbb_root_path);
$buffer = ob_get_clean();
global $siteurl,$forumbase;
$oldurl = str_replace('/phpBB.php','',$_SERVER["PHP_SELF"]);
$buffer = preg_replace("(&(?!([a-zA-Z]{2,6}|[0-9\#]{1,6})[\;]))", "&", $buffer);
$buffer = str_replace(array("&&", "&middot", "&nbsp"), array("&&", "·", " ;"), $buffer);
$buffer = str_replace(array("&&", "&middot", "&nbsp"), array("&&", "·", " ;"), $buffer);
$rewrite_search2[] = $phpbb_root_path;
$rewrite_replace2[] = "/phpBB3/";
$rewrite_search2[] = '.php?';
$rewrite_replace2[] = ".php&";
$rewrite_search2[] = $forumbase."/";
$rewrite_replace2[] = "phpBB.php?page=";
$rewrite_search2[] = $oldurl.'/phpBB.php?page=styles/';
$rewrite_replace2[] = $siteurl."/".$forumbase."/styles/";
$rewrite_search2[] = $oldurl.'/phpBB.php?page=../phpBB.php&';
$rewrite_replace2[] = $oldurl."/phpBB.php?page=ucp.php&";
$rewrite_search2[] = 'page=ucp.php&page=mcp.php&=&';
$rewrite_replace2[] = "page=mcp.php&";
$rewrite_search2[] = 'ucp.php&page=mcp.php&&';
$rewrite_replace2[] = "mcp.php&";
$rewrite_search2[] = 'phpBB.php&page=';
$rewrite_replace2[] = "phpBB.php?page=";
$rewrite_search2[] = 'phpBB.php&page=';
$rewrite_replace2[] = "phpBB.php?page=";
$rewrite_search2[] = $oldurl.'/phpBB.php?page=style.php&sid=';
$rewrite_replace2[] = $siteurl."/".$forumbase."/style.php?sid=";
$rewrite_search2[] = $oldurl.'/phpBB.php?page=download/file.php&';
$rewrite_replace2[] = $siteurl."/".$forumbase."/download/file.php?";
$rewrite_search2[] = $oldurl.'/phpBB.php?page=images/';
$rewrite_replace2[] = $oldurl."/".$forumbase."/images/";
$rewrite_search2[] = 'user.php&';
$rewrite_replace2[] = "user.php?";
$rewrite_search2[] = "window.open(url.replace(/&/g, '&'),";
$rewrite_replace2[] = "window.open(url.replace(/&/g, '&'),";
$buffer = str_replace($rewrite_search2,$rewrite_replace2,$buffer);
//Restart Output Buffering again
ob_start("ob_gzhandler");
ob_implicit_flush(0);
echo $buffer;
?>
now open phpBB3/includes/functions and find
function exit_handler()
{
global $phpbb_hook, $config;
and change it to
function exit_handler()
{
global $phpbb_hook, $config, $phpbb_root_path;
that should work
|
|
| | | |
| Re: problem url forum after install [message #3759 is a reply to message #3639] |
Tue, 16 March 2010 01:57  |
|
<?php
/*
*-------------------------------phpMyBitTorrent--------------------------------*
*--- The Ultimate BitTorrent Tracker and BMS (Bittorrent Management System) ---*
*-------------- Created By Antonio Anzivino (aka DJ Echelon) --------------*
*------------- http://www.p2pmania.it -------------*
*------------ Based on the Bit Torrent Protocol made by Bram Cohen ------------*
*------------- http://www.bittorrent.com -------------*
*------------------------------------------------------------------------------*
*------------------------------------------------------------------------------*
*-- This program 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. --*
*-- --*
*-- This program 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 --*
*-- --*
*------------------------------------------------------------------------------*
*------ ©2005 phpMyBitTorrent Development Team ------*
*----------- http://phpmybittorrent.com -----------*
*------------------------------------------------------------------------------*
*/
if (!defined('IN_PHPBB'))
{
exit;
}
//die($phpbb_root_path);
$buffer = ob_get_clean();
global $siteurl,$forumbase,$phpbb_root_path;
$oldurl = str_replace('/phpBB.php','',$_SERVER["PHP_SELF"]);
$buffer = preg_replace("(&(?!([a-zA-Z]{2,6}|[0-9\#]{1,6})[\;]))", "&", $buffer);
$buffer = str_replace(array("&&", "&middot", "&nbsp"), array("&&", "·", " ;"), $buffer);
$buffer = str_replace(array("&&", "&middot", "&nbsp"), array("&&", "·", " ;"), $buffer);
$rewrite_search2[] = $phpbb_root_path;
$rewrite_replace2[] = "/phpBB3mbt/phpBB3/";
$rewrite_search2[] = '.php?';
$rewrite_replace2[] = ".php&";
$rewrite_search2[] = $forumbase."/";
$rewrite_replace2[] = "phpBB.php?page=";
$rewrite_search2[] = $oldurl.'/phpBB.php?page=styles/';
$rewrite_replace2[] = $siteurl."/".$forumbase."/styles/";
$rewrite_search2[] = $oldurl.'/phpBB.php?page=../phpBB.php&';
$rewrite_replace2[] = $oldurl."/phpBB.php?page=ucp.php&";
$rewrite_search2[] = 'page=ucp.php&page=mcp.php&=&';
$rewrite_replace2[] = "page=mcp.php&";
$rewrite_search2[] = 'ucp.php&page=mcp.php&&';
$rewrite_replace2[] = "mcp.php&";
$rewrite_search2[] = 'phpBB.php&page=';
$rewrite_replace2[] = "phpBB.php?page=";
$rewrite_search2[] = 'phpBB.php&page=';
$rewrite_replace2[] = "phpBB.php?page=";
$rewrite_search2[] = $oldurl.'/phpBB.php?page=style.php&sid=';
$rewrite_replace2[] = $siteurl."/".$forumbase."/style.php?sid=";
$rewrite_search2[] = $oldurl.'/phpBB.php?page=download/file.php&';
$rewrite_replace2[] = $siteurl."/".$forumbase."/download/file.php?";
$rewrite_search2[] = $oldurl.'/phpBB.php?page=images/';
$rewrite_replace2[] = $oldurl."/".$forumbase."/images/";
$rewrite_search2[] = 'user.php&';
$rewrite_replace2[] = "user.php?";
$rewrite_search2[] = "window.open(url.replace(/&/g, '&'),";
$rewrite_replace2[] = "window.open(url.replace(/&/g, '&'),";
$buffer = str_replace($rewrite_search2,$rewrite_replace2,$buffer);
//Restart Output Buffering again
ob_start("ob_gzhandler");
ob_implicit_flush(0);
echo $buffer;
?>
|
|
|
Goto Forum:
Current Time: Wed Feb 08 12:42:25 GMT 2012
Total time taken to generate the page: 0.01083 seconds
|