"cmathias, post: 48877":Internal Server Error
File "/*******/**********/www/admincp.php" is writeable by group
"cmathias, post: 48872":Thanks
One error :
Forbidden
You don't have permission to access /cache/cache_logs.php on this server.

<td align="center"><a href=admincp.php?action=clearshoutbox><img src="images/admin/forums.gif" border=0 width=32 height=32><BR>Clear Shoutbox</a><BR></td>Add below<td align="center"><a href=admincp.php?action=clearsadminlogs><img src="images/admin/forums.gif" border=0 width=32 height=32><br>Clear adminlogs</a><BR></td>
Find
</table></p>
Add below
<?
#======================================================================
#
# admin logs by foz-------foz@basslinebeats.co.uk
#======================================================================#
begin_frame("Admin logs");
?>
<iframe src="<? $site_config["SITEURL"] ?>cache/cache_logs.php" frameborder="0" marginheight="0" marginwidth="0" width="99%" height="100" width=350 scrolling="yes" align="middle"></iframe>
<?
end_frame();
// End admin logs
?>
Find
?>
Add above
#======================================================================
#
# Admin logs by foz-------foz@basslinebeats.co.uk
#======================================================================#
$filename = 'cache/cache_logs.php';
$somecontent = "(" . $CURUSER["username"] . "--" . $CURUSER["ip"] . ")--\n";
// Let's make sure the file exists and is writable first.
if (is_writable($filename)) {
// In our example we're opening $filename in append mode.
// The file pointer is at the bottom of the file hence
// that's where $somecontent will go when we fwrite() it.
if (!$handle = fopen($filename, 'a')) {
echo "Cannot open file ($filename)";
exit;
}
// Write $somecontent to our opened file.
if (fwrite($handle, $somecontent) === FALSE) {
echo "Cannot write to file ($filename)";
exit;
}
fclose($handle);
} else {
echo "The file $filename is not writable";
}
// End admin logs
#======================================================================
#
# Truncate admin logs by foz-------foz@basslinebeats.co.uk
#======================================================================#
if ($action == "clearsadminlogs") {
stdhead("Clear adminlogs");
navmenu();
begin_frame("Clear logs", center);
if ($yes == "yes") {
$fp = fopen('cache/cache_logs.php', 'w+');
ftruncate($fp, 4);
if ($res) echo "admin logs cleared";
} else {
echo "Are you sure you want to clear the admin logs?<br>";
echo "<a href='admincp.php?action=clearsadminlogs&yes=yes'><b>Yes</b></a>";
echo "  ";
echo "<a href='admincp.php?action=clearsadminlogs&yes=no'><b>no</b></a>";
}
end_frame();
stdfoot();
}
// End Truncate admin logs"giajane, post: 48797":Open the cache and set it to 0how can we put the counter at zero
thanks
Gia
"djhowarth, post: 48791":Foz Can You Do Me A Favour!
Fix The Stdfoot();
and if you go here [url="http://www.madhous3.co.cc/imagestorage.php"]www.madhous3.co.cc/imagestorage.php[/url] my blocks are messed up :D
"cursed, post: 48787":O rite so i dont make my own mods yea well ive got alot of peeps to vouch for me on that 1 so im not even going 2 waist my time on ulmaooo so coz we read the rules and show credit to ppl who made the mods we take the piss and moan . but then again .foz whois it that makes yours .coz i know for a fact it aint you . taken any more from btit and tbdev lately and claimed as your own ...
"cursed, post: 48779":So y say all that shit then just say thanks and be done with urself...Go back to ur premium where u get all ur mods from cause u cant make ur own...I just get pissed of when we spend time coding it for tt boards and peeps like u and walker come along and moan about the stuff cause some one else made it so what if they made it the other person has now made it for tt board just how u like ittaken from here [url="http://www.torrenttrader.org/index.php?showtopic=9768"]http://www.torrenttrader.org/index.php?showtopic=9768[/url]
and taken from tbdev
<b><font color=green>Direct link</font></b>: <input size=70 type=text onclick='this.select()' value=$BASEURL/$path><br><br><b></center>";
?><center><b><font color=dark>BBcode: <input type=text size=70 onclick='this.select()' value="[url=<?=$BASEURL?>][img=<?=$BASEURL?>/<?=$path?>][/url]"></input><br><br><?
?><center><b><font color=red>HTML: <input type=text size=70 onclick='this.select()' value='<a href="<?=$BASEURL?>"><img src="<?=$BASEURL?>/<?=$path?>" border="0" alt="<?=$file?>"></a><br/>'></input><?
Replace with
<b><font color=green>Direct link</font></b>: <input size=70 type=text onclick='this.select()' value=".$site_config["SITEURL"]."/$path><br><br><b></center>";
?><center><b><font color=dark>BBcode: <input type=text size=70 onclick='this.select()' value="[url=<?=$site_config["SITEURL"] ?>][img=<?=$BASEURL?>/<?=$path?>][/url]"></input><br><br><?
?><center><b><font color=red>HTML: <input type=text size=70 onclick='this.select()' value='<a href="<?=$site_config["SITEURL"] ?>"><img src="<?=$BASEURL?>/<?=$path?>" border="0" alt="<?=$file?>"></a><br/>'></input><? "cursed, post: 48779":taken from here [url="http://www.torrenttrader.org/index.php?showtopic=9768"]http://www.torrenttrader.org/index.php?showtopic=9768[/url]
and taken from tbdev
"walker1977, post: 48106":this may not not completely stop the download. there are more places you should block. like the one in the premium section that i had made i had a few problems at first because i did not cover all areas where you can download. there is one part that could be reduced but the way you set it up is nice. as far as the banned part to test it ban yourself and then try to download on every single page that will let you download. because torrent-details.php is not the only page you have to block.
ALTER TABLE `users` ADD `downloadbanned` char(3) NOT NULL default 'no';begin_frame("" . TORRENT_DETAILS_FOR . " \"" . $shortname . "\"");Add bellow////////////////////////bann download ///////////////////////////////////////////////////
$subbanned = mysql_query("SELECT id FROM users WHERE id=$CURUSER[id] AND downloadbanned='no' LIMIT 1") or err('Tracker error (1)');
if (mysql_num_rows($subbanned) < 1){
stdhead("Download Banned");
begin_frame("You are Banned from downloading Torrents ");
echo "<center><br><BR><B>A Admin has banned you from downloading Torrents.<br><b>";
echo "<br>If you have any complaints, contact us :<ahref=mailto:". $site_config['SITEEMAIL'] .">". $site_config['SITEEMAIL'] ."</a><br><BR></center>";
end_frame();
stdfoot();
exit;
}
/////////////////////////////////////////////////////////////////////////////////////////////////
Open admin-modtasks.php
find
$forumbanned = $_POST["forumbanned"];
Add below
$downloadbanned = $_POST["downloadbanned"];
Find
mysql_query("UPDATE users SET title='$title', downloaded='$downloaded', uploaded='$uploaded', signature='$signature', avatar='$avatar', ip='$ip', donated='$donated', forumbanned='$forumbanned', warned='$warned', modcomment='$modcomment', enabled='$enabled', invites='$invites' WHERE id=$userid");
Replace with
mysql_query("UPDATE users SET title='$title', downloaded='$downloaded', uploaded='$uploaded', signature='$signature', avatar='$avatar', ip='$ip', donated='$donated', forumbanned='$forumbanned', warned='$warned', modcomment='$modcomment', enabled='$enabled', downloadbanned='$downloadbanned', invites='$invites' WHERE id=$userid");
Open account-details.php
Find
$forumbanned = $user["forumbanned"] == 'yes';
Add below
$downloadbanned = $user["downloadbanned"] == 'yes';
Find
print("<tr><td>Forum Banned: </td><td align=left><input name=forumbanned value=yes type=radio" . ($forumbanned ? " checked" : "") . ">Yes <input name=forumbanned value=no type=radio" . (!$forumbanned ? " checked" : "") . ">No</td></tr>\n");
Add below
print("<tr><td>Download Banned: </td><td align=left><input name=downloadbanned value=yes type=radio" . ($downloadbanned ? " checked" : "") . ">Yes <input name=downloadbanned value=no type=radio" . (!$downloadbanned ? " checked" : "") . ">No</td></tr>\n");<td align="center"><a href=mod_leechers.php><img src="images/admin/watchedusers.gif" border=0 width=32 height=32><BR>User Bad Ratio Alert</a><BR></td>And add this in modocp<td align="center"><a href=smod_leechers.php><img src="images/admin/watchedusers.gif" border=0 width=32 height=32><BR>User Bad Ratio Alert</a><BR></td>


