Members   Search      Help    Register    Login    Home
Home » Support Forums for PMBT 2.X » Bug Reports for V2.X » Found forum bug
Found forum bug [message #4210] Mon, 31 May 2010 22:34 Go to next message
Hasan is currently offline Hasan  Denmark
Messages: 89
Registered: April 2010
Seeder
When you post a topic and it comes to the shoutbox it and you click it, it won't show the forum topic.

My site www.u-torrentz.org
Re: Found forum bug [message #4211 is a reply to message #4210] Mon, 31 May 2010 22:42 Go to previous messageGo to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
In redirect?
try and replace your redirect with this one
<?php
/*
*----------------------------phpMyBitTorrent V 2.0-beta4-----------------------*
*--- 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               -----------*
*------------------------------------------------------------------------------*
*-----------------   Sunday, September 14, 2008 9:05 PM   ---------------------*
*/
include('header.php');
  $url = '';
  while (list($var,$val) = each($HTTP_GET_VARS))
    $url .= "&$var=$val";
$i = strpos($url, "&url=");
if ($i !== false)
	$url = substr($url, $i + 5);
	$title = getMetaTitle($url);
	OpenTable(_bt_redirect);
  print("<meta http-equiv=refresh content='3;url=$url'>\n");
  print("<table border=0 width=100% height=100%><tr><td><h3 align=center>"._btdspytorrentupdate1."<br />\n");
  print("$title</h3></td></tr></table>\n");
    CloseTable();
  include('footer.php');
?>


http://a.imageshack.us/img831/5562/mybikes.png

[Updated on: Mon, 31 May 2010 22:44]

Report message to a moderator

Re: Found forum bug [message #4212 is a reply to message #4211] Mon, 31 May 2010 23:14 Go to previous messageGo to next message
Hasan is currently offline Hasan  Denmark
Messages: 89
Registered: April 2010
Seeder
I added this as well too the code just before head.php

if (defined('IN_PMBT'))die ("You can't include this file");
define("IN_PMBT",true);

and it gave this error:

Quote:
Warning: Variable passed to each() is not an array or object in /home2/utorrent/public_html/redirect.php on line 35

Warning: file() [function.file]: Filename cannot be empty in /home2/utorrent/public_html/include/functions.php on line 60

Warning: implode() [function.implode]: Invalid arguments passed in /home2/utorrent/public_html/include/functions.php on line 60


If I remove if "(defined('IN_PMBT'))die ("You can't include this file");
define("IN_PMBT",true);" then I can't access xD


My site www.u-torrentz.org
Re: Found forum bug [message #4213 is a reply to message #4212] Mon, 31 May 2010 23:23 Go to previous messageGo to next message
Daffy is currently offline Daffy  United Kingdom
Messages: 359
Registered: October 2009
Location: uk
Releaser

make sure it looks like below, which file/code did you add this too

if (defined('IN_PMBT'))die ("You can't include this file");
define("IN_PMBT",true);


above
include("header.php");


Re: Found forum bug [message #4214 is a reply to message #4213] Mon, 31 May 2010 23:30 Go to previous messageGo to next message
Hasan is currently offline Hasan  Denmark
Messages: 89
Registered: April 2010
Seeder
yes mate already did that, still same error.

My site www.u-torrentz.org
Re: Found forum bug [message #4215 is a reply to message #4214] Mon, 31 May 2010 23:34 Go to previous messageGo to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
replace
$url .= "&$var=$val";

with
$url .= "$var=$val";


http://a.imageshack.us/img831/5562/mybikes.png
Re: Found forum bug [message #4216 is a reply to message #4215] Mon, 31 May 2010 23:45 Go to previous messageGo to next message
Hasan is currently offline Hasan  Denmark
Messages: 89
Registered: April 2010
Seeder
then it give this error:

Quote:
Parse error: syntax error, unexpected T_VARIABLE in /home2/utorrent/public_html/redirect.php on line 37


My site www.u-torrentz.org
Re: Found forum bug [message #4217 is a reply to message #4216] Mon, 31 May 2010 23:56 Go to previous messageGo to next message
Daffy is currently offline Daffy  United Kingdom
Messages: 359
Registered: October 2009
Location: uk
Releaser

post your forums.php

edited. and use this redirect.php ( place in root )
  • Attachment: redirect.php
    (Size: 2.61KB, Downloaded 52 times)


[Updated on: Mon, 31 May 2010 23:58]

Report message to a moderator

Re: Found forum bug [message #4218 is a reply to message #4210] Tue, 01 June 2010 00:00 Go to previous messageGo to next message
Hasan is currently offline Hasan  Denmark
Messages: 89
Registered: April 2010
Seeder
okay here you go
  • Attachment: forums.php
    (Size: 61.89KB, Downloaded 93 times)


My site www.u-torrentz.org
Re: Found forum bug [message #4219 is a reply to message #4217] Tue, 01 June 2010 00:03 Go to previous messageGo to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
I see the link is good
just the redirect not working right


http://a.imageshack.us/img831/5562/mybikes.png
Re: Found forum bug [message #4220 is a reply to message #4217] Tue, 01 June 2010 00:12 Go to previous message
Hasan is currently offline Hasan  Denmark
Messages: 89
Registered: April 2010
Seeder
Thanks the file fixed it !

My site www.u-torrentz.org
Previous Topic:Problem with invites
Next Topic:Poll bug..
Goto Forum:
  


Current Time: Wed Feb 08 06:13:56 GMT 2012

Total time taken to generate the page: 0.00797 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software