Go to Profile
can you add the mod to your file like the instructions say and then post that code so we can see what you are adding? Might make it easier to figure out what is wrong
I was referring to the announce table, not the users table. That is a odd issue. it seems its a negative number. I think subtraction from a negative causes the problem. Maybe you have added something that is causing this
hi spirit, I hope you are having a great day :) , that line wouldnt cause your error, but it would display the error with mysqli_error. I believe your error is still somewhere else. Make sure all your database tables in announce are UNSIGNED attribute, and perhaps only use INT instead of BIGINT. Unless I am misunderstanding
https://ibb.co/DgDNtLV unsigned and signed do not mix well from my understanding
I think is_countable($expandrows) && count($expandrows) should work. This is the format for anyone reading this in the future
.(is_countable($expandrows) && count($expandrows)?
I confirm not working in my client. same as tiloup. Thanks for working on it tho. progress is sometime slow, but thats perfectly fine :)
only thing that qbit said was "not working" on my end. I do see some tables in there that dont exist in my version of TT. That could be killing it since it wouldnt be able to move past it, such as chosen_peer_id. Im a bit hung over so thats all I could see right now lol.
I am the same. I cannot make it work for me. unsure why. It appears to work, but then stops.
updated images to use if you wish
Thanks Storrents. I didnt even think about a fallback since I was just fiddling and adding all options as I found them
a quick look and you should only have to change all mysql_ to mysqli_. I didnt see anything else in a quick look
I fiddled around with this idea. I borrowed a bit of storrents code and went just a little differently. Feel free to try this in torrent-details.php. Below is my entire fileslist code
echo "<br /><br /><b>".T_("FILE_LIST").":</b> <img src='images/plus.gif' id='pic1' onclick='klappe_torrent(1)' alt='' /><div id='k1' style='display: none;'><table align='center' cellpadding='0' cellspacing='0' class='table_table' border='1' width='100%'><tr><th width='50' class='table_head'> ".T_("TYPE")."</th><th class='table_head' align='left'> ".T_("FILE")."</th><th width='50' class='table_head'> ".T_("SIZE")."</th></tr>";
$fres = SQL_Query_exec("SELECT * FROM `files` WHERE `torrent` = $id ORDER BY `path` ASC");
if (mysqli_num_rows($fres)) {
while ($frow = mysqli_fetch_assoc($fres)) {
$ext = pathinfo($frow['path'], PATHINFO_EXTENSION);
if ($ext !== false && $ext == 'mp3') {
$filetype_icon = "<img width=40 height=40 src=/images/mp3.png>";
}else if ($ext !== false && $ext == 'mp4') {
$filetype_icon = "<img width=40 height=40 src=/images/mp4.png>";
}else if ($ext !== false && $ext == 'png') {
$filetype_icon = "<img width=40 height=40 src=/images/png.png>";
}else if ($ext !== false && $ext == 'mkv') {
$filetype_icon = "<img width=40 height=40 src=/images/mkv.png>";
}else if ($ext !== false && $ext == 'avi') {
$filetype_icon = "<img width=40 height=40 src=/images/avi.png>";
}else if ($ext !== false && $ext == 'nfo') {
$filetype_icon = "<img width=40 height=40 src=/images/nfo.png>";
}
echo "<tr><td class='table_col1'>".$filetype_icon."</td><td class='table_col1'>".htmlspecialchars($frow['path'])."</td><td class='table_col2'>".mksize($frow['filesize'])."</td></tr>";
}
}else{
echo "<tr><td class='table_col1'>".htmlspecialchars($row["name"])."</td><td class='table_col2'>".mksize($row["size"])."</td></tr>";
}
echo "</table></div>";
new output after deleting only line 81, function left intact. I understand that some of this error may be beacuse I am not actually using this file, Im only testing it. I did not overwrite my actual announce file. I renamed it and tested. I can test it live if needed
d14:failure reason23:missing key: downloadede
I got this
Fatal error: Uncaught Exception: Unable to do prepared statement: DELETE FROM peers WHERE last_announce + INTERVAL 1 hour < CURRENT_TIMESTAMP in /var/www/site.com/backend/classes/class.mysqli.php:81 Stack trace: #0 /var/www/site.com/announcetest.php(21): DatabaseClass->Remove() #1 {main} thrown in /var/www/site.com/backend/classes/class.mysqli.php on line 81
hmm, not working for me. might be the $db connection part
ahh, I didnt even think of that. I had that same issue once and forgot all about it. sorry I didnt think of that. Glad you got it going
hmm, not sure. The only other place I know that port 25 is even listed is in backend/mail.php. I dont use centos, I use ubuntu and I dont use any control panels, only telnet
try removing postfix and only install what storrents posted above. Thats all I have installed, I just checked it. perhaps the postfix is messing it up.
to use gmail, here are the config.php settings
// Mail settings
// php to use PHP's built-in mail function. or pear to use http://pear.php.net/Mail
// MUST use pear for SMTP
$site_config["mail_type"] = "pear"; //Use PEAR for Gmail, otherwise, use PHP
$site_config["mail_smtp_host"] = "smtp.gmail.com"; // SMTP server hostname. Google Gmail is smtp.gmail.com
$site_config["mail_smtp_port"] = "465"; // SMTP server port. Google Gmail uses 465
$site_config["mail_smtp_ssl"] = true; // true to use SSL. True for Google Gmail
$site_config["mail_smtp_auth"] = true; // true to use auth for SMTP. True for Google Gmail
$site_config["mail_smtp_user"] = "user"; // SMTP username. Will be your gmail account ie: your_gmail_addy@gmail.com
$site_config["mail_smtp_pass"] = "password"; // SMTP password. Gmail account password if using gmail