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

thanks STorrents2020
Résolu !

Merci Gollum !

****************************//

Solved!

Thank you Golum!
Bonjour

#1 Merci beaucoup Gollum, fonctionne très bien.
#2  Avant installation faite vous un fichier teste avec phpinfo() et assurez-vous que vous que vous avez la fonction php-curl


Super mode, merci encore.

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

Hello

#1 Thank you very much Gollum, works great.
#2 Before installation, make a test file with phpinfo() and make sure you have the php-curl function


Great fashion, thanks again.
Wow, merci Gollum, je test tout çà dès j'ai plus de temps
=========================================
Wow, thanks Gollum, I'll test all that as soon as I have more time
effectivement Gollum j’ai chercher sur les fichiers et j’ai rien trouver de ses colonne sql
pour ceux dans config  ils y sont dans cleanup mais juste hnr_stop_dl n'est pas la !
faut t'il les supprimer ou il devrai porter un autre nom ????

-------------------

indeed Gollum I searched on the files and I found nothing of its sql columns
for those in config they are there in cleanup but just hnr_stop_dl is not there!
should they be deleted or should they have another name ????

indeed Gollum I searched on the files and I never found the hitrun, hitrunwarn and hitruns sql requests in users
Merci Gollum
$res = SQL_Query_exec("SELECT COUNT(*) FROM snatched where hnr='yes'"); //update by Gollum
I had link v3 /admincp.php?action=pending invite

correction made, thank you very much

but it is possible to have in the invite.php part a validation input tag that as soon as it is validated that there is an automatic email sent to the person I have just validated?
like for the change of are email in the account, I have an automatic email to confirm the change of my email, you understand?...
hello M-jay sorry for waiting for reply lol

I had to do my inpot and format my pc, lol

good... first of all, I don't have the lines to ask to search on signup, but I tried to install it anyway and it didn't work, it gave me the error "strange code are you sure"

but if you could just give me a line of code to add for the validation to the email of my validation of the new subscriber who draws him! to have confirmation that I have validated them, it would be easier than to mess up the invitation system by code which works well, but which does not send confirmation to the guest as said above.
 here is the error image of your new invitation mode
I give you the files and the _block I made to send by email the invitation

