in mysql insert:
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]

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]
