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
Encrypt Email [TTv3]
Controls ·  Search New posts · Mark unread

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

2019-07-07 13:24:38
"serph, post: 66866, member: 1398":

lol you've posted torrents-details not account-details anyway
go to 278 and find

$mail = $crypt->b64decode($user[email], $clef);


change to


$mail = $crypt->b64decode($user['email'], $clef);


if thats not there on line 278 as i havent installed this mod
just put ' ' around
[email]
 like
 ['email'] 

that will sort out the error you posted on line 278

sorry oops for the wrong file;)
everything works fine now, thanks a lot
Unknown User
2019-07-07 14:18:58
But how is email then getting decrypted when the user requires password reset?
2019-07-07 15:42:28
This is done two ways with the input m8, for the email address in some cases what you type is the send address ($email)
The input is also at times crypted/decrypted to check db, show email ($mail)
Unknown User
2019-08-14 06:28:07
"m-jay, post: 66870, member: 20288":

This is done two ways with the input m8, for the email address in some cases what you type is the send address ($email)
The input is also at times crypted/decrypted to check db, show email ($mail)

What about advanced user search into admin panel

I got to show mails, but can't make search work.
2019-08-14 16:12:08
try this in the admincp advanced user search

find
                foreach($emaila as $email) {


add after
               $mail = $email;
              $email = $crypt->b64encode($email, $clef);


find
if (!validemail($email)) {


replace with
if (!validemail($mail)) {


find
                if ($user['added'] == '0000-00-00 00:00:00')


add above
                $email = $crypt->b64decode($user[email], $clef); 


find
                "<td class='table_col2' align='center'>" . $ipstr . "</td><td class='table_col1' align='center'>" . $user['email'] . "</td>".


replace with
                "<td class='table_col2' align='center'>" . $ipstr . "</td><td class='table_col1' align='center'>" . $email . "</td>". 
Unknown User
2019-08-14 19:41:41
Thanks [USER=20288]@m-jay[/USER]. But for some reason wildcard not working when I want to search for example: *@gmail.com
2019-08-15 18:00:43
Not sure it ever worked that way, It looks like each search is linked to a function validemail, validip etc so you need to enter full email, full name or full IP
I agree it should search for matches not the full things, we could do with finding some examples I think the memberlist.php searches that way where you can enter 3 characters and find usernames for example
[color=rgb(251, 160, 38)]edit [/color]
Simple user search is better try search for part of email might be best starting a new post on this if it needs code updating
2019-08-16 14:58:40
admincp.php simple user search find
$where  = "AND username LIKE " . $search . " OR email LIKE " . $search . "


replace with
        $email = sqlesc('%' . $email . '%');
                  $where  = "AND username LIKE " . $search . " OR email LIKE " . $email . "


find
<?php while ($row = mysqli_fetch_assoc($res)):


add after
$email = $crypt->b64decode($row['email'], $clef);?>


find
<td class="table_col1" align="center"><?php echo $row["email"]; ?></td>


replace with
<td class="table_col1" align="center"><?php echo $email; ?></td>


search
$search = sqlesc('%' . $_GET['search'] . '%');


above add
$email = $crypt->b64encode($_GET['search'], $clef);
Unknown User
2019-08-17 16:17:10
[USER=20288]@m-jay[/USER], can you please check your site and tell me if the performance for logged out users is faster like 30-40% than for logged in? If you use encrypt mail + bcrypt
Unknown User
2019-09-08 14:32:31
[USER=20288]@m-jay[/USER] The email ban check part is incorrect. It shouldn't be encrypted as those mails are decrypted into email_bans table.

// encrypt email
           $maildomain = (substr($email, strpos($email, "@") + 1));
$mail = $crypt->b64encode($email, $clef);
$maildomain = $crypt->b64encode($maildomain, $clef);
     
$a = (@mysqli_fetch_row(@SQL_Query_exec("select count(*) from email_bans where mail_domain='$mail'")));
2019-12-22 17:42:21
"m-jay, post: 66846, member: 20288":

[color=rgb(251, 160, 38)]invite.php find[/color]
dbconn();


add below
// email encrypt
$crypt = new Cryptage();
$clef = $site_config["clef"];


find
    $maildomain = (substr($email, strpos($email, "@") + 1));            /*$maildomain = (substr($email, strpos($email, "@") + 1));
   $a = (@mysqli_fetch_row(@SQL_Query_exec("select count(*) from email_bans where mail_domain='$email'")));


replace with
    // encrypt email
   $maildomain = (substr($email, strpos($email, "@") + 1));
   $mail = $crypt->b64encode($email, $clef);
   $maildomain = $crypt->b64encode($maildomain, $clef);
   $a = (@mysqli_fetch_row(@SQL_Query_exec("select count(*) from email_bans where mail_domain='$mail'")));


find x 2
implode(",", array_map("sqlesc", array($username, $secret, $email,


replace with
implode(",", array_map("sqlesc", array($username, $secret, $mail,



How would this step integrate with the "Invite Code System V3" mod??
My current invite.php file code from this mod looks like the attached file.
invite.rar
Download

If It Ain't Dutch, It Ain't Much!!
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