SQL :
[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 utf8_bin NOT NULL DEFAULT '',
 `time_invited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
 `confirmed` char(3) COLLATE utf8_bin NOT NULL DEFAULT 'no',
 PRIMARY KEY (`id`),
 KEY `inviter` (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=182 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

ALTER TABLE `users` ADD `invited_by` int(10) NOT NULL default '0';
ALTER TABLE `users` ADD  `invites` smallint(4) NOT NULL default '3';


config.php  :
// Mod invite code
$site_config['INVITE_TIMEOUT'] = '604800';  //Sur (7 Jours...)
$site_config['INVITEONLY'] = true;   //Seulement permettent inscriptions via invitent ->IMPORTENT
$site_config['ENABLEINVITES'] = true;   // Activer invite indépendamment du paramètre INVITEONLY

ago takeconfirm.php
<?php
require_once("backend/functions.php");
dbconn();
$id = (int) $_GET["id"];
if (!@count($_POST['conusr'])) autolink("invite.php", "Nothing Selected.");
SQL_Query_exec("UPDATE invites SET confirmed='yes' WHERE inviteid IN (" . implode(", ", $_POST['conusr']) . ") AND confirmed='no'");
SQL_Query_exec("UPDATE users SET status = 'confirmed' WHERE id IN (" . implode(", ", $_POST['conusr']) . ") AND status='pending'");
SQL_Query_exec("UPDATE users SET uploaded='2150000000' WHERE id IN (" . implode(", ", $_POST['conusr']) . ") AND uploaded='0'");
$result = SQL_Query_exec("SELECT * from users WHERE username = '".$CURUSER['username']."'");
while ($row = mysqli_fetch_array($result)){ $old_upload_value = $row['uploaded'] + 2150000000; }
SQL_Query_exec("UPDATE users SET uploaded='$old_upload_value' WHERE username = '".$CURUSER['username']."'");
header("Refresh: 0; url=invite.php?id=$id");
?>


takeinvite.php:
<?php
require_once("backend/functions.php");


dbconn();

function bark($msg) {
stdhead();
show_error_msg("Invitation failed!", $msg);
stdfoot();
exit;
}

$id = 0 + $_GET["id"];

if ($id == 0){
$id = $CURUSER["id"];
}
if (get_user_class() <= 6)
$id = $CURUSER["id"];


$re = SQL_Query_exec("SELECT invites FROM users WHERE id = $id") or sqlerr();
$tes = mysql_fetch_assoc($re);
if ($tes[invites] <= 0)
show_error_msg("Vous avez aucune invitation!");





$ret = SQL_Query_exec("SELECT username FROM users WHERE id = $id") or sqlerr();
$arr = mysql_fetch_assoc($ret);


$hash = md5(mt_rand(1,1000000));

SQL_Query_exec("INSERT INTO invites (inviter, invite, time_invited) VALUES ('$id', '$hash', '" . get_date_time() . "')");
SQL_Query_exec("UPDATE users SET invites = invites - 1 WHERE id = $id") or sqlerr(__FILE__, __LINE__);


header("Refresh: 0; url=invite.php?id=$id");


?>

great all that but I just want the member once I validate them, can have this if he has an email to tell him who is validated. 😉


if you can add a confirmation link as for the email change mode, I say no lol

To come back to your change, you should test it and make it available for v3, I think it's a great idea, even if it's not my request here, you had a good idea and it would be nice to put it into action.  💣  👍
thanks M-jay

but I have no request line in my invite.php file lol
M-jay:
For clarification is this after admin confirm users - we just need to add mail here is admincp
      autolink("admincp.php?action=confirmreg", "Entries Confirmed");
Is this right and ill play with it  👍  


thanks for your help 😉
But I'm not talking about the invitation code by email but him by code in admincp in invite.php

and the mode i have in admincp is him and i can just delete:
#======================================================================#
# Invited Users - Created by djhowarth
#======================================================================#
if ($action == "invited")
{
   if ($do == "del")
   {
       if (!@count($_POST["users"])) show_error_msg(T_("ERROR"), "Rien de sélectionné.", 1);

       $ids = array_map("intval", $_POST["users"]);
       $ids = implode(", ", $ids);
       
       $res = SQL_Query_exec("SELECT u.id, u.invited_by, i.invitees FROM users u LEFT JOIN users i ON u.invited_by = i.id WHERE u.status = 'pending' AND u.invited_by != '0' AND u.id IN ($ids)");
       while ($row = mysqli_fetch_assoc($res))
       {    
            # We remove the invitee from the inviter and give them back there invite.
            $invitees = str_replace("$row[id] ", "", $row["invitees"]);
            SQL_Query_exec("UPDATE `users` SET `invites` = `invites` + 1, `invitees` = '$invitees' WHERE `id` = '$row[invited_by]'");
            deleteaccount($row['id']);
       }

       autolink("admincp.php?action=invited", "Entrées supprimées");
   }
   
   $count = get_row_count("users", "WHERE status = 'confirmed' AND invited_by != '0'");
   
   list($pagertop, $pagerbottom, $limit) = pager(25, $count, 'admincp.php?action=invited&');  
                                                                   
   $res = SQL_Query_exec("SELECT u.id, u.username, u.email, u.added, u.last_access, u.class, u.invited_by, i.username as inviter FROM users u LEFT JOIN users i ON u.invited_by = i.id WHERE u.status = 'confirmed' AND u.invited_by != '0' ORDER BY u.added DESC $limit");
   
   stdhead("Invited Users");
   #navmenu();
                   
   begin_frame("Utilisateurs Invités");
   ?>
   
   <center>
   Cette page affiche tous les utilisateurs invités auxquels des invitations ont été envoyées et ont activé leur compte. En supprimant des utilisateurs, l'invité recevra une invitation et toutes les données associées à l'invité seront supprimées.<hr class="barre"/><?php echo number_format($count); ?> les membres ont confirmé les invitations.
   </center>

   <?php if ($count > 0): ?>
   <br />
   <form id="invited" method="post" action="admincp.php?action=invited">
   <input type="hidden" name="do" value="del" />
   <table border="0" cellpadding="3" cellspacing="0" width="100%" align="center" class="table_table">
   <tr>
       <th class="table_head">PSeudo</th>
       <th class="table_head">E-mail</th>
       <th class="table_head"><?php echo T_("CLASS");?></th>
       <th class="table_head">Invité</th>
       <th class="table_head">Dernier Accès</th>
       <th class="table_head">Invité Par..</th>
       <th class="table_head"><input type="checkbox" name="checkall" onclick="checkAll(this.form.id);" /></th>
   </tr>
   <?php while ($row = mysqli_fetch_assoc($res)): ?>
   <tr>
       <td class="table_col1" align="center"><a href="account-details.php?id=<?php echo $row["id"]; ?>"><?php echo $row["username"]; ?></a></td>
       <td class="table_col2" align="center"><?php echo $row["email"]; ?></td>
       <td class="table_col1" align="center"><?php echo get_user_class_name($row["class"]); ?></td>    
       <td class="table_col2" align="center"><?php echo utc_to_tz($row["added"]); ?></td>
       <td class="table_col1" align="center"><?php echo utc_to_tz($row["last_access"]); ?></td>  
       <td class="table_col2" align="center"><?php echo ( $row['inviter'] ) ? '<a href="account-details.php?id='.$row["invited_by"].'">'.$row["inviter"].'</a>' : 'Unknown User'; ?></td>
       <td class="table_col1" align="center"><input type="checkbox" name="users[]" value="<?php echo $row["id"]; ?>" /></td>
   </tr>
   <?php endwhile; ?>
   <tr>
       <td colspan="7" align="right">
       <input type="submit" value="Supprimer Les Cochés" />
       </td>
   </tr>
   </table>        
   </form>
   <?php
   endif;
   
   if ($count > 25) echo $pagerbottom;
   
   end_frame();
navmenu();
   stdfoot();
}
#======================================================================#
# End Invited Users - Created by djhowarth
#======================================================================#  


and he who is for the mode of invitation by email:
#======================================================================#
# View Pending Invited Users - Created by djhowarth
#======================================================================#
if ($action == "pendinginvite")
{
   if ($do == "del")
   {
       if (!@count($_POST["users"])) show_error_msg(T_("ERROR"), "Rien de sélectionné.", 1);

       $ids = array_map("intval", $_POST["users"]);
       $ids = implode(", ", $ids);
       
       $res = SQL_Query_exec("SELECT u.id, u.invited_by, i.invitees FROM users u LEFT JOIN users i ON u.invited_by = i.id WHERE u.status = 'pending' AND u.invited_by != '0' AND u.id IN ($ids)");
       while ($row = mysqli_fetch_assoc($res))
       {    
            # We remove the invitee from the inviter and give them back there invite.
            $invitees = str_replace("$row[id] ", "", $row["invitees"]);
            SQL_Query_exec("UPDATE `users` SET `invites` = `invites` + 1, `invitees` = '$invitees' WHERE `id` = '$row[invited_by]'");
            SQL_Query_exec("DELETE FROM `users` WHERE `id` = '$row[id]'");
       }

       autolink("admincp.php?action=pendinginvite", "Entrées supprimées");
   }
   
   $count = get_row_count("users", "WHERE status = 'pending' AND invited_by != '0'");
   
   list($pagertop, $pagerbottom, $limit) = pager(25, $count, 'admincp.php?action=pendinginvite&');  
                                                                   
   $res = SQL_Query_exec("SELECT u.id, u.username, u.email, u.added, u.invited_by, i.username as inviter FROM users u LEFT JOIN users i ON u.invited_by = i.id WHERE u.status = 'pending' AND u.invited_by != '0' ORDER BY u.added DESC $limit");
   
   stdhead("Invited Pending Users");
   #navmenu();
   
   begin_frame("Utilisateurs en attente d'invitations");
   ?>
   <center>
   Cette page affiche tous les utilisateurs invités auxquels des invitations ont été envoyées mais qui n'ont pas encore été activées. En supprimant un utilisateur, l'invité recevra son invitation et toutes les données associées à l'invité seront supprimées. <hr class="barre"/><?php echo number_format($count); ?> les membres sont en attente.
   </center>

   <?php if ($count > 0): ?>
   <br />
   <form id="pendinginvite" method="post" action="admincp.php?action=pendinginvite">
   <input type="hidden" name="do" value="del" />
   <table border="0" cellpadding="3" cellspacing="0" width="100%" align="center" class="table_table">
   <tr>
       <th class="table_head">Pseudo</th>
       <th class="table_head">E-mail</th>
       <th class="table_head">Invité</th>
       <th class="table_head">Invité Par..</th>
       <th class="table_head"><input type="checkbox" name="checkall" onclick="checkAll(this.form.id);" /></th>
   </tr>
   <?php while ($row = mysqli_fetch_assoc($res)): ?>
   <tr>
       <td class="table_col1" align="center"><?php echo $row["username"]; ?></td>
       <td class="table_col2" align="center"><?php echo $row["email"]; ?></td>
       <td class="table_col1" align="center"><?php echo utc_to_tz($row["added"]); ?></td>
       <td class="table_col2" align="center"><a href="account-details.php?id=<?php echo $row["invited_by"]; ?>"><?php echo $row["inviter"]; ?></a></td>
       <td class="table_col1" align="center"><input type="checkbox" name="users[]" value="<?php echo $row["id"]; ?>" /></td>
   </tr>
   <?php endwhile; ?>
   <tr>
       <td colspan="5" align="right">
       <input type="submit" value="Supprimer Les Cochés" />
       </td>
   </tr>
   </table>        
   </form>
   <?php
   endif;
   
   if ($count > 25) echo $pagerbottom;
   
   end_frame();
navmenu();
   stdfoot();
}
#======================================================================#
# End View Pending Invited Users - Created by djhowarth
#======================================================================#
Hello

I am looking for a code so that as soon as I confirm the validation of my guest by code that this is an email to tell him that the person who gave you an invitation code has validated your registration and you can collect yourself at site.
I searched the forum but couldn't find anything, hence my question.

Thank you very much for your help.

========================================||

Bonjour

Je recherche un code pour que dès j'ai confirmer la validation de mon invité par code que ce lui ci est un email pour lui dire que la personne qui vous a remis un code d'invitation a validé votre inscription et vous pouvez vous collecter au site.
J'ai chercher sur le forum mais j'ai rien trouver, d'où ma demande.

Merci beaucoup de votre aide.
Auto-Promote Users — 2022-04-23 19:11:56 in v3 Mods Completed
je confirme que lui fonctionne #1
##############################
# AUTO PROMOTE SUPER MEMBRES #
##############################
      $gigs = 25*1073741824; // 25 GB
      $res = SQL_Query_exec("SELECT id FROM users WHERE class = 1 AND uploaded >= $gigs AND uploaded >= downloaded");
      $time = get_date_time();
      while ($arr = mysqli_fetch_assoc($res)) {
              SQL_Query_exec("UPDATE users SET class = 2 WHERE id = $arr[id]");
              SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, subject) VALUES(0, $arr[id], '$time', 'Félicitations, vous avez été automatiquement promu Membre pour Super Membre vous pouvez maintenant faire plus de choses., Si votre ratio tombe en dessous de 1,00, vous serez rétrogradé.', 'Vous avez été promu à: Super Membre')");
      }

      $res = SQL_Query_exec("SELECT id FROM users WHERE class = 2 AND uploaded >= $gigs AND uploaded < downloaded");
      while ($arr = mysqli_fetch_assoc($res)) {
              SQL_Query_exec("UPDATE users SET class = 1 WHERE id = $arr[id]");
              SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, subject) VALUES(0, $arr[id], '$time', 'Vous avez été automatiquement rétrogradé deSuper Membre pourMembre.', 'Vous avez été rétrogradé au rang d'utilisateur')");
      }
###################################
# END AUTO PROMOTE SUPEER MEMBRES #
###################################


merci beaucoup a tous de votre aide et soutien  👍  👌
upload images webp — 2022-04-18 14:19:38 in v2.08 Support
allo
après upload mon erreur si dessous n’appairent pas ?

    // Warning upload image1 		
       if (($num = $_FILES['image0']['error']))
autolink("torrents-upload.php", T_("ERROR_UPLOAD_IMAGE1"));
                    //$message = T_("ERROR_UPLOAD_IMAGE1");
   // End


Merci de votre aide.
si ma mémoire est bonne ca proviens d'une description trop long
hello Extremlym66

on my side, I have been using PHPMyadmin for years and the interclassing for the connection to the server is at utf8mb4_unicode_ci
were all my tables and under table its all at utf8_bin
I had trouble with accents.
I do them on a CentOS and MariaDB server
Client ban mod — 2022-04-16 12:53:43 in v2 Only Mods Complete
MicroMonkey:
Remember........mysql_query is SQL_Query_exec


merci MicroMonkey mais même avec ce changement ca ne fonctionne toujours pas.
===================
thank you MicroMonkey but even with this change it still does not work.
Client ban mod — 2022-04-13 22:10:57 in v2 Only Mods Complete
allo

une personne la fais fonctionner sur la v3 mysqli, de mon coté j’ai fait le changement mysql a mysqli mias rien marche

merci de votre aide.
Captcha TTv3 — 2022-03-21 22:26:59 in v3 Mods in Progress
j’ai trouver une solution
j’ai mis en écrit le deuxième autolink après le else
et testé avec d'autres navigateurs et ça bien fonctionner

((merci de l'aide les amis  👍

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

I found a solution
I wrote the second autolink after the else
and tested with other browsers and it works well

((thanks for the help friends 👍
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