|
|
| Re: How to remove Ed2K Upload Link [message #2059 is a reply to message #2058] |
Sat, 24 May 2008 22:07   |
|
| Anonymous Leecher wrote on Sat, 24 May 2008 16:13 | it's impossible to redirect drectly in upload torrent page ?
|
yes it is open blocks/usercp.php
find
echo imgdescr("upload.png","upload.php",_btupload);
and replace it with
echo imgdescr("upload.png","upload.php?op=torrent",_btupload);
then find
echo "<a href=\"upload.php\">"._bttorrentupload."</a><br />\n";
replace with
echo "<a href=\"upload.php?op=torrent\">"._bttorrentupload."</a><br />\n";
then find
if ($upload_level == "all") echo imgdescr("upload.png","upload.php",_btupload);
and replace with
if ($upload_level == "all") echo imgdescr("upload.png","upload.php?op=torrent",_btupload);
then find
if ($upload_level == "all") echo "<a href=\"upload.php\">"._bttorrentupload."</a><br />\n";
replace it with
if ($upload_level == "all") echo "<a href=\"upload.php?op=torrent\">"._bttorrentupload."</a><br />\n";
|
|
|
| Re: How to remove Ed2K Upload Link [message #2060 is a reply to message #1959] |
Sat, 24 May 2008 22:55  |
Revan  Messages: 125 Registered: April 2007 |
Super-Seeder |
|
|
or just replace upload.php with this - i think it should work as well
<?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 (!eregi("upload.php",$_SERVER["PHP_SELF"])) die("You cannot include this file");
include("header.php");
switch ($upload_level) {
case "user": {
if (!$user->user) loginrequired("user");
break;
}
case "premium": {
if (!$user->premium) loginrequired("premium");
break;
}
}
if ($op != "taketorrent") include ("upload/torrent.php");
if ($op == "taketorrent")
{
include_once("upload/taketorrent.php");
}
include("footer.php");
?>
|
|
|