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

Go to Profile

locally hosted server or rented? If local, you have to have both ports 80 and 443 open in your router/firewall. Usually hosted already has that set up. You may wanna consider using linux though. I dont know how to get a free ssl cert with windows, but maybe its possible, I just just dont know how, but check for more info here https://letsencrypt.org/
I'll give it a try. thanks. I am gunna try this for utf8mb4
CREATE TABLE `invites` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`inviter` int(10) unsigned NOT NULL DEFAULT '0',
`inviteid` int(10) NOT NULL DEFAULT '0',
`invite` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`time_invited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`confirmed` char(3) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'no',
PRIMARY KEY (`id`),
KEY `inviter` (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=182 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
seed time error — 2022-04-26 21:26:45 in v3 Support
I believe its based on the announce interval set in config.php. Took me a few minutes to brush the dust off and take a look haha
$site_config['announce_interval'] = '1800'; //1800 = 30 minutes
seed time error — 2022-04-25 19:00:11 in v3 Support
I also have this code. I dont use it, I dont remember why, but feel free to see if its of any use. This file is called snatchlist.php
<?php

/**
* @package TorrentTrader
* @version v2.08/updated for TTv3
* @author Mostvotedplaya
*/

require_once('backend/functions.php');
dbconn();
loggedinonly();

$tid = ( int ) $_GET['tid'];

$tor = SQL_Query_exec('SELECT `name` FROM `torrents` WHERE `id` = \'' . $tid . '\' AND `banned` = \'no\' AND `external` = \'no\' AND `freeleech` = \'0\'');

if ( ! ( $torrent = mysqli_fetch_row( $tor ) ) )
{
        autolink('index.php', 'o_O What was you expecting?');
}

$count = get_row_count('snatched', 'WHERE `tid` = \'' . $tid . '\'');

list($header, $footer, $limit) = pager(20, $count, 'snatchlist.php?tid=' . $tid . '&');

$qry = "SELECT
                        users.id,
                        users.username,
                        users.class,
                        snatched.uid as uid,
                        snatched.tid as tid,
                        snatched.uload,
                        snatched.dload,
                        snatched.stime,
                        snatched.utime,
                        snatched.ltime,
                        snatched.completed,
                        (
                                        SELECT seeder
                                        FROM peers
                                        WHERE torrent = tid AND userid = uid LIMIT 1
                        ) AS seeding                  
                FROM
                        snatched
                INNER JOIN users ON snatched.uid = users.id
                WHERE
                        users.enabled = 'yes' AND users.status = 'confirmed' AND
                        snatched.tid = '$tid' $limit";
                       
                $res = SQL_Query_exec($qry);
               
                $title = sprintf( T_("SNATCHLIST_FOR"), htmlspecialchars( $torrent[ 0 ] ) );
               
                stdhead( $title );
                begin_frame( $title );
               
                if ( mysqli_num_rows($res) > 0 ): ?>
                <table border="0" class="table_table" cellpadding="3" cellspacing="3" width="100%">
                <tr>
                        <th class="table_head"><?php echo T_("USERNAME") ?></th>
                        <th class="table_head"><?php echo T_("CLASS") ?></th>
                        <th class="table_head"><?php echo T_("UPLOADED") ?></th>
                        <th class="table_head"><?php echo T_("DOWNLOADED") ?></th>
                        <th class="table_head"><?php echo T_("STARTED") ?></th>
                        <th class="table_head"><?php echo T_("LAST_ACTION") ?></th>
                        <th class="table_head"><?php echo T_("COMPLETED") ?></th>
                        <th class="table_head"><?php echo T_("SEEDING") ?></th>
                        <th class="table_head"><?php echo T_("SEED_TIME") ?></th>
                </tr>
   <?php while ( $row = mysqli_fetch_row( $res ) ):
$start_date_sl = utc_to_tz(get_date_time($row[ 7 ]));
$last_action_date_sl = utc_to_tz(get_date_time($row[ 8 ]));
?>
                <tr align="center">
                        <td class="table_col1"><a href="account-details.php?id=<?php echo $row[ 0 ]; ?>"><?php echo htmlspecialchars( $row[ 1 ] ); ?></a></td>
                        <td class="table_col2"><?php echo get_user_class_name( $row[ 2 ] ); ?></td>
                        <td class="table_col1"><?php echo mksize( $row[ 5 ] ); ?></td>
                        <td class="table_col2"><?php echo mksize( $row[ 6 ] ); ?></td>
        <td class="table_col1"><?php echo date( 'D dS F Y g:i a', utc_to_tz_time($start_date_sl) ); ?></td>
        <td class="table_col2"><?php echo date( 'D dS F Y g:i a', utc_to_tz_time($last_action_date_sl) ); ?></td>
                        <td class="table_col1"><?php echo ( $row[ 10 ] ) ? 'yes' : 'no'; ?></td>
                        <td class="table_col2"><?php echo ( $row[ 11 ] ) ? $row[ 11 ] : 'no'; ?></td>
                        <td class="table_col1"><?php echo ( $row[ 9 ] ) ? seedtime( $row[ 9 ] ) : '-'; ?></td>
                </tr>
                <?php endwhile; ?>
                </table>
                <?php else: ?>
                <div align="center"><b><?php echo T_("WAIT_FOR_STATS"); ?></b></div>
                <?php endif;

                if ( $count > 20 ) echo $footer;
               
                end_frame();
                stdfoot();

?>
seed time error — 2022-04-25 18:51:17 in v3 Support
my snatched.php. has a few minor differences, but I dont really see that it would fix your issue. You can use diffchecker.com to compare the code
error_reporting(E_ALL ^ E_NOTICE);
error_reporting(1);
require_once('backend/functions.php');
dbconn();
loggedinonly();

$tid = ( int ) $_GET['tid'];
$uid = ( int ) $_GET['uid'];
$id = ( int ) $_GET['id'];

if ($id != 0)
$uid = ( int ) $_GET['id'];
if ($tid == 0 && $uid == 0)
$uid = ( int ) $CURUSER['id'];

if ($tid > 0) {
$count_tid = get_row_count('snatched', 'WHERE `tid` = \'' . $tid . '\'');
$type = "torrent";
$count_uid = 0;
} else {
$count_uid = get_row_count('snatched', 'WHERE `uid` = \'' . $uid . '\'');
$type = "user";
$count_tid = 0;
}




//===| for debug...
$debug = 0;
if ($debug)
{
$title1 = sprintf(T_("SNATCHLIST_FOR"), " Debug");
stdhead($title1);
begin_frame($title1);

$qry1 = "SELECT
users.id,
users.username,
users.class,
snatched.uid as uid,
snatched.tid as tid,
snatched.uload,
snatched.dload,
snatched.stime,
snatched.utime,
snatched.ltime,
snatched.completed,
completed.date,
(
SELECT seeder
FROM peers
WHERE torrent = tid AND userid = uid LIMIT 1
) AS seeding
FROM
snatched
INNER JOIN users ON snatched.uid = users.id
INNER JOIN torrents ON snatched.tid = torrents.id
LEFT JOIN completed ON snatched.tid = completed.torrentid AND snatched.uid = completed.userid
WHERE
users.status = 'confirmed' AND
torrents.banned = 'no' AND snatched.tid = '$tid' $limit";

?>
<div align="center"><b>Type: <?php echo $type;?></b></div>
<div align="center"><b>Torrent ID: <?php echo $tid;?></b></div>
<div align="center"><b>UserID: <?php echo $uid;?></b></div>
<div align="center"><b>Torrent Count: <?php echo $count_tid;?></b></div>
<div align="center"><b>User Count: <?php echo $count_uid;?></b></div>
<div align="left"><b>Query: </b><?php echo $qry1;?></div>
<?php
end_frame();
}


if ($type == 'torrent')
{
//===| Start Torrents Snatched
if ($count_tid > 0)
{
$torrent = SQL_Query_exec("SELECT `name` FROM `torrents` WHERE `id` = '$tid'");
$torrents = mysqli_fetch_row($torrent);
$title = "".T_("REGISTERED_MEMBERS_TO_TORRENT")." ".htmlspecialchars($torrents[0])."";

stdhead($title);
begin_frame($title);

$perpage = 50;
list($pagertop, $pagerbottom, $limit) = pager($perpage, $count_tid, 'snatched.php?tid='.$tid.' &');

$qry = "SELECT
users.id,
users.username,
users.class,
snatched.uid as uid,
snatched.tid as tid,
snatched.uload,
snatched.dload,
snatched.stime,
snatched.utime,
snatched.ltime,
snatched.completed,
snatched.hnr,
(
SELECT seeder
FROM peers
WHERE torrent = tid AND userid = uid LIMIT 1
) AS seeding
FROM
snatched
INNER JOIN users ON snatched.uid = users.id
INNER JOIN torrents ON snatched.tid = torrents.id
WHERE
users.status = 'confirmed' AND
torrents.banned = 'no' AND snatched.tid = '$tid'
ORDER BY stime DESC $limit";

$res = SQL_Query_exec($qry);

print("<div style='margin-top:10px; margin-bottom:5px'><a href=torrents-details.php?id=$tid><b><input type='submit' value='".T_("BACK_TO_TORRENT")."'></b></a></div>");

if ($count_tid > $perpage) { echo ($pagertop); }



if (mysqli_num_rows($res) > 0):
?>
<table border="0" class="table_table" cellpadding="4" cellspacing="0" width="100%">
<tr>
<th class="table_head" align="left"><?php echo T_("USERNAME");?></th>
<th class="table_head"><?php echo T_("UPLOADED");?></th>
<th class="table_head"><?php echo T_("DOWNLOADED");?></th>
<th class="table_head"><?php echo T_("RATIO");?></th>
<th class="table_head"><?php echo T_("ADDED");?></th>
<th class="table_head"><?php echo T_("LAST_ACTION");?></th>
<th class="table_head"><img src="images/seedtime.png" border="0" title="<?php echo T_("SEED_TIME"); ?>"></th>
<th class="table_head"><img src="images/check.png" border="0" title="<?php echo T_("COMPLETED");?>"></th>
<th class="table_head"><img src="images/seed.gif" border="0" title="<?php echo T_("SEEDING");?>"></th>
<th class="table_head"><?php echo T_("HNR");?></th>
</tr>

<?php
while ($row = mysqli_fetch_row($res)):

if ($row[6] > 0) { $ratio = number_format($row[5] / $row[6], 2); }
else { $ratio = "---"; }
$ratio = "<font color=" . get_ratio_color($ratio) . ">$ratio</font>";

$startdate = utc_to_tz(get_date_time($row[7]));
$lastaction = utc_to_tz(get_date_time($row[8]));

if ($row[11] != "yes") { $hnr = "<font color=#27B500><b>".T_("NO")."</b></font>";  } else { $hnr = "<font color=#FF1200><b>".T_("YES")."</b></font>"; }
if ($row[12] != "yes") { $seed = "<font color=#FF1200><b>".T_("NO")."</b></font>";  } else { $seed = "<font color=#27B500><b>".T_("YES")."</b></font>"; }
?>

<tr align="center">
<td class="table_col1" align="left"><a href="account-details.php?id=<?php echo $row[0];?>"><?php echo "<b>".$row[1]."</b>";?></a></td>
<td class="table_col2"><font color="#27B500"><?php echo mksize($row[5]);?></font></td>
<td class="table_col1"><font color="#FF1200"><?php echo mksize($row[6]);?></font></td>
<td class="table_col2"><?php echo $ratio;?></td>
<td class="table_col2"><?php echo date('d.M.Y H:i', sql_timestamp_to_unix_timestamp($startdate));?></td>
<td class="table_col1"><?php echo date('d.M.Y H:i', sql_timestamp_to_unix_timestamp($lastaction));?></td>
<td class="table_col1"><?php echo ($row[9]) ? mkprettytime($row[9]) : '---';?></td>
<td class="table_col2"><?php echo ($row[10]) ? "<font color=#0080FF><b>".T_("YES")."</b></font>" : "<b>".T_("NO")."</b>";?></td>
<td class="table_col1"><?php echo $seed;?></td>
<td class="table_col2"><?php echo $hnr;?></td>
</tr>
<?php
endwhile;
?>
</table>
<?php
if ($count_tid > $perpage) { echo ($pagerbottom); }
print("<div style='margin-top:5px; margin-bottom:10px' align='right'><a href=torrents-details.php?id=$tid><b><input type='submit' value='".T_("BACK_TO_TORRENT")."'></b></a></div>");
endif;
end_frame();
stdfoot();
die;
}
else
{
if ($tid >= 1)
{
$torrent = SQL_Query_exec("SELECT `name` FROM `torrents` WHERE `id` = '$tid'");
$torrents = mysqli_fetch_row($torrent);
$ttitle = "".T_("SNATCHLIST_FOR")." ".htmlspecialchars($torrents[0])."";
if ($torrents[0] == '') { $ttitle = "".T_("NO_TORRENT_WITH_ID")." $tid"; }

stdhead($ttitle);
begin_frame($ttitle);
?>
<div style="margin-top:10px; margin-bottom:10px" align="center"><font size="2"><?php echo T_("NOTHING_FOUND"); ?>.</font></div>
<div style="margin-bottom:10px" align="center">[<?php echo "<a href=torrents-details.php?id=$tid>";?><b><?php echo T_("BACK_TO_TORRENT"); ?></b></a>]</div>
<?php
end_frame();
stdfoot();
die;
}
}
//===| End Torrents Snatched
}
else
{
//===| Start Users Snatched
if ($count_uid > 0)
{
$user = SQL_Query_exec("SELECT `username` FROM `users` WHERE `id` = '$uid'");
$users = mysqli_fetch_row($user);
$title = "".T_("SNATCHLIST_FOR")." ".htmlspecialchars($users[0])."";
$title2 = "".T_("SNATCHLIST_FOR")." ".$users[0]."";
stdhead($title);
begin_frame($title2);

if (($CURUSER["control_panel"] == "no") && $CURUSER["id"] != $uid)
{
echo "<div style='margin-top:10px; margin-bottom:10px' align='center'><font size='2' color='red'><b>".T_("NO_PERMISSION")."</b></font></div>";
end_frame();
stdfoot();
die;
}

$perpage = 50;
list($pagertop, $pagerbottom, $limit) = pager($perpage, $count_uid, 'snatched.php?uid='.$uid.' &');

$qry = "SELECT
snatched.tid as tid,
torrents.name,                                      
snatched.uload,
snatched.dload,
snatched.stime,
snatched.utime,
snatched.ltime,
snatched.completed,
snatched.hnr,
(
SELECT seeder
FROM peers
WHERE torrent = tid AND userid = $uid LIMIT 1
) AS seeding
FROM
snatched
INNER JOIN users ON snatched.uid = users.id
INNER JOIN torrents ON snatched.tid = torrents.id
WHERE
users.status = 'confirmed' AND
torrents.banned = 'no' AND snatched.uid = '$uid'
ORDER BY stime DESC $limit";

$res = SQL_Query_exec($qry);

if ( $uid == $CURUSER['id'] )
{
?>
<br /><table class="f-border" align='center' cellpadding='0' cellspacing='3' width='100%'><tr><td>
<table class="f-title" cellpadding='0' cellspacing='3' width='100%'>
<tr>
<td width='100%' height="32" align='center'>
       <?php print("<a href='account-delete.php'><b>".T_("DELETE_ACCOUNT")."</b></a>");?>
 | 
<?php print("<a href='account.php'><b>".T_("YOUR_PROFILE")."</b></a>");?>
 | 
<?php print("<a href='account.php?action=edit_settings&do=edit'><b>".T_("YOUR_SETTINGS")."</b></a>");?>
 | 
<?php print("<a href='account.php?action=changepw'><b>".T_("CHANGE_PASS")."</b></a>");?>
 | 
<?php print("<a href='account.php?action=mytorrents'><b>".T_("YOUR_TORRENTS")."</b></a>");?>
 | 
<?php print("<a href='mailbox.php'><b>".T_("YOUR_MESSAGES")."</b></a>");?>
        | 
<?php print("<a href='snatched.php'><b>".T_("YOUR_SNATCHLIST")."</b></a>");?>
 | 
<?php print("<a href='mybonus.php'><b>".T_("SEEDBONUS")."</b></a>");?>
</td></tr>
</table>
</td></tr></table>
<?php
print("<div style='margin-top:20px; margin-bottom:20px' align='center'><font size='2'>".T_("SNATCHED_MESSAGE")."</font></div>");
}

if ( $uid != $CURUSER['id'] )
print("<div style='margin-top:10px; margin-bottom:5px'><a href=account-details.php?id=$uid><b><input type='submit' value='".T_("GO_TO_USER_ACCOUNT")."'></b></a></div>");

if ($count_uid > $perpage) { echo $pagertop; }

if (mysqli_num_rows($res) > 0):
?>
<table border="0" class="table_table" cellpadding="4" cellspacing="0" width="100%">
<tr>
<th class="table_head" align="left"><?php echo T_("TORRENT_NAME"); ?></th>
 <?php if ($site_config["ALLOWEXTERNAL"]) { ?>
<th class="table_head"><img src="images/t_le.png" border="0" title="<?php echo T_("T_L_OR_E"); ?>"></th>
 <?php } ?>
<th class="table_head"><?php echo T_("UPLOADED"); ?></th>
<th class="table_head"><?php echo T_("DOWNLOADED"); ?></th>
<th class="table_head"><?php echo T_("RATIO"); ?></th>
<th class="table_head"><?php echo T_("ADDED"); ?></th>
<th class="table_head"><?php echo T_("LAST_ACTION"); ?></th>
<th class="table_head"><img src="images/seedtime.png" border="0" title="<?php echo T_("SEED_TIME"); ?>"></th>
<th class="table_head"><img src="images/check.png" border="0" title="<?php echo T_("COMPLETED"); ?>"></th>
<th class="table_head"><img src="images/seed.gif" border="0" title="<?php echo T_("SEEDING"); ?>"></th>
<th class="table_head"><?php echo T_("HNR"); ?></th>
</tr>

<?php
while ($row = mysqli_fetch_row($res)):

$startdate = utc_to_tz(get_date_time($row[4]));
$lastaction = utc_to_tz(get_date_time($row[5]));

$query = SQL_Query_exec("SELECT external, freeleech FROM torrents WHERE id = $row[0]");
$result = mysqli_fetch_row($query);
If ($result[0] == "yes") { $type = "<img src='images/t_extern.png' border='0' title='".T_("EXTERNAL_TORRENT")."'>"; }
else { $type = "<img src='images/t_local.png' border='0' title='".T_("LOCAL_TORRENT")."'>"; }
if ($result[1] == 1) { $freeleech = "<img src='images/free.gif' border='0' title='".T_("FREE")."'>"; }
else { $freeleech = ""; }

if ($row[3] > 0) { $ratio = number_format($row[2] / $row[3], 2); }
else { $ratio = "---"; }
$ratio = "<font color=" . get_ratio_color($ratio) . ">$ratio</font>";

if ($row[8] != "yes") { $hnr = "<font color=#27B500><b>".T_("NO")."</b></font>";  } else { $hnr = "<font color=#FF1200><b>".T_("YES")."</b></font>"; }
if ($row[9] != "yes") { $seed = "<font color=#FF1200><b>".T_("NO")."</b></font>";  } else { $seed = "<font color=#27B500><b>".T_("YES")."</b></font>"; }

$maxchar = 30; //===| cut name length
$smallname = htmlspecialchars(CutName($row[1], $maxchar));
?>
<tr align="center">
<?php echo("<td class='ttable_col1' align='left' nowrap='nowrap'>".(is_countable($expandrows)?"<a href=\"javascript: klappe_torrent('t".$row['0']."')\"><img border=\"0\" src=\"".$site_config["SITEURL"]."/images/plus.gif\" id=\"pict".$row['0']."\" alt=\"Show/Hide\" class=\"showthecross\" /></a>":"")."<a title=\"".$row["1"]."\" href=\"torrents-details.php?id=".$row['0']."&hit=1\"><b>$smallname</b></a> $freeleech</td>"); ?>
 <?php if ($site_config["ALLOWEXTERNAL"]) { ?>
<td class="table_col2" align="center"><?php echo $type;?></td>
 <?php } ?>
<td class="table_col1"><font color="#27B500"><?php echo mksize($row[2]);?></font></td>
<td class="table_col2"><font color="#FF1200"><?php echo mksize($row[3]);?></font></td>
<td class="table_col1"><?php echo $ratio;?></td>
<td class="table_col2"><?php echo date('d.M.Y H:i', sql_timestamp_to_unix_timestamp($startdate));?></td>
<td class="table_col1"><?php echo date('d.M.Y H:i', sql_timestamp_to_unix_timestamp($lastaction));?></td>
<td class="table_col2"><?php echo ($row[6]) ? mkprettytime($row[6]) : '---';?></td>
<td class="table_col1"><?php echo ($row[7]) ? "<font color=#0080FF><b>".T_("YES")."</b></font>" : "<b>".T_("NO")."</b>";?></td>
<td class="table_col2"><?php echo $seed;?></td>
<td class="table_col1"><?php echo $hnr;?></td>
</tr>
<?php
endwhile;
?>
</table>
<?php

if ($count_uid > $perpage) { echo $pagerbottom; }

if ( $uid != $CURUSER['id'] )
print("<div style='margin-top:5px; margin-bottom:10px' align='right'><a href=account-details.php?id=$uid><b><input type='submit' value='".T_("GO_TO_USER_ACCOUNT")."'></b></a></div>");

endif;
end_frame();
stdfoot();
die;
}
else
{
$user = SQL_Query_exec("SELECT `username` FROM `users` WHERE `id` = '$uid'");
$users = mysqli_fetch_row($user);

$title = "".T_("SNATCHLIST_FOR")." ".htmlspecialchars($users[0])."";
if ($users[0] == '') { $title = "".T_("NO_USER_WITH_ID")." $uid"; }

$title2 = "".T_("SNATCHLIST_FOR")." ".$users[0]."";
if ($users[0] == '') { $title2 = "".T_("NO_USER_WITH_ID")." $uid"; }

stdhead($title);
begin_frame($title2);

if (($CURUSER["control_panel"] == "no") && $CURUSER["id"] != $uid)
{
echo "<div style='margin-top:10px; margin-bottom:10px' align='center'><font size='2' color='red'><b>".T_("NO_PERMISSION")."</b></font></div>";
end_frame();
stdfoot();
die;
}
echo "<div style='margin-top:10px; margin-bottom:10px' align='center'><font size='2'>".T_("NOTHING_FOUND").".</font></div>";

if (mysqli_num_rows($user) > 0)
{
if ( $uid != $CURUSER[id] ) {
print("<div style='margin-bottom:10px' align='center'><a href=account-details.php?id=$uid><b><input type='submit' value='".T_("GO_TO_USER_ACCOUNT")."'></b></a></div>");
} else {
print("<div style='margin-bottom:10px' align='center'>[<a href=account.php><b>".T_("GO_TO_YOUR_PROFILE")."</b></a>]</div>");
}
}
end_frame();
stdfoot();
}
}
?>
Client ban mod — 2022-04-14 23:20:20 in v2 Only Mods Complete
Remember........mysql_query is SQL_Query_exec
need help again — 2022-04-10 13:51:16 in v3 Support
if (!$res) {
if (mysqli_errno($GLOBALS["DBconnector"]) == 1062)
show_error_msg("Error", "It appears you tried to send your application twice.");
else
show_error_msg("Error", "It appears something went wrong while sending your application. Please <a href=uploadapp.php>try again</a>.");
 else
show_error_msg("Application sent", "Your application has succesfully been sent to the staff.");
}
help — 2022-03-31 13:00:58 in v3 Support
I think some braces were missing, but im not sure beyond that, maybe this?

$rangclass1 = "<option value=0>---User prestige---</option>\n";
$res28 = SQL_Query_exec("SELECT id,name FROM rangclass ORDER BY name");
while ($rank = mysqli_fetch_array($res28)) {
$rangclass1 .= "<option value=".$rank["id"]."" .htmlspecialchars($user["rangclass"] == $rank["id"] ? " selected" : "") . ">".$rank["name"]."</option>\n";
if ($CURUSER["class"] < 8)
print("<input type='hidden' name='rangclass' value='".$user["rangclass"]."'>\n");
else
{
print("<tr><td class=rowhead><font color=#AFFF00>User prestige</font></td><td colspan=2 align=left><select name=rangclass>\n$rangclass1\n</select></tr>\n");
}}
classes — 2022-03-29 19:18:45 in v3 Support
Cool. glad its sorted. sorry I didnt help much. I see that its adding the equal sign to the query. I really need to wear my glasses more often lol
classes — 2022-03-29 14:53:39 in v3 Support
perhaps this way?
$res = SQL_Query_exec("UPDATE `users`  SET `uploaded` = `uploaded` + '1073741824' WHERE `class` = '$class'");
classes — 2022-03-28 22:31:14 in v3 Support
V3 looks like this
$class = sqlesc($_POST["class"]);
Captcha TTv3 — 2022-03-21 10:48:58 in v3 Mods in Progress
perhaps unset($responseData);
local tracker — 2022-03-17 18:08:31 in Tutorials
Im not familiar with qnap, or any NAS device for running ubuntu or a distro needed for the tracker scripts, but if you wanted to run your tracker locally, the best thing to do is get a domain name from a TLD provider like godaddy etc, then just edit the A record in the DNS management to point to your own IP address, then you just setup the script as you would for regular hosting. Also open ports 80 and 443 in your own router and point to the machine running your tracker
AJAX Polls v1 — 2022-02-18 12:24:13 in v3 Mods Completed
I got this. Seems correct. Have to test the rest of the files.
<?php
begin_block(T_("POLL"));
require_once ("backend/functions.php");

if ($CURUSER && $CURUSER["poll_voted"] == "yes") { ?>

   <!-- Live Voting AJAX : Already Voted (View Votes) -->
   <div id="recent-poll"></div>

<?php
} elseif ($CURUSER) { ?>

   <!-- Live Voting : Options -->
   <?php
   // try {
   //     $dsn      = 'mysql:dbname=database;host=localhost';
   //     $user     = 'user';
   //     $password = 'pass';
   //     $conn     = new PDO($dsn, $user, $password);
   //     $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
   //     $conn->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
   // } catch (PDOException $e) {
   //     die('Unable to connect to database');
   // }
   $stmt = SQL_Query_exec('SELECT * FROM polls');
//    $stmt->execute();
   $poll = mysqli_fetch_assoc($stmt);
   if ($poll) {
       $stmt = SQL_Query_exec('SELECT * FROM poll_answers');
//        $stmt->execute();
       $poll_answers = mysqli_fetch_assoc($stmt);
   } else {
       die('Poll does not exist.');
   }
   ?>
AJAX Polls v1 — 2022-02-18 03:17:03 in v3 Mods Completed
I like this. Is there any way you can just do your PDO magic and use the DB connection that TTv3 already has? Rather than entering it across multiple files? I dont know PDO stuff, so maybe its not doable mixing PDO and SQLI, Im just a hobbyist. Maybe write 1 function in the backend to cover all files? I will post the connector for your reference if it helps any
TTv3 database connection code (all data is gathered from the mysql.php file in backend)
function dbconn($autoclean = false) {
global $mysql_host, $mysql_user, $mysql_pass, $mysql_db, $THEME, $LANGUAGE, $LANG, $site_config;
$THEME = $LANGUAGE = null;

if (!ob_get_level()) {
if (extension_loaded('zlib') && !ini_get('zlib.output_compression'))
ob_start('ob_gzhandler');
else
ob_start();
}

header("Content-Type: text/html;charset=$site_config[CHARSET]");

function_exists("mysqli_connect") or die("MySQL support not available.");

   $GLOBALS["DBconnector"] = new mysqli($mysql_host, $mysql_user, $mysql_pass, $mysql_db);    // Check connection
   if ($GLOBALS["DBconnector"]->connect_error) {
      die("Connection failed: " . $GLOBALS["DBconnector"]->connect_error);
}


unset($mysql_pass); //security

userlogin(); //Get user info

//Get language and theme
$CURUSER = $GLOBALS["CURUSER"];

   $ss_a = mysqli_fetch_assoc(SQL_Query_exec("select uri from stylesheets where id='" . ( $CURUSER ? $CURUSER['stylesheet'] : $site_config['default_theme'] )  . "'"));
$THEME = $ss_a["uri"];

$lng_a = mysqli_fetch_assoc(SQL_Query_exec("select uri from languages where id='" .  ( $CURUSER ? $CURUSER['language'] : $site_config['default_language'] )  . "'"));
$LANGUAGE = $lng_a["uri"];

require_once("languages/$LANGUAGE");

if ($autoclean)
autoclean();
}

because this
        $dsn      = 'mysql:dbname=databse;host=localhost';
       $user     = 'name';
       $password = 'password';
       $conn     = new PDO($dsn, $user, $password);
       $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
       $conn->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);

is similar to this
    $GLOBALS["DBconnector"] = new mysqli($mysql_host, $mysql_user, $mysql_pass, $mysql_db);
   if ($GLOBALS["DBconnector"]->connect_error) {
      die("Connection failed: " . $GLOBALS["DBconnector"]->connect_error);

but I dont know what to do since your stuff is PDO, or maybe im overthinking it
Bug Tracker — 2022-02-12 05:49:38 in M-BiTsy Support
ahhhh, ok, my bad
Bug Tracker — 2022-02-12 01:49:08 in M-BiTsy Support
The shoutbox. Click in it, and it has autocomplete. Not sure if you want that. I remember users asking me to stop that years ago, just use autocomplete='off' in the form
I use this and just thought I would post it since I dont believe its posted anywhere here. This uses a different time function for your torrents listed on the index page under "added".
Find in functions.php
            case 'added':
              print("<td class='ttable_col$x' align='center'>".date("n-d-Y g:i a", utc_to_tz_time($row['added']))."</td>");
           break;

change to
            case 'added':
               print("<td class='ttable_col$x' align='center'>".get_time_elapsed($row['added'])."</td>");
           break;

add this new function somewhere in the same file
///ELAPSED TIME SINCE TORRENT WAS UPLOADED
function get_time_elapsed($datetime, $full = false)
{
   $now = new DateTime;
   $ago = new DateTime($datetime);
   $diff = $now->diff($ago);
   $diff->w = floor($diff->d / 7);
   $diff->d -= $diff->w * 7;
   $string = array(
       'y' => 'year',
       'm' => 'month',
       'w' => 'week',
       'd' => 'day',
       'h' => 'hour',
       'i' => 'minute',
       's' => 'second',
   );
   foreach ($string as $k => &$v)
   {
       if ($diff->$k)
       {
           $v = $diff->$k . ' ' . $v . ($diff->$k > 1 ? 's' : '');
       }
       else
       {
           unset($string[$k]);
    }
   }
   if (!$full) $string = array_slice($string, 0, 1);
   return $string ? implode(', ', $string) . ' ago' : 'just now';
}
///END ELAPSE TIME

10.4.22-MariaDB — 2022-02-02 08:08:17 in v3 Support
your account-signup page is fine. You need to set a default for subject, as I mentioned above, set it to NONE. You can do this in phpmyadmin. Also turn off mysql strict mode
you need to post the database error from the ACP. Also, what were you trying to do. More details will help
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