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
User Posts
Nothing found.

Go to Profile

download direct — 2023-03-08 12:00:49 in v3 Mods Requests
Hi niki,
here is DDL mode fixed and working

you need to run this part on SQL


ALTER TABLE torrents ADD `ddl` varchar(45) NOT NULL DEFAULT '';






Regards
download direct — 2023-03-07 20:02:52 in v3 Mods Requests
In torrent-details.php find:


$res = SQL_Query_exec("SELECT torrents.imdb, torrents.anon, torrents.thanks, torrents.video,


after  torrents.image2,
add  torrents.ddl,

Find

/////Begin AES download encryption
print ("<table border='0' cellpadding='0' width='100%'><tr><td align='center' valign='middle' width='54'><a href='/" . $row["id"] . "/" . $download_title . "/'><img src=\"".$site_config["SITEURL"]."/images/download_torrent.png\" border=\"0\" alt='' /></a></td>");
print ("<td valign='top'><a href='/" . $row["id"] . "/" . $download_title . "/'>".T_("DOWNLOAD_TORRENT")."</a><br />");
/////End AES download encryption


add after:

print("<div>  DDL  :  </div><div><a href=".$row["ddl"]." target='blank'> <img src='./images/ddl.png' alt='DDL'> </a></div>\n");
download direct — 2023-03-07 19:44:59 in v3 Mods Requests
Hi niki,

1. You must make some database addition in torrents data
(ALTER TABLE torrents ADD `ddl` varchar(45) NOT NULL DEFAULT ''; )

2. In torrent-upload.php you must add some changes:

Find: if (!$imdb)

after add:

$ddl = $_POST["ddl"];
if (!$ddl)
$message = "<div class='torrwarn'><center>".T_("UPLOAD_NO_DDL")."</center></div>";


Before:
$ret = SQL_Query_exec("INSERT INTO torrents (filename, owner, name, descr


Add:

		
//==| check if DDL is a valid URL
if ($_POST['ddl']) { $cover = $_POST['ddl']; }
if(!isValidURL($ddl) && $_POST['ddl'] != "") { show_error_msg(T_("UPLOAD_FAILED"), T_("INVALID_DDL_URL"), 1); }


and


//==| DDL Link
if (!empty($_POST['ddl']))
$poster = unesc($_POST['ddl']);


In line:

$ret = SQL_Query_exec("INSERT INTO torrents (filename, owner, name, descr


after imdb
add ddl,

and after
".sqlesc($_POST['imdb']).",

add
".sqlesc($ddl).",

Find


print ("<tr><td align='right'>" .T_("IMDB")."</td><td align='left'><input type='text' name='imdb' size='50' value='" . $_POST['imdb'] . "' />&nbsp;<a href='http://www.imdb.com' target='_blank'><img border='0' src='images/imdb_upload.png' width='80' height='80' title='Click here to go to IMDb'></a><br />".T_("IMDB_INFO")."</td></tr>");


After that add:


//==| DDL Link
print ("<tr><td align='left' class='css' valign='top'><div style='margin-top:4px'>".T_("DDL_LINK").":</div></td>
<td align='left' class='css-right' valign='top'><input type='text' name='ddl' size='70' placeholder='".T_("DDL_LINK")."' class='btnHuge2' value='".$_POST['ddl']."' />
</td></tr>");


@MicroMonkey
Exactly, it is the MOD that I use for all forms of file uploading or you can formulate it in file format set and form.

In my case it's .srt, zip and .rar (but you can change that if you need it)

The size of the files is also in the file itself so it would be double work about that, but it's up to everyone how they want to build their tracker

donate_block.php — 2023-02-28 19:13:22 in v3 Support
@niki
Have you formulated it in cleanup.php. perhaps!?
Sorry if I mix in a bit "conveniently" but wouldn't it be easier if we "refurbish" the subtitle MOD.
There we have the option to upload certain files and formats and we can simply "hide" certain parts of the MOD we don't need

donate_block.php — 2023-02-26 18:36:22 in v3 Support
@niki mate, this attachet files working well on my test tracker and some small changes is maked. If it won't work on your tracker you have some another problems than that







Download zip file an try it, if not works check you MySQL settings or similar
donate_block.php — 2023-02-26 13:08:06 in v3 Support
@niki

you have mixed two different MOD's     😀
donate_block.php — 2023-02-23 16:59:09 in v3 Support
I think I found what is the problem (maybe)

Remove that:



if($CURUSER["edit_users"]=="yes"){
begin_frame(T_("STAFF_ONLY_INFO"));

$avatar = htmlspecialchars($user["avatar"]);
$signature = htmlspecialchars($user["signature"]);
$uploaded = $user["uploaded"];
$downloaded = $user["downloaded"];
$enabled = $user["enabled"] == 'yes';
$warned = $user["warned"] == 'yes';
$downloadbanned = $user["downloadbanned"] == 'yes';
$forumbanned = $user["forumbanned"] == 'yes';
$modcomment = htmlspecialchars($user["modcomment"]);



with that:


if($CURUSER["edit_users"]=="yes"){
begin_frame(T_("STAFF_ONLY_INFO"));

$avatar = htmlspecialchars($user["avatar"]);
$signature = htmlspecialchars($user["signature"]);
$uploaded = $user["uploaded"];
$downloaded = $user["downloaded"];
$enabled = $user["enabled"] == 'yes';
$warned = $user["warned"] == 'yes';
$downloadbanned = $user["downloadbanned"] == 'yes';
$forumbanned = $user["forumbanned"] == 'yes';
$modcomment = htmlspecialchars($user["modcomment"]);
$donated = (float) $_POST["donated"];
donate_block.php — 2023-02-22 21:08:20 in v3 Support
Like as MicroMonkey say, check if you have that in user table


 'donor' enum('yes','no') NOT NULL DEFAULT 'no',
 'total_donated' int(10) UNSIGNED NOT NULL DEFAULT 0,
 'donoruntil' datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
donate_block.php — 2023-02-22 20:28:20 in v3 Support
account-details.php



<?php
require_once("backend/functions.php");
dbconn();
loggedinonly();

stdhead("User CP");

$id = (int)$_GET["id"];

if (!is_valid_id($id))
 show_error_msg(T_("NO_SHOW_DETAILS"), "Bad ID.",1);

$r = @SQL_Query_exec("SELECT * FROM users WHERE id=$id");
$user = mysqli_fetch_array($r) or  show_error_msg(T_("NO_SHOW_DETAILS"), T_("NO_USER_WITH_ID")." $id.",1);

//add invites check here

if ($CURUSER["view_users"] == "no" && $CURUSER["id"] != $id)
    show_error_msg(T_("ERROR"), T_("NO_USER_VIEW"), 1);
   
if (($user["enabled"] == "no" || ($user["status"] == "pending")) && $CURUSER["edit_users"] == "no")
show_error_msg(T_("ERROR"), T_("NO_ACCESS_ACCOUNT_DISABLED"), 1);

//get all vars first

//$country
$res = SQL_Query_exec("SELECT name FROM countries WHERE id=$user[country] LIMIT 1");
if (mysqli_num_rows($res) == 1){
$arr = mysqli_fetch_assoc($res);
$country = "$arr[name]";
}

if (!$country) $country = "<b>Unknown</b>";




//$stylesheet
$res = SQL_Query_exec("SELECT name FROM stylesheets WHERE id=$user[stylesheet] LIMIT 1");
if (mysqli_num_rows($res) == 1){
   $arr = mysqli_fetch_assoc($res);
   $stylesheets = "$arr[name]";
}



//$ratio
if ($user["downloaded"] > 0) {
   $ratio = $user["uploaded"] / $user["downloaded"];
}else{
$ratio = "---";
}

$numtorrents = get_row_count("torrents", "WHERE owner = $id");
$numcomments = get_row_count("comments", "WHERE user = $id");
$numforumposts = get_row_count("forum_posts", "WHERE userid = $id");

$avatar = htmlspecialchars($user["avatar"]);
if (!$avatar) {
$avatar = $site_config["SITEURL"]."/images/default_avatar.png";
}

function peerstable($res){
$ret = "<table align='center' cellpadding=\"3\" cellspacing=\"0\" class=\"table_table\" width=\"100%\" border=\"1\"><tr><th class='table_head'>".T_("NAME")."</th><th class='table_head'>".T_("SIZE")."</th><th class='table_head'>" .T_("UPLOADED"). "</th>\n<th class='table_head'>" .T_("DOWNLOADED"). "</th><th class='table_head'>" .T_("RATIO"). "</th></tr>\n";

while ($arr = mysqli_fetch_assoc($res)){
$res2 = SQL_Query_exec("SELECT name,size FROM torrents WHERE id=$arr[torrent] ORDER BY name");
$arr2 = mysqli_fetch_assoc($res2);
if ($arr["downloaded"] > 0){
$ratio = number_format($arr["uploaded"] / $arr["downloaded"], 2);
}else{
$ratio = "---";
}
$ret .= "<tr><td class='table_col1'><a href='torrents-details.php?id=$arr[torrent]&hit=1'><b>" . htmlspecialchars($arr2["name"]) . "</b></a></td><td align='center' class='table_col2'>" . mksize($arr2["size"]) . "</td><td align='center' class='table_col1'>" . mksize($arr["uploaded"]) . "</td><td align='center' class='table_col2'>" . mksize($arr["downloaded"]) . "</td><td align='center' class='table_col1'>$ratio</td></tr>\n";
 }
 $ret .= "</table>\n";
 return $ret;
}



//Layout
stdhead(sprintf(T_("USER_DETAILS_FOR"), $user["username"]));

begin_frame(sprintf(T_("USER_DETAILS_FOR"), $user["username"]));

//donor count down
if ($user['donor'] && $CURUSER['id'] == $user['id'] || $CURUSER["class"] >= 6)
{
$donorfor = $user['donoruntil'];
$donoruntil = "".(($user["donoruntil"] == "0000-00-00 00:00:00") ? "" : "".date(" d-M-Y  H:i", utc_to_tz_time($user["donoruntil"]))."")."";
if ($donorfor != '0000-00-00 00:00:00')
{
print("<center><div style='margin-top:5px; margin-bottom:5px' class='info'>&nbsp; <i class='fa fa-star fa-flip faa-flash animated' style='color:gold;font-size:14px;text-shadow: 1px 1px 2px #000;'></i> ".T_("DONOR_STATUS_UNTIL").": $donoruntil");
if ($CURUSER["class"] < 6)
print(" &nbsp;(" . mkprettytime(strtotime($donorfor) - gmtime()) . ")&nbsp; ".T_("CLICK_TO_RENEW_VIP")." <a class=altlink href=donate_2.php><b>".T_("HERE")."</b></a></div>\n");
else
print(" &nbsp;(" . mkprettytime(strtotime($donorfor) - gmtime()) . ")</div></center>\n");
}
}

$dt = get_date_time(gmtime() - 60);
$online = "<img src=images/button_o".($user['last_access']>$dt?"n":"ff")."line.gif>";
//==== end

?>
<table class="table table-bordered" width="100%" celspacing="5" border="0">
<?php
//donor status and value

if (get_user_class() >= 6) {
print("<form method='post' action='admin-modtasks.php'>\n");
print("<input type='hidden' name='action' value='donor' />\n");
print("<input type='hidden' name='userid' value='$id' />\n");
print("<input type='hidden' name='username' value='".$user["username"]."' />\n");
print("<tr><td width='80' align='left' class='table_col1'>".T_("IS_DONOR").": </td><td class='table_col2' align='left'><input name='donor' value='yes' type='radio' " . ($donor ? " checked='checked'" : "") . " /> ".T_("YES")." &nbsp;<input name='donor' value='no' type='radio' " . (!$donor ? " checked='checked'" : "") . " /> ".T_("NO")."</td></tr>");
print("<tr><td width='80' align='left' class='table_col1'>".T_("DONOR_LENGHT").": </td><td class='table_col2' align='left'><input type='text' class='btnSmall' name='donorlength' /></font></td></tr>");
print("<tr><td width='80' align='left' class='table_col1'>".T_("DONOR_AMOUNT").": </td><td class='table_col2' align='left'> <input type='text' class='btnHuge2' name='donated'></td></tr>");
print("<tr><td width='80' align='left' class='table_col1'>".T_("DONOR_UNTIL").": </td><td class='table_col2' align='left'> $donorfor </td></tr>");
print("<tr><td width='80' align='left' class='table_col1'>".T_("SUBMIT").": </td><td class='table_col2' align='center'><input type='submit' class='btn btn-success btn-block' value='".T_("SUBMIT")."' /></td></tr>");
print("\n");
print("</form>\n");
}

print("<tr><td height='5'></td></tr>\n");
?>
</table>


<?php
if ($user["privacy"] != "strong" || ($CURUSER["control_panel"] == "yes") || ($CURUSER["id"] == $user["id"])) {
?>
<table align="center" border="0" cellpadding="6" cellspacing="1" width="100%">
<tr>
<td width="50%"><b><?php echo T_("PROFILE"); ?></b></td>
<td width="50%"><b><?php echo T_("ADDITIONAL_INFO"); ?></b></td>
</tr>

<tr valign="top">
<td align="left">
<?php echo T_("USERNAME"); ?>: <?php echo

class_user($user["username"])

?><br />
<?php echo T_("USERCLASS"); ?>: <?php echo get_user_class_name($user["class"])?><br />
               <?php echo T_("THEME_NAME"); ?>: <?php echo $stylesheets?><br />

<?php echo T_("TITLE"); ?>: <i><?php echo format_comment($user["title"])?></i><br />
<?php echo T_("JOINED"); ?>: <?php echo htmlspecialchars(utc_to_tz($user["added"]))?><br />
<?php echo T_("LAST_VISIT"); ?>: <?php echo htmlspecialchars(utc_to_tz($user["last_access"]))?><br />
<?php echo T_("LAST_SEEN"); ?>: <?php echo htmlspecialchars($user["page"]);?><br />
</td>

<td align="left">
<?php echo T_("AGE"); ?>: <?php echo htmlspecialchars($user["age"])?><br />
<?php echo T_("CLIENT"); ?>: <?php echo htmlspecialchars($user["client"])?><br />
<?php echo T_("COUNTRY"); ?>: <?php echo $country?><br />
<?php echo T_("DONATED"); ?>  <?php echo $site_config['currency_symbol']; ?><?php echo number_format($user["donated"], 2); ?><br />
<?php echo T_("WARNINGS"); ?>: <?php echo htmlspecialchars($user["warned"])?><br />
<?php if ($CURUSER["edit_users"] == "yes"){ echo T_("ACCOUNT_PRIVACY_LVL").": <b>".T_($user["privacy"])."</b><br />"; }?>
</td>
</tr>

<tr>
<td width="50%"><b><?php echo T_("STATISTICS"); ?></b></td>
<td width="50%"><b><?php echo T_("OTHER"); ?></b></td>
</tr>

<tr valign="top">
<td align="left">
<?php echo T_("UPLOADED"); ?>: <?php echo mksize($user["uploaded"]); ?><br />
<?php echo T_("DOWNLOADED"); ?>: <?php echo mksize($user["downloaded"]); ?><br />


<?php echo T_("Seed Bonus"); ?>: <?php echo $user["seedbonus"]; ?><br />



<?php echo T_("RATIO"); ?>: <?php echo $ratio; ?><br />
<?php echo T_("AVG_DAILY_DL"); ?>: <?php echo mksize($user["downloaded"] / (DateDiff($user["added"], time()) / 86400)); ?><br />
<?php echo T_("AVG_DAILY_UL"); ?>: <?php echo mksize($user["uploaded"] / (DateDiff($user["added"], time()) / 86400)); ?><br />
<?php echo T_("TORRENTS_POSTED"); ?>: <?php echo number_format($numtorrents); ?><br />
<?php echo T_("COMMENTS_POSTED"); ?>: <?php echo number_format($numcomments); ?><br />
       Forum Posts: <?php echo number_format($numforumposts); ?><br />  
</td>

<td align="left">
<img src="<?php echo $avatar; ?>" alt="" title="<?php echo $user["username"]; ?>" height="80" width="80" /><br />
<a href="mailbox.php?compose&id=<?php echo $user["id"]?>"><?php echo T_("SEND_PM"); ?></a><br />
<!-- <a href=#>View Forum Posts</a><br />
<a href=#>View Comments</a><br /> -->
<a href="report.php?user=<?php echo $user["id"]?>"><?php echo T_("REPORT_MEMBER"); ?></a><br />
</td>
</tr>
<?php if ($CURUSER["edit_users"] == "yes") { ?>
<tr>
<td width="50%"><b><?php echo T_("STAFF_ONLY_INFO"); ?></b></td>
</tr>

<tr valign="top">
<td align="left">
<?php
if ($user["invited_by"]) {
$res = SQL_Query_exec("SELECT username FROM users WHERE id=$user[invited_by]");
$row = mysqli_fetch_array($res);
echo "<b>".T_("INVITED_BY").":</b> <a href=\"account-details.php?id=$user[invited_by]\">$row[username]</a><br />";
}
echo "<b>".T_("INVITES").":</b> ".number_format($user["invites"])."<br />";
$invitees = array_reverse(explode(" ", $user["invitees"]));
$rows = array();
foreach ($invitees as $invitee) {
$res = SQL_Query_exec("SELECT id, username FROM users WHERE id='$invitee' and status='confirmed'");
if ($row = mysqli_fetch_array($res)) {
$rows[] = "<a href=\"account-details.php?id=$row[id]\">$row[username]</a>";
}
}
if ($rows)
echo "<b>".T_("INVITEES").":</b> ".implode(", ", $rows)."<br />";
?>
</td>
</tr>
<?php
}
//team
$res = SQL_Query_exec("SELECT name,image FROM teams WHERE id=$user[team] LIMIT 1");
if (mysqli_num_rows($res) == 1) {
$arr = mysqli_fetch_assoc($res);
echo "<tr><td colspan='2' align='left'><b>Team Member Of:</b><br />";
echo"<img src='".htmlspecialchars($arr["image"])."' alt='' /><br />".sqlesc($arr["name"])."<br /><br /><a href='teams-view.php'>[View ".T_("TEAMS")."]</a></td></tr>";
}
?>

</table>

<?php
}else{
echo sprintf(T_("REPORT_MEMBER_MSG"), $user["id"]);
}

end_frame();



if($CURUSER["edit_users"]=="yes"){
begin_frame(T_("STAFF_ONLY_INFO"));

$avatar = htmlspecialchars($user["avatar"]);
$signature = htmlspecialchars($user["signature"]);
$uploaded = $user["uploaded"];
$downloaded = $user["downloaded"];
$enabled = $user["enabled"] == 'yes';
$warned = $user["warned"] == 'yes';
    $downloadbanned = $user["downloadbanned"] == 'yes';
$forumbanned = $user["forumbanned"] == 'yes';
$modcomment = htmlspecialchars($user["modcomment"]);

print("<form method='post' action='admin-modtasks.php'>\n");
print("<input type='hidden' name='action' value='edituser' />\n");
print("<input type='hidden' name='userid' value='$id' />\n");
print("<table border='0' cellspacing='0' cellpadding='3'>\n");
print("<tr><td>".T_("TITLE").": </td><td align='left'><input type='text' size='67' name='title' value=\"$user[title]\" /></td></tr>\n");
print("<tr><td>".T_("EMAIL")."</td><td align='left'><input type='text' size='67' name='email' value=\"$user[email]\" /></td></tr>\n");
print("<tr><td>".T_("SIGNATURE").": </td><td align='left'><textarea cols='50' rows='10' name='signature'>".htmlspecialchars($user["signature"])."</textarea></td></tr>\n");
print("<tr><td>".T_("UPLOADED").": </td><td align='left'><input type='text' size='30' name='uploaded' value=\"".mksize($user["uploaded"], 9)."\" /></td></tr>\n");
print("<tr><td>".T_("DOWNLOADED").": </td><td align='left'><input type='text' size='30' name='downloaded' value=\"".mksize($user["downloaded"], 9)."\" /></td></tr>\n");
print("<tr><td>".T_("AVATAR_URL")."</td><td align='left'><input type='text' size='67' name='avatar' value=\"$avatar\" /></td></tr>\n");
print("<tr><td>".T_("IP_ADDRESS").": </td><td align='left'><input type='text' size='20' name='ip' value=\"$user[ip]\" /></td></tr>\n");
print("<tr><td>".T_("INVITES").": </td><td align='left'><input type='text' size='4' name='invites' value='".$user["invites"]."' /></td></tr>\n");

if ($CURUSER["class"] > $user["class"]){
print("<tr><td>".T_("CLASS").": </td><td align='left'><select name='class'>\n");
$maxclass = $CURUSER["class"];
for ($i = 1; $i < $maxclass; ++$i)
print("<option value='$i' " . ($user["class"] == $i ? " selected='selected'" : "") . ">$prefix" . get_user_class_name($i) . "\n");
print("</select></td></tr>\n");
}

print("<tr><td>".T_("DONATED_US").": </td><td align='left'><input type='text' size='4' name='donated' value='$user[donated]' /></td></tr>\n");





print("<tr><td>".T_("PASSWORD").": </td><td align='left'><input type='password' size='67' name='password' value=\"$user[password]\" /></td></tr>\n");
print("<tr><td>".T_("CHANGE_PASS").": </td><td align='left'><input type='checkbox' name='chgpasswd' value='yes'/></td></tr>");
print("<tr><td>".T_("MOD_COMMENT").": </td><td align='left'><textarea cols='50' rows='10' name='modcomment'>$modcomment</textarea></td></tr>\n");
print("<tr><td>".T_("ACCOUNT_STATUS").": </td><td align='left'><input name='enabled' value='yes' type='radio' " . ($enabled ? " checked='checked'" : "") . " />Enabled <input name='enabled' value='no' type='radio' " . (!$enabled ? " checked='checked' " : "") . " />Disabled</td></tr>\n");
print("<tr><td>".T_("WARNED").": </td><td align='left'><input name='warned' value='yes' type='radio' " . ($warned ? " checked='checked'" : "") . " />Yes <input name='warned' value='no' type='radio' " . (!$warned ? " checked='checked'" : "") . " />No</td></tr>\n");



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");


print("<tr><td>".T_("FORUM_BANNED").": </td><td align='left'><input name='forumbanned' value='yes' type='radio' " . ($forumbanned ? " checked='checked'" : "") . " />Yes <input name='forumbanned' value='no' type='radio' " . (!$forumbanned ? " checked='checked'" : "") . " />No</td></tr>\n");




print("<tr><td>".T_("PASSKEY").": </td><td align='left'>$user[passkey]<br /><input name='resetpasskey' value='yes' type='checkbox' />".T_("RESET_PASSKEY")." (".T_("RESET_PASSKEY_MSG").")</td></tr>\n");
print("<tr><td colspan='2' align='center'><input type='submit' value='".T_("SUBMIT")."' /></td></tr>\n");
print("</table>\n");
print("</form>\n");

end_frame();
}

if($CURUSER["edit_users"]=="yes"){
begin_frame(T_("BANS_WARNINGS"));

   print '<a name="warnings"></a>';
   
$rqq = "SELECT * FROM warnings WHERE userid=$id ORDER BY id DESC";
$res = SQL_Query_exec($rqq);

if (mysqli_num_rows($res) > 0){

?>
<b>Warnings:</b><br />
<table border="1" cellpadding="3" cellspacing="0" width="80%" align="center" class="table_table">
<tr>
           <th class="table_head">Added</th>
   <th class="table_head"><?php echo T_("EXPIRE"); ?></th>
   <th class="table_head"><?php echo T_("REASON"); ?></th>
   <th class="table_head"><?php echo T_("WARNED_BY"); ?></th>
   <th class="table_head"><?php echo T_("TYPE"); ?></th>      
</tr>
<?php

while ($arr = mysqli_fetch_assoc($res)){
if ($arr["warnedby"] == 0) {
$wusername = T_("SYSTEM");
} else {
$res2 = SQL_Query_exec("SELECT id,username FROM users WHERE id = ".$arr['warnedby']."");
$arr2 = mysqli_fetch_assoc($res2);

$wusername = htmlspecialchars($arr2["username"]);
}
$arr['added'] = utc_to_tz($arr['added']);
$arr['expiry'] = utc_to_tz($arr['expiry']);

$addeddate = substr($arr['added'], 0, strpos($arr['added'], " "));
$expirydate = substr($arr['expiry'], 0, strpos($arr['expiry'], " "));
print("<tr><td class='table_col1' align='center'>$addeddate</td><td class='table_col2' align='center'>$expirydate</td><td class='table_col1'>".format_comment($arr['reason'])."</td><td class='table_col2' align='center'><a href='account-details.php?id=".$arr2['id']."'>".$wusername."</a></td><td class='table_col1' align='center'>".$arr['type']."</td></tr>\n");
}

echo "</table>\n";
}else{
echo T_("NO_WARNINGS");
}


print("<form method='post' action='admin-modtasks.php'>\n");
print("<input type='hidden' name='action' value='addwarning' />\n");
print("<input type='hidden' name='userid' value='$id' />\n");
echo "<br /><br /><center><table border='0'><tr><td align='right'><b>".T_("REASON").":</b> </td><td align='left'><textarea cols='40' rows='5' name='reason'></textarea></td></tr>";
echo "<tr><td align='right'><b>".T_("EXPIRE").":</b> </td><td align='left'><input type='text' size='4' name='expiry' />(days)</td></tr>";
echo "<tr><td align='right'><b>".T_("TYPE").":</b> </td><td align='left'><input type='text' size='10' name='type' /></td></tr>";
echo "<tr><td colspan='2' align='center'><input type='submit' value='".T_("ADD_WARNING")."' /></td></tr></table></center></form>";

if($CURUSER["delete_users"] == "yes"){
print("<hr /><center><form method='post' action='admin-modtasks.php'>\n");
print("<input type='hidden' name='action' value='deleteaccount' />\n");
print("<input type='hidden' name='userid' value='$id' />\n");
print("<input type='hidden' name='username' value='".$user["username"]."' />\n");
echo "<b>".T_("REASON").":</b><input type='text' size='30' name='delreason' />";
echo "&nbsp;<input type='submit' value='".T_("DELETE_ACCOUNT")."' /></form></center>";
}


end_frame();


}



stdfoot();



?>

donate_block.php — 2023-02-22 17:46:17 in v3 Support
It was @MicloMonkey who asked me for sql details about "donation block mode". The meaning of the rest of the code was to make it easier for all of you who do NOT have PayPal as primary and autocomplete as default.

I personally don't use it and wanted to help you, through this MOD, assign donor status to members who donate to the tracker via other means (such as bitcoin, Patreon, LiteCoin, EthEreum, etc.)
Since MicroMonkey has access to my tracker and can see how it works hopefully the rest of you can benefit from it too.

All this I have written explains how to MANUALLY assign:
1. Donation statue
2. Donated amount
3. Duration of donation

Unfortunately, there was a misunderstanding regarding tin donator_block.php issue

Regards guys



donate_block.php — 2023-02-21 08:47:43 in v3 Support
CSS addition (if you need that):


/* message boxes */
.info, .success, .warning, .validation, .torrwarn {
border: 1px solid;
margin: 10px 0px;
padding:15px 10px 15px 80px;
background-repeat: no-repeat;
background-position: 10px center;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
width: 70%;
text-align: left;
}
.info {
color: #00529B;
background-color: #BDE5F8;
background-image: url('images/info.png');
}
.success {
color: #4F8A10;
background-color: #DFF2BF;
background-image:url('images/valid-g.png');
}
.warning {
color: #9F6000;
background-color: #FEEFB3;
background-image: url('images/prekid.png');
}
.error {
   text-shadow: 0 1px 0 rgba(0, 0, 0, .7), 0px 2px 0 rgba(255, 255, 255, .5);
   text-transform: uppercase;
   text-align: center;
   color: #f5f5f5;
   margin: 5px 0 5px 0;
   letter-spacing: 4px;
   font: normal 16px/1 Khand;
   position: relative;

}
.torrwarn {
   color: #D8000C;
   background-color: #FFBABA;
   background-image: url('images/prekid.png');
}
.validation {
color: #D63301;
background-color: #FFCCBA;
background-image: url('images/valid-b.png');
}
donate_block.php — 2023-02-21 08:45:12 in v3 Support
@MicroMonkey
of course:

SQL:

CREATE TABLE `funds` (
 `id` int(10) UNSIGNED NOT NULL,
 `cash` decimal(8,2) NOT NULL DEFAULT 0.00,
 `user` int(10) UNSIGNED NOT NULL DEFAULT 0,
 `added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
 `month` varchar(10) DEFAULT NULL,
 `year` varchar(10) NOT NULL DEFAULT ''
) ENGINE=MyISAM DEFAULT CHARSET=utf8;


In account-details.php
directly after if ($user["privacy"] != "strong"

// Donor count down div
if ($user['donor'] && $CURUSER['id'] == $user['id'] || $CURUSER["class"] >= 6)
{
$donorfor = $user['donoruntil'];
$donoruntil = "".(($user["donoruntil"] == "0000-00-00 00:00:00") ? "" : "".date(" d-M-Y  H:i", utc_to_tz_time($user["donoruntil"]))."")."";
if ($donorfor != '0000-00-00 00:00:00')
{
print("<center><div style='margin-top:5px; margin-bottom:5px' class='info'>  <i class='fa fa-star fa-flip faa-flash animated' style='color:gold;font-size:14px;text-shadow: 1px 1px 2px #000;'></i> ".T_("DONOR_STATUS_UNTIL").": $donoruntil");
if ($CURUSER["class"] < 6)
print("  (" . mkprettytime(strtotime($donorfor) - gmtime()) . ")  ".T_("CLICK_TO_RENEW_DONOR_STATUS")." <a class=altlink href=donate.php> ".T_("HERE")." </a></div>\n");
else
print("  (" . mkprettytime(strtotime($donorfor) - gmtime()) . ")</div></center>\n");
}
}

$dt = get_date_time(gmtime() - 60);
$online = "<img src=images/button_o".($user['last_access']>$dt?"n":"ff")."line.gif>";

//==== End of donor count down div




where you want put this part of code: don't forget to change class to your needs


//== Donor status and value

if (get_user_class() >= 6) {
print("<form method='post' action='admin-modtasks.php'>\n");
print("<input type='hidden' name='action' value='donor' />\n");
print("<input type='hidden' name='userid' value='$id' />\n");
print("<input type='hidden' name='username' value='".$user["username"]."' />\n");
print("<tr><td width='80' align='left' class='table_col1'>".T_("IS_DONOR").": </td><td class='table_col2' align='left'><input name='donor' value='yes' type='radio' " . ($donor ? " checked='checked'" : "") . " /> ".T_("YES")."  <input name='donor' value='no' type='radio' " . (!$donor ? " checked='checked'" : "") . " /> ".T_("NO")."</td></tr>");
print("<tr><td width='80' align='left' class='table_col1'>".T_("DONOR_LENGHT").": </td><td class='table_col2' align='left'><input type='text' class='btnSmall' name='donorlength' /></font></td></tr>");
print("<tr><td width='80' align='left' class='table_col1'>".T_("DONOR_AMOUNT").": </td><td class='table_col2' align='left'> <input type='text' class='btnHuge2' name='donated'></td></tr>");
print("<tr><td width='80' align='left' class='table_col1'>".T_("DONOR_UNTIL").": </td><td class='table_col2' align='left'> $donorfor </td></tr>");
print("<tr><td width='80' align='left' class='table_col1'>".T_("SUBMIT").": </td><td class='table_col2' align='center'><input type='submit' class='btn btn-success btn-block' value='".T_("SUBMIT")."' /></td></tr>");
print("\n");
print("</form>\n");
}
//== End of donor status and value


In admin-modtasks.php
You can place that piece of code wherever you want but make sure you put it after:
show_error_msg(T_("EDITING_FAILED"), T_("EMAIL_ADDRESS_NOT_VALID"), 1);


but before:
$res = SQL_Query_exec("SELECT class FROM users WHERE id=$userid");



//===| Start Donor status |===//
   if ($action == 'donor') {
$curusername = ($CURUSER['username']);
$curuserid = ($CURUSER['id']);
$username = sqlesc($_POST["username"]);
$userid = $_POST["userid"];
$donor = sqlesc($_POST["donor"]);
$donated = $_POST["donated"];
$total_donated = $_POST["total_donated"];
$donorlength = sqlesc($_POST["donorlength"]);
$donoruntil = get_date_time(gmtime() + $donorlength * 86400);
$days = $donorlength . " day" . ($donorlength > 1 ? "s" : "");

if ($_POST["donor"] == 'yes' && $_POST["donorlength"] == '') {
show_error_msg(T_("ERROR"), "You must specify the number of days!   [<a href=account-details.php?id=$userid><b>".T_("GO_BACK")."</b></a>]", 1);
}

if ($_POST["donor"] == 'yes' && $_POST["donated"] == '') {
show_error_msg(T_("ERROR"), "You must provide a Value for this action!   [<a href=account-details.php?id=$userid><b>".T_("GO_BACK")."</b></a>]", 1);
}

$modcomment = $row['modcomment'];
if ($_POST["donor"] != 'yes') {
$modcomment2 = gmdate("d-M-Y") . " - $curusername has donated to tracker \n";
} else {
$modcomment2 = gmdate("d-M-Y") . " - $curusername has added Donor status for $days\n- Value: $donated \n";
}
$modcomment = $modcomment2 . "" . $modcomment;
$modcom = sqlesc($modcomment);

if ($_POST["donor"] != 'yes') {
SQL_Query_exec("UPDATE users SET donor = $donor, donated = $donated, total_donated=total_donated+$donated, donoruntil = '0000-00-00 00:00:00', modcomment = CONCAT($modcom,modcomment) WHERE id = $userid");
$msg = sqlesc("Your donor status has been ADDED by ".$curusername."");
$added = sqlesc(get_date_time());
SQL_Query_exec("INSERT INTO messages (sender, receiver, msg, added) VALUES(0, $userid, $msg, $added)");
write_log("<a href=account-details.php?id=$curuserid><b>$curusername</b></a> has ADDED donor status for user <a href=account-details.php?id=$userid><b>$username</b></a>");
} else {
SQL_Query_exec("UPDATE users SET donor = $donor, donated = $donated, total_donated=total_donated+$donated, donoruntil = '$donoruntil', modcomment = CONCAT($modcom,modcomment) WHERE id = $userid");
$msg = sqlesc("You have received a DONOR STATUS from ".$curusername." for ".$days." \n REASON: You have donated ".$donated." euro , we appreciate your kindness to us.\nTHANKS!");
$added = sqlesc(get_date_time());
SQL_Query_exec("INSERT INTO messages (sender, receiver, msg, added) VALUES(0, $userid, $msg, $added)");
write_log("<a href=account-details.php?id=$curuserid><b>$curusername</b></a> has maked as donator user <a href=account-details.php?id=$userid><b>$username</b></a> for $days donated value is $donated");
}
header("Location: account-details.php?id=$userid");
die;
}
//====| End Donor status |====//
donate_block.php — 2023-02-20 21:57:54 in v3 Support
@niki do you mean like this one



I use it because I don't have paypal and don't trust that crap
donate_block.php — 2023-02-20 21:40:19 in v3 Support
@MicroMonkey don't forget that part too:


 `user` int(10) UNSIGNED NOT NULL DEFAULT 0,
 `added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
New_Theme — 2023-02-10 15:37:43 in v3 Themes
In aeonthm.css

find:

#head == change width
#inside-menu-large == change width
#footer == change width
.wrapper  == change width

in header.php
find:
<!-- START LEFT COLUM -->
<td valign="top" style="min-width: 250px !important;">

250px is block width


in footer.php
find:
<!-- START RIGHT COLUMN -->
<td valign="top" style="max-width: 250px !important;">

250px is block width

Good luck
Unconnectable — 2023-02-02 21:20:49 in v3 Support
Glad to hear that,
regards
Unconnectable — 2023-02-02 08:47:43 in v3 Support
First of all I don't know where you have planned to have this MOD, so I assume you want it on the index page under "userbar" so I fixed it by this "innovation".

If you seed one or more torrents then you are "active/connectable" but if you do NOT seed then the user is "inactive/unconnectable".

If the script finds the activity under the "peers" database, then the user is active,
so try this code if you want to solve this problem




//--- active torrents & connectable ---//
if ($site_config["MEMBERSONLY"])
{
$res = SQL_Query_exec("SELECT COUNT(*) FROM peers WHERE userid = " . $CURUSER["id"] . " AND seeder = 'yes'");
$row = mysqli_fetch_row($res);
$activeseed = $row[0];
$res = SQL_Query_exec("SELECT COUNT(*) FROM peers WHERE userid = " . $CURUSER["id"] . " AND seeder = 'no'");
$row = mysqli_fetch_row($res);
$activeleech = $row[0];
$res2 = SQL_Query_exec("SELECT seeder FROM peers WHERE userid=" . sqlesc($CURUSER["id"]) . " LIMIT 1");
if($row = mysqli_fetch_row($res2))
{
$connect = $row[0];
if($connect == "yes")
{
$connectable = "<font color=lime><i class='fas fa-plug text-lime'></i>&nbsp; &nbsp; &nbsp; ".T_("CONNECTABLE")."</font>";
}
else
{
$connectable = "<font color=red><i class='fas fa-plug text-red'></i>&nbsp; &nbsp; &nbsp;  ".T_("UNCONNECTABLE")."</font>";
}
}
else
{
$connectable = "<i class='fas fa-plug text-gold'></i>&nbsp; &nbsp; &nbsp;  ".T_("NO_ACTIVITY")."</li>";
}
print("<span class='btn btn-dark'><li class='nav-item'>".T_("ACTIVE_TORRENTS").":&nbsp;&nbsp;&nbsp; <i class='fas fa-angle-double-up text-green'></i>   - $activeseed -  ");
print("&nbsp;&nbsp;&nbsp;");
print("<i class='fas fa-angle-double-down text-red'></i>  - $activeleech -  </li></span>");
print("<li class='nav-item btn btn-dark'> $connectable </li>");
}
//--- end active torrents & connectable ---//






I have two questions regarding comments and their format.
Is there a possibility that we avoid "images" and instead of gif/png implement flaticons or fontawesome? My opinion is that we have way too many images to implement on page load.
And the second question, if you quote any record, why is it impossible to have "line breaks" as in the original record?
Have tried to "figure it out" but haven't gotten very far on this front.

Otherwise, thanks for the MOD will test it soon
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