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
Proposal
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / General / General Chat

2022-03-02 17:33:31
I would like to make a proposal that we focus on one of the many fronts we are tightening right now.

First of all, I want ONE (1) stable script as a reference point for all of us who want to help with development

When we have this stable script, we can step by step present our improvements, designs, ideas with concrete things with detailed description

Right now we have many shoutbox/forum posts there, myself, can not actually orient myself at all

M-jay can provide those who do not know the actual "structure" of the new script a "map" of what stuff is located where

Hope it can be a good start for all of us

Greetings to everyone involved in this project


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
Last edited by Botanicar on 2022-03-02 17:34:22
2022-03-04 17:28:34
Made a start on docs, I'll see if I can find files and post this weekend
2022-03-08 04:35:40
Get a API too, it opens the doors for developers looking to plug into the feeds
2022-03-08 09:58:39
My first suggestion I got from my uploaders was that you can choose more than just one movie / TV Show categories.
Instead of select, we can implement radio buttons (or similar) so that they can select categories the file has regardless of what iMDB or TMDB says.

I myself would prefer to avoid their direct contact to my tracker (in addition to some services rating or trailer but it can be fixed with YT trailer anyway)


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
Last edited by Botanicar on 2022-03-08 09:59:29
2022-03-09 03:39:21
Introduce caching! I've had my index memcached with upwards of 2MB buckets cached and its a toggle that users turn on or off to cache peers/stats/rows on demand.

MemcacheD is so easy to use and the query array to pull up torrent data just gets copied to memory so you are only using set/get methods to store or retrieve results. Highly recommended for busy trackers. Alternatively, you can implement APC caching.
2022-03-09 13:52:17
@STorrents2020

exactly what happened to me on njalla server, have used memcached port 11211 as usual and then "hung up" someone from China and consumed my bandwith for 6 months in 3 hours.
Since then had to change port number and of course server as well


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2022-03-10 18:54:03
Botanicar:
My first suggestion I got from my uploaders was that you can choose more than just one movie / TV Show categories.Instead of select, we can implement radio buttons (or similar) so that they can select categories the file has regardless of what iMDB or TMDB says.
I myself would prefer to avoid their direct contact to my tracker (in addition to some services rating or trailer but it can be fixed with YT trailer anyway)


ideally this would be tags i like this idea so ill see if i can find some examples hopefully where you type- having loads of buttons could get pretty big
TMDB can be turned off in admin settings
Last edited by M-jay warn on 2022-03-11 07:15:29
2022-03-11 07:15:42
something like this https://torrenttrader.uk/atest  🤓  seems to be pretty simple - maybe you could add file type, bit-rate, quality etc just playing around with database interaction at minute
2022-03-11 08:48:06
Perfect M-jay nice and easy as always


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2022-03-11 12:30:21
added admin bit as well - ill mess around this weekend - going well so far just a matter of joining tables now


a quick start on building pages as well ill keep adding examples https://torrenttrader.uk/docs/controllers

updated
added search for tags as well


ill update github tomorrow & and ill re-write mod into one controller to add to wiki for another example   👍
Last edited by M-jay warn on 2022-03-12 22:00:50
2022-03-20 06:00:12
added to github https://github.com/M-jay84/M-BiTsy/commit/623adedb389b38b780fc54bed1a250ce481fe7f1
2022-03-21 17:52:12
From some reason I got a white page now.
https://louie.eu.org/check.php working well but index page is blank


wrrrrhhhhhh

show must go on


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2022-03-21 20:38:19
New check.php some small changes for that file:





<?php
// Check PHP ini Settings
if (isset($_GET["phpinfo"]) == 1) {
   echo "<br /><center><a href='check.php' class='btn btn-success'>Back To Check</a></center><br>";
   phpinfo();
   die();
}

function get_php_setting($val)
{
   $r = (ini_get($val) == '1' ? 1 : 0);
   return $r ? 'ON' : 'OFF';
}

