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

for me it works well for uploader.php as such:
<?php
require_once("backend/functions.php");
dbconn(false);
loggedinonly();

stdhead("File Uploader");

if (!$CURUSER || $CURUSER["class"]<"3"){
    show_error_msg(T_("ERROR"), T_("SORRY_NO_RIGHTS_TO_ACCESS"), 1);
}

begin_frame("Partage De Fichier");
if ($CURUSER["class"] >= 3 && $CURUSER["class"]) {


$maxFileSize = 100 * 1024 * 1024; // This sets $maxFileSize to 100 MB. CHANGE THE 100 IF YOU WANT A NEW VALUE. Also Edit fileUploadScript using the same value
$maxFileSizeMB = $maxFileSize / (1024 * 1024); // Convert bytes to megabytes. DON"T TOUCH THIS!

?>  
<!DOCTYPE html>
<html lang="fr">
<head>
   <meta charset="UTF-8" http-equiv="refresh" content="100" border="none">
   <link rel="stylesheet" type="text/css" href="<?php echo $site_config['SITEURL'];?>/themes/<?php echo $THEME;?>/themes.css" />
   <title>Téléchargement de fichier</title>
   <script>
       function validateFile() {
           const fileInput = document.getElementById("fileToUpload");
           const fileSize = fileInput.files[0].size; // file size in bytes
           const maxFileSizeMB = <?php echo $maxFileSizeMB; ?>;
           const maxFileSizeBytes = maxFileSizeMB * 1024 * 1024; // convert to bytes

           if (fileSize > maxFileSizeBytes) {
               const fileSizeMB = Math.round(fileSize / (1024 * 1024));
               alert("File is too large. Maximum file size is " + maxFileSizeMB + " MB. Your file size is " + fileSizeMB + " MB.");
               return false; // prevent form submission
           }

           return true; // allow form submission
       }
   </script>
</head>

<body>
<br/>
<table border="0" cellpadding="3" class="table_table" width="55%" align="center"><tr>
   <td class="table_col1" align="center">
   <form action="fileUploadScript.php" method="post" enctype="multipart/form-data" onsubmit="return validateFile()">
   Partager Le Fichier:
       <input type="file" name="the_file" id="fileToUpload">
       <input type="submit" name="submit" value="Start Upload"><hr/><center>
       <?php
           $maxFileSizeMB = 100; // 100 MB
           $maxFileSizeBytes = $maxFileSizeMB * 1024 * 1024; // convert to bytes
           $fileExtensionsAllowed = ['jpeg','jpg','png','gif','ico','pdf','psd','rar','zip','php','txt']; // These will be the only file extensions allowed. Add/Remove as needed
           echo "<p>Taille de fichier maximale : " . $maxFileSizeMB . " MB</p>";
           echo "<p>Types autorisés: " . implode(', ', $fileExtensionsAllowed) . "</p>";
       ?></center>
   </form>
</td></tr></table>
</body>
</html>

<?php
$uploadDirectory = "/uploadedfiles/"; // Create this directory in your root. chmod 775

function formatBytes($bytes, $decimals = 2) {
 $size = array('B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'); // Overkill amounts of conversion, but thorough
 $factor = floor((strlen($bytes) - 1) / 3);
 return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . ' ' . @$size[$factor];
}

// Scan the upload directory for files
$files = scandir($_SERVER['DOCUMENT_ROOT'] . $uploadDirectory);

// Remove "." and ".." from the list of files
$files = array_diff($files, array('.', '..'));

// Display a list of all files found
echo '<br/><center><color="red">⚞ Les Fichiers Disponible ⚟</color></center><hr/>';

if (count($files) > 0):
?>  
<table cellpadding="5" class="table_table" width="85%" align="center">
<tr>
   <th class="table_head">Supp.</th>
   <th class="table_head">Taille</th>
   <th class="table_head">Nom Du Fichier / Téléchargement</th>
</tr>
<tr>

   <?php foreach ($files as $file): ?>
       <?php if (get_user_class() >= 3): ?>
           <form action="fileDeleteScript.php" method="post" style="display: inline-block;" onsubmit="return confirm('Êtes-vous sûr de vouloir supprimer ce fichier?');">
   <td class="table_col2" align="center"><input type="hidden" name="fileToDelete" value="<?= $file ?>"><button type="submit" name="delete" class="stylebouton" >Supprimer</button></td>
           </form>
<td class="table_col1" align="center">
           <?php endif; ?>
           <?php if (is_file($_SERVER['DOCUMENT_ROOT'] . $uploadDirectory . $file)): ?>
           <span style="font-size: 13px;">(<?= formatBytes(filesize($_SERVER['DOCUMENT_ROOT'] . $uploadDirectory . $file)) ?>)</span></td>
   <td class="table_col2" align="center" width="75%"><?php endif; ?>
           <a href="<?= $uploadDirectory . $file ?>" class="download-link"><?= $file ?></a></td>
</tr>
     <?php endforeach; ?>
</table>
 
<?php else: ?>
   <p><i>..Aucun fichier trouvé!</i></p>
<?php endif; ?>

<br/>
<?php } ?>

