Members   Search      Help    Register    Login    Home
Home » Discussion Forums » M0dZ & HaCkZ » How to remove Ed2K Upload Link
How to remove Ed2K Upload Link [message #1959] Thu, 17 April 2008 10:57 Go to next message
RazorSK is currently offline RazorSK  France
Messages: 52
Registered: April 2008
Seeder
For people who want to remove the ed2k upload link:

in ./upload.php at line 48 :

Search :

echo "<tr><td><p align=\"center\"><a href=\"upload.php?op=torrent\"><img src=\"themes/".$theme."/pics/torrent.png\" border=\"0\"><br>"._btuploadatorrent."</a></p></td><td><p align=\"center\"><a href=\"upload.php?op=link\"><img src=\"themes/".$theme."/pics/link.png\" border=\"0\"><br>"._btuploadalinkarchive."</a></p></td></tr>\n";


Replace with :

echo "<tr><td><p align=\"center\"><a href=\"upload.php?op=torrent\"><img src=\"themes/".$theme."/pics/torrent.png\" border=\"0\"><br>"._btuploadatorrent."</a></p></td>\n"; //<td><p align=\"center\"><a href=\"upload.php?op=link\"><img src=\"themes/".$theme."/pics/link.png\" border=\"0\"><br>"._btuploadalinkarchive."</a></p></td></tr>\n";


After doing that the upload form display only Torrents upload link.
Re: How to remove Ed2K Upload Link [message #2058 is a reply to message #1959] Sat, 24 May 2008 21:13 Go to previous messageGo to next message
Anonymous Leecher  Algeria
it's impossible to redirect drectly in upload torrent page ?
Re: How to remove Ed2K Upload Link [message #2059 is a reply to message #2058] Sat, 24 May 2008 22:07 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
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";



http://a.imageshack.us/img831/5562/mybikes.png
Re: How to remove Ed2K Upload Link [message #2060 is a reply to message #1959] Sat, 24 May 2008 22:55 Go to previous message
Revan is currently offline Revan  Czech Republic
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");
?>
Previous Topic:Auto deleting users
Next Topic:torrent admin
Goto Forum:
  


Current Time: Wed Feb 08 11:23:29 GMT 2012

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

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