function writableCell($folder, $relative = 1, $text = '')
{
   $writeable = '<b><font color="green">Writeable</font></b>';
   $unwriteable = '<b><font color="red">Unwriteable</font></b>';

   echo '<tr>';
   echo '<td>' . $folder . '</td>';
   echo '<td align="right">';
   if ($relative) {
       echo is_writable("./$folder") ? $writeable : $unwriteable;
   } else {
       echo is_writable("$folder") ? $writeable : $unwriteable;
   }
   echo '</td>';
   echo '</tr>';
}

require_once "../app/config/config.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET ?>">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">

<style>
body {
background: #fafafa url(https://jackrugile.com/images/misc/noise-diagonal.png);
color: #444;
font: 100%/30px 'Helvetica Neue', helvetica, arial, sans-serif;
text-shadow: 0 1px 0 #fff;
}

strong {
font-weight: bold;
}

em {
font-style: italic;
}

table {
background: #f5f5f5;
border-collapse: separate;
box-shadow: inset 0 1px 0 #fff;
font-size: 12px;
line-height: 24px;
margin: 30px auto;
text-align: left;
width: 800px;
}

th {
background: url(https://jackrugile.com/images/misc/noise-diagonal.png), linear-gradient(#777, #444);
border-left: 1px solid #555;
border-right: 1px solid #777;
border-top: 1px solid #555;
border-bottom: 1px solid #333;
box-shadow: inset 0 1px 0 #999;
color: #fff;
 font-weight: bold;
padding: 10px 15px;
position: relative;
text-shadow: 0 1px 0 #000;
}

th:after {
background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.08));
content: '';
display: block;
height: 25%;
left: 0;
margin: 1px 0 0 0;
position: absolute;
top: 25%;
width: 100%;
}

th:first-child {
border-left: 1px solid #777;
box-shadow: inset 1px 1px 0 #999;
}

th:last-child {
box-shadow: inset -1px 1px 0 #999;
}

td {
border-right: 1px solid #fff;
border-left: 1px solid #e8e8e8;
border-top: 1px solid #fff;
border-bottom: 1px solid #e8e8e8;
padding: 10px 15px;
position: relative;
transition: all 300ms;
}

td:first-child {
box-shadow: inset 1px 0 0 #fff;
}

td:last-child {
border-right: 1px solid #e8e8e8;
box-shadow: inset -1px 0 0 #fff;
}

