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

You are in: Forum / Forum / Torrent Trader / v3 Mods Requests

2020-09-01 16:08:39
[URL unfurl="true"]https://www.torrenttrader.xyz/index.php?threads/double-ip-in-admincp-tt-v2-08-hack-complete.15[/url]

hello I tested the function of the double ip at the inscription of v.2.8 on the v3 and it does not work can you tell me if it is possible to make it compatible or if there is a double ip module for the v3.
2020-09-01 21:06:39
admincp.php. the rest should work fine
#======================================================================#
#  Duplicate IP's
#======================================================================#
if ($action == "duplicateips")
{
       $res = SQL_Query_exec("SELECT ip FROM users GROUP BY ip HAVING count(*) > 1");
       $num = mysqli_num_rows($res);
     
       list($pagertop, $pagerbottom, $limit) = pager(25, $num, 'admincp.php?action=duplicateips&');
     
       $res = SQL_Query_exec("SELECT id, username, class, email, ip, added, last_access, COUNT(*) as count FROM users GROUP BY ip HAVING count(*) > 1 ORDER BY id ASC $limit");

       stdhead(T_("DUPLICATEIP"));
     
     
       begin_frame(T_("DUPLICATEIP"));
       ?>
     
       <center><?php echo T_("DUPLICATEIPINFO"); ?></center>

       <br />
     
       <?php if ($num > 0): ?>
       <br />
       <table border="0" cellpadding="3" cellspacing="0" width="100%" align="center" class="table_table">
       <tr>
                       <th class="table_head"><?php echo T_("USERNAME"); ?></th>
                       <th class="table_head"><?php echo T_("USERCLASS"); ?></th>
                       <th class="table_head"><?php echo T_("EMAIL"); ?></th>
                       <th class="table_head"><?php echo T_("IP"); ?></th>
                       <th class="table_head"><?php echo T_("ADDED"); ?></th>
                       <th class="table_head"><?php echo T_("COUNT"); ?></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 get_user_class_name($row["class"]); ?></td>
                       <td class="table_col1" align="center"><?php echo $row["email"]; ?></td>
                       <td class="table_col2" align="center"><?php echo $row["ip"]; ?></td>
                       <td class="table_col1" align="center"><?php echo utc_to_tz($row["added"]); ?></td>
                       <td class="table_col1" align="center"><a href="admincp.php?action=usersearch&amp;ip=<?php echo $row['ip']; ?>"><?php echo number_format($row['count']); ?></a></td>
       </tr>
       <?php endwhile; ?>
       </table>                
       <?php else: ?>
                  <center><b><?php echo T_("NOTHING_FOUND"); ?></b></center>
       <?php
       endif;
                                                                                                               
       if ($num > 25) echo $pagerbottom;

       end_frame();
       navmenu();
       stdfoot();
}

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2020-09-01 23:20:13
i used autolink in signup  niki - if ip in use redirect
after

       $password_maxlength = 60;


place

       //check if IP is already a peer
       if ($site_config["ipcheck"] && $site_config["accountmax"] = "1") {
               $ip = $_SERVER['REMOTE_ADDR'];
               $ipq = get_row_count("users", "WHERE ip = '$ip'");
               if ($ipq >= $site_config["accountmax"])
               autolink("account-login.php", "This IP is already in use !");
       }
2020-09-02 16:54:15
good evening and thanks to both of you it's working fine now and can you tell me how to be automatically redirected to the torrents page after registering
2020-09-02 17:18:45
It depends on settings if email confirmation for example account-ce or no checks account signup
You could edit a few files so any condition redirect to torrents you just need auto link
I use auto link for everything lol

autolink("torrents.php, "you are now   logged in");
2020-09-02 18:55:26
thanks  m-jay
2020-09-02 19:09:10
Look for header ( something index.php ) this is where the redirect to index is
is most likely bottom of file and replace for autolink
2020-09-02 19:47:10
thank you I'll look for the changes tomorrow and come back to tell you
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: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728