ALTER TABLE `users` ADD `rate` VARCHAR( 50 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL;print("<TR><TD align=right class=table_col1 valign=top><B>Category Filter: </B></td><TD align=left class=table_col1><i>The system will only display the following categories when browsing (uncheck all to disable filter).</i><BR>".$categories."</td></tr>");
Add below
//Site rateing by foz @ basslinebeats.co.uk
$rate = "<option value=0>---- No selected ----</option>\n";
$dsl = mysql_query("SELECT id,name FROM rate ORDER BY id");
while ($ds_b = mysql_fetch_array($dsl)){
$rate .= "<option value=$ds_b[id]" . ($rate == $ds_b['id'] ? " selected" : "") . ">$ds_b[name]</option>\n";
}
print("<TR><TD align=right class=table_col1><B>Site rateing:</b></td><TD align=left class=table_col1><select name=rate>\n$rate\n</select>");
Find
$signature = $_POST["signature"];
Add below
$rate = $_POST["rate"];
Find
if (is_valid_id($language))
$updateset[] = "language = '$language'";
Add below
if (is_valid_id($rate))
$updateset[] = "rate = '$rate'";
Find
<? print("<B>".CLIENT.""); ?>:</b> <? print("" . $CURUSER["client"] . "\n"); ?><br>
Add below
<? print("<B>".rate.""); ?>:</b> <? print("" . $CURUSER["rate"] . "\n"); ?><br>
Find
<? print("<B>Invites:</b> " . $CURUSER["invites"] . "\n"); ?><br>
Add below
<? print("<div align=left><table border = 1>
<tr>
<td>1</td>
<td>Excellent</td>
<td>2</td>
<td>Very good</td>
</tr>
<td>3</td>
<td>Good</td>
<td>4</td>
<td>Needs more</td>
</tr>
<td>5</td>
<td>Poor</td>
<td>6</td>
<td>Bad</td>
</tr>
<td>7</td>
<td>Very Bad</td>
</tr>
</table></div>"); ?> <br>
open account-details.php
Find
Last Seen(Location): <?=htmlspecialchars($user["page"]);?><BR>
Add below
Rate: <I><?=htmlspecialchars($user["rate"])?></I><BR>
Find
Comments Posted: <?=$numcomments?><BR>
Add below
<? print("<div align=left><table border = 1>
<tr>
<td>1</td>
<td>Excellent</td>
<td>2</td>
<td>Very good</td>
</tr>
<td>3</td>
<td>Good</td>
<td>4</td>
<td>Needs more</td>
</tr>
<td>5</td>
<td>Poor</td>
<td>6</td>
<td>Bad</td>
</tr>
<td>7</td>
<td>Very Bad</td>
</tr>
</table></div>"); ?> <br> Quote:little problem: my mod and smod, can't interact with leecher.php page."you don't have right"
where i can find a class check to modify?
thanx

end_block();
?>Replace with?>
<? include ('blocks/counter_block.php'); end_block(); ?>
To change digit styles in counter_block.php
Find
$imagetype = "1"; Change to the number of the folder u want