<?php
end_frame();
stdfoot();
?>

If it can help! ;)
donate_block.php — 2023-02-26 16:16:19 in v3 Support
a supprimer , merci!"
For those who have several themes like me, I recommend that you make this small modification
=====================
Pour ceux qui on plusieur themes comme moi je vous recomande de faire cette petite modification

In upload.php look for: / Dans upload.php chercher:
<meta charset="UTF-8">


Replace with: / Remplacer  par:
<meta charset="UTF-8" http-equiv="refresh" content="100" border="none">
   <link rel="stylesheet" type="text/css" href="<?php echo $site_config['SITEURL'];?>/themes/<?php echo $THEME;?>/themes.css" />


Big thanks MicroMonkey  👍
allo niki retire

require_once($_SERVER["DOCUMENT_ROOT"]."/backend/functions/functions.php"

et change pour

require_once("backend/functions.php");

Corriger les deux fichiers
Un gros merci / Big thanks !  👍  😊

at home all my torrents have fallen in red but in sharing
TT installer — 2022-12-20 23:54:49 in M-BiTsy Support
big thanks M-jay!  👍
Birthday V3 — 2022-12-18 12:53:58 in v3 Mods Requests
M-jay, thank you your idea is not bad  👍
Birthday V3 — 2022-12-18 12:52:48 in v3 Mods Requests
even the very often the world do to their head. hence the need to control by a js script
Birthday V3 — 2022-12-17 15:54:09 in v3 Mods Requests
hello Botanicar  😊

you always have a big heart! lol

It is installed on my site but what I am looking for is who can detect a date that is not valid for avoided who is a little comic who puts him at the age of 100 years and +

and I think who would be JS (java) to achieve that!!

Birthday V3 — 2022-12-15 23:16:09 in v3 Mods Requests
🤣  🤣  🤣  🤣  👍
Birthday V3 — 2022-12-15 22:32:55 in v3 Mods Requests
Hello

I propose which is the birthday mode in MYSQLI and update on the error side for which is resorbable ages to avoid only if the person does not want to put his age which is a reasonable age and not of the kind that the person is 120 years old

this mode is great but on this side it becomes unpleasant to manage

* If you like I can do the tester lol

(sorry for my english)

===========================================

Bonjour

Je propose qui est le mode anniversaire en MYSQLI et mise a jour coté erreur pour qui est des ages résorbable pour évité que si la  personne ne veux pas mettre son ages qui est un ages raisonnable et  non du genre que la personne a 120 ans

il est super ce mode mais de ce coté il deviens  désagréable a gérer

* Si ça vous dit je peux faire le testeur lol
Big Thanks you M-jay  👍
signature — 2022-12-13 22:46:43 in v3 Support
Good!

it works, I tested writing in text and it gave the error, I tested without the IMG tag and only URL and it gave me the error.

It has to be the letag and the url for it to work.

A big thank you to all of you!

RÉSOLU / SOLVED
signature — 2022-12-11 15:14:11 in v3 Support
Rien n'a fonctionné / Nothing worked
don't give up STorrents 2020, if needed I'm here!  😊  👍
origin I think!

<?php
// Please Note: Languages should not be implemented here...
             
error_reporting(E_ALL ^ E_NOTICE);
require_once("backend/mysql.php");
require_once("backend/config.php");
require_once("backend/mysql.class.php");

$GLOBALS["DBconnector"] = @mysqli_connect($mysql_host, $mysql_user, $mysql_pass) or err('dbconn: mysqli_connect: ' . mysqli_connect_error());
@mysqli_select_db($GLOBALS["DBconnector"],$mysql_db) or err('dbconn: mysqli_select_db: ' . mysqli_error($GLOBALS["DBconnector"]));

$MEMBERSONLY = $site_config["MEMBERSONLY"];
$MEMBERSONLY_WAIT = $site_config["MEMBERSONLY_WAIT"];

$_GET = array_map_recursive("unesc", $_GET);

//START FUNCTIONS
function array_map_recursive ($callback, $array) {
$ret = array();

if (!is_array($array))
return $callback($array);

foreach ($array as $key => $val) {
$ret[$key] = array_map_recursive($callback, $val);
}
return $ret;
}


function unesc($x) {
#if (get_magic_quotes_gpc())
return stripslashes($x);
return $x;
}

function is_valid_id($id) {
return is_numeric($id) && ($id > 0) && (floor($id) == $id);
}

function sqlesc($x) {
   return "'".mysqli_real_escape_string($GLOBALS["DBconnector"],$x)."'";
}

function err($msg) {
  mysqli_close($GLOBALS["DBconnector"]);
  return benc_resp_raw("d".benc_str("Raison de l'échec").benc_str($msg)."e");
}

function benc_str($s) {
return strlen($s) . ":$s";
}

function benc_int($i) {
return "i" . $i . "e";
}

function benc_resp_raw($x) {
header("Content-Type: text/plain");
header("Pragma: no-cache");

if (extension_loaded('zlib') && !ini_get('zlib.output_compression') && $_SERVER["HTTP_ACCEPT_ENCODING"] == "gzip") {
header("Content-Encoding: gzip");
echo gzencode($x, 9, FORCE_GZIP);
} else
print($x);

exit();
}

function gmtime() {
return strtotime(get_date_time());
}

function get_date_time($timestamp = 0) {
if ($timestamp)
return date("Y-m-d H:i:s", $timestamp);
else
return gmdate("Y-m-d H:i:s");
}

function portblacklisted($port) {
// direct connect
if ($port >= 411 && $port <= 413) return true;

// kazaa
if ($port == 1214) return true;

// gnutella
if ($port >= 6346 && $port <= 6347) return true;

// emule
if ($port == 4662) return true;

// winmx
if ($port == 6699) return true;

return false;
}

//////////////////////// NOW WE DO THE ANNOUNCE CODE ////////////////////////
                                             
// BLOCK ACCESS WITH WEB BROWSERS
$agent = $_SERVER["HTTP_USER_AGENT"];
if (preg_match("/^Mozilla|^Opera|^Links|^Lynx/i", $agent))
die("No");

//GET DETAILS OF PEERS ANNOUNCE
foreach (array("passkey","info_hash","peer_id","ip","event") as $x) {
       $GLOBALS[$x] = $_GET[$x];
}

foreach (array("port","downloaded","uploaded","left") as $x)
   $GLOBALS[$x] = 0 + $_GET[$x];

if (strpos($passkey, "?")) {
   $tmp = substr($passkey, strpos($passkey, "?"));
   $passkey = substr($passkey, 0, strpos($passkey, "?"));
   $tmpname = substr($tmp, 1, strpos($tmp, "=")-1);
   $tmpvalue = substr($tmp, strpos($tmp, "=")+1);
   $GLOBALS[$tmpname] = $tmpvalue;
}

foreach (array("passkey","info_hash","peer_id","port","downloaded","uploaded","left") as $x)
if (!isset($$x))
err("Missing key: $x");

if (strlen($peer_id) != 20)
err("Invalid peer_id");

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

   if (strlen($GLOBALS['info_hash']) == 20)
       $GLOBALS['info_hash'] = bin2hex($GLOBALS['info_hash']);
   else if (strlen($GLOBALS['info_hash']) != 40)
       err("Valeur de cette information est non valide.");
   $GLOBALS['info_hash'] = strtolower($GLOBALS['info_hash']);

if ($MEMBERSONLY){
if (strlen($passkey) != 32)
err("".T_("ANNOUNCE_INVALID_PASSKEY")." (" . strlen($passkey) . " -> $passkey)");
}

$ip = $_SERVER["REMOTE_ADDR"];

foreach(array("num want", "numwant", "num_want") as $k)
{
   if (isset($_GET[$k]))
   {
       $rsize = (int) $_GET[$k];
       break;
   }
}

//PORT CHECK
if (!$port || $port > 0xffff)
   err("Le port invalide");

//TRACKER EVENT CHECK
if (!isset($event))
   $event = "";

$seeder = ($left == 0) ? "yes" : "no";

//Agent Ban
$agentarray = array_map("trim", explode(",", $site_config["BANNED_AGENTS"]));
$useragent = substr($peer_id, 0, 8);
foreach($agentarray as $bannedclient)
if (@strpos($useragent, $bannedclient) !== false)
err("Le client est banni");
//End Agent Bans

//Agent Ban
#include("backend/dagent.class.php");
//dbconn(true);
#new UserAgent($_SERVER["HTTP_USER_AGENT"]);
//End Agent Bans


if (portblacklisted($port))
err("Port $port est sur la liste noire.");
$userfields = "u.id, u.class, u.uploaded, u.downloaded, u.ip, u.passkey, g.can_download, u.vacance"; //user details to get            
$peerfields = "seeder, UNIX_TIMESTAMP(last_action) AS ez, peer_id, ip, port, uploaded, downloaded, userid, passkey"; //peers details to get
$torrentfields = "id, info_hash, banned, freeleech, safe, seeders + leechers AS numpeers, UNIX_TIMESTAMP(added) AS ts, seeders, leechers, times_completed"; //torrent details to get

$userid = 0;
if ($MEMBERSONLY){
//check passkey is valid, and get users details
$res = SQL_Query_exec("SELECT $userfields FROM users u INNER JOIN groups g ON u.class = g.group_id WHERE u.passkey=".sqlesc($passkey)." AND u.enabled = 'yes' AND u.status = 'confirmed' LIMIT 1") or err("Impossible d'obtenir les détails du membre");
$user = mysqli_fetch_assoc($res);
//Mod vacance
if ($user["vacance_time"] == "yes") err(T_("ERROR"), $last_time, 0);
if (!$user)
err("Impossible de localiser un utilisateur avec cette passkey!");
   if ($user["can_download"] == "no")
       err("Vous avez pas la permission de télécharger.");
$userid = $user["id"]; //etc
}


//check torrent is valid and get torrent fields
$res = SQL_Query_exec("SELECT $torrentfields FROM torrents WHERE info_hash=".sqlesc($info_hash)) or err("Impossible de pouvoir obtenir les détails du torrent");
$torrent = mysqli_fetch_assoc($res);

if (!$torrent)
   err("Torrent introuvable sur ce traqueur - hash = " . $info_hash);
//if ($torrent["banned"]=='yes')
if ($torrent["banned"]=='yes'  OR $torrent["safe"]=='no')
   err("Torrent a été interdit - hash = " . $info_hash);
$torrentid = $torrent["id"];


//Now get data from peers table
$peerlimit = 50;
$numpeers = $torrent["numpeers"];
if ($numpeers > $peerlimit){
   $limit = "ORDER BY RAND() LIMIT $peerlimit";
}else{
   $limit = "";
}
$res = SQL_Query_exec("SELECT $peerfields FROM peers WHERE torrent = $torrentid $limit") or err("Erreur de sélection des pairs");

//DO SOME BENC STUFF TO THE PEERS CONNECTION
$resp = "d8:completei$torrent[seeders]e10:downloadedi$torrent[times_completed]e10:incompletei$torrent[leechers]e";
$resp .= benc_str("interval") . "i" . $site_config['announce_interval'] . "e" . benc_str("min interval") . "i300e" . benc_str("peers");
unset($self);
while ($row = mysqli_fetch_assoc($res)) {
if ($row["peer_id"] === $peer_id) {
$self = $row;
continue;
}

$peers .= "d" . benc_str("ip") . benc_str($row["ip"]);
       if (!$no_peer_id)
$peers .= benc_str("peer id") . benc_str($row["peer_id"]);
       $peers .= benc_str("port") . "i" . $row["port"] . "ee";
}
$resp .= "l{$peers}e";
$resp .= "ee";

$selfwhere = "torrent = $torrentid AND peer_id = ".sqlesc($peer_id);



// FILL $SELF WITH DETAILS FROM PEERS TABLE (CONNECTING PEERS DETAILS)
if (!isset($self)){

//check passkey isnt leaked
if ($MEMBERSONLY) {
$valid = @mysqli_fetch_row(@SQL_Query_exec("SELECT COUNT(*) FROM peers WHERE torrent=$torrentid AND passkey=" . sqlesc($passkey)));

if ($valid[0] >= 1 && $seeder == 'no')
err("Limite de connexion dépassée! Vous ne pouvez vous débarrasser que d'un endroit à la fois.");

if ($valid[0] >= 3 && $seeder == 'yes')
err("Limite de connexion dépassée!");
}

$res = SQL_Query_exec("SELECT $peerfields FROM peers WHERE $selfwhere");
$row = mysqli_fetch_assoc($res);
if ($row){
       $self = $row;
}
}
// END $SELF FILL


//IF PEER IS NOT IN PEERS TABLE DO THE WAIT TIME CHECK
if (!isset($self)){
if ($MEMBERSONLY_WAIT && $MEMBERSONLY){
//wait time check
if($left > 0 && in_array($user["class"], explode(",",$site_config["WAIT_CLASS"]))){ //check only leechers and lowest user class
$gigs = $user["uploaded"] / (1024*1024*1024);
$elapsed = floor((gmtime() - $torrent["ts"]) / 3600);
$ratio = (($user["downloaded"] > 0) ? ($user["uploaded"] / $user["downloaded"]) : 1);
if ($ratio == 0 && $gigs == 0) $wait = $site_config["WAITA"];
elseif ($ratio < $site_config["RATIOA"] || $gigs < $site_config["GIGSA"]) $wait = $site_config["WAITA"];
elseif ($ratio < $site_config["RATIOB"] || $gigs < $site_config["GIGSB"]) $wait = $site_config["WAITB"];
elseif ($ratio < $site_config["RATIOC"] || $gigs < $site_config["GIGSC"]) $wait = $site_config["WAITC"];
elseif ($ratio < $site_config["RATIOD"] || $gigs < $site_config["GIGSD"]) $wait = $site_config["WAITD"];
else $wait = 0;
if ($elapsed < $wait)
err("Temps en attente... (" . ($wait - $elapsed) . " jours) - Visiter le ".$site_config["SITEURL"]." pour en savoir plus.");
}
}
$sockres = @fsockopen($ip, $port, $errno, $errstr, 5);
if (!$sockres)
$connectable = "no";
else
$connectable = "yes";
@fclose($sockres);

}else{

   #$elapsed = ($self['seeder'] == 'yes') ? $site_config['announce_interval'] - floor(($self['ez'] - time()) / 60) : 0;
   $upthis = max(0, $uploaded - $self["uploaded"]);
$downloaded = max(0, $data[‘downloaded’] - $peer_row[‘downloaded’]);
   #$downthis = max(0, $downloaded - $self["downloaded"]);

   #if (($upthis > 0 || $downthis > 0 || $elapsed > 0) && is_valid_id($userid)){ // LIVE STATS!)
if (($upthis > 0 || $downthis > 0) && is_valid_id($userid)){ // LIVE STATS!)

#if ($upthis < 0) $upthis = 0;
if ($torrent["freeleech"] == 1){
SQL_Query_exec("UPDATE users SET uploaded = uploaded + $upthis WHERE id=".sqlesc($userid)."");
}else{
SQL_Query_exec("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + $downthis WHERE id=".sqlesc($userid)."") or err("Tracker error: Unable to update stats");
}
   #SQL_Query_exec("UPDATE LOW_PRIORITY `snatched` SET `uload` = `uload` + '$upthis', `dload` = `dload` + '$downthis', `utime` = '".gmtime()."', `ltime` = `ltime` + '$elapsed' WHERE `tid` = '$torrentid' AND `uid` = '$userid'");
   }
}//END WAIT AND STATS UPDATE

$updateset = array();

////////////////// NOW WE DO THE TRACKER EVENT UPDATES ///////////////////

if ($event == "stopped") { // UPDATE "STOPPED" EVENT
      SQL_Query_exec("DELETE FROM peers WHERE $selfwhere");
      if (mysqli_affected_rows($GLOBALS["DBconnector"])){
          if ($self["seeder"] == "yes")
              $updateset[] = "seeders = (CASE WHEN (seeders < 1) THEN 0 ELSE (seeders - 1) END)";
          else
               $updateset[] = "leechers = (CASE WHEN (leechers < 1) THEN 0 ELSE (leechers - 1) END)";
      }
}

if ($event == "completed") { // UPDATE "COMPLETED" EVENT    
  $updateset[] = "times_completed = times_completed + 1";

if ($MEMBERSONLY)
{
SQL_Query_exec("INSERT INTO completed (userid, torrentid, date) VALUES ($userid, $torrentid, '".get_date_time()."')");
}
}//END COMPLETED

if (isset($self)){// NO EVENT? THEN WE MUST BE A NEW PEER OR ARE NOW SEEDING A COMPLETED TORRENT
 
  SQL_Query_exec("UPDATE peers SET ip = " . sqlesc($ip) . ", passkey = " . sqlesc($passkey) . ", port = $port, uploaded = $uploaded, downloaded = $downloaded, to_go = $left, last_action = '".get_date_time()."', client = " . sqlesc($agent) . ", seeder = '$seeder' WHERE $selfwhere");

  if (mysqli_affected_rows($GLOBALS["DBconnector"]) && $self["seeder"] != $seeder){
      if ($seeder == "yes"){
          $updateset[] = "seeders = (CASE WHEN (seeders < 1) THEN 0 ELSE (seeders - 1) END)";
           $updateset[] = "leechers = (CASE WHEN (leechers < 1) THEN 0 ELSE (leechers - 1) END)";
      } else {
          $updateset[] = "seeders = (CASE WHEN (seeders < 1) THEN 0 ELSE (seeders - 1) END)";
          $updateset[] = "leechers = (CASE WHEN (leechers < 1) THEN 0 ELSE (leechers - 1) END)";
      }
  }

} else {

   $ret = SQL_Query_exec("INSERT INTO peers (connectable, torrent, peer_id, ip, passkey, port, uploaded, downloaded, to_go, started, last_action, seeder, userid, client) VALUES ('$connectable', $torrentid, " . sqlesc($peer_id) . ", " . sqlesc($ip) . ", " . sqlesc($passkey) . ", $port, $uploaded, $downloaded, $left, '".get_date_time()."', '".get_date_time()."', '$seeder', '$userid', " . sqlesc($agent) . ")");

   if ($ret){
       if ($seeder == "yes")
           #$updateset[] = "seeders = seeders + 1";
   $updateset[] = "seeders = (CASE WHEN (seeders < 1) THEN 0 ELSE (seeders - 1) END)";
       else
           #$updateset[] = "leechers = leechers + 1";
   $updateset[] = "leechers = (CASE WHEN (leechers < 1) THEN 0 ELSE (leechers - 1) END)";
   }
}

//////////////////    END TRACKER EVENT UPDATES ///////////////////

// SEEDED, LETS MAKE IT VISIBLE THEN
if ($seeder == "yes") {
   if ($torrent["banned"] != "yes") // DONT MAKE BANNED ONES VISIBLE
   $updateset[] = "visible = 'yes'";
   $updateset[] = "last_action = '".get_date_time()."'";
}

// NOW WE UPDATE THE TORRENT AS PER ABOVE
if (count($updateset))
   SQL_Query_exec("UPDATE torrents SET " .join(",", $updateset). " WHERE id=$torrentid") or err("Erreur du tracker: impossible de mettre a jour le torrent") or die(mysqli_error($GLOBALS["DBconnector"]));
   #SQL_Query_exec("UPDATE torrents SET " . join(",", $updateset) . " WHERE id=$torrentid") or die(mysqli_error($GLOBALS["DBconnector"]));

// NOW BENC THE DATA AND SEND TO CLIENT???
benc_resp_raw($resp);
mysqli_close($GLOBALS["DBconnector"]);
?>
no errors and the torrents after a reboot everything came back green and shared.
    #$elapsed = ($self['seeder'] == 'yes') ? $site_config['announce_interval'] - floor(($self['ez'] - time()) / 60) : 0;
   $upthis = max(0, $uploaded - $self["uploaded"]);
$downloaded = max(0, $data[‘downloaded’] - $peer_row[‘downloaded’]);
       #$downthis = max(0, $downloaded - $self["downloaded"]);

   #if (($upthis > 0 || $downthis > 0 || $elapsed > 0) && is_valid_id($userid)){ // LIVE STATS!)
if (($upthis > 0 || $downthis > 0) && is_valid_id($userid)){ // LIVE STATS!)

#if ($upthis < 0) $upthis = 0;
if ($torrent["freeleech"] == 1){
SQL_Query_exec("UPDATE users SET uploaded = uploaded + $upthis WHERE id=".sqlesc($userid)."");
}else{
SQL_Query_exec("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + $downthis WHERE id=".sqlesc($userid)."") or err("Tracker error: Unable to update stats");
}
   #SQL_Query_exec("UPDATE LOW_PRIORITY `snatched` SET `uload` = `uload` + '$upthis', `dload` = `dload` + '$downthis', `utime` = '".gmtime()."', `ltime` = `ltime` + '$elapsed' WHERE `tid` = '$torrentid' AND `uid` = '$userid'");
   }
}//END WAIT AND STATS UPDATE
signature — 2022-12-09 22:08:17 in v3 Support
Je commence a mis perde!  / I'm starting to lose!  😊

Ligne #750 /#760
signature — 2022-12-06 21:35:27 in v3 Support
I find nothing of what you suggest to search in the bbcode file on my side I want to integrate it into the account.php file

    // Valide signature to tag IMG My M-jay 2022
   if ($_POST["signature"] != '') {
       $has_bbcode = substr($_POST['signature'], 5);
       $has_bbcode = substr($has_bbcode, 0, -6);
           if (filter_var($has_bbcode, FILTER_VALIDATE_URL)) {
              $signature = $_POST["signature"];
              //echo("$_POST[signature] is a success");
           } else {
              die("Votre Url de votre image de signature est pas valide.");
          }
       }
   // End Valide signature



	   print('<font size=5 color=red>ne pas utilisé, en construction !!</font><br/>
      <form id="submit" method="post" action="account.php">
          Result = '.$signature.'<br/>
          <input type="text" name="link" placeholder="image link only"><br>
          <button type="submit">submit</button>
      </form><br/>');


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