tr {
background: url(https://jackrugile.com/images/misc/noise-diagonal.png);
}

tr:nth-child(odd) td {
background: #f1f1f1 url(https://jackrugile.com/images/misc/noise-diagonal.png);
}

tr:last-of-type td {
box-shadow: inset 0 -1px 0 #fff;
}

tr:last-of-type td:first-child {
box-shadow: inset 1px -1px 0 #fff;
}

tr:last-of-type td:last-child {
box-shadow: inset -1px -1px 0 #fff;
}

tbody:hover td {
color: transparent;
text-shadow: 0 0 3px #aaa;
}

tbody:hover tr:hover td {
color: #444;
text-shadow: 0 1px 0 #fff;
}
</style>
<title>Check</title>
</head>
<body>

<div class="wrap" align="center">
<b>Config Check</b><br><br>
<input type="button" class="button" value="Check Again" onclick="window.location=window.location" /><br /><br />
<a href="check.php?phpinfo=1" class="btn btn-success">PHPInfo</a><br /><br />
<a href='index.php' class='btn btn-warning'>Return to homepage</a>
</div><br />
<table>
<tr>
<td>
<b>Required Settings Check:</b><br />
<p>If any of these items are highlighted in red then please take actions to correct them. <br />
Failure to do so could lead to your installation not functioning correctly.</p>
</td>
</tr>
</table>
<table>
<tr>
<td>&nbsp; - PHP version >= 8</td>
<td> <?php
   echo phpversion() < '8' ? '<b><font color="red">No</font> 8 or above required</b>' : '<b><font color="green">Yes</font></b>';
   echo " - Your PHP version is " . phpversion(); ?>
</td>
</tr>
<tr>
<td>&nbsp; - PDO Ext</td>
<td><?php echo extension_loaded('PDO') ? '<b><font color="green">Available</font></b>' : '<b><font color="red">Unavailable</font></b>'; ?></td>
</tr>
<tr>
<td>&nbsp; - sockets support</td>
<td><?php echo extension_loaded('sockets') ? '<b><font color="green">Available</font></b>' : '<b><font color="red">Unavailable</font></b>'; ?></td>
</tr>
<tr>
<td>&nbsp; - check mb support</td>
<td><?php echo extension_loaded('mbstring') ? '<b><font color="green">Available</font></b>' : '<b><font color="red">Unavailable</font></b>'; ?></td>
</tr>
<tr>
<td>&nbsp; - zlib compression support</td>
<td><?php echo extension_loaded('zlib') ? '<b><font color="green">Available</font></b>' : '<b><font color="red">Unavailable</font></b>'; ?></td>
</tr>
<tr>
<td>&nbsp; - XML support</td>
<td><?php echo extension_loaded('xml') ? '<b><font color="green">Available</font></b>' : '<b><font color="red">Unavailable</font></b>'; ?></td>
</tr>
<tr>
<td>&nbsp; - curl support (Not required but external torrents may scrape faster)</td>
<td><?php echo function_exists('curl_init') ? '<b><font color="green">Available</font></b>' : '<b><font color="red">Unavailable</font></b>'; ?></td>
</tr>
<tr>
<td>&nbsp; - openSSL (for the torrent encryption mod)</td>
<td><?php echo extension_loaded('openssl') ? '<b><font color="green">Available</font></b>' : '<b><font color="red">Unavailable</font></b>'; ?></td>
</tr>
<tr>
<td>&nbsp; - bcmath support (Required for IPv6)</td>
<td><?php echo extension_loaded('bcmath') ? '<b><font color="green">Available</font></b>' : '<b><font color="red">Unavailable</font></b>'; ?></td>
</tr>
<tr>
<td>app/config/config.php</td>
<td> <?php
   if (@file_exists('../config/config.php') && @is_writable(APPROOT.'/config/config.php')) {
       echo '<b><font color="red">Writeable</font></b><br />Warning: leaving app/config/config.php writeable is a security risk';
   } else {
       echo '<b><font color="green">Unwriteable</font></b>';
   } ?>
</td>
</tr>
<tr>
<td>Document Root<br /><i><font size="1">(Use this for your PATHS in app/config/config.php)</font></i></td>
<td><?php echo str_replace('\\', '/', getcwd()) ?></td>
</tr>
</table>
<table>
<tr>
<td>

<p>These settings are recommended for PHP in order to ensure full compatibility!.
However, it will still operate if your settings do not quite match the recommended.</p>
</td>
</tr>
</table>

<table cellpadding="3" cellspacing="1" style="border-collapse: collapse" border="1">
<tr><th width="500px">Directive</th><th>Recommended</th><th>Actual</th></tr> <?php
$php_recommended_settings = array(
   array('Safe Mode', 'safe_mode', 'OFF'),
   array('Display Errors (Can be off, but does make debugging difficult.)', 'display_errors', 'ON'),
   array('File Uploads', 'file_uploads', 'ON'),
   array('Register Globals', 'register_globals', 'OFF'),
   array('Output Buffering', 'output_buffering', 'OFF'),
   array('Session auto start', 'session.auto_start', 'OFF'),
   array('allow_url_fopen (Required for external torrents)', 'allow_url_fopen', 'ON'),
);
foreach ($php_recommended_settings as $phprec) { ?>
<tr>
<td><?php echo $phprec[0]; ?>:</td>
<td><?php echo $phprec[2]; ?>:</td>
<td><b> <?php
   if (get_php_setting($phprec[1]) == $phprec[2]) { ?>
<font color="green"> <?php
   } else { ?>
<font color="red"> <?php
   }
   echo get_php_setting($phprec[1]); ?>
   </font></b></td>
   </tr> <?php
} ?>
</table>
<table>
<tr>
<td>
<p>Directory and File Permissions Check:</p>
</td>
</tr>
</table>
<table cellpadding="3" cellspacing="1" style='border-collapse: collapse' border="1" > <?php
writableCell('uploads/avatars');
writableCell('uploads/thumbnail'); ?>
</table>
<table>
<tr>
<td>

<?php

echo "<p>DB Connection Check:<p>";
try {
   $link = new PDO('mysql:host=' . DB_HOST . ';dbname=' . DB_NAME, DB_USER, DB_PASS);
   $link->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
   echo "<font color='#ff0000'><b>Failed to connect to database:</b></font> (%d) %s<br />" . $e->getMessage();
}
echo "<font color='#00cc00'><b>Database Connect </b></font>";

echo "<p>Check SQL Mode:<p>";
$stmt = $link->query("SHOW VARIABLES LIKE 'sql_mode'")->fetch();
if (!$stmt) {
   echo "<font color='#ff0000'><b>SQL Mode:</b></font>&nbsp;&nbsp;";
   echo "Error Getting SQL Mode<br><br>";
} else {
echo "<font color='#00cc00'><b>SQL Mode:</b></font>&nbsp;&nbsp;";
   echo $stmt[1]."<br><br>";
}

echo "<p>Table Status Check:<p>";
echo "</td></tr></table>";
$stmt = $link->prepare("SHOW TABLES");
$stmt->execute();
if (!$stmt) {
   echo "<font color='#ff0000'><b>Failed to list tables:</b></font>";
} else {
   $tables = array();
   while ($rr = $stmt->fetch()) {
       $tables[] = $rr[0];
   }
   $arr = ["addedrequests","attachments","bans","bookmarks","bonus","blocks","categories","censor","clients","comments","completed"
           ,"countries","email_bans","faq","files","forumcats","forum_posts","forum_forums","forum_readposts"
           ,"forum_topics","friends","groups","guests","iplog","languages","likes","log","messages","news"
           ,"peers","pollanswers","polls","ratings","reports","requests","rules","snatched","shoutbox","staffmessages"
           ,"stylesheets","tasks","teams","thanks","tmdb","torrentlang","torrents","users","warnings"];
   echo "<table cellpadding='3' cellspacing='1' style='border-collapse: collapse' border='1'>";
   echo "<tr><th>Table</th><th>Status</th></tr>";
   foreach ($arr as $t) {
       if (!in_array($t, $tables)) {
           echo "<tr><td>$t</td><td align='right'><font color='#ff0000'><b>MISSING</b></font></td></tr>";
       } else {
           echo "<tr><td>$t</td><td align='right'><font color='green'><b>OK</b></font></td></tr>";
       }
   }
   echo "</table>";
}
$link = null; ?>
</body>
</html>




www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
Last edited by Botanicar on 2022-03-21 20:39:12
2022-04-04 22:17:33
Hi M-jay, can you upload a official script who's working on PHP8 (can't install latest version at all)
I have a old version and it works only on PHP7 when I switch to PHP8 I got a blank page

Regards


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2022-04-09 09:06:19
for update backup files first & just delete 3 files from downloaded github project

1) ht.access
2) public_html/ht.access
3) app/config/config.php

i removed the themes as well now there is just default, on louie.eu its the darktheme that would need changing on the stylesheet table to default & the old darktheme will be on the users table stylesheet column or add default in admincp/theme management before updating

any issues look at the data/logs/exception log - search for call stack that line will show any issues  👍
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: 8
  • Members: 0
  • Guests online: 8
  • Comments: 3
  • Messages: 1,728