Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Client ban mod
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2010-02-24 07:22:16
in mysql insert:

CREATE TABLE `agents` (

 `agent_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,

 `agent_name` varchar(255) NOT NULL DEFAULT '',

 `hits` int(10) UNSIGNED NOT NULL DEFAULT '0',

 `ins_date` int(10) UNSIGNED NOT NULL DEFAULT '0',

 `aktiv` tinyint(1) NOT NULL DEFAULT '1',

 PRIMARY KEY  (`agent_id`),

 UNIQUE KEY `agent_name` (`agent_name`)

) ENGINE=MyISAM;

;
open announce.php and find:




//Agent Ban

$agentarray = array_map("trim", explode(",", $site_config["BANNED_AGENTS"]));

$useragent = substr($peer_id, 0, 8);

foreach($agentarray as $bannedclient)

if(strpos($useragent, $bannedclient) !== false)

err("Client is banned");

//End Agent Bans





replace with:





//Agent Ban

include("backend/dagent.class.php");

//dbconn(true);

new UserAgent($_SERVER["HTTP_USER_AGENT"]);

//End Agent Bans





insert in navigate_block.php





if ($CURUSER["view_torrents"]=="yes" || !$site_config["MEMBERSONLY"]) echo "- <a href=bancli.php>Client List</a><BR>";





insert in admincp.php





<td align="center"><a href=cp_agents.php><img src="images/admin/torrent.gif" border=0 width=32 height=32><BR>Manage Clients</a><BR></td>



bancli.php in /

cp_agents.php in /

dagent.class.php in /backend/

gif in /images/admin/

works fine with 2.05

Auto massage when new client not  finished !

screens:

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=4030"]client_ban.rar[/url]



client_ban.rar
Download
Unbenannt.JPG
Unbenannt.JPG
Unbenannt1.JPG
Unbenannt1.JPG
Unknown User
2010-03-25 10:49:04
Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /home/admin/domains/xxxxxxxx.net/public_html/backend/dagent.class.php  on line 125
Unknown User
2010-03-27 07:26:00
have you edited the php?

Show your dagent.class.php
Unknown User
2010-03-27 08:44:22
I did nothing,I changed to announce What did you say added a link to admincp and added to my root next

bancli.php in /

cp_agents.php in /

dagent.class.php in /backend/

gif in /images/admin/
Unknown User
2010-03-27 10:09:37
try this please !!

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=4048"]dagent.class.php[/url]
dagent.class.php
Download
Unknown User
2010-03-27 11:11:03
now is fine thx for this nice addon
Unknown User
2010-04-19 04:55:19
works fine, thank you!
Unknown User
2010-06-04 10:30:31
Awesome nice hack, your a champion   :blink:   is there any way it can send a message to a client like "banned" or something like that? also was does speichem translate to? i can not find a translation for it and what file can i change that word.

cheers
Unknown User
2010-06-05 05:08:55
"sammysung, post: 63706":
Awesome nice hack, your a champion   :blink:   is there any way it can send a message to a client like "banned" or something like that? also was does speichem translate to? i can not find a translation for it and what file can i change that word.
cheers

speichern means "save" you can change this in the file cp_agents.php

sorry for my bad english.
Unknown User
2010-06-05 06:49:53
Thank you bin am laden  :blink:
Unknown User
2010-06-07 08:30:42
sorry for asking such a noob question , but does this actually ban clients , and if it does , what does it actually do if a member is using a banned client ?.....many thanks
Unknown User
2010-06-07 19:24:58
you can stop bittorrent clients from downloading with this hack, the end user has "tracker sending invalid data" error in their client, effectively stopping them from downloading.

What i want to know is if it can be set up to send a simple message to the client, something like "banned" or something like that.
Unknown User
2010-06-08 13:57:35
"sammysung, post: 63748":
you can stop bittorrent clients from downloading with this hack, the end user has "tracker sending invalid data" error in their client, effectively stopping them from downloading.
What i want to know is if it can be set up to send a simple message to the client, something like "banned" or something like that.

im going to look at it.
Unknown User
2010-06-08 14:56:18
ok here u go change to this in the class.

if ($agent["aktiv"] == 0) {

exit(err("This client is Banned did you read the FAQ!"));



}

}

else $this->insert();

}

else exit(err("Whats that one? n00b :D"));



}


Capture.GIF
Capture.GIF
Unknown User
2010-08-04 00:58:52
Thanks!

nice mod
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728