Go to Profile
For months I have seen that PHP 7 no longer has security and update support. TT is not compatible with PHP 8, is there any plan to migrate to PHP 8?
Thank you, I think I have understood.
hello. I already disabled strict mode from the beginning.
When I try to create a poll it gives a "database error". In the SQL log it shows...
Database Error in admincp.php on line 1654: Data truncated for column 'sort' at row 1. Query was: INSERT INTO polls VALUES(0, '2023-04-18 19:37:35', 'my question', 'yes', 'no', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0).
I know a little bit about how p2p systems work, but really when I saw the "waiting times" functionality in the code, I thought that this tracker has some system to establish times based on the uploaded size. Really before I ask anything here I google quite a bit, but there isn't any documentation on this type of script anywhere.
@botanicar
What I deduce from the code that I observe.
But then, how can I make a user have download limits based on the number of bytes uploaded? I want to establish download limits depending on the ratio.
It's a bit of a basic question, but can someone explain to me exactly how to set the ratio?
In the config.php file we have several sections to configure the ratio...
$site_config['MEMBERSONLY_WAIT'] = true; //ENABLE WAIT TIMES FOR BAD RATIO
//WAIT TIME VARS
$site_config['WAIT_CLASS'] = '1,2'; //Classes wait time applies to, comma seperated
$site_config['GIGSA'] = '1'; //Minimum gigs
$site_config['RATIOA'] = '0.50'; //Minimum ratio
$site_config['WAITA'] = '24'; //If neither are met, wait time in hours
$site_config['GIGSB'] = '3'; //Minimum gigs
$site_config['RATIOB'] = '0.65'; //Minimum ratio
$site_config['WAITB'] = '12'; //If neither are met, wait time in hours
$site_config['GIGSC'] = '5'; //Minimum gigs
$site_config['RATIOC'] = '0.80'; //Minimum ratio
$site_config['WAITC'] = '6'; //If neither are met, wait time in hours
$site_config['GIGSD'] = '7'; //Minimum gigs
$site_config['RATIOD'] = '0.95'; //Minimum ratio
$site_config['WAITD'] = '2'; //If neither are met, wait time in hours
and
//AUTO RATIO WARNING
$site_config["ratiowarn_enable"] = true; //Enable/Disable auto ratio warning
$site_config["ratiowarn_minratio"] = 0.5; //Min Ratio
$site_config["ratiowarn_mingigs"] = 2; //Min GB Downloaded
$site_config["ratiowarn_daystowarn"] = 60; //Days to ban
But I don't understand exactly how time periods work. What does "classes wait time" mean, the minimum ratio and the minimum gigabytes.
For example, if I want a user to be able to download twice as many gigabytes as he has uploaded, I understand that the ratio is 0.5. But how exactly is this ratio configured in config.php and how do I interpret the time periods?
mmm, ok. but, How do I solve the problem then? From what I see, the ratio stays at 0 sometimes. Sometimes it works, other times it doesn't.
I do not understand what you mean. When creating the torrents, the URL is placed correctly.
https://www.mysite.com/announce.php for the tracker URL and the torrent is set to private. The .torrent has also been uploaded to the site to add the passkey.
I still have problems with the previews. Permissions are well assigned. 777 for the uploads/images folder. The file is uploaded correctly when creating a torrent but gives a 500 error when trying to access the images.
I have done performance tests and everything is fine. And I have a server ssd.
One question, what permissions should the files and folders have? The ones that come in the installation tutorial is 777, but what about the others?
Now I have 403 error in all my site and I can't execute command in my site folder!!!! How do I revert the changes?
Nothing...
sudo chown -R http:http /volumeUSB1/usbshare/mysite/
sudo find /volumeUSB1/usbshare/mysite/ -type f -exec chmod 2775 {} +
sudo find /volumeUSB1/usbshare/mysite/ -type d -exec chmod 664 {} +
I have executed these commands as is, adapting them to my environment, but it still does not work. /volumeUSB1/usbshare/mysite/ is the path where I have the web. http is the user group of the web server.
nothing works. The upload/images folder has 777 permission (checked with ls -la command) and I have run the command chown -R with the group "http" (equivalent to www-data) for my site directory. The check.php shows all permissions granted. The only thing I don't have is suhosin extension.
yes. mysite/upload/images/image.jpg
And. if i try edit any torrent for update/add a image, doesn't work. I select the image to add, I hit save and nothing happens. That added image is also not uploaded to the images folder.
When I upload a preview with a torrent the image is not visible. It appears as if the link is broken. The file uploads successfully, appears in /upload/images/, and both the upload folder and the images folder have the proper permissions. The file format is jpg or png, and the size is low (less than 500KBs) If I try to access the image from the torrent post, right clicking and opening the image, I get error 500.
DSM is sinology's own operating system based on linux. I think I have found the ratio problem. It seems that torrents, not being private, do not connect with the tracker. I've tried to force them to be private with a mod here, but it gives a syntax error. On the other hand, I have noticed that downloads and uploads stop working at times. Sometimes they work again after a while. From what I see on the server, both the cpu and the ram are barely used. Finally I tried to change the connection limit to 3 in announce.php as it was giving connection limit error, and it seems that for now it has fixed that error and fixed the irregular download and upload problem (for now, I have to see if it happens again in the next few days)